« Back to channel list

#ruby - 24 January 2018

« Back 1 day Forward 1 day »
[00:05:00] jottr_: has joined #ruby
[00:08:25] kapil___: has joined #ruby
[00:10:58] alfiemax: has joined #ruby
[00:13:44] justinfaler: has joined #ruby
[00:14:25] guacamole: has joined #ruby
[00:14:26] guacamole: has joined #ruby
[00:15:58] crankharder: has joined #ruby
[00:18:07] rrutkowski: has joined #ruby
[00:20:33] rrutkowski: has joined #ruby
[00:25:08] rrutkowski_: has joined #ruby
[00:29:19] bronson: has joined #ruby
[00:29:49] rrutkowski: has joined #ruby
[00:30:32] alfiemax: has joined #ruby
[00:33:05] cdg: has joined #ruby
[00:38:09] justinfaler: has joined #ruby
[00:39:20] PaulCapestany: has joined #ruby
[00:40:20] rrutkowski: has joined #ruby
[00:45:25] nullobject: has joined #ruby
[00:49:34] workmad3: has joined #ruby
[00:53:36] impermanence: has joined #ruby
[01:03:08] rrutkowski: has joined #ruby
[01:09:52] nullobject: has joined #ruby
[01:11:32] PaulCape_: has joined #ruby
[01:18:44] Dimik: has joined #ruby
[01:20:22] justinfaler: has joined #ruby
[01:23:37] rrutkowski: has joined #ruby
[01:23:46] darix: has joined #ruby
[01:29:50] LastWhisper____: has joined #ruby
[01:30:08] rrutkowski: has joined #ruby
[01:30:09] bronson: has joined #ruby
[01:31:09] ledestin: has joined #ruby
[01:31:30] konsolebox: has joined #ruby
[01:31:41] rrutkowski: has joined #ruby
[01:33:05] Axsuul: has joined #ruby
[01:36:39] Asher: has joined #ruby
[01:37:05] yosafbridge: has joined #ruby
[01:40:11] PaulCapestany: has joined #ruby
[01:40:12] rrutkowski: has joined #ruby
[01:40:21] BubonicPestilenc: has joined #ruby
[01:42:52] kurko_: has joined #ruby
[01:44:04] Fezzler: has joined #ruby
[01:48:13] xuyuheng: has joined #ruby
[01:56:12] guardianx: has joined #ruby
[01:58:59] PaulCapestany: has joined #ruby
[01:59:44] Lytol: has joined #ruby
[02:00:30] crankharder: has joined #ruby
[02:01:30] rrutkowski: has joined #ruby
[02:02:10] alfiemax: has joined #ruby
[02:11:43] jtdoncas_: has joined #ruby
[02:16:51] rrutkowski: has joined #ruby
[02:17:22] dstrunk: has joined #ruby
[02:19:08] nullobject: has joined #ruby
[02:26:38] malwar3hun73r: has joined #ruby
[02:27:09] malwar3hun73r: anyone know how to fix this error
[02:27:21] malwar3hun73r: LoadError: incompatible library version - /.../bundle/ruby/2.3.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.so
[02:28:54] ur5us: has joined #ruby
[02:30:17] justinfaler: has joined #ruby
[02:35:01] crankharder: has joined #ruby
[02:37:26] havenwood: malwar3hun73r: Rebuild the msql2 gem: gem pristine mysql2
[02:38:37] mlehrer: has joined #ruby
[02:41:22] havenwood: malwar3hun73r: If that doesn't do the trick, turn it off and back on again (start a fresh shell): exec "$SHELL" --login
[02:41:58] havenwood: Pull the plug!
[02:43:09] gizmore|2: has joined #ruby
[02:48:43] Caerus: has joined #ruby
[02:50:23] bmurt: has joined #ruby
[02:50:24] workmad3: has joined #ruby
[02:55:41] crankharder: has joined #ruby
[02:56:44] LastWhisper____: has joined #ruby
[02:58:11] malwar3hun73r: havenwood, thanks - i'll give it a shot
[03:04:22] tipyn: has joined #ruby
[03:07:08] arescorpio: has joined #ruby
[03:08:21] orbyt_: has joined #ruby
[03:10:46] nchambers: is EventMachine.Connection#start_tls the proper way to establish a tls connection with a client/server?
[03:17:17] jeffreylevesque: has joined #ruby
[03:19:08] darkhanb: has joined #ruby
[03:29:23] CrazyEddy: has joined #ruby
[03:31:22] bronson: has joined #ruby
[03:31:40] konsolebox: has joined #ruby
[03:32:23] nullobject: has joined #ruby
[03:34:03] cdg: has joined #ruby
[03:36:25] Azure: has joined #ruby
[03:37:00] malwar3hun73r: havenwood, it seems the issue could be that gem install mysql2 installs mysql2-0.4.10 and the error is for mysql2-0.4.4
[03:37:04] malwar3hun73r: does that help, this is still an issue
[03:39:38] tipyn: has joined #ruby
[03:41:36] sameerynho: has joined #ruby
[03:44:02] konsolebox: has joined #ruby
[03:44:13] malwar3hun73r: hmm, can't uninstall a gem either
[03:44:39] orbyt_: has joined #ruby
[03:44:44] malwar3hun73r: gem uninstall msql -v 0.4.10
[03:44:50] malwar3hun73r: still shows mysql (0.4.10)
[03:57:41] careta: has joined #ruby
[03:59:20] kies: has joined #ruby
[04:00:04] alfiemax: has joined #ruby
[04:05:39] tipyn: has joined #ruby
[04:08:24] sanscoeur: has joined #ruby
[04:08:27] govg: has joined #ruby
[04:10:47] AxelAlex: has joined #ruby
[04:18:53] bawNg: nchambers: yeah it is
[04:29:02] A124: has joined #ruby
[04:32:45] xuyuheng: has joined #ruby
[04:34:36] gix: has joined #ruby
[04:35:47] knight33: has joined #ruby
[04:37:15] nullobject: has joined #ruby
[04:59:01] alfiemax: has joined #ruby
[05:05:19] NightMonkey: has joined #ruby
[05:06:00] Tempesta: has joined #ruby
[05:06:00] Tempesta: has joined #ruby
[05:08:54] thejamespinto: has joined #ruby
[05:11:38] iamarun: has joined #ruby
[05:12:05] AX31_A13X: has joined #ruby
[05:16:44] nso95: has joined #ruby
[05:24:34] alfiemax: has joined #ruby
[05:24:57] phate408: has joined #ruby
[05:36:50] rwb: has joined #ruby
[05:36:51] nullobject: has joined #ruby
[05:42:04] aupadhye: has joined #ruby
[05:43:49] xuyuheng: has joined #ruby
[05:46:05] oleo: has joined #ruby
[05:58:52] PaulCapestany: has joined #ruby
[06:09:48] rabajaj: has joined #ruby
[06:13:43] chmurifree: has joined #ruby
[06:15:57] minimalism: has joined #ruby
[06:16:15] minimalism: has joined #ruby
[06:32:07] jenrzzz: has joined #ruby
[06:32:07] jenrzzz: has joined #ruby
[06:37:15] ltem: has joined #ruby
[06:52:03] workmad3: has joined #ruby
[06:53:39] nullobject: has joined #ruby
[06:57:45] darkhanb: has joined #ruby
[07:01:11] LocaMocha: has joined #ruby
[07:02:23] alfiemax_: has joined #ruby
[07:02:35] AX3L: has joined #ruby
[07:03:42] yebyen: has joined #ruby
[07:04:30] jtdoncas: has joined #ruby
[07:05:30] LocaMocha: has joined #ruby
[07:06:58] trautwein: has joined #ruby
[07:07:07] tipyn: has joined #ruby
[07:08:38] jtdoncas_: has joined #ruby
[07:08:49] ur5us: has joined #ruby
[07:18:05] kryptoz: has joined #ruby
[07:18:10] aufi: has joined #ruby
[07:18:37] kryptoz: has joined #ruby
[07:19:02] alfiemax: has joined #ruby
[07:19:22] kryptoz: has joined #ruby
[07:20:09] kryptoz: has joined #ruby
[07:20:52] conta: has joined #ruby
[07:20:53] kryptoz: has joined #ruby
[07:21:37] kryptoz: has joined #ruby
[07:23:26] za1b1tsu: has joined #ruby
[07:24:13] za1b1tsu: anyway I can print the reference? For ex x = "Hello", can I print the actual x value, the reference to "Hello"?
[07:24:50] aufi: has joined #ruby
[07:25:24] mtkd: has joined #ruby
[07:28:39] trautwein: has joined #ruby
[07:28:48] al2o3-cr: hmm, not sure what you mean?
[07:29:28] havenwood: za1b1tsu: What would be printed in the case of?: x = "Hello"
[07:30:06] careta: has joined #ruby
[07:33:08] bronson: has joined #ruby
[07:36:48] za1b1tsu: havenwood: the string object "Hello"
[07:37:11] za1b1tsu: so x holds a reference to the object hello, can I see that reference?
[07:38:34] alfiemax: has joined #ruby
[07:41:51] al2o3-cr: za1b1tsu: you want the memory address or?
[07:42:09] Lytol: has joined #ruby
[07:42:43] za1b1tsu: al2o3-cr: yes
[07:43:23] al2o3-cr: za1b1tsu: you can get the by numerous methods
[07:46:45] al2o3-cr: 1) [x].pack('p').unpack('l!') 2) Fiddle::Pointer[x].to_i 3) Fiddle::Pointer[Fiddle.dlwrap(x)].to_i 4) x.object_id << 1 || * 2
[07:47:14] al2o3-cr: the latter two will include RBasic the former is where it directly in memory
[07:51:51] amatas: has joined #ruby
[07:52:43] andikr: has joined #ruby
[07:52:55] nullobject: has joined #ruby
[07:54:02] sanscoeur: has joined #ruby
[08:00:37] minimalism: has joined #ruby
[08:01:23] tAn: has joined #ruby
[08:07:15] Puffball: has joined #ruby
[08:07:42] za1b1tsu: al2o3-cr thank you
[08:08:09] al2o3-cr: za1b1tsu: np.
[08:09:15] dionysus69: has joined #ruby
[08:11:12] anisha: has joined #ruby
[08:19:38] Axsuul: has joined #ruby
[08:19:55] TomyWork: has joined #ruby
[08:19:58] justicef_: has joined #ruby
[08:22:29] xuyuheng: has joined #ruby
[08:22:33] yohji: has joined #ruby
[08:25:05] dminuoso: tcopeland: You could always "use" set_trace_func/TracePoint
[08:25:28] dminuoso: tcopeland: Or do it like real people and do it statically from a CST.
[08:26:11] dminuoso: puts global_variables
[08:28:08] Dimik: has joined #ruby
[08:28:11] burgestrand: has joined #ruby
[08:31:24] dogweather: has joined #ruby
[08:34:34] banisterfiend: has joined #ruby
[08:35:10] nadir: has joined #ruby
[08:39:19] claudiuinberlin: has joined #ruby
[08:46:15] havenwood: >> require 'fiddle'; require 'json'; require 'objspace'; x = 'Hello'; [JSON.parse(ObjectSpace.dump(x))['address'].hex, x.object_id << 1, Fiddle.dlwrap(x), [x].pack('p').unpack('l!').first - 16]
[08:46:16] ruby[bot]: havenwood: # => [1106940300, 1106940300, 1106940300, 1106940292] (https://eval.in/941104)
[08:47:48] havenwood: >> require 'fiddle'; require 'json'; require 'objspace'; x = 'Hello'; [JSON.parse(ObjectSpace.dump(x))['address'].hex, x.object_id << 1, Fiddle.dlwrap(x), [x].pack('p').unpack('l!').first - 8]
[08:47:49] ruby[bot]: havenwood: # => [1106825400, 1106825400, 1106825400, 1106825400] (https://eval.in/941106)
[08:48:01] dionysus69: has joined #ruby
[08:48:40] gnarf: has joined #ruby
[08:49:50] ruby[bot]: havenwood: # => 4 (https://eval.in/941107)
[08:50:10] apeiros_: has joined #ruby
[08:50:16] havenwood: mmm, so: 1.size * 2
[08:50:34] al2o3-cr: havenwood: yeah eval.in is 32 bits
[08:52:54] workmad3: has joined #ruby
[08:53:43] Axsuul: has joined #ruby
[09:03:46] cdg: has joined #ruby
[09:04:02] tipyn: has joined #ruby
[09:04:16] belmoussaoui: has joined #ruby
[09:05:09] cdg_: has joined #ruby
[09:05:37] bawNg: https://www.neowin.net/news/linus-torvalds-calls-intels-meltdown-and-spectre-patches-garbage
[09:05:49] fumk: tiens ba d'ailleur
[09:05:57] fumk: wrong chan
[09:06:50] hurricanehrndz: has joined #ruby
[09:07:45] belmoussaoui: has joined #ruby
[09:08:09] elphe: has joined #ruby
[09:08:32] apeiros: ACTION should change initial nick to apeiros_set_up_your_znc
[09:08:59] TvL2386: has joined #ruby
[09:09:12] cdg__: has joined #ruby
[09:10:37] Drakevr: has joined #ruby
[09:12:03] _aeris_: has joined #ruby
[09:12:04] al2o3-cr: good morning apeiros
[09:13:13] thejamespinto: has joined #ruby
[09:14:20] zigzig: has joined #ruby
[09:15:57] benjen: has joined #ruby
[09:17:38] gothicsouth: has joined #ruby
[09:21:19] rprimus: has joined #ruby
[09:22:25] marr: has joined #ruby
[09:24:52] guardianx: has joined #ruby
[09:30:56] mtkd: has joined #ruby
[09:31:13] careta: has joined #ruby
[09:35:38] ramfjord: has joined #ruby
[09:37:54] sameerynho: has joined #ruby
[09:38:32] guille-moe: has joined #ruby
[09:40:36] al2o3-cr: suprisingly String#unpack1('Z*') is significantly faster the String#delete("\x00")
[09:41:05] Drakevr: has joined #ruby
[09:41:24] a_duck: has joined #ruby
[09:41:41] apeiros: unpack only deletes from the end, though, no?
[09:42:14] al2o3-cr: let me check, i'm not sure
[09:42:18] apeiros: eh, depending on your use case, even worse, it'll truncate your string after the first null byte
[09:42:48] apeiros: or more correctly, before the first null byte :) (since the null byte is removed too)
[09:42:53] al2o3-cr: yeah, just figured that now
[09:43:07] apeiros: so I guess no wonder it's faster ;-)
[09:43:40] al2o3-cr: pretty nifty if null bytes on the right hand side :P
[09:45:05] jerryskye: has joined #ruby
[09:46:23] rahul_bajaj: has joined #ruby
[09:46:55] gregf_: has joined #ruby
[09:47:09] Serpent7776: has joined #ruby
[09:47:12] jamiejackson: has joined #ruby
[09:48:20] bronson: has joined #ruby
[09:48:28] Lytol: has joined #ruby
[09:48:45] cdg: has joined #ruby
[09:52:53] cdg_: has joined #ruby
[09:54:10] apeiros: al2o3-cr: not sure I follow?
[09:54:51] al2o3-cr: eg "foo\x00\x00\x00\x00\x00\x00\x00"
[09:56:34] cdg: has joined #ruby
[09:56:36] ltem: has joined #ruby
[09:57:23] apeiros: yeah, I think that's the point. plenty of formats null-pad data
[10:00:18] cdg_: has joined #ruby
[10:00:45] Beams: has joined #ruby
[10:01:27] tomphp: has joined #ruby
[10:03:59] cdg: has joined #ruby
[10:04:31] GodFather: has joined #ruby
[10:04:46] AxelAlex: has joined #ruby
[10:05:09] tipyn: has joined #ruby
[10:07:44] cdg_: has joined #ruby
[10:09:40] rabajaj: has joined #ruby
[10:13:16] bkxd: has joined #ruby
[10:14:42] apeiros: al2o3-cr: e.g. if you have a format which says "5 null-padded fields, first field is 10 bytes, second 20 bytes, the other three 8 bytes", then you can just do: fields = binary_data.unpack("Z10Z20Z8Z8Z8") and it'll do "the right thing"™
[10:14:52] bkxd_: has joined #ruby
[10:15:42] bkxd_: has joined #ruby
[10:16:45] apeiros: gotta disco, laters!
[10:18:47] tomphp: has joined #ruby
[10:18:49] xfbs: has joined #ruby
[10:22:04] Vapez_: has joined #ruby
[10:24:35] Cavallari: has joined #ruby
[10:28:55] ldnunes: has joined #ruby
[10:33:17] chmurifree: has joined #ruby
[10:34:04] za1b1tsu: has joined #ruby
[10:36:15] xuyuheng: has joined #ruby
[10:40:26] Mia: has joined #ruby
[10:40:26] Mia: has joined #ruby
[10:42:26] jenrzzz: has joined #ruby
[10:54:06] jenrzzz: has joined #ruby
[10:54:07] jenrzzz: has joined #ruby
[10:59:11] jenrzzz: has joined #ruby
[11:01:06] bkxd: has joined #ruby
[11:08:25] `derpy: No results
[11:08:28] `derpy: No results
[11:08:30] `derpy: http://ruby-doc.org/core-2.4.1/ARGF.html#method-i-to_s
[11:08:39] dminuoso: adaedra: did you catch my message yesterday?
[11:08:54] tipyn: has joined #ruby
[11:09:00] dminuoso: I dont know whether we have some "tell" command and you didn't seem to respond, so.. =)
[11:16:40] jenrzzz: has joined #ruby
[11:16:41] jenrzzz: has joined #ruby
[11:17:02] dminuoso: adaedra: I was asking you to upgrade `derpy to 2.5 whenever you found the time. :)
[11:17:27] dminuoso: ACTION sends adaedra a space cookie
[11:17:59] tomphp: has joined #ruby
[11:20:07] kiltzman: has joined #ruby
[11:22:07] kiltzman: has joined #ruby
[11:22:32] kiltzman: has joined #ruby
[11:22:41] stormpack: has joined #ruby
[11:23:32] jaruga: has joined #ruby
[11:24:08] kiltzman: has joined #ruby
[11:24:22] hfp_work: has joined #ruby
[11:28:21] careta: has joined #ruby
[11:28:57] jenrzzz: has joined #ruby
[11:30:36] tomphp: has joined #ruby
[11:30:46] apeiros: has joined #ruby
[11:31:09] ldnunes: has joined #ruby
[11:31:11] yohji: has joined #ruby
[11:31:45] darkhanb: has joined #ruby
[11:36:28] kryptoz: has joined #ruby
[11:37:33] cdg: has joined #ruby
[11:37:34] jenrzzz: has joined #ruby
[11:38:47] kurko_: has joined #ruby
[11:43:31] plexigras: has joined #ruby
[11:45:16] tomphp: has joined #ruby
[11:45:36] bkxd_: has joined #ruby
[11:49:00] bronson: has joined #ruby
[11:49:59] marr: has joined #ruby
[11:53:16] cdg: has joined #ruby
[11:58:19] cdg: has joined #ruby
[12:01:34] dogweather: has joined #ruby
[12:02:47] cdg_: has joined #ruby
[12:02:56] stormpack: has left #ruby: ("Leaving")
[12:04:07] ldnunes: has joined #ruby
[12:06:02] qba73: has joined #ruby
[12:06:11] alfiemax: has joined #ruby
[12:06:36] cdg: has joined #ruby
[12:08:24] stormpack: has joined #ruby
[12:08:38] tipyn: has joined #ruby
[12:09:26] huyderman: has joined #ruby
[12:09:54] AJA4350: has joined #ruby
[12:15:40] thejamespinto: has joined #ruby
[12:15:48] mtkd: has joined #ruby
[12:15:52] tvw: has joined #ruby
[12:19:31] howdoi: has joined #ruby
[12:24:47] jaruga: has joined #ruby
[12:28:47] Mia: has joined #ruby
[12:28:47] Mia: has joined #ruby
[12:29:08] kapil___: has joined #ruby
[12:30:05] Vapez_: has joined #ruby
[12:32:45] jenrzzz: has joined #ruby
[12:32:49] alfiemax: has joined #ruby
[12:33:23] LastWhisper____: has joined #ruby
[12:33:38] zigzig: has joined #ruby
[12:38:14] dogweather: has joined #ruby
[12:38:25] Vapez: has joined #ruby
[12:41:23] jenrzzz: has joined #ruby
[12:45:28] Psybur: has joined #ruby
[12:45:37] Mia: has joined #ruby
[12:45:38] Mia: has joined #ruby
[12:46:44] claudiuinberlin: has joined #ruby
[12:47:33] tomphp: has joined #ruby
[12:54:34] workmad3: has joined #ruby
[12:56:43] ltem: has joined #ruby
[12:58:16] nadir: has joined #ruby
[12:58:18] jenrzzz: has joined #ruby
[13:02:27] vondruch_: has joined #ruby
[13:03:49] malwar3hun73r: when running rake assets:precompile, i get the error "LoadError: incompatible library version - /var/www/.../vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.so"
[13:03:55] malwar3hun73r: any ideas on how to resolve this
[13:04:01] alfiemax: has joined #ruby
[13:04:05] malwar3hun73r: i recently updated ubuntu from 14 to 16 if that helps
[13:04:16] tipyn: has joined #ruby
[13:04:38] apeiros: malwar3hun73r: do you use a Gemfile?
[13:04:53] apeiros: no, this means that you need to recompile the mysql gem
[13:05:09] malwar3hun73r: apeiros, i've done that
[13:05:15] malwar3hun73r: i've also uninstalled and reinstalled
[13:05:20] apeiros: not sure anymore how to best do that, I'd try uninstalling & reinstalling it
[13:05:29] malwar3hun73r: yep, i've done that
[13:05:44] malwar3hun73r: gem uninstall mysql2
[13:05:44] malwar3hun73r: Successfully uninstalled mysql2-0.4.4
[13:06:22] apeiros: well, your path says vendor/bundle/ruby/
[13:06:37] nowhereman_: has joined #ruby
[13:06:46] apeiros: so seems like your mysql gem is vendored. you'd need to recompile/update that one
[13:06:56] jenrzzz: has joined #ruby
[13:07:53] synthroid: has joined #ruby
[13:08:29] malwar3hun73r: how would i do that?
[13:08:46] apeiros: hm, can't find meaningful info regarding that. haven't used vendored gems in ages :-/
[13:09:17] apeiros: I *think* in the worst case you could just delete the entire vendor dir (I'd move it away instead of deleting, though)
[13:09:39] apeiros: I assume the vendor dir is within your project dir, right?
[13:09:59] malwar3hun73r: i just moved it
[13:10:17] malwar3hun73r: and then do another bundle install, i presume?
[13:11:14] malwar3hun73r: ok, giving that a shot...
[13:12:10] Psybur_: has joined #ruby
[13:12:20] xfbs: has joined #ruby
[13:16:39] malwar3hun73r: apeiros, that seems to have fixed it! thank you!!!
[13:16:59] apeiros: there is probably a more direct and "correct" way. but if it worked :D
[13:18:57] sergio_101: has joined #ruby
[13:19:05] malwar3hun73r: on to the next problem tho...
[13:19:38] jenrzzz: has joined #ruby
[13:21:38] apeiros: s/problem/challenge/
[13:26:04] dogweather: has joined #ruby
[13:29:34] jaruga_: has joined #ruby
[13:32:34] jenrzzz: has joined #ruby
[13:36:02] apparition: has joined #ruby
[13:44:54] shinnya: has joined #ruby
[13:45:38] xuyuheng: has joined #ruby
[13:45:59] bmurt: has joined #ruby
[13:48:51] alfiemax: has joined #ruby
[13:50:07] bronson: has joined #ruby
[13:50:31] jerryskye: has joined #ruby
[13:50:40] John_Ivan: has joined #ruby
[13:50:40] John_Ivan: has joined #ruby
[13:52:01] quobo: has joined #ruby
[13:52:35] dogweather: has joined #ruby
[13:52:51] jerryskye: has joined #ruby
[13:53:52] jenrzzz: has joined #ruby
[13:54:06] huddy: has joined #ruby
[13:54:45] jerryskye: has joined #ruby
[13:54:59] cdg: has joined #ruby
[13:56:05] jerryskye: has joined #ruby
[13:57:53] jerryskye: has joined #ruby
[13:59:25] k0mpa: has joined #ruby
[14:01:06] arne: has joined #ruby
[14:01:49] qba73: has joined #ruby
[14:02:51] jerryskye: has joined #ruby
[14:02:55] aScottishBoat: has joined #ruby
[14:04:51] yohji: has joined #ruby
[14:05:25] qba73_: has joined #ruby
[14:05:37] kryptoz: has joined #ruby
[14:05:47] goldleader: has joined #ruby
[14:07:40] tcopeland: has joined #ruby
[14:08:26] xfbs: has joined #ruby
[14:09:49] dogweather: has joined #ruby
[14:10:34] tipyn: has joined #ruby
[14:11:40] Klumben: has joined #ruby
[14:13:17] RougeT430: has joined #ruby
[14:14:46] rwb: has joined #ruby
[14:14:53] amatas_: has joined #ruby
[14:15:05] Tempesta: has joined #ruby
[14:15:05] Tempesta: has joined #ruby
[14:15:06] jenrzzz: has joined #ruby
[14:15:15] tAn: has joined #ruby
[14:15:51] fumk: has joined #ruby
[14:17:01] amatas_: has joined #ruby
[14:17:33] vondruch_: has joined #ruby
[14:26:39] dviola: has joined #ruby
[14:26:50] DLSteve_: has joined #ruby
[14:27:37] thejamespinto: has joined #ruby
[14:28:02] rubycoder37: has joined #ruby
[14:28:21] dionysus69: has joined #ruby
[14:28:34] qba73: has joined #ruby
[14:29:55] rubycoder37: has left #ruby: ()
[14:29:59] mikkelsen: has joined #ruby
[14:30:02] shorberg_: has joined #ruby
[14:31:28] mikkelsen: has joined #ruby
[14:31:28] dogweather: has joined #ruby
[14:37:15] aScottishBoat: has joined #ruby
[14:39:32] jeffreylevesque: has joined #ruby
[14:39:55] arne: has joined #ruby
[14:43:21] TomyLobo: has joined #ruby
[14:45:50] sepp2k: has joined #ruby
[14:47:48] jobewan: has joined #ruby
[14:49:25] chavdardimitrov: has joined #ruby
[14:50:19] oleo: has joined #ruby
[14:52:07] alfiemax: has joined #ruby
[14:52:59] dogweather: has joined #ruby
[14:55:26] workmad3: has joined #ruby
[14:55:51] aScottishBoat: has joined #ruby
[14:57:24] BTRE: has joined #ruby
[14:58:23] LightStalker: has joined #ruby
[14:59:02] tipyn: has joined #ruby
[14:59:21] cpruitt: has joined #ruby
[14:59:37] nowhereman_: has joined #ruby
[15:01:08] tcopeland: dminuoso: (continuing from yesterday) true, static analysis could find that case - I am more aiming for trying to explore runtime analysis for code improvements
[15:05:36] rippa: has joined #ruby
[15:06:10] moei: has joined #ruby
[15:06:58] zapata: has joined #ruby
[15:08:25] tomphp: has joined #ruby
[15:08:50] kryptoz: has joined #ruby
[15:09:28] Psybur__: has joined #ruby
[15:12:32] Rapture: has joined #ruby
[15:16:11] kryptoz: has joined #ruby
[15:16:31] pastorinni: has joined #ruby
[15:18:30] cpruitt: has joined #ruby
[15:18:45] dogweather: has joined #ruby
[15:22:28] impermanence: has joined #ruby
[15:23:03] impermanence: How can I grab a .deb or .dpkg or whatever is used in debian, not install it, but still be able to compare it to another installation?
[15:23:35] impermanence: of the same package?
[15:24:57] workmad3: has joined #ruby
[15:25:09] apeiros: impermanence: wrong channel?
[15:27:36] impermanence: apeiros: bah. guess my client defaults to Ruby. apologies.
[15:31:54] Azure: has joined #ruby
[15:32:14] consti: has joined #ruby
[15:32:41] jrafanie: has joined #ruby
[15:32:46] dogweather: has joined #ruby
[15:33:46] apeiros: impermanence: it's terrible! you interrupted dozens of very engaged discussions! and now all fell silent! terrible I tell you! ;-)
[15:35:44] hays: has joined #ruby
[15:35:44] hays: has joined #ruby
[15:36:33] hays: I found found myself in the unfortunate situation of using syslog/logger and needing compatibility with 1.9.x Ruby. Anyone know of a way to backport this easily?
[15:37:49] apeiros: hays: huh? 1.9 does not have syslog?
[15:38:02] hays: it doesnt have the syslog logger
[15:38:15] apeiros: if it's pure ruby, just copy it over? :D
[15:38:22] hays: http://ruby-doc.org/stdlib-2.0.0/libdoc/syslog/rdoc/Syslog/Logger.html
[15:38:41] dinfuehr: has joined #ruby
[15:39:30] hays: heh, funny ruby-installed doesn't even have 1.9.x available so not sure how I would test this. grr.
[15:39:33] apeiros: from a glance it looks like pure ruby. so as said, just grab it from the repo.
[15:39:48] hays: where are you looking
[15:39:55] hays: i've never done this before
[15:40:39] apeiros: oh, it does have a native component
[15:40:42] apeiros: https://github.com/ruby/ruby/tree/ruby_2_0_0/ext/syslog
[15:41:12] dogweather: has joined #ruby
[15:42:24] apeiros: but 1.9 does seem to have syslog too?
[15:42:24] apeiros: https://github.com/ruby/ruby/tree/ruby_1_9_3/ext/syslog
[15:42:44] hays: I think its logger.rb
[15:43:15] hays: this is great--now I just need to figure out how to install 1.9.x on my mac to test it haha
[15:44:29] synthroid: has joined #ruby
[15:45:38] xuyuheng: has joined #ruby
[15:46:31] al2o3-cr: hays: why don't you use syslog.
[15:47:00] lcarlson: has joined #ruby
[15:47:16] hays: I am using syslog.
[15:47:24] hays: or maybe I don't understand your suggestion
[15:47:35] synthroid: has joined #ruby
[15:48:02] al2o3-cr: maybe it's me that doesn't understand =P
[15:48:26] tAn: has joined #ruby
[15:49:30] hays: Oh. OK. Well I think we found a solution. I was assuming I had 2.x everywhere I needed, and used a feature of syslog that was introduced in the 2.x series. Its a logger interface to syslog (require 'syslog/logger').
[15:50:03] hays: So aperios helped me find the source code to logger.rb and it looks pretty straightforward. Also I found a backports gem that might help
[15:50:28] apeiros: ?tabnick hays
[15:50:28] ruby[bot]: hays: pro-tip - use tab completion for nicks. avoids typos in nicks.
[15:50:46] hays: sorry, apeiros
[15:51:18] bronson: has joined #ruby
[15:52:53] raynold: has joined #ruby
[15:53:26] hays: anyone here use a mac? trying to determine best way to get an old unsupported ruby. Right now I use ruby-install and chruby to manage my rubies
[15:54:07] zapata: has joined #ruby
[15:54:41] apeiros: I still use rvm, despite all the nay-sayers
[15:54:57] apeiros: still mainly because it's what I started with and never really had a problem with it
[15:55:02] WA9ACE: happy rbenv user checking in
[15:55:07] hays: yeah, it does seem that rvm would do this
[15:55:41] hays: I am showing my age but I am way behind on understanding the subtleties and differences between these methods
[15:55:53] apeiros: it might be that rvm uses ruby-installer to install ruby. at least I remember that they intended to do that.
[15:56:31] dogweather: has joined #ruby
[15:56:36] hays: ruby-install doesn't seem to have kept a 1.9.x branch
[15:57:09] hays: ooh, I found something.
[15:59:13] thejamespinto: has joined #ruby
[16:00:57] hays: its a bit manual, but you can navigate to https://cache.ruby-lang.org/pub/ruby/ and find the tarball, and then pass that into ruby-install. seems like that might work. building right now
[16:01:58] hays: ruby-install ruby 1.9.3-p551 seems to have worked.
[16:01:58] Vapez: has joined #ruby
[16:02:18] cpruitt: has joined #ruby
[16:03:33] nowhereman_: has joined #ruby
[16:03:56] cdg: has joined #ruby
[16:06:54] hays: has joined #ruby
[16:07:16] dogweather: has joined #ruby
[16:14:27] nowhereman_: has joined #ruby
[16:18:13] dogweather: has joined #ruby
[16:19:51] mtkd: has joined #ruby
[16:23:32] alfiemax: has joined #ruby
[16:24:25] nowhere_man: has joined #ruby
[16:25:47] jenrzzz: has joined #ruby
[16:26:01] quobo: has joined #ruby
[16:27:04] Psybur: has joined #ruby
[16:31:47] dogweather: has joined #ruby
[16:33:00] synthroid: has joined #ruby
[16:37:52] shorberg: has joined #ruby
[16:38:25] John_Ivan: has joined #ruby
[16:38:26] John_Ivan: has joined #ruby
[16:38:27] dogweather: has joined #ruby
[16:39:38] desperek: has joined #ruby
[16:42:26] cdg_: has joined #ruby
[16:42:53] jenrzzz: has joined #ruby
[16:43:56] Hanmac1: has joined #ruby
[16:44:22] Axsuul: has joined #ruby
[16:44:40] milardovich: has joined #ruby
[16:45:25] Hanmac1: "ruby code hurt my eyes so i need |> and <|" https://bugs.ruby-lang.org/issues/14392
[16:45:31] spk: has joined #ruby
[16:46:08] impermanence: has joined #ruby
[16:46:45] WA9ACE: I for one would love to see pipes in Ruby
[16:46:50] WA9ACE: in the mean time I made this https://github.com/WA9ACE/pipe/blob/master/spec/pipe_spec.rb
[16:47:46] nertzy: has joined #ruby
[16:47:46] WA9ACE: but that hurts my eyes line in the latest comment is pretty silly
[16:48:20] Hanmac1: yeah imo "private def meth" is pretty self explained?
[16:49:14] WA9ACE: it is to everyone I've worked with
[16:50:40] alfiemax_: has joined #ruby
[16:51:48] John_Ivan: has joined #ruby
[16:51:49] John_Ivan: has joined #ruby
[16:52:33] Hanmac1: i think i once made a gist so i can use &:to_s.(2) https://gist.github.com/Hanmac/ab77c649d799ade9670c
[16:52:39] miskatonic: has joined #ruby
[16:54:17] dogweather: has joined #ruby
[16:56:02] malwar3hun73r: has left #ruby: ("Leaving")
[16:58:48] alfiemax: has joined #ruby
[16:59:12] jenrzzz: has joined #ruby
[16:59:13] jenrzzz: has joined #ruby
[17:03:47] eric_hill: has left #ruby: ("Leaving")
[17:05:17] apeiros_: has joined #ruby
[17:06:48] nchambers: if I wanted to dynamically load a folder of ruby files at runtime (without knowing their names in advance, eg for a plugin system), and call a module function in each of them (something like Plugin::onload), how would I do that?
[17:07:06] cdg: has joined #ruby
[17:07:32] wald0: has joined #ruby
[17:07:52] cdg: has joined #ruby
[17:10:24] apeiros_: nchambers: filenames are not linked to constants defined in them. so you either have a convention (filename <-> constant name mapping) or a registry
[17:11:34] thejamespinto: has joined #ruby
[17:11:46] apeiros: registry itself can be either explicit like `class MyPlugin; end; Plugins.register(MyPlugin)` or implicit, e.g. `class MyPlugin < Plugin::Abstract` (self.inherited), `class Plugins::MyPlugin` (const_added)
[17:13:07] jamesaxl: has joined #ruby
[17:15:49] nchambers: apeiros: so soemthing like: https://gist.github.com/ntchambers/ec59149478702ab1d46c6d87bb8a6317
[17:20:00] apeiros: nchambers: yes. minus the errors ;-)
[17:20:01] troys: has joined #ruby
[17:20:07] apeiros: it'd have to be def self.register
[17:20:23] jenrzzz: has joined #ruby
[17:20:26] apeiros: also Dir.glob takes a block (the [] alias can't for syntactic reasons)
[17:20:26] nchambers: sorry, somewhat new to ruby :}
[17:20:38] apeiros: no reason to be sorry :D
[17:21:03] nchambers: thanks a ton! so just to be clear, even though Plugins is a module, I still use self.register?
[17:21:19] nchambers: for the definition I mean
[17:21:24] apeiros: if you want to be able to call it as Plugin.register, yes
[17:23:10] apeiros: it's the same for modules as with classes. `def foo` is an instance method, and hence requires an instance to call it on
[17:23:27] apeiros: just the means to get an instance differs. with a class it's direct (YourClass.new.foo)
[17:23:45] apeiros: with a module it's indirect, by including the module into a class and then create an instance of that class
[17:24:38] synthroid: has joined #ruby
[17:24:48] hays: has joined #ruby
[17:25:01] darkhanb: has joined #ruby
[17:25:06] Axsuul: has joined #ruby
[17:25:11] SeepingN: has joined #ruby
[17:25:17] milardov_: has joined #ruby
[17:29:03] dogweather: has joined #ruby
[17:29:13] orbyt_: has joined #ruby
[17:32:40] [Butch]: has joined #ruby
[17:33:20] jenrzzz: has joined #ruby
[17:34:20] qba73: has joined #ruby
[17:36:19] jrafanie: has joined #ruby
[17:36:43] zipace: has joined #ruby
[17:37:04] eckhardt: has joined #ruby
[17:40:26] s2013: has joined #ruby
[17:40:48] dankeast: has joined #ruby
[17:41:16] alfiemax: has joined #ruby
[17:41:55] jenrzzz: has joined #ruby
[17:42:25] alfiemax: has joined #ruby
[17:44:00] conta: has joined #ruby
[17:44:07] cpruitt: has joined #ruby
[17:45:28] marr: has joined #ruby
[17:46:28] workmad3: has joined #ruby
[17:47:33] alfiemax_: has joined #ruby
[17:47:58] imode: has joined #ruby
[17:49:47] qba73: has joined #ruby
[17:52:23] bronson: has joined #ruby
[17:55:00] Dimik: has joined #ruby
[17:56:06] guacamole: has joined #ruby
[17:56:06] guacamole: has joined #ruby
[17:58:09] qba73: has joined #ruby
[17:58:14] cpruitt: has joined #ruby
[17:58:53] jenrzzz: has joined #ruby
[17:58:53] jenrzzz: has joined #ruby
[17:59:08] Vapez: has joined #ruby
[18:03:32] ldnunes: has joined #ruby
[18:03:52] dogweather: has joined #ruby
[18:04:22] nchambers: apeiros: so I've got the plugin system working, but I want register to add it to an array of callbacks to be called later. how can I append the callbacks to the array without calling them?
[18:04:42] nchambers: since: @@callbacks << callback # appears to execute callback
[18:05:20] apeiros: ?code nchambers
[18:05:20] ruby[bot]: nchambers: We can't help you without your code, please post it to https://gist.github.com
[18:05:28] nchambers: hmm fair enough
[18:05:37] nchambers: ill throw my testcase on github
[18:06:31] milardovich: has joined #ruby
[18:09:03] nchambers: so heres the repository: https://github.com/ntchambers/plugin-example/blob/master/plugin.rb, heres the current output when running plugin.rb: https://asciinema.org/a/S2tcle35qyrKImSYEi5HArwRV, and here is the output I would like to acheive: http://ix.io/ECp
[18:09:15] xfbs: has joined #ruby
[18:09:15] nchambers: erm sorry, heres the repository: https://github.com/ntchambers/plugin-example
[18:10:40] jamesaxl: has joined #ruby
[18:11:50] marxarelli: has joined #ruby
[18:14:53] tipyn: has joined #ruby
[18:15:30] dogweather: has joined #ruby
[18:15:51] jenrzzz: has joined #ruby
[18:16:07] rrichardsr3: has joined #ruby
[18:17:23] oleo: has joined #ruby
[18:18:49] apeiros: nchambers: slightly occupied here. well get back at you asap.
[18:18:54] tomphp: has joined #ruby
[18:19:13] nchambers: ok no worries
[18:19:25] eckhardt: has joined #ruby
[18:19:35] nchambers: its not like this needs to be ready by tomorrow
[18:21:30] apeiros: nchambers: well, if you have a method named callback for all plugins, then you don't need to register the callback method ;-)
[18:21:49] apeiros: you just use `registered_plugin.send(:callback)` at the time when you want to invoke it
[18:22:36] guacamole: has joined #ruby
[18:22:36] guacamole: has joined #ruby
[18:24:10] dstrunk: has joined #ruby
[18:24:29] jenrzzz: has joined #ruby
[18:24:50] havenwood: nchambers: If you have no state, use a Module. If you have a single instance of state, use a Singleton Class. If you have multiple instances of state, use a Class.
[18:24:52] nchambers: apeiros: that was just an example. in the actual app the callbacks will have different names
[18:25:06] nchambers: havenwood: ok I'll switch it to a module
[18:25:28] apeiros: nchambers: @@callbacks << [:name_of_callback]
[18:25:39] havenwood: nchambers: Plugins is currently a module. I think it should be a Singleton Class.
[18:25:48] apeiros: also look into Object#method
[18:25:50] nchambers: apeiros: ah ok
[18:25:52] nchambers: thanks guys
[18:25:56] apeiros: &ri Object#method nchambers
[18:25:57] `derpy: nchambers: http://ruby-doc.org/core-2.4.1/Object.html#method-i-method
[18:25:57] havenwood: &ri Singleton
[18:25:57] `derpy: http://ruby-doc.org/stdlib-2.4.1/libdoc/singleton/rdoc/Singleton.html
[18:26:10] nchambers: havenwood: oh sorry I thought you were talking about the plugins themselves
[18:26:11] apeiros: nchambers: another alternative is to supply callbacks as blocks
[18:26:16] havenwood: Matz is the maintainer of Singleton. :-)
[18:26:36] nchambers: apeiros: I considered that as well, and might expose a way to register blocks
[18:26:45] nchambers: thanks guys, I'll go through all of this
[18:26:46] sergio_101: has joined #ruby
[18:26:52] John_Ivan: has joined #ruby
[18:26:53] John_Ivan: has joined #ruby
[18:30:32] dogweather: has joined #ruby
[18:34:02] tAn: has joined #ruby
[18:34:25] pastorinni: has joined #ruby
[18:35:26] sspreitz: has joined #ruby
[18:36:16] selim: has joined #ruby
[18:38:01] eckhardt_: has joined #ruby
[18:42:16] apeiros: has joined #ruby
[18:42:17] naprimer2: has joined #ruby
[18:42:35] alfiemax: has joined #ruby
[18:43:35] LastWhisper____: has joined #ruby
[18:45:47] s3nd1v0g1us: has joined #ruby
[18:45:56] jenrzzz: has joined #ruby
[18:46:22] apeiros__: has joined #ruby
[18:46:26] s3nd1v0g1us: has joined #ruby
[18:47:02] s3nd1v0g1us: has joined #ruby
[18:47:52] s3nd1v0g1us: has joined #ruby
[18:47:56] milardov_: has joined #ruby
[18:48:51] ledestin: has joined #ruby
[18:50:40] pastorinni: has joined #ruby
[18:51:08] rubycoder38: has joined #ruby
[18:53:15] dreamthese: has joined #ruby
[18:54:48] rubycoder38: crossposting from #rubyonrails
[18:56:04] rubycoder38: I have this api where I'm supposed to use the courses data: https://api.eadbox.com/ and I have to import this data to my database but I'm not sure how to do that only for the new records, the api only allows me to fetch results per page
[18:56:46] rubycoder38: importing everything all the time while preventing duplicates would be bad for performance
[18:58:26] jenrzzz: has joined #ruby
[18:58:55] guacamole: rubycoder38 could you use #find_or_create_by?
[18:59:44] guacamole: or do something that caches the results and can diff them to see if there's a change/new record?
[19:03:21] seraphim5B: has joined #ruby
[19:04:03] KeyJoo: has joined #ruby
[19:04:40] rrichardsr3: has joined #ruby
[19:04:48] rubycoder38: I'm not sure, this is for a job interview, but the HR person is being too ambiguous, she refuses to give me more information
[19:05:05] rubycoder38: I googled one of the candidate's code, I found it on github, he made a twitter bot, that's not even 10% of what I would have done
[19:05:11] rubycoder38: pisses me off, I tell ya
[19:05:16] guacamole: its probably part of the test
[19:05:22] tipyn: has joined #ruby
[19:05:30] guacamole: to see how you deal with ambiguity, just document any assumptions you're making and should be fine
[19:05:41] rubycoder38: I need to create tweets of their data
[19:05:45] guacamole: and if its not... you don't want to work their anyways
[19:05:59] guacamole: did they give you examples of the data?
[19:06:03] jtdoncas_: has joined #ruby
[19:06:08] rubycoder38: create a tweet of their last courses
[19:06:19] rubycoder38: I've been getting frustrated all day with this
[19:06:24] guacamole: can you filter the results by date?
[19:06:29] guacamole: when you get them from the api?
[19:06:30] jottr_: has joined #ruby
[19:06:35] guacamole: and only check for new ones within the date range
[19:07:03] jenrzzz: has joined #ruby
[19:07:18] rubycoder38: I have examples of the data, yeah
[19:07:54] guacamole: do you have the tweeting part done? or is there an area you can focus on with more solid requirements?
[19:08:21] rubycoder38: I didn't write anything yet, but that part sounds simple
[19:08:21] guacamole: if you can get it to tweet you can tweak the other parts later... might be good for motivation to accomplish a task :)
[19:08:33] ramfjord: has joined #ruby
[19:08:59] rubycoder38: yeah, I'll do it!
[19:09:01] rubycoder38: thanks guacamole
[19:09:05] dogweather: has joined #ruby
[19:09:07] guacamole: you got this!!
[19:16:24] dogweather: has joined #ruby
[19:17:19] sammi`_: has joined #ruby
[19:19:42] jenrzzz: has joined #ruby
[19:19:58] _zach: has joined #ruby
[19:24:24] justinfaler: has joined #ruby
[19:29:12] milardovich: has joined #ruby
[19:32:52] rrutkowski: has joined #ruby
[19:46:32] dogweather: has joined #ruby
[19:47:18] workmad3: has joined #ruby
[19:47:39] synthroid: has joined #ruby
[19:52:04] ShekharReddy: has joined #ruby
[19:53:03] bronson: has joined #ruby
[19:57:48] Guest10784: has joined #ruby
[20:00:23] jenrzzz: has joined #ruby
[20:00:23] jenrzzz: has joined #ruby
[20:04:46] alfiemax: has joined #ruby
[20:05:11] tipyn: has joined #ruby
[20:06:48] wilbert: has joined #ruby
[20:07:59] dogweather: has joined #ruby
[20:08:49] thejames_: has joined #ruby
[20:08:54] Rapture: has joined #ruby
[20:10:35] milardov_: has joined #ruby
[20:12:17] jenrzzz: has joined #ruby
[20:15:43] alex``: has joined #ruby
[20:16:46] dogweather: has joined #ruby
[20:17:11] guille-moe: has joined #ruby
[20:20:54] jenrzzz: has joined #ruby
[20:20:54] jenrzzz: has joined #ruby
[20:29:49] dogweather: has joined #ruby
[20:30:19] s2013: has joined #ruby
[20:32:53] cdg_: has joined #ruby
[20:34:03] bkxd: has joined #ruby
[20:34:04] ur5us: has joined #ruby
[20:34:24] pwnd_nsfw: has joined #ruby
[20:35:29] veduardo_: has joined #ruby
[20:38:42] ltem: has joined #ruby
[20:42:39] jenrzzz: has joined #ruby
[20:42:39] jenrzzz: has joined #ruby
[20:46:54] jaruga: has joined #ruby
[20:48:35] dogweather: has joined #ruby
[20:50:54] jenrzzz: has joined #ruby
[20:50:54] jenrzzz: has joined #ruby
[20:50:57] sameerynho: has joined #ruby
[20:51:55] milardovich: has joined #ruby
[20:53:27] _main_: has joined #ruby
[20:54:10] bronson: has joined #ruby
[20:54:25] Psybur: has joined #ruby
[20:55:28] eckhardt: has joined #ruby
[20:57:37] s2013: has joined #ruby
[20:58:46] guacamole: has joined #ruby
[20:58:47] guacamole: has joined #ruby
[20:59:25] romain_t: has joined #ruby
[20:59:59] jenrzzz: has joined #ruby
[21:00:04] jenrzzz: has joined #ruby
[21:01:03] rrichardsr3: has joined #ruby
[21:01:29] camfowler: has joined #ruby
[21:01:53] dogweather: has joined #ruby
[21:04:29] Psybur: has joined #ruby
[21:09:14] pastorinni: has joined #ruby
[21:10:06] tipyn: has joined #ruby
[21:13:54] Puffball: has joined #ruby
[21:16:20] jenrzzz: has joined #ruby
[21:16:21] jenrzzz: has joined #ruby
[21:17:30] tomphp: has joined #ruby
[21:19:12] dogweather: has joined #ruby
[21:22:40] Psybur_: has joined #ruby
[21:23:48] knight_: has joined #ruby
[21:25:54] jenrzzz: has joined #ruby
[21:25:54] jenrzzz: has joined #ruby
[21:26:10] zleap: has joined #ruby
[21:26:10] chavdardimitrov: has joined #ruby
[21:26:30] spiette: has joined #ruby
[21:27:39] jottr: has joined #ruby
[21:30:23] John_Ivan: has joined #ruby
[21:30:23] John_Ivan: has joined #ruby
[21:30:34] milardovich: has joined #ruby
[21:32:06] camfowler: has joined #ruby
[21:34:09] dogweather: has joined #ruby
[21:36:03] s2013: has joined #ruby
[21:36:53] k0mpa: has joined #ruby
[21:40:41] mochiyoda_: has joined #ruby
[21:43:17] milardovich: has joined #ruby
[21:45:44] dogweather: has joined #ruby
[21:47:13] hays: has joined #ruby
[21:47:14] hays: has joined #ruby
[21:47:45] hays: how do I make a gem that lets me require files like this: require 'foo/gem_i_want'
[21:48:10] workmad3: has joined #ruby
[21:49:29] apeiros: hays: I don't get it
[21:49:31] cdg: has joined #ruby
[21:49:55] hays: sometimes in ruby you specify more specific submodules
[21:50:14] hays: require 'backports/2.3' , etc.
[21:50:27] havenwood: hays: http://guides.rubygems.org/name-your-gem/
[21:50:47] apeiros: hays: that's just relative to the lib dir of your gem
[21:51:05] apeiros: so if your gem has YOURGEM/lib/foo/bar/baz.rb, then you require 'foo/bar/baz'
[21:51:23] apeiros: and if in this case your gem is not named "foo", you are doing it wrong ;-)
[21:51:56] havenwood: hays: A gem named `foo-gem_i_want` should be a `Foo::GemIWant` that you can require with `"foo/gem_i_want"`.
[21:52:06] havenwood: hays: And there should be a `foo` gem that it's a plugin for.
[21:54:43] hays: Ahh. Ok. I think it might have been messed up because I had a hyphen in the gem name
[21:55:06] bronson: has joined #ruby
[21:55:36] Puffball: has joined #ruby
[21:56:34] zleap: has joined #ruby
[21:57:14] jenrzzz: has joined #ruby
[22:02:11] mochiyoda: has joined #ruby
[22:02:35] dogweather: has joined #ruby
[22:03:05] baroquebobcat: has joined #ruby
[22:04:23] alfiemax: has joined #ruby
[22:05:13] alfiemax_: has joined #ruby
[22:08:13] tipyn: has joined #ruby
[22:10:47] jeffreylevesque: has joined #ruby
[22:12:16] minimalism: has joined #ruby
[22:20:15] cdg_: has joined #ruby
[22:20:50] cdg_: has joined #ruby
[22:22:02] blackmesa: has joined #ruby
[22:22:49] guacamole: has joined #ruby
[22:22:50] guacamole: has joined #ruby
[22:24:34] mtkd: has joined #ruby
[22:24:56] dogweather: has joined #ruby
[22:26:03] bmurt: has joined #ruby
[22:32:58] rwb: has joined #ruby
[22:34:54] alfiemax: has joined #ruby
[22:35:35] guardianx: has joined #ruby
[22:38:40] hays: is loading a gem with : gem 'my_gem', '>=1.2' deprecated or old-fashioned in any way? I just havent seen this before and want to make sure im not relying on something that is going to be cut
[22:39:19] dogweather: has joined #ruby
[22:40:49] apeiros: it isn't loading. was never. it's activating. and unless you have a reason to, you should never have done it.
[22:41:24] apeiros: and it's old-fashioned in that nowadays having a Gemfile is what you do and that makes activating superfluous anyway.
[22:42:15] apeiros: re what's activating - if you have multiple versions of a gem installed, it makes sure that a require will use a gem satisfying the version requirement you specify in the activation.
[22:43:00] apeiros: e.g. `gem 'foo', '=1.0'; require 'foo'` and you have 1.0 and 1.1 installed, would without the `gem` call load 1.1. with, it loads 1.0
[22:46:12] anisha: has joined #ruby
[22:48:02] orbyt_: has joined #ruby
[22:48:12] drakko: has joined #ruby
[22:49:45] alfiemax: has joined #ruby
[22:50:37] jottr_: has joined #ruby
[22:51:29] shinnya: has joined #ruby
[22:52:40] hays: apeiros: I'm in a bit of a weird situation. I am writing a script that will be deployed, but customer doesn't want this script in a gem, they want it to be in a file that they can 'easily see'
[22:53:20] hays: so I am trying to figure out how to do some sort of check when they are using this script that they don't have an older version of the gem loaded than is supported
[22:53:53] apeiros: that'd indeed be the rare case where manual activation is correct
[22:54:15] hays: yeah. its weird. well hopefully ruby keeps it in there
[22:54:38] hays: i originally had this in a gem, with spec.executables
[22:54:54] apeiros: content of the script: require 'myscriptasagem'; run_stuff_from_gem :-p
[22:55:46] hays: we might get there. or at least require 'myscriptasagem'; set_some_configuration; run_stuff_from_gem
[22:56:08] bronson: has joined #ruby
[22:57:02] hays: ok im outta here for now. thanks for answering these questions I've had, and especially for the syslog:logger tip
[22:59:27] tomphp: has joined #ruby
[22:59:33] drewmcmillan: has joined #ruby
[23:00:45] cdg: has joined #ruby
[23:04:31] tipyn: has joined #ruby
[23:10:25] kryptoz: has joined #ruby
[23:11:01] jtdoncas_: has joined #ruby
[23:14:56] jenrzzz: has joined #ruby
[23:14:59] jenrzzz: has joined #ruby
[23:15:02] TinkerTyper: has joined #ruby
[23:15:54] sameerynho: has joined #ruby
[23:16:53] tipyn: has joined #ruby
[23:19:37] gizmore: has joined #ruby
[23:20:00] lele: has joined #ruby
[23:23:45] Psybur__: has joined #ruby
[23:26:58] ikopico: has joined #ruby
[23:33:35] weaksauce: is there a place to get old old versions of ruby? i need 1.9.3 for a client that doesn't want to update
[23:33:58] weaksauce: it seems that they don't have it on the official servers anymore.
[23:34:31] gizmore: weaksauce: of cousre you can
[23:35:13] weaksauce: i figured it was out there somewhere. just was curious if there is an easy way to get it
[23:36:07] gizmore: rbenv and co allow that
[23:36:39] weaksauce: i already tried ruby-install ruby 1.9.3 and it said it was missing
[23:36:39] weaksauce: i think i found a download now.
[23:36:41] guacamole: has joined #ruby
[23:36:42] guacamole: has joined #ruby
[23:36:55] havenwood: weaksauce: Is it a dev or prod box?
[23:37:03] havenwood: weaksauce: With ruby-install if you want a system-wide install to /usr/local use the --system flag.
[23:37:20] havenwood: weaksauce: ruby-install doesn't know patch versions for unsupported Rubies
[23:37:22] weaksauce: just my dev box to make a quick change to something
[23:37:34] havenwood: weaksauce: if you want to use 1.9, specify the exact version
[23:37:35] RougeT430: has joined #ruby
[23:38:10] pwnd_nsfw`: has joined #ruby
[23:40:15] havenwood: weaksauce: sudo ruby-install --system ruby 1.9.3-p551
[23:40:55] havenwood: ^ will install the latest 1.9 version to /usr/local
[23:41:11] havenwood: weaksauce: Mind you, that version is unsupported and has known security issues.
[23:41:22] weaksauce: yeah. not a big deal for them.
[23:41:30] havenwood: ¯\_(ツ)_/¯
[23:41:39] weaksauce: thanks for your help
[23:42:07] chavdardimitrov_: has joined #ruby
[23:42:45] milardovich: has joined #ruby
[23:45:42] alfiemax: has joined #ruby
[23:48:54] workmad3: has joined #ruby
[23:52:39] weaksauce: that was actually a lot less painful as it had been in the past to get an old version up and running with bundler
[23:56:05] jnyw: has joined #ruby
[23:56:38] bronson: has joined #ruby