« Back to channel list

#ruby - 05 April 2018

« Back 1 day Forward 1 day »
[00:00:03] hays: ugh. why does this work? "03j2r09".to_i
[00:00:26] hays: seems that should throw and error, not give me 3
[00:02:02] HoierM: has joined #ruby
[00:02:18] Radar: hays: Why wouldn't it work?
[00:02:23] cagomez: has joined #ruby
[00:02:44] hays: because "03j2r09" is not an integer?
[00:02:51] Radar: >> "1-if-a-string-is-prefixed-with-a-number-to_i_does_this".to_i
[00:02:52] ruby[bot]: Radar: # => 1 (https://eval.in/983943)
[00:03:02] Radar: but "03" is.
[00:03:13] havenwood: >> Integer("03j2r09")
[00:03:13] Radar: Why are you calling .to_i on that anyway?
[00:03:14] ruby[bot]: havenwood: # => invalid value for Integer(): "03j2r09" (ArgumentError) ...check link for more (https://eval.in/983944)
[00:03:20] Radar: havenwood: A+ for effort
[00:03:54] havenwood: Radar: In nightly: Integer("03j2r09", exception: false) #=> nil
[00:04:05] schneider-: has joined #ruby
[00:04:26] hays: havenwood: I guess i should be using that if don't want cuteness
[00:08:38] bmurt: has joined #ruby
[00:14:07] jenrzzz: has joined #ruby
[00:14:07] jenrzzz: has joined #ruby
[00:18:47] ur5us: has joined #ruby
[00:19:13] ciscam: has joined #ruby
[00:25:41] beremenushka: has joined #ruby
[00:26:38] ur5us: has joined #ruby
[00:33:58] ur5us: has joined #ruby
[00:41:29] donofrio_: has joined #ruby
[00:42:27] guacamole: has joined #ruby
[00:42:28] guacamole: has joined #ruby
[00:43:48] uplime-: has joined #ruby
[00:43:50] Mrgoose-: has joined #ruby
[00:45:22] ahuman_: has joined #ruby
[00:45:45] ephemera__: has joined #ruby
[00:46:00] izaac_: has joined #ruby
[00:46:05] Prira_: has joined #ruby
[00:46:12] eam_: has joined #ruby
[00:46:14] sunya7a__: has joined #ruby
[00:46:19] connor_g1odwolf: has joined #ruby
[00:46:27] n0m4d1c: has joined #ruby
[00:46:28] patteh_: has joined #ruby
[00:46:34] ericmath1son: has joined #ruby
[00:46:41] SuperL4g: has joined #ruby
[00:46:49] cibs_: has joined #ruby
[00:46:57] sucks: has joined #ruby
[00:47:33] gnotc_: has joined #ruby
[00:48:58] th1nkpad: has joined #ruby
[00:48:59] guardian`: has joined #ruby
[00:49:21] Psybur: has joined #ruby
[00:49:37] agrecascino: has joined #ruby
[00:49:37] Phage-: has joined #ruby
[00:49:39] Seich_: has joined #ruby
[00:49:44] trautwein_: has joined #ruby
[00:49:47] fusta_: has joined #ruby
[00:49:48] mayamai: has joined #ruby
[00:49:48] Tristan-Speccy: has joined #ruby
[00:49:50] bmn_: has joined #ruby
[00:49:53] byte512_: has joined #ruby
[00:50:02] hfp__work: has joined #ruby
[00:50:06] tomaw_: has joined #ruby
[00:50:09] Vashy: has joined #ruby
[00:50:11] leonthemisfit_: has joined #ruby
[00:50:12] Biohazard_: has joined #ruby
[00:50:43] LenPayne: has joined #ruby
[00:51:41] garyserj: has joined #ruby
[00:52:12] giraffe: has joined #ruby
[00:56:05] qyliss: has joined #ruby
[00:56:57] Emmanuel_Chanel: has joined #ruby
[00:57:02] BTRE: has joined #ruby
[00:57:18] michael_mbp: has joined #ruby
[00:57:23] gnufied: has joined #ruby
[00:57:48] aaronm04: has joined #ruby
[00:58:14] coffeejunk: has joined #ruby
[00:58:18] shenghi: has joined #ruby
[00:59:16] eb0t_: has joined #ruby
[01:00:06] linduxed: has joined #ruby
[01:04:38] kn-928: has joined #ruby
[01:07:28] duderonomy: has joined #ruby
[01:08:05] erlend: has joined #ruby
[01:08:31] dinfuehr: has joined #ruby
[01:09:16] ur5us: has joined #ruby
[01:20:33] mistergibson: has joined #ruby
[01:22:39] rshetty: has joined #ruby
[01:26:13] herbmillerjr: has joined #ruby
[01:26:35] alfiemax: has joined #ruby
[01:32:09] gizmore|2: has joined #ruby
[01:35:03] noobineer: has joined #ruby
[01:35:06] Ryzokuken: has joined #ruby
[01:41:16] ciscam: has joined #ruby
[01:47:23] guacamole: has joined #ruby
[01:47:24] guacamole: has joined #ruby
[01:53:32] schneider-: has joined #ruby
[01:56:55] noobineer: has joined #ruby
[02:02:12] workmad3: has joined #ruby
[02:02:25] rshetty: has joined #ruby
[02:03:46] segy: has joined #ruby
[02:04:28] guacamole: has joined #ruby
[02:04:29] guacamole: has joined #ruby
[02:12:00] sanscoeur: has joined #ruby
[02:16:03] kapil___: has joined #ruby
[02:20:38] darkhanb: has joined #ruby
[02:25:14] guacamole: has joined #ruby
[02:25:14] guacamole: has joined #ruby
[02:28:25] rshetty: has joined #ruby
[02:29:04] tolerablyjake: has joined #ruby
[02:30:01] schneider-: has joined #ruby
[02:30:07] noobineer: has joined #ruby
[02:46:17] dkphenom: has joined #ruby
[02:51:36] tolerablyjake: has joined #ruby
[02:54:08] guacamole: has joined #ruby
[02:54:08] guacamole: has joined #ruby
[02:54:13] cschneid_: has joined #ruby
[03:00:10] cadillac_: has joined #ruby
[03:01:33] noobineer: has joined #ruby
[03:21:44] alfiemax: has joined #ruby
[03:25:15] harrycs: has joined #ruby
[03:25:45] jenrzzz: has joined #ruby
[03:25:46] jenrzzz: has joined #ruby
[03:27:58] harrycs: has joined #ruby
[03:29:56] harrycs: has joined #ruby
[03:30:16] DTZUZO: has joined #ruby
[03:30:19] gnotc_: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[03:31:47] gix-: has joined #ruby
[03:35:56] Dimik: has joined #ruby
[03:41:37] alfiemax: has joined #ruby
[03:44:14] eckhardt: has joined #ruby
[03:53:54] harrycs: has joined #ruby
[03:55:55] harrycs: has joined #ruby
[03:56:53] erlend: has joined #ruby
[03:57:59] harrycs: has joined #ruby
[03:59:27] rshetty: has joined #ruby
[03:59:53] harrycs: has joined #ruby
[04:00:00] rshetty: has joined #ruby
[04:01:54] harrycs: has joined #ruby
[04:06:49] ByronJohnson: has joined #ruby
[04:09:53] cschneid_: has joined #ruby
[04:14:03] connor_goodwolf: has joined #ruby
[04:18:25] imode: has joined #ruby
[04:21:58] anisha: has joined #ruby
[04:22:07] soniya29: has joined #ruby
[04:22:08] soniya29_: has joined #ruby
[04:24:03] ur5us: has joined #ruby
[04:26:34] jenrzzz: has joined #ruby
[04:26:35] jenrzzz: has joined #ruby
[04:27:00] chmurifree: has joined #ruby
[04:43:44] comet23: has joined #ruby
[04:45:47] cschneid_: has joined #ruby
[04:47:17] rshetty: has joined #ruby
[04:48:00] hndk: has joined #ruby
[04:49:39] GodFather: has joined #ruby
[04:51:43] Omnilord: has joined #ruby
[04:51:53] rshetty: has joined #ruby
[04:56:32] nadir: has joined #ruby
[04:59:44] jenrzzz: has joined #ruby
[04:59:45] jenrzzz: has joined #ruby
[05:00:52] SeepingN: has joined #ruby
[05:01:02] _aeris_: has joined #ruby
[05:01:18] redlegion: has joined #ruby
[05:01:19] reber: has joined #ruby
[05:02:28] jnollette: has joined #ruby
[05:06:53] cam27: has joined #ruby
[05:07:54] govg: has joined #ruby
[05:12:53] ciscam: has joined #ruby
[05:22:01] venmx: has joined #ruby
[05:29:58] ozzloy: has joined #ruby
[05:30:04] conta: has joined #ruby
[05:34:36] jenrzzz: has joined #ruby
[05:34:37] jenrzzz: has joined #ruby
[05:37:30] soniya29: has joined #ruby
[05:37:31] soniya29_: has joined #ruby
[05:40:32] n008f4g_: has joined #ruby
[05:47:41] soniya29__: has joined #ruby
[05:49:45] aupadhye: has joined #ruby
[05:49:53] soniya29: has joined #ruby
[05:50:04] kn-928: has joined #ruby
[05:55:01] soniya29: has joined #ruby
[05:55:02] soniya29__: has joined #ruby
[05:57:15] jenrzzz: has joined #ruby
[05:57:15] jenrzzz: has joined #ruby
[06:05:32] Xiti: has joined #ruby
[06:05:37] erlend: has joined #ruby
[06:18:15] jenrzzz: has joined #ruby
[06:18:15] jenrzzz: has joined #ruby
[06:22:40] law: has joined #ruby
[06:23:15] law: hey all, I'm trying to debug an older rails app, and back-port the concept of a 'staging' environment into it where there was none before
[06:23:45] law: a lot of this has looked like opening up the .yml files under config/, finding the ones that had 'production', 'common', 'development' sections, etc, and adding a 'staging' section
[06:23:48] n3b: has joined #ruby
[06:23:59] law: I've done that for every file I could find under config, but still my app crashes on startup
[06:24:18] law: (when I set RAILS_ENV=staging)
[06:24:29] law: when its production, development, etc, it starts just fine
[06:24:51] law: is there a way to further debug which component is lacking the concept of a 'staging' section, so I can fix it?
[06:24:56] Radar: law: define "crashes"
[06:25:05] Radar: Is there an error?
[06:25:09] law: it refuses to start, and throws a stack-trace like this:
[06:26:38] law: https://bin.fzlg.co/susotasihi.bash
[06:28:07] Radar: from /var/mycorp/microservices/vendor/bundle/ruby/2.1.0/gems/rift-0.9.4/lib/rift/client/railtie.rb:18:in `each'
[06:28:10] Radar: That is not Rails.
[06:28:30] Radar: I don't know what that is.
[06:28:38] Radar: It is not this: https://rubygems.org/gems/rift
[06:28:55] Radar: law: what is rift?
[06:29:25] mikhael_k33hl: has joined #ruby
[06:29:43] law: I believe it is an internal project for messing with Ruby/Thrift processors
[06:29:47] mikhael_k33hl: I can't seem to raise a custom exception/error: https://gist.github.com/marzdgzmn/9814f23f38918f8af446a26254b0e98d
[06:30:29] mikhael_k33hl: line 65 is executed, but line 66 which raises and exception/error doesn't seem to be executed or it is but I'm not catching/rescuing it correctly
[06:32:35] iMadper`: has joined #ruby
[06:39:19] dionysus69: has joined #ruby
[06:40:10] guacamole: has joined #ruby
[06:40:10] guacamole: has joined #ruby
[06:45:14] Radar: law: But where can I find this gem if not on RubyGems?
[06:46:27] zenspider: has joined #ruby
[06:51:22] nicesignal: has joined #ruby
[06:51:36] zenspider: has joined #ruby
[06:54:06] law: actually, I think I just sorted it
[06:54:23] law: there's a bunch of config files NOT in config/ that have environment stuff in them, I'll modify those and see if that doesn't help
[07:01:20] jenrzzz: has joined #ruby
[07:01:21] jenrzzz: has joined #ruby
[07:02:34] arekushi: has joined #ruby
[07:05:27] venmx: has joined #ruby
[07:09:23] law: out of curiosity, is there a way to configure the 'thin' app server to only use a single socket for all its server-subprocesses?
[07:10:05] law: my preference is for it to act more like unicorn - one socket-file, multiple workers hanging off that socket
[07:11:14] Deon: has joined #ruby
[07:12:28] clemens3_: has joined #ruby
[07:13:21] cam27: has left #ruby: ()
[07:19:09] govg: has joined #ruby
[07:19:54] claudiuinberlin: has joined #ruby
[07:25:04] burgestrand: has joined #ruby
[07:26:37] _joes_: has joined #ruby
[07:26:43] DTZUZO: has joined #ruby
[07:27:24] aufi: has joined #ruby
[07:28:19] alfiemax: has joined #ruby
[07:29:08] aufi_: has joined #ruby
[07:36:27] cam27_: has joined #ruby
[07:40:08] jenrzzz: has joined #ruby
[07:40:09] jenrzzz: has joined #ruby
[07:42:18] apeiros: has joined #ruby
[07:45:18] shoogz: has joined #ruby
[07:49:04] schneider: has joined #ruby
[07:49:13] yeticry: has joined #ruby
[07:50:03] kn-928: has joined #ruby
[07:51:25] ncopa: has joined #ruby
[07:54:36] aufi_: has joined #ruby
[07:55:10] suukim: has joined #ruby
[07:56:18] lunarkitty7: has joined #ruby
[07:56:48] mikhael_k33hl: I have a thread-safe array that I want to pass on a singleton that acts as an observer that should delete an element when the thread is done. How do I pass that array?
[07:58:36] imode: has joined #ruby
[07:59:08] apeiros: you pass it like any other object? or why do you think there'd be anything special?
[08:01:08] mikhael_k33hl: apeiros: So it'll be pass by reference eh? thought it would be passed by copy
[08:02:50] dminuoso: mikhael_k33hl: variables can be thought to contain pointers/references.
[08:02:54] apeiros: it is pass-by-object
[08:03:13] dminuoso: mikhael_k33hl: So if you do `p(a)` it passes the *reference* inside a by value.
[08:03:21] apeiros: ruby ain't C. don't think in C terms.
[08:03:51] dminuoso: apeiros: pass-by-object is not semantics
[08:04:06] apeiros: dminuoso: got a better term?
[08:04:08] mikhael_k33hl: dminuoso: i passes the reference to a right?
[08:04:09] dminuoso: Ive pondered about this a lot and discussed this with many people. Formally Ruby is call-by-value is you see variables as containing references
[08:05:26] apeiros: ruby doesn't have references the way other languages have them, so "pass by reference vs pass by copy" is not a meaningful consideration
[08:06:13] apeiros: and what happens internally (in cruby the VALUE being copied) is an implementation detail and immaterial to the question
[08:06:14] dminuoso: apeiros: variables are references
[08:06:44] apeiros: dminuoso: yes, but again, not the same as in other languages. or how do you dereference them?
[08:07:11] dminuoso: apeiros: you can think of the "dot" operator as dereferencing
[08:07:27] dminuoso: as in `foo.bar`
[08:07:44] dminuoso: apeiros: It has the advantage to be easier to understand from an evaluation strategy point of view
[08:07:48] apeiros: eh, yeah, no. you can't do something like C++'s &foo vs. foo
[08:08:06] erlend: has joined #ruby
[08:08:07] dminuoso: apeiros: when I say "reference" I mean it in a generic sense, more like pointer. perhaps `reference` is a bit too overloaded.
[08:09:26] apeiros: dminuoso: I understand that
[08:09:50] dminuoso: apeiros: oh I misunderstood what you just said then
[08:09:59] face: has joined #ruby
[08:10:04] dminuoso: apeiros: you can do it. assignment to variables is taking a reference.
[08:10:39] jmhmccr: has joined #ruby
[08:10:44] mikecmpbll: has joined #ruby
[08:10:46] apeiros: the point is that a question like "is ruby pass-by-value or pass-by-reference" implies ruby had a different way of how the variable system actually works. it's not a meaningful question since ruby does not.
[08:10:51] tfitts: has joined #ruby
[08:11:12] nadir: has joined #ruby
[08:11:19] apeiros: hence my clumsy "it's neither, it's pass-by-object"
[08:11:24] howdoi: has joined #ruby
[08:11:37] m4rCsi: has joined #ruby
[08:11:45] apeiros: (and yes, I'm aware too of things like ObjectSpace._id2ref)
[08:11:50] tvw: has joined #ruby
[08:11:51] justache: has joined #ruby
[08:11:58] dminuoso: apeiros: Im willing to forego dirty details like OS :P
[08:12:00] jamesaxl: has joined #ruby
[08:12:14] mahlon: has joined #ruby
[08:12:19] ohcibi_: has joined #ruby
[08:12:20] tjbp_: has joined #ruby
[08:12:45] dminuoso: apeiros: pass-by-object is just not well defined..
[08:12:51] biox: has joined #ruby
[08:13:04] apeiros: hence "got a better term?"
[08:13:13] dminuoso: apeiros: pass-by-value.
[08:13:13] marius: has joined #ruby
[08:13:13] badeball: has joined #ruby
[08:13:17] apeiros: maybe there is a well defined term for what ruby does. given that many OO languages work this way.
[08:13:21] dminuoso: It's just a matter of "what is my value actually"
[08:13:22] SegFaultAX: has joined #ruby
[08:13:26] dminuoso: when you write a = [1,2]
[08:13:28] dminuoso: what _is_ a?
[08:13:35] jsaak: has joined #ruby
[08:13:36] dminuoso: a is clearly not an object
[08:13:37] kloeri_: has joined #ruby
[08:13:39] apeiros: yeah, see, that way lies confusion
[08:13:45] gigetoo: has joined #ruby
[08:13:48] arooni: has joined #ruby
[08:13:50] eam: has joined #ruby
[08:13:54] cats: has joined #ruby
[08:14:00] miah_: has joined #ruby
[08:14:01] devyn: has joined #ruby
[08:14:10] Vircung: has joined #ruby
[08:14:17] Megamosaren: has joined #ruby
[08:14:20] ur5us: has joined #ruby
[08:14:31] dminuoso: apeiros: in the "variables are pointers to objects" view, you can apply strict evaluation order of call-by-value, that is arguments are reduced before substituted, and not get confused.
[08:14:54] apeiros: dminuoso: ok, I wish you good luck explaining that to e.g. mikhael_k33hl :)
[08:15:21] tdy: has joined #ruby
[08:15:24] nyuszika7h: has joined #ruby
[08:15:33] webhat: has joined #ruby
[08:15:42] Danielss89: has joined #ruby
[08:16:34] csaunders: has joined #ruby
[08:16:48] arooni: has joined #ruby
[08:17:06] rcs: has joined #ruby
[08:17:23] dminuoso: apeiros: okay lets consider your view point
[08:17:27] apeiros: I mean you're correct. it is pass-by-value in that it's impossible to have `a = x; a_obj_id = a.object_id; some_method(a); a_object_id != a.object_id` (obviously without dirty tricks à la evil.rb/fiddle)
[08:17:32] dminuoso: apeiros: what is your definition of "pass-by-object"
[08:17:55] apeiros: good question. lets try whether I can come up with a good one.
[08:18:05] apeiros: and maybe you can improve upon it :)
[08:18:22] bmn: has joined #ruby
[08:18:33] reaVer: has joined #ruby
[08:20:16] apeiros: hrmpf, I'll use the term "referenced/referencing", maybe we can substitute it for something better later
[08:20:31] dminuoso: I promise I wont nitpick on your choice of words!
[08:21:09] tdy: has joined #ruby
[08:22:31] jonjits[m]: has joined #ruby
[08:22:35] Cork: has joined #ruby
[08:23:07] apeiros: probably still poor: https://gist.github.com/apeiros/bf3ddb3d332dc01ac43840e0d08b382d
[08:23:12] venmx: has joined #ruby
[08:23:45] jenrzzz: has joined #ruby
[08:23:46] jenrzzz: has joined #ruby
[08:25:22] tomphp: has joined #ruby
[08:25:31] neuromanc_r: has joined #ruby
[08:25:34] dinfuehr: has joined #ruby
[08:26:55] Yxhvd: has joined #ruby
[08:27:42] ellcs: has joined #ruby
[08:27:54] Nightmare: has joined #ruby
[08:28:00] modin: has joined #ruby
[08:28:01] szulak: has joined #ruby
[08:28:45] znz_jp: has joined #ruby
[08:28:46] guille-moe: has joined #ruby
[08:29:10] apeiros: re dereferencing: you can think of all rhs as dereferencing too
[08:29:40] phaul: has joined #ruby
[08:29:52] swein: has joined #ruby
[08:30:06] marius: has joined #ruby
[08:30:31] apeiros: :-/ no preview in gist
[08:30:35] amar: has joined #ruby
[08:30:49] kinduff[m]: has joined #ruby
[08:30:53] Tristan-Speccy: has joined #ruby
[08:31:22] arooni: has joined #ruby
[08:31:29] shtirlic: has joined #ruby
[08:31:30] dminuoso: apeiros: Can you elaborate on what you mean by "the value which is passed is the object, not the variable"
[08:31:50] Zarthus: has joined #ruby
[08:32:17] apeiros: updated https://gist.github.com/apeiros/bf3ddb3d332dc01ac43840e0d08b382d
[08:32:29] apeiros: dminuoso: in what regard?
[08:32:36] apeiros: (I'll try to)
[08:32:43] turt2live: has joined #ruby
[08:32:43] Klumben: has joined #ruby
[08:32:43] dminuoso: Ah race condition. You just did it.
[08:32:56] dminuoso: Lock free communication is not possible clearly.
[08:33:51] ur5us: has joined #ruby
[08:34:00] miah_: has joined #ruby
[08:34:03] Cork: has joined #ruby
[08:35:08] Hanma[m]: has joined #ruby
[08:36:11] venmx: has joined #ruby
[08:36:17] aviraldg: has joined #ruby
[08:36:19] luminousnine: has joined #ruby
[08:36:26] torarne: has joined #ruby
[08:37:21] Megamosaren: has joined #ruby
[08:37:40] einarj: has joined #ruby
[08:38:43] aupadhye: has joined #ruby
[08:39:48] apeiros: updated https://gist.github.com/apeiros/bf3ddb3d332dc01ac43840e0d08b382d
[08:41:24] tvw: has joined #ruby
[08:44:24] rshetty: has joined #ruby
[08:47:45] xenulv: has joined #ruby
[08:51:26] ur5us_: has joined #ruby
[08:54:46] jtperreault: has joined #ruby
[09:00:42] EXCHGR: has joined #ruby
[09:01:09] dhollin3: has joined #ruby
[09:02:58] Beams: has joined #ruby
[09:03:49] hii: has joined #ruby
[09:04:01] chmurifree: has joined #ruby
[09:04:08] alex``: has joined #ruby
[09:05:58] hii: has left #ruby: ()
[09:10:38] kke: weird. Pathname.new('/tmp').glob('*') says undefined method glob for #<Pathname..> on 2.4.2 but not on 2.5.1. from the docs it looks like it was already there at least in 2.1.0.
[09:11:35] jenrzzz: has joined #ruby
[09:11:35] jenrzzz: has joined #ruby
[09:13:07] Beams: has joined #ruby
[09:13:12] rshetty: has joined #ruby
[09:13:35] tAn: has joined #ruby
[09:13:55] elomatreb: kke: The docs for 2.1 only mention the class method, not an instance method
[09:14:12] kke: ah, yeah, right
[09:14:17] kke: so it is a 2.5 addition then after all
[09:16:37] kke: looks like Pathname.glob('/tmp/*') does pretty much the same thing so that will have to do.
[09:21:01] aupadhye: has joined #ruby
[09:27:08] ciscam: has joined #ruby
[09:32:46] schickung: has joined #ruby
[09:40:23] jenrzzz: has joined #ruby
[09:40:23] jenrzzz: has joined #ruby
[09:55:37] anisha: has joined #ruby
[09:55:52] ur5us: has joined #ruby
[10:00:08] dr3wo: has joined #ruby
[10:01:07] ur5us_: has joined #ruby
[10:06:27] workmad3_: has joined #ruby
[10:07:04] jenrzzz: has joined #ruby
[10:07:05] jenrzzz: has joined #ruby
[10:09:42] anisha: has joined #ruby
[10:10:10] Ryzokuken: has joined #ruby
[10:12:02] psychicist__: has joined #ruby
[10:16:39] erlend: has joined #ruby
[10:17:29] soniya29: has joined #ruby
[10:17:40] soniya29_: has joined #ruby
[10:21:47] TheOnlyBouncer: has joined #ruby
[10:22:15] marr: has joined #ruby
[10:22:20] TheOnlyBouncer: Good day, question, my system just upgraded my ruby version and now my installed gem applications don't work anymore (still pointing to the old ruby version), any tips on fixing this?
[10:24:08] zmo_: TheOnlyBouncer - remove your gem folder and re-update it
[10:25:08] jenrzzz: has joined #ruby
[10:25:08] jenrzzz: has joined #ruby
[10:29:18] zenspider: TheOnlyBouncer: `gem help pristine`
[10:29:55] Puffball_: has joined #ruby
[10:34:19] KeyJoo: has joined #ruby
[10:36:55] schickung: has joined #ruby
[10:39:33] clemens3_: has joined #ruby
[10:40:16] Zaab1t: has joined #ruby
[10:49:00] ur5us: has joined #ruby
[10:49:05] drale2k_: has joined #ruby
[10:49:38] AJA4350: has joined #ruby
[10:52:38] hfp_work: has joined #ruby
[10:52:44] apparition: has joined #ruby
[10:52:44] apparition: has joined #ruby
[10:55:28] TheOnlyBouncer: zmo_, thanks just removing and reinstalling helped
[10:55:39] cadillac_: has joined #ruby
[10:55:46] ur5us: has joined #ruby
[10:56:39] karapetyan: has joined #ruby
[10:59:04] maufart__: has joined #ruby
[10:59:26] jenrzzz: has joined #ruby
[10:59:26] jenrzzz: has joined #ruby
[11:01:44] mikecmpbll: has joined #ruby
[11:02:49] InfinityFye: has joined #ruby
[11:03:11] stormpack: has joined #ruby
[11:04:15] InfinityFye: has left #ruby: ()
[11:04:38] cadillac_: has joined #ruby
[11:04:54] InfinityFye: has joined #ruby
[11:05:05] InfinityFye: has left #ruby: ()
[11:05:29] TheOnlyBouncer: has left #ruby: ("Leaving")
[11:07:43] suukim: has joined #ruby
[11:10:03] ur5us_: has joined #ruby
[11:12:01] claudiuinberlin: has joined #ruby
[11:12:32] venmx: has joined #ruby
[11:19:20] phaul: has joined #ruby
[11:20:57] Cavallari: has joined #ruby
[11:23:15] karapetyan: has joined #ruby
[11:24:29] tvw: has joined #ruby
[11:24:59] RougeR: has joined #ruby
[11:24:59] RougeR: has joined #ruby
[11:26:29] schneider: has joined #ruby
[11:26:57] lele: has joined #ruby
[11:28:23] Cavallari: has joined #ruby
[11:37:51] nertzy: has joined #ruby
[11:40:15] tAn: has joined #ruby
[11:40:40] Azure: has joined #ruby
[11:41:15] bmurt: has joined #ruby
[11:41:59] ldnunes: has joined #ruby
[11:42:21] gr33n7007h: has joined #ruby
[11:42:26] karapetyan: has joined #ruby
[11:42:35] jenrzzz: has joined #ruby
[11:42:35] jenrzzz: has joined #ruby
[11:42:43] jrafanie: has joined #ruby
[11:42:45] ur5us: has joined #ruby
[11:43:49] TomyLobo: has joined #ruby
[11:43:53] karapetyan: has joined #ruby
[11:45:16] karapetyan: has joined #ruby
[11:47:06] karapetyan: has joined #ruby
[11:49:58] karapetyan: has joined #ruby
[11:50:46] Beams: has joined #ruby
[11:54:08] Dimik: has joined #ruby
[11:57:08] John_Ivan: has joined #ruby
[11:57:08] John_Ivan: has joined #ruby
[11:59:25] soniya29: has joined #ruby
[11:59:25] soniya29_: has joined #ruby
[11:59:29] karapetyan: has joined #ruby
[12:00:17] burgestrand: has joined #ruby
[12:01:05] synthroid: has joined #ruby
[12:01:09] Megamosaren: has joined #ruby
[12:02:39] synthroid: has joined #ruby
[12:04:46] VladGh: has joined #ruby
[12:14:56] sepp2k: has joined #ruby
[12:16:06] _rshetty_: has joined #ruby
[12:19:25] bmurt: has joined #ruby
[12:19:41] sanscoeur: has joined #ruby
[12:20:45] leitz: has joined #ruby
[12:21:10] dinfuehr_: has joined #ruby
[12:22:26] dr3wo: has joined #ruby
[12:25:27] erlend: has joined #ruby
[12:25:48] synthroid: has joined #ruby
[12:28:10] ellcs: has joined #ruby
[12:29:52] kke: Logger.new($stdout).instance_variable_get(:@logdev).dev.isatty <-- must be a prettier way
[12:30:35] dr3wo: has joined #ruby
[12:31:31] kke: but i can't find any accessor for the log device in logger
[12:31:54] apeiros: $stdout.isatty ?
[12:32:21] duderonomy: has joined #ruby
[12:33:02] apeiros: or you mean once you only have the logger instance? it's not unlikely that in that case, there's no nicer way, and you might even have to guard against isatty not being present
[12:33:24] apeiros: after all, Logger is supposed to abstract away where you're logging to. it might be something which does not have a isatty method
[12:35:05] kke: probably better yeah
[12:35:18] apeiros: or put another way: asking logger might be the wrong approach.
[12:36:22] kke: also it could just be some "logger-compatible" object which does not have the same internals, so .instance_variable_get is going to break
[12:39:49] apeiros: yupp. even more "maybe asking logger might be the wrong approach"
[12:42:19] zenulv: has joined #ruby
[12:42:33] aufi_: has joined #ruby
[12:44:59] drale2k_: has joined #ruby
[12:45:55] RougeR: has joined #ruby
[12:45:55] RougeR: has joined #ruby
[12:47:39] zenulv: has joined #ruby
[12:51:15] zapata: has joined #ruby
[12:57:04] jenrzzz: has joined #ruby
[12:57:04] jenrzzz: has joined #ruby
[12:57:17] jeffreylevesque: has joined #ruby
[13:00:07] shinnya: has joined #ruby
[13:00:26] phaul: has joined #ruby
[13:07:03] rshetty: has joined #ruby
[13:09:34] r4do: has joined #ruby
[13:09:48] dr3wo: has joined #ruby
[13:19:33] darix: has joined #ruby
[13:20:40] shoogz: has joined #ruby
[13:20:52] kn-928: has joined #ruby
[13:24:23] rshetty: has joined #ruby
[13:27:05] duderonomy: has joined #ruby
[13:29:09] rshetty: has joined #ruby
[13:31:27] rfoust: has joined #ruby
[13:33:10] nadir: has joined #ruby
[13:33:33] _rshetty_: has joined #ruby
[13:35:49] k0mpa: has joined #ruby
[13:37:26] shoogz: has joined #ruby
[13:40:50] iMadper: has joined #ruby
[13:40:51] GodFather_: has joined #ruby
[13:42:50] amar: has joined #ruby
[13:43:52] ur5us: has joined #ruby
[13:44:41] minimalism: has joined #ruby
[13:48:56] oleo: has joined #ruby
[13:49:19] gnufied: has joined #ruby
[13:54:00] Bish_: has joined #ruby
[13:54:05] Bish_: someone who knows xpath
[13:54:29] Bish_: i want to have text versons of html sides , how do i get a xpath that gives me all text nodes and all a nodes
[13:54:39] Bish_: x.xpath("//body//text()|//body//a").map {|x| x.text.strip }
[13:55:18] jcalla: has joined #ruby
[13:56:24] Bish_: this is my current approach, but it finds a tags doubled, one time as text node an one time as alink
[13:57:27] Cork: you would have to exclude text nodes inside an a element
[14:01:11] workmad3: has joined #ruby
[14:05:28] zenulv: has joined #ruby
[14:05:59] shoogz: has joined #ruby
[14:13:39] jenrzzz: has joined #ruby
[14:13:39] jenrzzz: has joined #ruby
[14:13:52] Rapture: has joined #ruby
[14:15:30] chouhoulis: has joined #ruby
[14:16:05] chouhoulis: has joined #ruby
[14:18:33] darix: Bish_: make it 2 xpath queries imho
[14:19:23] darix: why do you need the 2nd part anyway?
[14:19:32] darix: your first part already gets you those text nodes
[14:19:53] Bish_: darix: i want to process links differently
[14:20:05] darix: even more a reason to make it 2 calls
[14:20:08] Bish_: <a href="to_the_past">link</a>
[14:20:26] rshetty: has joined #ruby
[14:20:26] Bish_: http://to_the_past [link]
[14:20:34] phaul: has joined #ruby
[14:20:42] Bish_: i don't know i would rather have
[14:20:42] darix: Bish_: if you parse it to convert to a different format
[14:20:47] darix: maybe consider sax parser
[14:21:00] darix: or even more hardcore ... xslt to text ;)
[14:21:13] Bish_: doc.xpath(magic).map { |x| case x; when String; ...; when Nokogo..;...}
[14:21:43] phaul: has joined #ruby
[14:21:46] AgentVenom: has joined #ruby
[14:21:53] Bish_: sounds like cleaner code
[14:25:15] Mike11: has joined #ruby
[14:27:46] martial1: has joined #ruby
[14:34:06] erlend: has joined #ruby
[14:35:21] mikecmpb_: has joined #ruby
[14:39:26] burgestrand: has joined #ruby
[14:42:20] netherwolfe: has joined #ruby
[14:44:18] jenrzzz: has joined #ruby
[14:44:19] jenrzzz: has joined #ruby
[14:45:14] ltt: has joined #ruby
[14:47:18] Megamosaren: has joined #ruby
[14:47:58] cyberg: has joined #ruby
[14:49:45] mikecmpbll: has joined #ruby
[14:55:17] soniya29: has joined #ruby
[14:55:21] soniya29_: has joined #ruby
[14:56:23] ldnunes: has joined #ruby
[14:56:54] GodFather_: has joined #ruby
[14:58:05] zenulv: has joined #ruby
[15:00:09] SuperLag: has joined #ruby
[15:02:38] GodFather__: has joined #ruby
[15:03:07] amar: has joined #ruby
[15:03:55] sanscoeur: has joined #ruby
[15:04:52] larissa_: has joined #ruby
[15:06:37] pastorinni: has joined #ruby
[15:08:21] GodFather_: has joined #ruby
[15:10:28] cschneid_: has joined #ruby
[15:11:43] larissa_: has joined #ruby
[15:13:06] cschneid_: has joined #ruby
[15:13:22] cschneid_: has joined #ruby
[15:13:28] GodFather__: has joined #ruby
[15:15:35] yeticry: has joined #ruby
[15:18:25] jenrzzz: has joined #ruby
[15:18:25] jenrzzz: has joined #ruby
[15:21:42] sina: has joined #ruby
[15:23:15] mitchellvanw: has joined #ruby
[15:23:19] Scient: has joined #ruby
[15:25:10] synthroid: has joined #ruby
[15:25:57] amar: has joined #ruby
[15:26:11] jcarl43: has joined #ruby
[15:27:09] apeiros: has joined #ruby
[15:27:49] tomphp: has joined #ruby
[15:28:37] Mike11: has joined #ruby
[15:32:14] cagomez: has joined #ruby
[15:32:55] rshetty: has joined #ruby
[15:34:33] kn-928: has joined #ruby
[15:35:01] schneider: has joined #ruby
[15:35:22] amar: has joined #ruby
[15:35:44] al2o3-cr: how do i change to mruby with chruby?
[15:36:13] al2o3-cr: i'm getting -:1: undefined method 'defined?' (NoMethodError)
[15:37:51] c0ncealed1: has joined #ruby
[15:38:33] apeiros: has joined #ruby
[15:42:12] n008f4g_: has joined #ruby
[15:43:05] einarj: has joined #ruby
[15:45:15] suukim: has joined #ruby
[15:45:52] govg: has joined #ruby
[15:46:16] conta: has joined #ruby
[15:53:42] John_Ivan: has joined #ruby
[15:53:42] John_Ivan: has joined #ruby
[16:03:00] coderphive: has joined #ruby
[16:07:09] dr3wo: has joined #ruby
[16:08:04] marxarelli: has joined #ruby
[16:10:13] John_Ivan: has joined #ruby
[16:10:13] John_Ivan: has joined #ruby
[16:10:58] John_Ivan: has joined #ruby
[16:10:58] John_Ivan: has joined #ruby
[16:13:22] amar: has joined #ruby
[16:13:42] TheBloke: has joined #ruby
[16:14:14] alfiemax: has joined #ruby
[16:14:27] xenulv: has joined #ruby
[16:16:01] \void: has joined #ruby
[16:19:22] cthu|: has joined #ruby
[16:21:45] alfiemax: has joined #ruby
[16:22:57] pastorinni: has joined #ruby
[16:28:28] cadillac_: has joined #ruby
[16:29:43] drale2k_: has joined #ruby
[16:31:41] darkhanb: has joined #ruby
[16:34:24] eckhardt: has joined #ruby
[16:39:06] ltt: has joined #ruby
[16:42:15] alfiemax: has joined #ruby
[16:42:48] erlend: has joined #ruby
[16:46:15] mtkd: has joined #ruby
[16:46:46] karapetyan: has joined #ruby
[16:48:38] jenrzzz: has joined #ruby
[16:48:39] jenrzzz: has joined #ruby
[16:51:19] alfiemax: has joined #ruby
[16:52:23] sanscoeur: has joined #ruby
[16:55:24] guacamole: has joined #ruby
[16:55:24] guacamole: has joined #ruby
[16:58:01] jenrzzz: has joined #ruby
[16:58:01] jenrzzz: has joined #ruby
[16:58:35] amar: has joined #ruby
[17:01:43] Lytol: has joined #ruby
[17:04:08] Junaos: has joined #ruby
[17:04:46] duderonomy: has joined #ruby
[17:12:17] hays: has joined #ruby
[17:12:18] hays: has joined #ruby
[17:13:10] hays: can someone help with figuring out how to use this gem, specifically how to make the connection have KEEPALIVE enabled? https://github.com/rmodbus/rmodbus
[17:13:34] hays: I think maybe there is something in the underlying implementation that I need to activate
[17:15:06] alex``: has joined #ruby
[17:15:07] npgm: has joined #ruby
[17:17:24] _aeris_: has joined #ruby
[17:17:33] byte512: has joined #ruby
[17:17:48] hays: I think its the @io member in Modbus::Client
[17:18:23] dr3wo: has joined #ruby
[17:24:42] byte512: has joined #ruby
[17:25:02] alfiemax: has joined #ruby
[17:26:06] _aeris_: has joined #ruby
[17:28:22] fusta: has joined #ruby
[17:29:57] mikecmpbll: has joined #ruby
[17:32:35] bmurt: has joined #ruby
[17:33:37] rshetty: has joined #ruby
[17:34:29] bmurt: has joined #ruby
[17:37:03] ltt: has joined #ruby
[17:39:34] Gabemo: has joined #ruby
[17:41:12] orbyt_: has joined #ruby
[17:41:31] konsolebox: has joined #ruby
[17:45:10] einarj: has joined #ruby
[17:45:45] darkhanb: has joined #ruby
[17:49:01] einarj: has joined #ruby
[17:49:53] pilne: has joined #ruby
[17:50:22] hays: if I want to rescue from every error is it usually recommended to just to StandardError?
[17:54:37] tomphp_: has joined #ruby
[17:56:30] al2o3-cr: >> require 'objspace'; ObjectSpace.each_object(Exception.singleton_class).to_a - ObjectSpace.each_object(StandardError.singleton_class).to_a
[17:56:31] ruby[bot]: al2o3-cr: # => [SystemStackError, NoMemoryError, SecurityError, NotImplementedError, LoadError, SyntaxError, Script ...check link for more (https://eval.in/984580)
[17:57:31] al2o3-cr: StandardError won't rescue these.
[18:00:12] al2o3-cr: and you don't really want to be rescuing every exception anyhow.
[18:00:27] claudiuinberlin: has joined #ruby
[18:01:25] bmurt: has joined #ruby
[18:01:55] alfiemax: has joined #ruby
[18:02:00] clemens3_: has joined #ruby
[18:02:42] hays: yeah im being a bit lazy but in this case I don't think it matters too much, I just don't want to rescue something if something totally nuts happens
[18:03:15] hays: in this case, I'm setting some socket options, and it appears that they are OS specific, so if it doesn't work im just issuing a quick diagnostic message and moving on
[18:03:52] al2o3-cr: as in socket.setsockopt?
[18:03:54] hays: on my system NameError is thrown, but I don't know for sure its always going to be NameError
[18:05:57] al2o3-cr: hays got an example?
[18:07:57] al2o3-cr: it could raise a number of exception Errno::ENOPROTOOPT, ArgumentError etc depending on the circumstances
[18:08:35] einarj: has joined #ruby
[18:09:12] havenwood: hays: On the right there's a nice visual representation of core error classes: https://go.gliffy.com/go/publish/5152080
[18:09:17] hays: al2o3-cr: https://bpaste.net/show/5fd1d1de7991
[18:09:43] havenwood: hays: A plain `rescue` is StandardError.
[18:10:33] havenwood: be careful, since zenspider will stab you if you rescue Exception
[18:11:02] al2o3-cr: hays: what OS?
[18:11:16] hays: this can run on anything more or less
[18:11:24] hays: Windows, Linux, MacOS
[18:11:49] hays: ok so Errno is StandardError also
[18:11:54] havenwood: hays: Consider `warn` instead of `STDERR.puts`, since #warn respects silencing warnings.
[18:12:10] hays: what is warn? guess I will read about it
[18:12:24] havenwood: &ri Kernel#warn
[18:12:24] `derpy: http://ruby-doc.org/core-2.4.1/Kernel.html#method-i-warn
[18:12:31] drale2k_: has joined #ruby
[18:12:35] al2o3-cr: warn/abort/fail are good to use.
[18:13:07] havenwood: hays: headlessCamelCase shouldn't ever be used in Ruby ;-P
[18:13:14] havenwood: A headlessCamel is an abomination.
[18:13:25] havenwood: hays: snake_case for method names!
[18:13:37] al2o3-cr: hays: if you're making something cross platform adhere other tests
[18:14:06] havenwood: hays: You can drop the begin/end and just rescue inside the method.
[18:14:06] hays: havenwood: really? (snakeCase) is that a rule?
[18:14:31] alfiemax_: has joined #ruby
[18:14:33] havenwood: hays: there're really no headlessCamels in Ruby - never
[18:14:44] havenwood: hays: snake_case methods and variables
[18:15:01] havenwood: hays: SCREAMNING_SNAKE constants and CamelCase modules/classes
[18:15:05] hays: damn well good to know, even if a bit late
[18:16:17] havenwood: hays: Consider keyword arguments when you have as many as four args, especially if one might be ommitted.
[18:17:10] rshetty: has joined #ruby
[18:17:13] al2o3-cr: i remember months back you were trying to change some internal @io instance variable, can't specifically remeber what it was now.
[18:17:27] havenwood: hays: Don't pass `=> e` unless you're using `e`.
[18:18:44] havenwood: hays: https://gist.github.com/havenwood/bdf4aaec6824840caf53226264636333
[18:20:37] havenwood: hays: Then you can call the method with just the last arg, like: set_keepalive keepcnt: 10
[18:20:52] havenwood: hays: Which is a lot nicer than: set_keepalive nil, nil, nil, 10
[18:20:54] sameerynho: has joined #ruby
[18:21:18] havenwood: (which would need the defaults, actually)
[18:21:20] hays: al2o3-cr: probably the same or similar thing im working on now
[18:21:47] al2o3-cr: hays: probably :)
[18:22:24] hays: havenwood: https://bpaste.net/show/ecf326ced93e (with your comments incorporated)
[18:22:50] havenwood: kwargs are nicer, imho
[18:22:52] al2o3-cr: no no no no
[18:23:02] tvw: has joined #ruby
[18:23:30] al2o3-cr: oh and did i mention no
[18:23:37] n008f4g_: has joined #ruby
[18:25:00] al2o3-cr: hays: just rescue will do as stated.
[18:25:42] schneider: has joined #ruby
[18:25:50] hays: hmm. so yeah I see another way to do it.. looks like I need 2.x ruby
[18:26:00] al2o3-cr: but please for love of christ use kwargs @_
[18:26:16] havenwood: hays: What Ruby are you on? :-O
[18:26:21] hays: that's a minor issue--i'll have to make sure my colleague finally updates that ruby version on the system
[18:26:21] al2o3-cr: what version are you using?
[18:26:23] venmx: has joined #ruby
[18:26:27] havenwood: hays: If you can, move to 2.4.4 or 2.5.1!
[18:26:34] hays: drives me nuts
[18:27:13] havenwood: hays: 2.2 and earlier are not supported versions, so they don't even receive bugfixes or security patches.
[18:27:55] hays: looks like im going to be dealing with Centos 7 and Debian 8
[18:29:28] havenwood: hays: Debian 8 has 2.1, so it supports kwargs.
[18:29:47] hays: Centos 7 is Ruby 2.0 looks like
[18:30:08] havenwood: hays: So you should be good to go with kwargs.
[18:30:14] havenwood: It's a Ruby 2.0 feature.
[18:30:48] hays: yeah phew. many of our things are 1.9.3 I think
[18:30:50] havenwood: 20>> def a kwarg: 'yup'; end
[18:30:51] ruby[bot]: havenwood: # => nil (https://eval.in/984614)
[18:30:54] hays: but not the new stuff
[18:31:19] hays: new being a relative term
[18:31:28] havenwood: hays: A 1.9.3 app should run just fine on 2.0. I don't recall those upgrades being a pain at all.
[18:31:49] havenwood: Bump the version and see if it's green!
[18:32:12] al2o3-cr: hays: is this for a company you work for?
[18:32:32] Junaos: has joined #ruby
[18:33:37] jenrzzz: has joined #ruby
[18:33:37] jenrzzz: has joined #ruby
[18:34:08] hays: havenwood: thankfully I don't need to support those versions too much. when I do I'll sometimes just monkeypatch in the things im using from 2.x as long as its not too much to deal with
[18:34:36] raynold: has joined #ruby
[18:34:58] hays: al2o3-cr: yeah. although this is usually just test/startup code so latest/greatest isn't really a priority
[18:35:15] hays: if I was really trying i'd probably learn to use a tool like bundle to get more control over the environment
[18:35:53] hays: did I understand you correctly that rescue already rescues Standard error? but then I guess rescue => e rescues more?
[18:37:08] hays: let me read about that too
[18:37:48] al2o3-cr: rescue => e stores the exception in the variable e
[18:39:44] hays: Ahh, I read about it now I understand. As long as I dont rescue Exception => e im good
[18:40:03] orbyt_: has joined #ruby
[18:41:03] hays: if a kwarg is required I guess I need to check that explicitly?
[18:42:22] al2o3-cr: hays: in what way?
[18:42:49] hays: like lets say I don't want to assume a default but instead issue some kind of ArgumentError
[18:43:51] al2o3-cr: you'll only get an ArgumentError if it's not a valid key
[18:47:32] hays: like this: im raising if not ip https://bpaste.net/show/a099f56a236a
[18:49:54] al2o3-cr: raise unless ip
[18:49:59] nogic: has joined #ruby
[18:51:22] Omnilord: has joined #ruby
[18:51:25] erlend: has joined #ruby
[18:51:26] Code4Dopamine: has joined #ruby
[18:51:42] duderonomy: has joined #ruby
[18:51:44] hays: should I raise anything specific?
[18:52:27] hays: i was thinking ArgumentError
[18:53:54] miah: raise TheRoof
[18:54:29] al2o3-cr: \o/ o~ ~o |o/
[18:55:12] al2o3-cr: either that or subclass StandardError with your own.
[18:58:57] al2o3-cr: ruby needs assert
[18:59:20] al2o3-cr: well it doesn't but i'd like it
[18:59:39] hays: does this keyword arg thing work differently with constructors?
[18:59:54] al2o3-cr: no, why should it?
[19:00:18] hays: it shouldn't..
[19:00:39] hays: ConnectionManager.new ip: ip, port: port
[19:00:40] einarj: has joined #ruby
[19:00:47] chouhoul_: has joined #ruby
[19:01:36] al2o3-cr: i'm not sure what you're asking.
[19:02:45] al2o3-cr: what is ip and port they have to be defined.
[19:02:55] al2o3-cr: if that's what your asking.
[19:06:01] hays: sorry--I had a very strange bug that somehow surfaced when I changed the way I was calling that constructor
[19:06:45] rshetty: has joined #ruby
[19:09:16] al2o3-cr: hays: what strange behaviour?
[19:10:12] hays: its not worth you reading about it :) basically for some reason a .json file with IP overrides got corrupted (not sure how this happened, it was working yesterday) and this meant an IP wasn't being passed in. So the code was working.
[19:10:20] Ryzokuken: has joined #ruby
[19:12:32] al2o3-cr: was working or not working that is the question ;)
[19:17:59] alfiemax: has joined #ruby
[19:21:08] tcopeland: has joined #ruby
[19:23:47] cloaked1: has joined #ruby
[19:23:48] cloaked1: has joined #ruby
[19:26:57] n0m4d1c: has joined #ruby
[19:28:15] harrycs: has joined #ruby
[19:28:57] InfinityFye: has joined #ruby
[19:32:42] rshetty: has joined #ruby
[19:34:04] ltt: has joined #ruby
[19:34:50] cagomez: has joined #ruby
[19:35:50] quobo: has joined #ruby
[19:36:34] kevinburke: has joined #ruby
[19:36:49] kevinburke: hi there, can I ask a dumb question? i've been running dtrace on my executing ruby process
[19:37:32] anisha_: has joined #ruby
[19:38:13] kevinburke: a file in globalid-0.3.7/lib/global_id/global_id.rb calls "require 'global_id/uri/gid'". the file we are looking for is adjacent, in globalid-0.3.7/lib/global_id/uri/gid.rb. but instead of looking there, we stat all ~300 rubygems for <gemname>/lib/global_id/uri/gid.rb
[19:38:21] hays: well that was a rabbit hole with the camelCase
[19:38:28] kevinburke: that seems... slow? is there a way to check the current package first?
[19:38:29] hays: I did that ALOT. :)
[19:39:25] tdy: has joined #ruby
[19:40:40] cagomez: has joined #ruby
[19:41:05] oleo: has left #ruby: ("Leaving")
[19:41:49] orbyt_: has joined #ruby
[19:42:35] nadir: has joined #ruby
[19:44:35] imode: has joined #ruby
[19:46:02] cloaked1: has joined #ruby
[19:49:22] John_Ivan: has joined #ruby
[19:49:22] John_Ivan: has joined #ruby
[19:51:35] ciscam: has joined #ruby
[19:56:24] WhereIsMySpoon: has joined #ruby
[19:56:25] WhereIsMySpoon: has joined #ruby
[19:58:32] amar: has joined #ruby
[19:58:42] Apocalypse: has joined #ruby
[20:01:12] AndBobsYourUncle: has joined #ruby
[20:01:58] cseder: has joined #ruby
[20:02:46] leitz: Pathname#to_path didn't come around until Ruby 1.9 it seems. So you have to fudge a bit to get Ruby-from-source to compile on a CentOS 6 box.
[20:04:36] WhereIsMySpoon: has joined #ruby
[20:04:37] WhereIsMySpoon: has joined #ruby
[20:07:47] Megamosaren: has joined #ruby
[20:09:18] synthroid: has joined #ruby
[20:09:36] jenrzzz: has joined #ruby
[20:09:41] jenrzzz: has joined #ruby
[20:10:29] eckhardt: has joined #ruby
[20:14:13] workmad3: has joined #ruby
[20:26:22] shalok: has left #ruby: ("Leaving")
[20:26:36] cagomez: has joined #ruby
[20:26:41] Cavallari: has joined #ruby
[20:29:48] orbyt_: has joined #ruby
[20:38:08] zenulv: has joined #ruby
[20:40:30] Emmanuel_Chanel: has joined #ruby
[20:47:09] cadillac_: has joined #ruby
[20:51:13] rshetty: has joined #ruby
[21:00:11] erlend: has joined #ruby
[21:04:08] jenrzzz_: has joined #ruby
[21:04:59] harrycs: has joined #ruby
[21:09:02] Azure: has joined #ruby
[21:12:25] bdnelson: has joined #ruby
[21:14:14] RougeR: has joined #ruby
[21:14:28] ur5us: has joined #ruby
[21:15:22] nemesit|znc: has joined #ruby
[21:16:00] darix: kevinburke: require_relative vs require i guess
[21:16:35] sammi`_: has joined #ruby
[21:16:54] ur5us: has joined #ruby
[21:17:30] rshetty: has joined #ruby
[21:19:18] bdnelson: has joined #ruby
[21:21:18] rfoust: has joined #ruby
[21:23:10] cadillac_: has joined #ruby
[21:23:34] nemesit|znc: has joined #ruby
[21:26:26] tdy: has joined #ruby
[21:28:23] duderonomy: has joined #ruby
[21:28:42] eckhardt: has joined #ruby
[21:33:36] ledestin: has joined #ruby
[21:34:41] cadillac_: has joined #ruby
[21:38:05] venmx: has joined #ruby
[21:38:35] jenrzzz: has joined #ruby
[21:38:36] jenrzzz: has joined #ruby
[21:43:43] bmurt: has joined #ruby
[21:45:12] ciscam: has joined #ruby
[21:49:43] pastorinni: has joined #ruby
[21:50:09] hfp_work: has joined #ruby
[22:02:07] tomphp: has joined #ruby
[22:06:19] nikivi-: has joined #ruby
[22:07:01] Emmanuel_Chanel: has joined #ruby
[22:09:22] adarc: has joined #ruby
[22:10:43] pastorinni: has joined #ruby
[22:11:37] rshetty: has joined #ruby
[22:12:41] guacamole: has joined #ruby
[22:12:42] guacamole: has joined #ruby
[22:12:43] hfp_work: has joined #ruby
[22:13:49] workmad3: has joined #ruby
[22:15:54] shinnya: has joined #ruby
[22:17:22] AndBobsYourUncle: has joined #ruby
[22:26:09] comet23: has joined #ruby
[22:28:12] ogres: has joined #ruby
[22:32:04] rshetty: has joined #ruby
[22:32:04] jcarl43: has joined #ruby
[22:33:43] jcarl43: has joined #ruby
[22:34:45] hfp_work: has joined #ruby
[22:43:50] Mike11: has joined #ruby
[22:45:02] noobineer: has joined #ruby
[22:51:20] rshetty: has joined #ruby
[22:59:53] houhoulis: has joined #ruby
[23:00:02] einarj: has joined #ruby
[23:00:45] coderphive: has joined #ruby
[23:04:23] arekushi: has joined #ruby
[23:08:55] erlend: has joined #ruby
[23:09:47] cschneid_: has joined #ruby
[23:19:22] guacamole: has joined #ruby
[23:19:23] guacamole: has joined #ruby
[23:19:37] rshetty: has joined #ruby
[23:27:16] cschneid_: has joined #ruby
[23:28:24] kapil___: has joined #ruby
[23:33:34] rshetty: has joined #ruby
[23:35:23] GodFather: has joined #ruby
[23:37:39] al2o3-cr: has joined #ruby
[23:39:38] shterrett: has joined #ruby
[23:41:11] xbleez: has joined #ruby
[23:41:27] xbleez: has left #ruby: ()
[23:41:27] guacamole: has joined #ruby
[23:41:27] guacamole: has joined #ruby
[23:42:09] xbleez: has joined #ruby
[23:42:47] growp: has joined #ruby
[23:45:02] duderonomy: has joined #ruby
[23:46:30] schneider: has joined #ruby
[23:49:58] jeffreylevesque: has joined #ruby
[23:50:24] Azure: has joined #ruby
[23:50:55] stairmast0r: has joined #ruby
[23:54:04] n0m4d1c: has joined #ruby
[23:56:04] dkphenom: has joined #ruby
[23:56:41] n0m4d1c: has joined #ruby
[23:57:12] xbleez: has left #ruby: ()