« Back to channel list

#ruby - 19 April 2019

« Back 1 day Forward 1 day »
[00:12:02] Swyper: has joined #ruby
[00:18:11] Azure: has joined #ruby
[00:49:25] laaron: has joined #ruby
[01:16:36] dsmythe: has joined #ruby
[01:22:31] esrse: has joined #ruby
[01:23:45] noobineer: has joined #ruby
[01:24:34] UnknownSoldier: has joined #ruby
[01:30:12] tdy1: has joined #ruby
[01:43:18] Fridtjof: has joined #ruby
[01:52:51] nones: has joined #ruby
[02:04:49] Swyper: has joined #ruby
[02:15:11] Swyper: has joined #ruby
[02:15:26] Swyper: has joined #ruby
[02:17:23] mangold: has joined #ruby
[02:26:00] duderonomy: has joined #ruby
[02:28:04] baweaver: havenwood: how do you get a list of Ruby operators?
[02:28:49] cd: has joined #ruby
[02:29:09] havenwood: baweaver: /msg chanserv access #ruby list
[02:29:09] baweaver: &>> Integer.methods.grep(/^[^a-z]{1,3}$/)
[02:29:13] rubydoc: # => [:<=>, :<=, :>=, :==, :===, :<, :>, :=~, :!~, :!, :!=] (https://carc.in/#/r/6r2z)
[02:29:22] havenwood: oh, that type of operator!
[02:34:10] galaxie: has joined #ruby
[02:42:25] Swyper: has joined #ruby
[02:42:38] Swyper: has joined #ruby
[02:43:55] kapil____: has joined #ruby
[02:44:42] arescorpio: has joined #ruby
[03:10:30] braincrash: has joined #ruby
[03:10:43] planigan: has joined #ruby
[03:18:17] bambanx: has joined #ruby
[03:27:29] sesame: has joined #ruby
[03:32:04] ramfjord: has joined #ruby
[04:04:39] UnknownSoldier: has joined #ruby
[04:06:47] DTZUZO: has joined #ruby
[04:26:02] iMadper: has joined #ruby
[04:46:13] LightStalker: has joined #ruby
[04:47:10] sesame: has left #ruby: ()
[05:17:03] sauvin: has joined #ruby
[05:19:45] schleppel: has joined #ruby
[05:20:55] mangold: has joined #ruby
[05:40:29] crankharder: has joined #ruby
[05:46:31] reber: has joined #ruby
[05:53:24] DmitryBochkarev: has joined #ruby
[05:54:29] UnknownSoldier: has joined #ruby
[05:54:33] uncle1V4N: has joined #ruby
[06:18:25] aert: has joined #ruby
[06:32:36] dellavg_: has joined #ruby
[06:33:27] uncle1V4N: has joined #ruby
[06:34:13] uncle1V4N: has joined #ruby
[06:35:15] ramfjord: has joined #ruby
[06:36:00] rheddry: has joined #ruby
[06:39:04] ndrst: has joined #ruby
[06:47:07] Nicmavr: has joined #ruby
[06:59:54] dsmythe: has joined #ruby
[06:59:58] cedum: has joined #ruby
[07:05:46] iMadper: has joined #ruby
[07:15:30] jcarl43: has joined #ruby
[07:34:30] sphenxes: has joined #ruby
[07:40:37] hightower2: has joined #ruby
[07:50:57] TomyLobo: has joined #ruby
[08:04:43] jefffrails35: has joined #ruby
[08:06:44] pwnd_nsfw`: has joined #ruby
[08:19:02] aert: has joined #ruby
[08:20:27] kapil____: has joined #ruby
[08:35:29] ramfjord: has joined #ruby
[08:41:08] DTZUZO: has joined #ruby
[08:58:16] mangold: has joined #ruby
[08:58:36] sameerynho: has joined #ruby
[09:08:07] RiPuk: has joined #ruby
[09:09:53] Azure: has joined #ruby
[09:34:00] crankharder: has joined #ruby
[09:45:15] kyrylo: has joined #ruby
[10:06:52] levifig: has joined #ruby
[10:14:11] IGnorAND: I am using a namespace in my class, and am using Rails.application.credentials. but it seems to prefix it with my custom namespace.
[10:14:44] IGnorAND: Is there a way to tell it not to use my namespace?
[10:15:07] IGnorAND: I get uninitialized constant Mynamespace::Rails
[10:16:13] leftylink: while I would have thought you can say `::Rails`, I would also have equally thought it was not necessary. apparently there is something I don't understand in this matter.
[10:16:25] leftylink: I wonder what it is I have failed to understand
[10:19:41] ur5us: has joined #ruby
[10:23:52] ferr: has joined #ruby
[10:24:56] leftylink: &>> module Foo end; module Bar puts ::Foo == Foo end
[10:24:58] rubydoc: # => true (https://carc.in/#/r/6r4f)
[10:25:28] leftylink: hmm. there must be some subtlety in the situation, such that the simple situation is not a good analogy for it anymore
[10:26:42] za1b1tsu: has joined #ruby
[10:28:05] d^sh: has joined #ruby
[10:33:47] IGnorAND: want the source code?
[10:34:49] IGnorAND: leftylink: https://gist.github.com/nuheluxulu/4f9422c7d7953436aa60f992fa78bd19
[10:35:18] conta: has joined #ruby
[10:35:40] ramfjord: has joined #ruby
[10:47:36] nadir: has joined #ruby
[10:48:38] yxhuvud: has joined #ruby
[11:01:13] Fernando-Basso: has joined #ruby
[11:12:24] dionysus69: has joined #ruby
[11:25:54] RedNifre: has joined #ruby
[11:31:20] mat_bug: has joined #ruby
[11:36:26] nowhere_man: has joined #ruby
[11:58:58] AJA4350: has joined #ruby
[12:00:02] livcd: typessssssssssssss
[12:29:57] misaki_m: has joined #ruby
[12:35:57] ramfjord: has joined #ruby
[12:41:01] Sylario: has joined #ruby
[12:46:23] duckpuppy: has joined #ruby
[12:49:45] kapil____: has joined #ruby
[12:53:49] RedNifre: has joined #ruby
[12:59:12] dsmythe: has joined #ruby
[13:04:55] uranoss: has joined #ruby
[13:07:57] RedNifre: has joined #ruby
[13:09:13] nowhere_man: has joined #ruby
[13:11:27] krawchyk: has joined #ruby
[13:15:46] lucasb: has joined #ruby
[13:24:48] rippa: has joined #ruby
[13:25:04] pupsikov: has joined #ruby
[13:35:28] duckpuppy: has joined #ruby
[13:36:35] tdy: has joined #ruby
[13:36:57] Yxhvd: has joined #ruby
[13:43:40] nadir: has joined #ruby
[13:56:57] gnufied__: has joined #ruby
[14:00:03] Swyper: has joined #ruby
[14:11:22] Rapture: has joined #ruby
[14:16:14] snk: has joined #ruby
[14:17:09] Guest97521: has left #ruby: ()
[14:19:00] pwnd_nsfw: has joined #ruby
[14:22:55] snk: has joined #ruby
[14:29:30] uncle1V4N: has joined #ruby
[14:35:24] zeroquake: has joined #ruby
[14:37:11] wallace_mu: has joined #ruby
[14:38:38] za1b1tsu: has joined #ruby
[14:42:21] Swyper: has joined #ruby
[14:42:26] SeepingN: has joined #ruby
[14:44:11] uncle1V4N: has joined #ruby
[14:46:21] uncle1V4N: has joined #ruby
[14:58:28] conta: has joined #ruby
[15:11:02] RedNifre: has joined #ruby
[15:14:56] zeroquake: has joined #ruby
[15:23:01] foobar2k: has joined #ruby
[15:27:05] Leopere: has joined #ruby
[15:34:50] mangold: has joined #ruby
[15:38:14] Leopere: has joined #ruby
[15:47:55] wallace_mu: has joined #ruby
[16:02:18] ianfleeton: has joined #ruby
[16:09:18] dinfuehr: has joined #ruby
[16:09:34] apparition: has joined #ruby
[16:13:00] uncle1V4N: has joined #ruby
[16:13:36] BTRE: has joined #ruby
[16:23:16] Swyper: has joined #ruby
[16:27:55] Eindoofus: has joined #ruby
[16:28:30] Paraxial: has joined #ruby
[16:28:58] Eindoofus: hi, can anyone explain this: current_file = open(input_file); current_file.gets.chomp
[16:29:21] Eindoofus: i'm not aware of File have a "gets" function on it
[16:30:38] za1b1tsu: has joined #ruby
[16:33:03] uplime: File is an IO object, which has gets
[16:33:34] uplime: STDIN and STDOUT are IO objects as well, which is where its common to use them
[16:33:57] uplime: erm, File is an IO child class*
[16:34:40] uplime: https://ruby-doc.org/core-2.6.3/IO.html#method-i-gets
[16:34:41] Eindoofus: ah, makes sense. so current_file.gets.chomp is basically like current_file.readline?
[16:34:53] Eindoofus: in this "File" context
[16:35:17] uplime: they're simiilar
[16:35:50] uplime: gets returns a nil at eof
[16:36:10] suukim: has joined #ruby
[16:38:02] reber: has joined #ruby
[16:47:18] nakuku: has joined #ruby
[16:47:41] DmitryBochkarev: has joined #ruby
[16:49:37] DmitryBochkarev: has joined #ruby
[16:51:35] duderonomy: has joined #ruby
[16:55:00] zeroquake: has joined #ruby
[16:59:05] tdy: has joined #ruby
[17:01:38] CrazyEddy: has joined #ruby
[17:13:41] polishdub: has joined #ruby
[17:21:22] zachk: has joined #ruby
[17:23:11] zachk: has joined #ruby
[17:23:49] zachk: has joined #ruby
[17:27:26] Nicmavr: has joined #ruby
[17:31:14] r29v: has joined #ruby
[17:32:26] duderonomy: has joined #ruby
[17:33:22] RedNifre: has joined #ruby
[17:34:37] nadir: has joined #ruby
[17:39:12] _whitelogger: has joined #ruby
[17:53:47] AJA4351: has joined #ruby
[17:58:30] conta: has joined #ruby
[17:59:52] nakuku: has joined #ruby
[18:04:34] CommanderViral: has joined #ruby
[18:07:21] CrazyEddy: has joined #ruby
[18:12:14] nowhere_man: has joined #ruby
[18:12:32] CommanderViral: has joined #ruby
[18:14:46] CommanderViral: has joined #ruby
[18:16:42] ramfjord: has joined #ruby
[18:23:19] uncle1V4N: has joined #ruby
[18:42:25] facest: has joined #ruby
[18:46:13] d^sh: has joined #ruby
[18:50:47] tdy: has joined #ruby
[18:51:12] uncle1V4N: has joined #ruby
[18:52:26] uncle1V4N: has joined #ruby
[18:52:33] Xiti: has joined #ruby
[18:53:26] krawchyk: has joined #ruby
[18:55:56] clemens3_: has joined #ruby
[19:00:00] cow[moo]: has joined #ruby
[19:00:33] AJA4351: has joined #ruby
[19:04:03] houhoulis: has joined #ruby
[19:12:33] keden: Hi folks, does anyone know if it's possible to get a code file loaded in memory but deleted otherwise?
[19:13:31] keden: I have a pry session running which was initiated with a `binding.pry` in a file I have accidentally deleted.
[19:13:51] Zarthus: have you tried git to recover it? :P
[19:14:05] keden: If I can use the class from that file then it must exist in memory somewhere.
[19:14:15] keden: I wasn't version tracking it.
[19:14:38] Zarthus: what editor are you using?
[19:14:54] Zarthus: (i'm asking alternative questions because recovering it from memory is gonna be a PITA, I'd wager)
[19:14:54] keden: vim, which I've closed already.
[19:15:12] Zarthus: yeah, that's gonna bite
[19:23:27] claudiuinberlin: has joined #ruby
[19:28:11] dsmythe: has joined #ruby
[19:28:38] kyrylo: has joined #ruby
[19:32:59] phaul: in pry can you do $ method name like Class#method_name ? at least that would get back something
[19:33:06] phaul: _if_ it works
[19:33:37] phaul: $ being show-source
[19:33:51] phaul: but it might read it from disc..
[19:34:04] GodFather: has joined #ruby
[19:35:50] keden: I was looking into show-source actually, but it reads from the file yes.
[19:36:41] fowlduck: so, I'm working on a gem that needs to be compatible with multiple versions of rails and multiple versions of ruby. I could build everything out to enable that myself, but is there a project to make that combination easier?
[19:36:52] fowlduck: I've seen appraisal, but was hoping there was something else
[19:37:59] GodFather: has joined #ruby
[19:40:05] keden: fowlduck: I've only used appraisal for that
[19:53:59] fowlduck: keden: hmm yeah I guess I'll give that a go and use something to switch ruby versions automatically
[19:57:03] SeepingN: has joined #ruby
[19:59:18] wald0: has joined #ruby
[20:04:28] duderonomy: has joined #ruby
[20:15:18] hiroaki: has joined #ruby
[20:20:11] s3nd1v0g1us: has joined #ruby
[20:26:41] ramfjord_: has joined #ruby
[20:36:53] duderonomy: has joined #ruby
[20:39:39] wallace_mu: has joined #ruby
[20:44:55] gb_away: has joined #ruby
[20:51:45] pupsikov: has joined #ruby
[20:54:09] Dbugger: has joined #ruby
[20:56:11] krawchyk: has joined #ruby
[20:57:25] Joufflu: has joined #ruby
[21:01:20] wallace_mu: has joined #ruby
[21:04:26] Azure: has joined #ruby
[21:04:31] mat_bug_: has joined #ruby
[21:14:40] ramfjord: has joined #ruby
[21:15:22] IGnorAND: anyone know how to get the values of bin/rails credentials:view in a poro? Rails.application.credentials.foo will access the value of foo in rails
[21:24:52] mat_bug: has joined #ruby
[21:27:26] maryo: has joined #ruby
[21:27:52] adam12: fowlduck: I don't test against Rails but I set this up recently: Ruby + CircleCI (Docker) for multiple library testing. Maybe you could do something comparable? https://github.com/adam12/friendly_numbers/blob/master/.circleci/config.yml
[21:28:17] adam12: s/multiple library/multiple Ruby/
[21:28:36] dsmythe_: has joined #ruby
[21:29:07] AJA4350: has joined #ruby
[21:31:49] dsmythe__: has joined #ruby
[21:42:00] pupsikov: has joined #ruby
[21:44:17] mat_bug_: has joined #ruby
[21:58:15] mat_bug: has joined #ruby
[22:03:11] hiroaki: has joined #ruby
[22:06:29] dsmythe: has joined #ruby
[22:08:03] dviola: has joined #ruby
[22:08:37] dviola: has joined #ruby
[22:13:39] mat_bug: has joined #ruby
[22:24:52] uplime71: has joined #ruby
[22:28:05] mat_bug: has joined #ruby
[22:28:32] wallace_mu: has joined #ruby
[22:38:40] ramfjord: has joined #ruby
[22:50:22] ricer2: has joined #ruby
[23:10:02] mat_bug: has joined #ruby
[23:13:57] rafadc: has joined #ruby
[23:20:16] unixabg: has joined #ruby
[23:21:47] Swyper: has joined #ruby
[23:24:56] unixabg: Greetings, I need a simple way to open a connection to rtsp stream, grab an image, and close stream. I am new to rtsp and would appreciate
[23:25:08] unixabg: any advice on tools/methods to achieve. ty
[23:36:56] galaxie: has joined #ruby
[23:44:59] Swyper: has joined #ruby
[23:51:49] havenwood: unixabg: using the rtps gem?
[23:59:32] Swyper: has joined #ruby