« Back to channel list

#ruby - 02 December 2017

« Back 1 day Forward 1 day »
[00:01:27] astronavt: has joined #ruby
[00:02:15] jrabe: has joined #ruby
[00:02:23] Jameser: has joined #ruby
[00:04:52] bkxd: has joined #ruby
[00:14:35] voldemar: has joined #ruby
[00:16:21] workmad3: has joined #ruby
[00:16:51] alveric4: has joined #ruby
[00:17:52] csk157: has joined #ruby
[00:19:52] guardianx: has joined #ruby
[00:21:40] jxv: has joined #ruby
[00:24:57] eckhardt: has joined #ruby
[00:25:07] voldemar: has joined #ruby
[00:29:26] pastorin_: has left #ruby: ()
[00:30:35] orbyt_: has joined #ruby
[00:31:08] skweek: has joined #ruby
[00:34:51] bkxd: has joined #ruby
[00:36:36] ledestin: has joined #ruby
[00:37:20] aintno_sunshine: has joined #ruby
[00:39:06] bkxd_: has joined #ruby
[00:40:29] voldemar: has joined #ruby
[00:45:27] allcentury: has joined #ruby
[00:48:54] voldemar: has joined #ruby
[00:50:08] Puffball: has joined #ruby
[00:54:18] dviola: has joined #ruby
[00:54:37] mfb2_: has joined #ruby
[00:56:13] dstrunk: has joined #ruby
[00:59:44] voldemar: has joined #ruby
[01:00:19] bkxd: has joined #ruby
[01:01:59] guacamole: has joined #ruby
[01:02:12] astronavt: has joined #ruby
[01:03:13] mfb2: has joined #ruby
[01:04:43] mfb2: has joined #ruby
[01:05:34] allcentury: has joined #ruby
[01:12:24] voldemar: has joined #ruby
[01:14:22] sspreitz: has joined #ruby
[01:18:40] cschneid: has joined #ruby
[01:21:16] csk157: has joined #ruby
[01:22:04] voldemar: has joined #ruby
[01:25:23] allcentury: has joined #ruby
[01:28:56] dstrunk: has joined #ruby
[01:29:02] herbmillerjr: has joined #ruby
[01:29:47] bkxd: has joined #ruby
[01:33:21] astronavt: has joined #ruby
[01:34:17] voldemar: has joined #ruby
[01:34:28] ramfjord: has joined #ruby
[01:35:22] bkxd: has joined #ruby
[01:37:41] ruby[bot]: dminuoso: I don't know anything about nesting
[01:37:48] dminuoso: ?module_nesting
[01:37:56] ruby[bot]: dminuoso: I don't know anything about module_nesting
[01:40:34] ramfjord: has joined #ruby
[01:49:42] voldemar: has joined #ruby
[01:49:59] ramfjord: has joined #ruby
[01:57:22] pilne: has joined #ruby
[01:58:22] skweek: has joined #ruby
[02:00:33] guacamole: has joined #ruby
[02:02:26] mjolnird: has joined #ruby
[02:02:53] voldemar: has joined #ruby
[02:05:33] ramfjord: has joined #ruby
[02:12:43] charliesome: has joined #ruby
[02:13:06] voldemar: has joined #ruby
[02:13:20] motstgo: has left #ruby: ("WeeChat 1.9")
[02:15:57] veeti: has joined #ruby
[02:16:02] mim1k: has joined #ruby
[02:17:06] workmad3: has joined #ruby
[02:19:39] voldemar: has joined #ruby
[02:19:50] guacamole: has joined #ruby
[02:20:24] bkxd_: has joined #ruby
[02:23:59] joxavi79: has joined #ruby
[02:23:59] eckhardt: has joined #ruby
[02:26:20] nicesignal: has joined #ruby
[02:30:44] cschneid: has joined #ruby
[02:31:49] joxavi79: has left #ruby: ()
[02:33:45] jackjackdripper1: has joined #ruby
[02:35:04] voldemar: has joined #ruby
[02:36:41] houhoulis: has joined #ruby
[02:37:33] charliesome: has joined #ruby
[02:40:53] gizmore: has joined #ruby
[02:42:11] apparition: has joined #ruby
[02:42:19] rouge: has joined #ruby
[02:44:23] elphe: has joined #ruby
[02:44:56] voldemar: has joined #ruby
[02:52:46] voldemar: has joined #ruby
[02:56:48] d^sh: has joined #ruby
[03:00:15] cadillac_: has joined #ruby
[03:02:37] voldemar: has joined #ruby
[03:05:09] sspreitz: has joined #ruby
[03:05:48] bkxd: has joined #ruby
[03:10:32] elphe: has joined #ruby
[03:12:22] jtdoncas_: has joined #ruby
[03:12:24] cdg: has joined #ruby
[03:14:43] cschneid: has joined #ruby
[03:16:53] voldemar: has joined #ruby
[03:17:01] csk157: has joined #ruby
[03:24:08] plexigras: has joined #ruby
[03:25:43] fyrril: has joined #ruby
[03:26:08] voldemar: has joined #ruby
[03:27:20] cadillac_: has joined #ruby
[03:31:58] shinnya: has joined #ruby
[03:33:40] mfb2: has joined #ruby
[03:35:05] jxv: has joined #ruby
[03:36:42] eckhardt: has joined #ruby
[03:40:09] voldemar: has joined #ruby
[03:44:32] kitsunenokenja: has joined #ruby
[03:46:56] ResidentBiscuit: has joined #ruby
[03:50:36] cdg: has joined #ruby
[03:50:57] voldemar: has joined #ruby
[04:00:28] tcopeland: ?constant_lookup
[04:00:28] ruby[bot]: https://cirw.in/blog/constant-lookup.html
[04:00:33] voldemar: has joined #ruby
[04:01:04] mfb2: has joined #ruby
[04:05:34] mfb2_: has joined #ruby
[04:10:29] mfb2: has joined #ruby
[04:13:39] voldemar: has joined #ruby
[04:15:22] mfb2: has joined #ruby
[04:16:29] mim1k: has joined #ruby
[04:17:16] meadmoon: has joined #ruby
[04:17:51] workmad3: has joined #ruby
[04:20:40] voldemar: has joined #ruby
[04:23:46] uZiel: has joined #ruby
[04:32:17] Jameser: has joined #ruby
[04:34:20] voldemar: has joined #ruby
[04:36:41] Jameser: has joined #ruby
[04:42:17] cschneid: has joined #ruby
[04:44:34] elphe: has joined #ruby
[04:45:04] ivanskie_: has joined #ruby
[04:46:04] voldemar: has joined #ruby
[04:46:36] cschneid: has joined #ruby
[04:47:41] cdg: has joined #ruby
[04:54:34] chouhoulis: has joined #ruby
[04:55:46] mson: has joined #ruby
[04:55:50] voldemar: has joined #ruby
[04:59:10] safetypin: has joined #ruby
[04:59:21] waveprop: has joined #ruby
[05:06:17] uZiel: has joined #ruby
[05:06:20] voldemar: has joined #ruby
[05:14:29] ivanskie_: has joined #ruby
[05:15:16] chocoelho: has joined #ruby
[05:17:22] voldemar: has joined #ruby
[05:19:16] csk157: has joined #ruby
[05:20:31] guardianx: has joined #ruby
[05:24:12] cschneid: has joined #ruby
[05:26:35] pb122: has joined #ruby
[05:31:49] voldemar: has joined #ruby
[05:32:50] ramfjord: has joined #ruby
[05:40:27] voldemar: has joined #ruby
[05:44:32] kapil___: has joined #ruby
[05:49:53] uZiel: has joined #ruby
[05:53:18] Exhiled: has joined #ruby
[05:53:43] voldemar: has joined #ruby
[06:03:19] voldemar: has joined #ruby
[06:04:52] millerti: has joined #ruby
[06:06:15] [DO]: has joined #ruby
[06:07:03] David_H_Smith: has joined #ruby
[06:09:15] voldemar: has joined #ruby
[06:17:00] mim1k: has joined #ruby
[06:18:27] workmad3: has joined #ruby
[06:18:29] voldemar: has joined #ruby
[06:21:22] csk157: has joined #ruby
[06:27:38] voldemar: has joined #ruby
[06:34:53] Exhiled: has joined #ruby
[06:42:30] voldemar: has joined #ruby
[06:52:10] voldemar: has joined #ruby
[07:04:51] rippa: has joined #ruby
[07:07:04] voldemar: has joined #ruby
[07:10:54] reber: has joined #ruby
[07:15:10] harfangk: has joined #ruby
[07:20:19] voldemar: has joined #ruby
[07:22:42] brodul: has joined #ruby
[07:26:14] ur5us: has joined #ruby
[07:31:05] voldemar: has joined #ruby
[07:34:06] guardianx: has joined #ruby
[07:38:49] Dimik: has joined #ruby
[07:39:11] voldemar: has joined #ruby
[07:43:02] Xiti`: has joined #ruby
[07:43:10] mjolnird: has joined #ruby
[07:44:47] muelleme: has joined #ruby
[07:44:50] waveprop: has joined #ruby
[07:47:24] jamesaxl: has joined #ruby
[07:49:56] voldemar: has joined #ruby
[07:52:59] iamarun: has joined #ruby
[07:59:54] Immune: has joined #ruby
[08:00:09] voldemar: has joined #ruby
[08:04:59] Jameser: has joined #ruby
[08:06:50] enterprisey: has joined #ruby
[08:08:56] voldemar: has joined #ruby
[08:15:04] nadir: has joined #ruby
[08:15:11] Jameser: has joined #ruby
[08:17:35] mim1k: has joined #ruby
[08:18:36] csk157: has joined #ruby
[08:19:06] workmad3: has joined #ruby
[08:21:35] voldemar: has joined #ruby
[08:28:37] Xano__: has joined #ruby
[08:29:14] jnyw: has joined #ruby
[08:29:45] voldemar: has joined #ruby
[08:35:35] aupadhye: has joined #ruby
[08:40:16] DoubleMalt: has joined #ruby
[08:44:17] voldemar: has joined #ruby
[08:44:52] lurkingninja: has joined #ruby
[08:49:19] cschneid: has joined #ruby
[08:52:40] iamarun: has joined #ruby
[08:52:45] stealth[]: has joined #ruby
[08:53:25] selim: has joined #ruby
[08:58:07] voldemar: has joined #ruby
[09:00:46] tomphp: has joined #ruby
[09:04:42] voldemar: has joined #ruby
[09:10:25] uZiel: has joined #ruby
[09:11:05] marr: has joined #ruby
[09:16:20] voldemar: has joined #ruby
[09:16:35] mim1k: has joined #ruby
[09:18:41] csk157: has joined #ruby
[09:24:06] cschneid: has joined #ruby
[09:24:42] voldemar: has joined #ruby
[09:25:10] workmad3: has joined #ruby
[09:27:13] bkxd: has joined #ruby
[09:30:40] csk157: has joined #ruby
[09:32:15] voldemar: has joined #ruby
[09:32:53] bkxd: has joined #ruby
[09:41:11] tomphp: has joined #ruby
[09:44:36] p0p0pr37_: has joined #ruby
[09:44:36] p0p0pr37_: has joined #ruby
[09:45:26] voldemar: has joined #ruby
[09:47:30] mohabaks: has joined #ruby
[09:47:58] chridal: has joined #ruby
[09:48:10] cdg: has joined #ruby
[09:58:38] mohabaks: has joined #ruby
[09:59:56] voldemar: has joined #ruby
[10:07:34] voldemar: has joined #ruby
[10:15:30] claudiuinberlin: has joined #ruby
[10:17:00] _sfiguser: has joined #ruby
[10:17:25] pdcawley: has joined #ruby
[10:21:26] pdcawley: has left #ruby: ()
[10:22:32] clemens3: has joined #ruby
[10:27:30] sameerynho: has joined #ruby
[10:31:19] mfb2: has joined #ruby
[10:36:20] p0p0pr37: has joined #ruby
[10:47:38] n13z: has joined #ruby
[10:57:19] mohabaks: has left #ruby: ("WeeChat 1.9")
[10:57:49] kphuanghk: has joined #ruby
[10:59:15] oetjenj: has joined #ruby
[11:00:02] oetjenj: has joined #ruby
[11:00:48] oetjenj: has joined #ruby
[11:01:34] oetjenj: has joined #ruby
[11:02:21] oetjenj: has joined #ruby
[11:03:07] oetjenj: has joined #ruby
[11:05:42] biberu: has joined #ruby
[11:11:28] mikecmpbll: has joined #ruby
[11:26:41] apparition: has joined #ruby
[11:26:55] c_nick: has joined #ruby
[11:28:07] c_nick: hi .. how to retrive only two columns of a specific table using Active Record- Active Relations (Ruby not rails) .. i can go Table.where(run_id: 1) but this will return me the whole row ..
[11:31:48] apeiros_: c_nick: even if you use AR outside of rails, it's still a part of rails and the people knowing about it are in #rubyonrails ;-)
[11:32:07] apeiros_: re two columns: you want pluck
[11:32:11] dminuoso: ACTION pokes apeiros_ with an underscore
[11:32:27] apeiros__: thanks, now I've got two of those pesky underscores!!!
[11:32:32] dminuoso: It's stuck.
[11:32:37] dminuoso: Did it hurt?
[11:32:46] c_nick: active record is a design pattern .. Arel is also not rails specific i suppose but I guess you are right most people are in rails on this
[11:32:59] dminuoso: AR is not a design pattern...
[11:33:02] dminuoso: Its a library.
[11:33:19] apeiros__: rails' AR is an implementation of the AR pattern :)
[11:33:38] apeiros__: because it's so unconfusing to name your lib after a pattern :D
[11:33:39] dminuoso: In this context I meant.
[11:33:53] apeiros__: ok. point taken.
[11:34:00] alex``: has joined #ruby
[11:34:08] apeiros: shooo, yo silly underscores, shoo
[11:34:22] dminuoso: If only I could name myself R.dminuoso
[11:34:33] dminuoso: Just to be able to fight you adequately
[11:34:37] apeiros: D.min(uosos)
[11:38:10] marr: has joined #ruby
[11:41:17] c_nick: apeiros, sorry one last question i know that we can do AR.pluck(:id) will give us [1,2,3] but what will AR.pluck(:id,:name) give us ?
[11:42:33] ruby[bot]: Why don't you try it and see for yourself?
[11:42:41] apeiros: you can use pry/irb to easily try stuff
[11:44:41] c_nick: i thought it required rails terminal
[11:45:00] c_nick: i dont have the environment set up on this machine .. only ruby ..
[11:45:01] apeiros: rails console builds up on irb (or pry, of you use pry-rails)
[11:45:27] c_nick: so how will the database linking work
[11:45:29] apeiros: hence plain irb doesn't need rails. and irb comes with a standard install of ruby.
[11:45:40] apeiros: the same way you do it in your non-rails app
[11:45:50] enterprisey: has joined #ruby
[11:46:05] c_nick: hmm ok i will try thanks
[11:46:55] apeiros: if you haven't actually yet used it outside of rails, ActiveRecord::Base.establish_connection is the method you're looking for
[11:47:26] apeiros: with pry, you can put a .pryrc in your project which contains code pry should execute at startup. ideal for stuff like establishing a connection f.ex.
[11:50:19] pdcawley: has joined #ruby
[11:50:43] nowhere_man: has joined #ruby
[11:52:13] DoubleMalt: has joined #ruby
[11:54:38] GodFather: has joined #ruby
[11:56:39] bkxd: has joined #ruby
[11:57:39] _aeris_: has joined #ruby
[11:59:49] bkxd: has joined #ruby
[12:01:35] GodFather: has joined #ruby
[12:04:04] bkxd: has joined #ruby
[12:06:11] jtdoncas_: has joined #ruby
[12:11:05] Azure|dc: has joined #ruby
[12:14:16] p0p0pr37: has joined #ruby
[12:14:16] p0p0pr37: has joined #ruby
[12:16:51] uZiel: has joined #ruby
[12:26:06] DoubleMalt: has joined #ruby
[12:26:20] iamarun: has joined #ruby
[12:29:20] kitsunenokenja: has joined #ruby
[12:31:34] d^sh: has joined #ruby
[12:31:57] s778: has joined #ruby
[12:34:15] voldemar: has joined #ruby
[12:34:21] bkxd: has joined #ruby
[12:37:32] iamarun: has joined #ruby
[12:39:15] goyox86: has joined #ruby
[12:39:23] voldemar: has joined #ruby
[12:39:59] elphe: has joined #ruby
[12:43:54] iamarun: has joined #ruby
[12:45:37] goyox86: has joined #ruby
[12:47:38] iamarun: has joined #ruby
[12:50:57] charliesome: has joined #ruby
[12:52:14] mfb2: has joined #ruby
[12:52:19] oetjenj: has joined #ruby
[12:53:53] TomyLobo: has joined #ruby
[12:54:12] muelleme: has joined #ruby
[12:59:12] oetjenj: has joined #ruby
[13:00:54] _aeris_: has joined #ruby
[13:08:22] synthroid: has joined #ruby
[13:20:50] konsolebox: has joined #ruby
[13:23:26] elphe: has joined #ruby
[13:23:32] rouge: has joined #ruby
[13:32:14] bkxd: has joined #ruby
[13:36:26] bkxd: has joined #ruby
[13:38:20] bkxd: has joined #ruby
[13:40:45] mson: has joined #ruby
[13:44:56] fabianfrz1: has joined #ruby
[13:47:45] cdg: has joined #ruby
[13:55:10] lexruee: has joined #ruby
[14:02:09] skweek: has joined #ruby
[14:07:27] jtdoncas_: has joined #ruby
[14:09:14] nicesignal: has joined #ruby
[14:10:53] uZiel: has joined #ruby
[14:11:09] growp: has joined #ruby
[14:13:21] Xano__: has joined #ruby
[14:18:48] millerti: has joined #ruby
[14:24:45] cschneid: has joined #ruby
[14:29:46] lexruee: has joined #ruby
[14:34:41] charliesome: has joined #ruby
[14:42:06] uZiel: has joined #ruby
[14:43:32] TomyLobo: i have a ruby data structure consisting of a nested hierarchy of hashes, arrays, strings, and numbers
[14:43:40] TomyLobo: think of it as a parsed JSON#
[14:44:05] c_nick: has joined #ruby
[14:44:06] TomyLobo: is there a way to operate on that using SQL or xpath or something like that?
[14:44:08] c_nick: has left #ruby: ()
[14:46:47] TomyLobo: kind of like dpath, but for ruby
[14:47:22] TomyLobo: (this is dpath: http://search.cpan.org/~schwigon/Data-DPath-0.57/lib/Data/DPath.pm )
[14:49:50] al2o3-cr: TomyLobo: maybe jsonpath; https://github.com/joshbuddy/jsonpath
[14:50:20] TomyLobo: just hit that as well. looks like it only works on json though ^^
[14:50:39] muelleme: has joined #ruby
[14:51:24] al2o3-cr: hmm, yeah it seems so
[14:51:30] nicesignal: has joined #ruby
[14:55:14] sepp2k: has joined #ruby
[14:59:27] biberu: has joined #ruby
[15:09:57] Lyubo1: has joined #ruby
[15:15:15] john__: has joined #ruby
[15:17:00] Lyubo1: has joined #ruby
[15:17:28] dviola: has joined #ruby
[15:21:01] jtdoncas_: has joined #ruby
[15:26:37] rouge: has joined #ruby
[15:28:36] cadillac_: has joined #ruby
[15:39:28] pifon: has joined #ruby
[15:52:44] millerti: has joined #ruby
[15:55:38] cschneid: has joined #ruby
[15:56:22] mtkd: has joined #ruby
[15:59:17] tvw: has joined #ruby
[16:01:17] miskatonic: has joined #ruby
[16:02:08] moei: has joined #ruby
[16:04:17] chocoelho: has joined #ruby
[16:04:23] KeyJoo: has joined #ruby
[16:04:50] xlegoman: has joined #ruby
[16:07:32] oetjenj: has joined #ruby
[16:11:53] cschneid: has joined #ruby
[16:14:53] TomyLobo: ffff cygwin ruby cannot glob on windows paths
[16:23:11] jtdoncas_: has joined #ruby
[16:30:19] jxv: has joined #ruby
[16:30:24] dinfuehr: has joined #ruby
[16:30:41] csk157: has joined #ruby
[16:35:05] mfb2: has joined #ruby
[16:40:57] kculpis: has joined #ruby
[16:41:41] al2o3-cr: how to do you correctly deal with structs within struct using the ruby stdlib fiddle?
[16:41:49] joast: has joined #ruby
[16:41:59] mfb2: has joined #ruby
[16:48:45] al2o3-cr: this might give you a better idea of what i'm on about: https://gist.github.com/gr33n7007h/651ef33ff52b573612473a375cf49085
[16:49:10] al2o3-cr: is this the desired way or is there something i'm missing
[16:49:15] houhoulis: has joined #ruby
[16:50:59] al2o3-cr: anyone know?
[16:51:29] al2o3-cr: i mean it somehow works, not sure why though/
[16:51:55] al2o3-cr: it seems hacky
[16:52:56] al2o3-cr: any help will be appreiciated. thanks in advance
[16:55:13] mcr1: has joined #ruby
[16:57:00] goyox86: has joined #ruby
[16:57:30] skweek: has joined #ruby
[17:00:37] goyox86: has left #ruby: ()
[17:00:53] jamesaxl: has joined #ruby
[17:00:59] goyox86: has joined #ruby
[17:04:05] mfb2: has joined #ruby
[17:14:39] clemens3: has joined #ruby
[17:16:00] oetjenj: has joined #ruby
[17:16:19] ctrlaltdev: has joined #ruby
[17:16:47] oetjenj: has joined #ruby
[17:17:33] oetjenj: has joined #ruby
[17:18:19] oetjenj: has joined #ruby
[17:19:53] marr: has joined #ruby
[17:24:10] jtdoncas_: has joined #ruby
[17:26:29] nowhere_man: has joined #ruby
[17:26:46] shoogz: has joined #ruby
[17:27:09] Dimik: has joined #ruby
[17:27:14] shoogz: has joined #ruby
[17:27:51] shoogz: has joined #ruby
[17:28:19] shoogz: has joined #ruby
[17:28:54] shoogz: has joined #ruby
[17:29:15] skweek: has joined #ruby
[17:29:29] shoogz: has joined #ruby
[17:33:17] armando: has joined #ruby
[17:33:27] silvermine: has joined #ruby
[17:34:12] orbyt_: has joined #ruby
[17:37:08] JStoker: has left #ruby: ("Leaving")
[17:37:52] houhoulis: has joined #ruby
[17:38:11] kinbiko: has joined #ruby
[17:43:22] goyox86: has joined #ruby
[17:46:50] Xiti: has joined #ruby
[18:05:06] cdg: has joined #ruby
[18:06:17] biberu: has joined #ruby
[18:09:55] odinsbane: has joined #ruby
[18:12:27] despai: has joined #ruby
[18:12:33] odinsbane: I am trying to install mysql2 gem with bundle. I get an error, that has a workaround here, https://github.com/brianmario/mysql2/pull/857 but I don't know how to update the header file and have bundle use that file.
[18:15:34] mfb2: has joined #ruby
[18:22:50] mfb2: has joined #ruby
[18:24:41] jtdoncas_: has joined #ruby
[18:29:55] meadmoon: has joined #ruby
[18:34:00] mfb2: has joined #ruby
[18:37:00] wilbert_: has joined #ruby
[18:38:52] RickHull: odinsbane: at a glance, I'm guessing the gem needs to be built as such
[18:39:06] RickHull: and you can tell bundler to use the patched .gem
[18:39:20] odinsbane: That sounds like exactly what I need.
[18:39:53] RickHull: if there is a fork or PR that you can checkout locally, you should be able to build the .gem locally
[18:39:56] RickHull: though that might be tricky
[18:40:02] RickHull: but totally doable
[18:40:15] konos5: has joined #ruby
[18:40:23] RickHull: and then you can host the .gem with e.g. geminabox, or just copy it to the target system
[18:40:25] odinsbane: It appears the fix is pretty trivial, just add an include into the header file.
[18:40:35] RickHull: and there is some way to tell bundler to use it, via `gem source` or whatever
[18:41:09] RickHull: and maybe someone else has built the .gem this way and is hosting it already
[18:42:27] RickHull: you'll have to dig into the specifics what the result of this ticket is to find the simplest path forward, but build-it-yourself is always a fallback
[18:42:53] KeyJoo: has joined #ruby
[18:42:58] lexruee: has joined #ruby
[18:43:33] mtkd: has joined #ruby
[18:46:53] cdg: has joined #ruby
[18:47:47] mfb2: has joined #ruby
[18:49:53] cdg: has joined #ruby
[18:49:56] impermanence: has joined #ruby
[18:53:19] sameerynho: has joined #ruby
[18:55:10] tomlukeywood: has joined #ruby
[18:55:57] ShekharReddy: has joined #ruby
[18:56:13] cdg: has joined #ruby
[18:58:57] nofxx: has joined #ruby
[19:05:58] kitsunenokenja: has joined #ruby
[19:07:52] xlegoman: has joined #ruby
[19:11:09] mohabaks: has joined #ruby
[19:19:04] odinsbane: If I want to update a gemfile to use rails 4.2.xx how would I do that? bundle update put it at 5.1.xx something.
[19:19:21] csk157: has joined #ruby
[19:20:14] RickHull: paste the Gemfile -- it should be quite straightforward to specify a version for the rails gem
[19:21:49] cschneid: has joined #ruby
[19:22:39] voldemar: has joined #ruby
[19:23:25] bkxd: has joined #ruby
[19:24:17] odinsbane: https://gist.github.com/anonymous/4f9fcd2e914a09197b2e2043102199c4
[19:25:35] csk157: has joined #ruby
[19:25:41] jtdoncas_: has joined #ruby
[19:27:37] n13z: has joined #ruby
[19:32:34] RickHull: hmmm, I don't see why bundler would update rails gem to 5.1
[19:32:52] RickHull: is that your Gemfile.lock ?
[19:33:10] RickHull: no, it wouldn't be
[19:33:35] voldemar: has joined #ruby
[19:34:16] RickHull: I would expect this line to pin rails gem to 3.2.22.5: gem 'rails', '3.2.22.5'
[19:34:21] odinsbane: No that is the gem file, before changing anything.
[19:34:35] odinsbane: Now I want to move to 4.2.XXX and see if I can get that working.
[19:34:56] jtdoncas_: has joined #ruby
[19:34:56] RickHull: running `bundle update` with that Gemfile should result in rails gem 3.2.22.5
[19:35:05] RickHull: what do you get in your Gemfile.lock?
[19:35:51] RickHull: for the record, I haven't used bundler in depth in many years -- so anyone else may have better and more specific advice
[19:36:20] guille-moe: has joined #ruby
[19:40:03] csk157: has joined #ruby
[19:40:31] bkxd: has joined #ruby
[19:40:48] odinsbane: I changed the rails version to be "~>4.2.0" and did a bundle update, so now it is installed as rails 4.2.10 and I think now I am just going through rails issues.
[19:42:25] voldemar: has joined #ruby
[19:47:36] bkxd: has joined #ruby
[19:53:38] voldemar: has joined #ruby
[19:54:02] jnollette: has joined #ruby
[19:55:04] skweek: has joined #ruby
[19:59:19] voldemar: has joined #ruby
[20:01:02] csk157_1: has joined #ruby
[20:06:49] sammi`: has joined #ruby
[20:07:06] mson: has joined #ruby
[20:07:41] elphe: has joined #ruby
[20:08:07] TomyLobo2: has joined #ruby
[20:08:07] tomlukeywood: has left #ruby: ()
[20:09:19] voldemar: has joined #ruby
[20:10:56] odinsbane: It's brutal, I can't install ruby 2.3 or lower because of openssl 1.1 with fedora. Rails 4.0 doesn't work with ruby 2.4.
[20:11:18] tvw: has joined #ruby
[20:11:44] dinfuehr: has joined #ruby
[20:13:07] RickHull: what's the openssl constraint?
[20:13:27] RickHull: there must be a workaround on fedora
[20:13:55] ShekharReddy: has joined #ruby
[20:14:59] odinsbane: Yes, I am just fumbling along with all of these versions, trying to find the best way to get things resolved.
[20:15:43] RickHull: have you tried a ruby version manager?
[20:16:13] odinsbane: I built ruby with a local copy of openssl, but then when I built gems they used the system version. No I didn't try rvm yet.
[20:16:13] RickHull: rvm / rbenv / chruby
[20:16:52] RickHull: what is the story with openssl 1.1 and fedora and ruby?
[20:17:48] bkxd: has joined #ruby
[20:18:51] odinsbane: If you try to build ruby 2.3.5 with fedora and the openssl-devel package installed, it will fail.
[20:18:53] wilbert_: has joined #ruby
[20:24:07] |ifei5good: has joined #ruby
[20:24:13] csk157_2: has joined #ruby
[20:24:34] voldemar: has joined #ruby
[20:27:11] kies: has joined #ruby
[20:27:19] darix: odinsbane: openssl 1.1 support hit 2.4 only
[20:27:28] darix: odinsbane: unless you have a really good reason to use 2.3
[20:27:30] darix: stick with 2.3
[20:27:47] darix: also what is wrong with their distro package? why not use that?
[20:29:45] xcesariox: has joined #ruby
[20:31:49] voldemar: has joined #ruby
[20:32:36] yqt: has joined #ruby
[20:35:51] mim1k: has joined #ruby
[20:36:23] wilbert_: has joined #ruby
[20:39:21] skweek: has joined #ruby
[20:41:01] voldemar: has joined #ruby
[20:43:49] bkxd: has joined #ruby
[20:44:40] RickHull: the reason against 2.4 is apparently rails 4.0 support
[20:46:35] guille-moe: has joined #ruby
[20:47:05] voldemar: has joined #ruby
[20:56:57] n13z: has joined #ruby
[20:57:42] bmurt: has joined #ruby
[20:58:48] tomphp: has joined #ruby
[21:00:14] sameerynho: has joined #ruby
[21:00:24] voldemar: has joined #ruby
[21:05:51] pdcawley: has joined #ruby
[21:08:34] voldemar: has joined #ruby
[21:10:12] chocoelho: has joined #ruby
[21:10:37] s778: has joined #ruby
[21:12:55] Flashynuff: has joined #ruby
[21:13:18] miskatonic: has joined #ruby
[21:20:30] voldemar: has joined #ruby
[21:22:28] yabbes: has joined #ruby
[21:23:48] mtkd: has joined #ruby
[21:25:04] bkxd_: has joined #ruby
[21:28:56] bkxd__: has joined #ruby
[21:29:11] GodFather: has joined #ruby
[21:29:31] Xano__: has joined #ruby
[21:30:12] shoogz: has joined #ruby
[21:30:47] shoogz: has joined #ruby
[21:31:23] bobo6565: has joined #ruby
[21:31:24] shoogz: has joined #ruby
[21:31:53] bozozo: has joined #ruby
[21:31:57] shoogz: has joined #ruby
[21:32:06] quobo: has joined #ruby
[21:32:30] shoogz: has joined #ruby
[21:32:50] voldemar: has joined #ruby
[21:32:59] shoogz: has joined #ruby
[21:33:51] cschneid: has joined #ruby
[21:44:11] bozozo: does anyone know what the underline character does in ruby?
[21:45:02] tomphp: has joined #ruby
[21:46:37] elphe: has joined #ruby
[21:47:36] havenwood: bozozo: do you mean in the context of irb, pry or another REPL?
[21:48:02] havenwood: bozozo: In REPLs it means last return value.
[21:48:05] bozozo: i meant in the ruby code itself
[21:48:28] bozozo: i heard it acts like a wildcard
[21:50:39] havenwood: bozozo: Hmm. Underscore often means private but I don't know of a context where it's a wildcard.
[21:51:14] bozozo: ok thanks. maybe I got bad info. That explains why I couldn't find it anywhere else
[21:51:15] havenwood: Prefixing with underscore generally means private or in Ruby it means an unused local variable.
[21:51:23] bozozo: thanks havenwood
[21:51:29] havenwood: bozozo: no prob!
[21:51:30] darix: RickHull: you want to update rails 4.0 anyway ... you know security ;) ... I doubt many people go through backporting fixes ;)
[21:52:25] bozozo: has left #ruby: ()
[21:54:32] RickHull: yeah, probably means 4.x and maybe updating the project for 5 isn't an option
[21:55:46] GodFather: has joined #ruby
[21:57:06] Ortuna: has joined #ruby
[21:58:41] darix: RickHull: I am kinda sure 4.2 works on 2.4
[21:58:53] darix: i think had my discourse package on 2.4 before they switched to rails 5
[21:59:16] RickHull: odinsbane left -- maybe he figured that out if so :)
[21:59:41] darix: just trying to understand it
[21:59:43] darix: and i mean
[21:59:46] darix: we are even on topic!
[22:00:47] raynold: has joined #ruby
[22:02:52] Ortuna: has left #ruby: ("WeeChat 1.9.1")
[22:03:51] lisita: has joined #ruby
[22:04:37] lisita: Anyone here interested in helping a beginner rubyist with a problem?
[22:11:48] apeiros: lisita: just ask
[22:13:48] bkxd: has joined #ruby
[22:23:59] lisita: apeiros: I'm trying to make a very simple program that's basically a REPL. You type 'up' and it runs system 'adb shell input keyevent somenumber'. Here's a simplified snip of what I'm doing https://paste.fedoraproject.org/paste/rtUwyB7mhlZ76ZlaAQHaDA . I'm wondering if I could use a function to do the same thing or something else that's less lines of the same code.
[22:29:44] TomyLobo2: lisita, why not make a bunch of shell aliases?
[22:30:07] TomyLobo2: instead of the ruby script, i mean
[22:30:45] joelwallis: has joined #ruby
[22:31:57] lisita: TomyLobo2: That does make more sense but I'm really really trying to use ruby in any silly way possible. :)
[22:32:13] RickHull: lisita: that form looks good to me
[22:32:15] joelwallis: Hi. I'm working on a new Jekyll theme, which are defined as a gem. However, I couldn't figure how the development workflow works. There's no enough documentation about it, and the Jekyll website just suggests that 'you can add dummy content to your template files' (WTF?)
[22:32:33] joelwallis: So, I'm looking into a way to declare a dependency as a local gem.
[22:32:54] joelwallis: Something like: gem: "jekyll-theme-mytheme", local: "../jekyll-theme-mytheme"
[22:32:58] joelwallis: Is it possible?
[22:33:22] joelwallis: I'm a experienced programmer, but completely new to the Ruby world
[22:33:42] RickHull: does this theme already exist as a gem?
[22:33:48] RickHull: and is this typical for jekyll themes?
[22:34:48] RickHull: lisita: you would probably want to make each command a function, with definitions above the loop. could be anonymous functions, a module, or a class
[22:35:52] RickHull: e.g. def up(*some_args_maybe); # do the thing; # handle failure; end
[22:36:55] joelwallis: RickHull: nope. I'm creating it from scratch (jekyll new-theme jekyll-theme-mytheme)
[22:36:57] RickHull: lisita: when calling system, call it with several args rather than a string with embedded whitespace. e.g. system(command, arg1, arg2 ...)
[22:38:02] joelwallis: it will be a pretty basic theme. I just can't figure how to visualize my code while working on it
[22:39:28] RickHull: and is it typical that jekyll themes are organized as gems?
[22:39:59] Flashynuff: hi there! i'm having some trouble running a ruby script as a rake task (context: the ruby koans). I'm really not sure what's going wrong since it was working perfectly fine on this computer a few months ago when I last worked on it. Right now it just gives me 'Command failed with status 127'.
[22:40:03] Flashynuff: Here's the Rakefile I'm trying to run https://hastebin.com/iverecijud.rb and the output of rake --trace https://hastebin.com/raw/bacujijexo. I haven't been able to find any solutions online, any ideas? I've already tried uninstalling/reinstalling rake
[22:40:04] RickHull: lisita: check the return value of system to know if the command failed. you might just print a helpful message and exit
[22:41:17] RickHull: this looks pretty weird to me: C:\Ruby23\bin;C:\Ruby23\DevKit\dk.rb path_to_enlightenment.rb
[22:41:47] RickHull: Flashynuff: ^
[22:42:19] RickHull: ok, looks like yes, jekyll themes are organized as gems https://jekyllrb.com/docs/themes/
[22:43:14] RickHull: or maybe that's just optional
[22:43:23] RickHull: oh, joelwallis left
[22:43:38] RickHull: anyways, I would suggest not getting into gem authorship for your first theme
[22:43:42] RickHull: if that's possible
[22:45:23] RickHull: Flashynuff: I would guess something is messed up in your PATH or whatever alias to the ruby.exe
[22:45:34] |ifei5g00d: has joined #ruby
[22:45:55] RickHull: instead of calling ruby.exe as expected, rake.exe wants to call C:\Ruby23\bin;C:\Ruby23\DevKit\dk.rb
[22:46:40] |ifei5good: has joined #ruby
[22:47:00] lisita: RickHull: You're very helpful, thanks for your suggestions. :)
[22:47:29] RickHull: Flashynuff: instead of `ruby arg1, arg2, ...` you can call `sh 'ruby', arg1, arg2 ...`
[22:47:49] RickHull: though I don't know if rake.exe likes that on windows, not sure
[22:48:08] Flashynuff: RickHull: oh man i think that was it
[22:49:38] mfb2: has joined #ruby
[22:49:44] Flashynuff: i had an environment variable called RUBY to store C:\Ruby23\bin;C:\Ruby23\DevKit\dk.rb so i could put in my PATH... I just renamed it to RUBY_PATH and it started working
[22:50:34] |ifei5g00d: has joined #ruby
[22:50:41] despai: has joined #ruby
[22:51:21] safetypin: has joined #ruby
[22:54:18] nowhere_man: has joined #ruby
[22:55:29] bkxd_: has joined #ruby
[22:56:09] c0ncealed: has joined #ruby
[22:58:39] lisita: What are good resources to learn the oop concepts of ruby? I saw this https://launchschool.com/books/oo_ruby, but I need something a bit more complete.
[22:59:03] bkxd: has joined #ruby
[23:00:33] gnufied: has joined #ruby
[23:01:16] Xano__: has joined #ruby
[23:10:20] despai: has joined #ruby
[23:12:10] kitsunenokenja: has joined #ruby
[23:13:18] ShalokShalom: has joined #ruby
[23:16:26] Asher: has joined #ruby
[23:16:55] joelwallis: has joined #ruby
[23:17:07] ResidentBiscuit: has joined #ruby
[23:19:50] voldemar: has joined #ruby
[23:27:53] goepsilongo: has joined #ruby
[23:28:03] mtkd: has joined #ruby
[23:31:09] voldemar: has joined #ruby
[23:34:51] elphe: has joined #ruby
[23:38:52] voldemar: has joined #ruby
[23:44:31] bkxd: has joined #ruby
[23:48:14] kinbiko: has joined #ruby
[23:49:08] mostlybadfly: has joined #ruby
[23:50:35] voldemar: has joined #ruby
[23:51:55] Puffball: has joined #ruby
[23:57:26] orbyt_: has joined #ruby
[23:58:55] sepp2k: has joined #ruby
[23:59:05] voldemar: has joined #ruby