« Back to channel list

#ruby - 27 February 2018

« Back 1 day Forward 1 day »
[00:00:04] maum: has joined #ruby
[00:00:44] arescorpio: has joined #ruby
[00:02:49] cschneid: has joined #ruby
[00:03:39] milardovich: has joined #ruby
[00:03:56] mostlybadfly: has joined #ruby
[00:04:25] dmitriy_: has joined #ruby
[00:08:00] chrisseaton: Does anyone know common patterns for chaining signal handlers in Ruby? Installing the old signal gives you the new one as a return value, so it's hard to capture the old one in the closure for the block that you install as the new one, in order to call it.
[00:09:23] dmitriy_: has joined #ruby
[00:10:48] A124: has joined #ruby
[00:11:19] alfiemax: has joined #ruby
[00:11:34] jenrzzz: has joined #ruby
[00:11:34] jenrzzz: has joined #ruby
[00:12:13] tcopeland: has joined #ruby
[00:12:32] white_lilies: has joined #ruby
[00:14:25] dmitriy_: has joined #ruby
[00:19:07] n0m4d1c: has joined #ruby
[00:19:25] dmitriy_: has joined #ruby
[00:19:55] cschneid: has joined #ruby
[00:20:41] n0m4d1c: has joined #ruby
[00:24:25] dmitriy_: has joined #ruby
[00:24:32] drewmcmillan: has joined #ruby
[00:29:26] dmitriy_: has joined #ruby
[00:34:24] dmitriy_: has joined #ruby
[00:38:35] A124: has joined #ruby
[00:39:26] dmitriy_: has joined #ruby
[00:40:17] milardovich: has joined #ruby
[00:44:25] dmitriy_: has joined #ruby
[00:45:12] alfiemax: has joined #ruby
[00:49:27] dmitriy_: has joined #ruby
[00:51:06] willmichael: has joined #ruby
[00:54:23] dmitriy_: has joined #ruby
[00:55:57] RougeR: has joined #ruby
[00:55:58] RougeR: has joined #ruby
[00:58:15] milardovich: has joined #ruby
[00:59:27] dmitriy_: has joined #ruby
[01:01:04] A124: has joined #ruby
[01:01:07] Dark_Arc: has joined #ruby
[01:02:23] alfiemax: has joined #ruby
[01:03:34] beauby: has joined #ruby
[01:03:37] coderphive: has joined #ruby
[01:03:40] coderphive: has joined #ruby
[01:04:27] dmitriy_: has joined #ruby
[01:05:00] coderphive: has joined #ruby
[01:06:04] biox: has joined #ruby
[01:09:28] dmitriy_: has joined #ruby
[01:12:24] darix: has joined #ruby
[01:13:21] Gnut: has joined #ruby
[01:14:25] dmitriy_: has joined #ruby
[01:17:27] Guest94287: has joined #ruby
[01:19:26] dmitriy_: has joined #ruby
[01:22:08] A124: has joined #ruby
[01:24:24] dmitriy_: has joined #ruby
[01:28:36] jenrzzz: has joined #ruby
[01:28:37] jenrzzz: has joined #ruby
[01:29:24] dmitriy_: has joined #ruby
[01:34:22] dmitriy_: has joined #ruby
[01:39:26] dmitriy_: has joined #ruby
[01:44:25] dmitriy_: has joined #ruby
[01:44:53] n0m4d1c: has joined #ruby
[01:45:23] eckhardt_: has joined #ruby
[01:47:50] ramfjord: has joined #ruby
[01:49:26] dmitriy_: has joined #ruby
[01:49:44] A124: has joined #ruby
[01:51:06] alfiemax: has joined #ruby
[01:52:45] halbbalda_: has joined #ruby
[01:53:52] ramfjord: has joined #ruby
[01:54:27] dmitriy_: has joined #ruby
[01:55:23] white_lilies: has joined #ruby
[01:55:37] A124: has joined #ruby
[01:59:26] dmitriy_: has joined #ruby
[01:59:49] ramfjord: has joined #ruby
[02:04:15] gizmore|2: has joined #ruby
[02:04:26] dmitriy_: has joined #ruby
[02:07:00] ramfjord: has joined #ruby
[02:09:26] dmitriy_: has joined #ruby
[02:10:27] netherwolfe: has joined #ruby
[02:11:10] A124: has joined #ruby
[02:13:09] darkhanb: has joined #ruby
[02:13:47] ramfjord: has joined #ruby
[02:14:26] dmitriy_: has joined #ruby
[02:19:44] ramfjord: has joined #ruby
[02:19:50] white_lilies: has joined #ruby
[02:23:06] A124: has joined #ruby
[02:25:44] ramfjord: has joined #ruby
[02:26:17] white_lilies: has joined #ruby
[02:27:58] guacamole: has joined #ruby
[02:32:13] white_lilies: has joined #ruby
[02:39:03] shortdudey123: has joined #ruby
[02:41:24] A124: has joined #ruby
[02:44:07] SynSynack: has joined #ruby
[02:45:45] dinfuehr: has joined #ruby
[02:45:56] pastorinni: has joined #ruby
[02:46:45] alfiemax: has joined #ruby
[02:47:42] A124: has joined #ruby
[02:50:00] dmitriy_: has joined #ruby
[02:54:00] pastorinni: has joined #ruby
[02:55:01] dmitriy_: has joined #ruby
[02:55:51] bougyman: has joined #ruby
[02:56:43] redlegion: has joined #ruby
[02:59:32] white_lilies: has joined #ruby
[02:59:35] alfiemax: has joined #ruby
[03:00:03] dmitriy_: has joined #ruby
[03:01:10] A124: has joined #ruby
[03:03:48] beauby: has joined #ruby
[03:04:36] ResidentBiscuit: has joined #ruby
[03:05:04] dmitriy_: has joined #ruby
[03:07:59] white_lilies: has joined #ruby
[03:12:28] LT^: has joined #ruby
[03:16:36] alfiemax: has joined #ruby
[03:16:48] A124: has joined #ruby
[03:18:35] Coldblackice: has joined #ruby
[03:23:21] white_lilies: has joined #ruby
[03:23:28] strigonLeader: has joined #ruby
[03:24:30] jottr: has joined #ruby
[03:26:50] cdg: has joined #ruby
[03:29:19] anjen: has joined #ruby
[03:33:20] jenrzzz: has joined #ruby
[03:33:20] jenrzzz: has joined #ruby
[03:34:04] sammi`_: has joined #ruby
[03:37:04] white_lilies: has joined #ruby
[03:37:22] coderphive: has joined #ruby
[03:37:36] alfiemax: has joined #ruby
[03:39:03] jottr: has joined #ruby
[03:39:58] luminousnine: has joined #ruby
[03:40:16] cdg: has joined #ruby
[03:41:10] jenrzzz: has joined #ruby
[03:41:10] jenrzzz: has joined #ruby
[03:42:35] bigblind: has joined #ruby
[03:43:37] white_lilies: has joined #ruby
[03:44:21] waski37: has joined #ruby
[03:44:27] _aeris_: has joined #ruby
[03:49:50] jottr: has joined #ruby
[03:49:50] white_lilies: has joined #ruby
[03:53:16] govg: has joined #ruby
[03:53:55] A124: has joined #ruby
[03:55:43] jottr: has joined #ruby
[03:57:30] guacamole: has joined #ruby
[03:57:30] guacamole: has joined #ruby
[03:58:57] milardovich: has joined #ruby
[04:01:48] jottr: has joined #ruby
[04:02:39] szu: has joined #ruby
[04:02:41] white_lilies: has joined #ruby
[04:04:16] shakes: has joined #ruby
[04:12:31] szu: has joined #ruby
[04:13:13] LT^: has joined #ruby
[04:13:48] LT^: has joined #ruby
[04:15:30] white_lilies: has joined #ruby
[04:17:19] jottr: has joined #ruby
[04:17:55] ski7777: has joined #ruby
[04:20:31] jenrzzz: has joined #ruby
[04:20:31] jenrzzz: has joined #ruby
[04:21:13] alfiemax: has joined #ruby
[04:23:51] nickjj_: has joined #ruby
[04:25:06] jottr: has joined #ruby
[04:25:11] duracrisis: has joined #ruby
[04:25:15] trautwein: has joined #ruby
[04:26:34] duracrisis: has joined #ruby
[04:28:00] bigblind: has joined #ruby
[04:29:29] gix-: has joined #ruby
[04:29:53] white_lilies: has joined #ruby
[04:31:41] jottr: has joined #ruby
[04:42:22] white_lilies: has joined #ruby
[04:44:28] A124: has joined #ruby
[04:45:49] jottr: has joined #ruby
[04:52:30] white_lilies: has joined #ruby
[04:53:25] jottr: has joined #ruby
[04:53:30] alfiemax: has joined #ruby
[04:58:45] Asher: has joined #ruby
[04:59:34] white_lilies: has joined #ruby
[05:04:08] beauby: has joined #ruby
[05:05:19] iLtc_: has joined #ruby
[05:06:32] iLtc: has joined #ruby
[05:06:40] iLtc_: has left #ruby: ()
[05:07:40] jottr: has joined #ruby
[05:08:57] howdoi: has joined #ruby
[05:10:10] cschneid: has joined #ruby
[05:10:13] white_lilies: has joined #ruby
[05:16:27] alfiemax: has joined #ruby
[05:18:05] white_lilies: has joined #ruby
[05:18:30] jottr: has joined #ruby
[05:22:31] cschneid: has joined #ruby
[05:24:50] white_lilies: has joined #ruby
[05:29:33] jamesaxl: has joined #ruby
[05:31:11] mtkd: has joined #ruby
[05:33:49] jottr: has joined #ruby
[05:35:51] white_lilies: has joined #ruby
[05:37:48] alfiemax: has joined #ruby
[05:47:11] chengguyun: has joined #ruby
[05:47:26] jottr: has joined #ruby
[05:47:31] white_lilies: has joined #ruby
[05:47:34] anisha: has joined #ruby
[05:53:02] nofxx: has joined #ruby
[05:55:01] alfiemax: has joined #ruby
[05:57:16] mtkd: has joined #ruby
[06:00:37] white_lilies: has joined #ruby
[06:01:10] jottr: has joined #ruby
[06:03:37] beauby: has joined #ruby
[06:09:04] jottr: has joined #ruby
[06:15:27] white_lilies: has joined #ruby
[06:17:05] alfiemax: has joined #ruby
[06:18:22] jottr: has joined #ruby
[06:21:52] A124: has joined #ruby
[06:22:34] bigblind: has joined #ruby
[06:23:31] rippa: has joined #ruby
[06:23:44] white_lilies: has joined #ruby
[06:24:44] rrutkowski: has joined #ruby
[06:25:32] jottr: has joined #ruby
[06:26:13] oezgu: has joined #ruby
[06:29:22] rrutkowski: has joined #ruby
[06:30:31] PaulCapestany: has joined #ruby
[06:31:17] white_lilies: has joined #ruby
[06:31:48] bhaak: has joined #ruby
[06:32:09] oezgu: good morning hope you guys are doing well. have a great day!
[06:32:15] jottr: has joined #ruby
[06:33:49] dionysus69: has joined #ruby
[06:36:30] LocaMocha: has joined #ruby
[06:38:11] kapil___: has joined #ruby
[06:38:54] white_lilies: has joined #ruby
[06:40:08] rrutkowski: has joined #ruby
[06:42:37] ramfjord: has joined #ruby
[06:43:22] jottr: has joined #ruby
[06:44:12] rrutkowski: has joined #ruby
[06:45:21] alfiemax: has joined #ruby
[06:45:21] white_lilies: has joined #ruby
[06:55:20] jottr: has joined #ruby
[06:56:22] white_lilies: has joined #ruby
[07:04:00] alfiemax: has joined #ruby
[07:07:24] white_lilies: has joined #ruby
[07:07:34] jottr: has joined #ruby
[07:07:49] dminuoso: Mon_Ouie: Heya. Would you consider `class Proc; def [](*args); return args.reduce(self) { |l, r| l.(r) }; end; end` a poor mans push/enter implementation? I'm thinking about the potential side effects this could have if monkey patched globally.
[07:08:25] shortdudey123: has joined #ruby
[07:16:29] rrutkowski: has joined #ruby
[07:17:58] white_lilies: has joined #ruby
[07:19:10] rrutkowski: has joined #ruby
[07:19:57] Strepsils: has joined #ruby
[07:22:25] guardianx: has joined #ruby
[07:22:26] jottr: has joined #ruby
[07:23:20] jnyw: has joined #ruby
[07:23:26] Bit10: has joined #ruby
[07:26:32] Mon_Ouie: Looks like it wouldn't work with lambdas that take multiple arguments, would it?
[07:27:23] Mon_Ouie: >> class Proc; def [](*args); return args.reduce(self) { |l, r| l.(r) }; end; end; lambda { |x, y| x + }[1, 2]
[07:27:24] ruby[bot]: Mon_Ouie: # => /tmp/execpad-0f2a7abc6abf/source-0f2a7abc6abf:2: syntax error, unexpected '}' ...check link for more (https://eval.in/963450)
[07:28:07] Mon_Ouie: Bad copy paste, but it's going to introduce errors if any code uses Proc#[] on lambdas
[07:29:04] dminuoso: Mon_Ouie: I guess Ill better do an explicit push and loop over slices of the args then. I didn't realize this because I made it a habit to curry every lambda.
[07:29:42] andikr: has joined #ruby
[07:29:55] dminuoso: rest args is going to be an interesting problem with this.
[07:31:05] darkhanb: has joined #ruby
[07:32:35] n008f4g_: has joined #ruby
[07:33:06] white_lilies: has joined #ruby
[07:34:20] rrutkowski: has joined #ruby
[07:34:35] mtkd: has joined #ruby
[07:38:08] jottr: has joined #ruby
[07:41:21] zenspider_: has joined #ruby
[07:41:53] white_lilies: has joined #ruby
[07:45:33] zenspider_: has joined #ruby
[07:47:41] zenspider: has joined #ruby
[07:50:12] alfiemax: has joined #ruby
[07:50:54] jottr: has joined #ruby
[07:53:42] white_lilies: has joined #ruby
[07:56:10] tAn: has joined #ruby
[07:59:20] KeyJoo: has joined #ruby
[07:59:41] milardovich: has joined #ruby
[08:00:11] conta: has joined #ruby
[08:03:25] konsolebox: has joined #ruby
[08:04:51] jottr: has joined #ruby
[08:04:56] qba73: has joined #ruby
[08:05:06] vondruch: has joined #ruby
[08:05:28] cschneid: has joined #ruby
[08:05:29] white_lilies: has joined #ruby
[08:12:26] clemens3: has joined #ruby
[08:12:50] jottr: has joined #ruby
[08:14:14] KeyJoo: has joined #ruby
[08:14:54] schneider: has joined #ruby
[08:16:24] TomyWork: has joined #ruby
[08:17:47] bestel: has joined #ruby
[08:18:01] bigblind: has joined #ruby
[08:19:57] white_lilies: has joined #ruby
[08:20:11] jottr: has joined #ruby
[08:20:16] jaruga: has joined #ruby
[08:22:23] sidx64: has joined #ruby
[08:24:49] AxelAlex: has joined #ruby
[08:25:02] claudiuinberlin: has joined #ruby
[08:25:53] bestel: Who can describe why I have received [[1, 42, 42], [1, 42, 42], [1, 42, 42]] instead [[1],[1, 42],[1, 42]] https://gist.github.com/bestwebua/fc04348f38322144c38f5f3272a7184e
[08:27:08] mtkd: has joined #ruby
[08:30:09] aufi: has joined #ruby
[08:32:47] faces: has joined #ruby
[08:33:52] jottr: has joined #ruby
[08:34:08] aupadhye: has joined #ruby
[08:34:40] white_lilies: has joined #ruby
[08:39:25] Cork: bestel: replace result = Array.new(3, [1]) with result = Array.new(3) {|a| [1] }
[08:39:41] Cork: bestel: you create one array with the value 1 and assign it as the member of each position of the array
[08:39:54] Cork: so when you change position 1 you change all positions as it is the same array
[08:40:24] Cork: think of it as child = [1]; result = [&child,&child&child]
[08:40:37] Cork: (though that isn't ruby code)
[08:41:30] bestel: Thank you so much, Cork! Cheers!
[08:41:35] Cork: bestel: it is http://ruby-doc.org/core-2.2.0/Array.html#method-c-new-label-Common+gotchas
[08:41:40] Cork: except an array instead of hash
[08:42:29] ramfjord: has joined #ruby
[08:43:23] amatas: has joined #ruby
[08:45:02] burgestrand: has joined #ruby
[08:45:44] amatas: has left #ruby: ()
[08:46:22] jottr: has joined #ruby
[08:47:26] Cork: anyone know of a good way to convert ["D83C", "DF13"] to "🌓"?
[08:49:25] white_lilies: has joined #ruby
[08:49:45] href: et /W 34
[08:51:22] amatas: has joined #ruby
[08:53:02] amatas: has joined #ruby
[08:54:36] amatas: has joined #ruby
[08:56:14] white_lilies: has joined #ruby
[08:58:27] jottr: has joined #ruby
[09:02:06] white_lilies: has joined #ruby
[09:03:18] bkxd: has joined #ruby
[09:04:30] mikecmpbll: has joined #ruby
[09:05:28] jottr: has joined #ruby
[09:06:53] kapil___: has joined #ruby
[09:09:37] schneider: is there a way to update yaml file without removing the comments change styling?
[09:09:39] InfinityFye: has joined #ruby
[09:10:09] schneider: like I found something similar for JS https://github.com/mohsen1/yawn-yaml but can't find anything for ruby
[09:10:17] cdg: has joined #ruby
[09:10:21] RougeR: has joined #ruby
[09:10:22] RougeR: has joined #ruby
[09:10:45] jenrzzz: has joined #ruby
[09:10:45] jenrzzz: has joined #ruby
[09:10:55] white_lilies: has joined #ruby
[09:11:23] bkxd: has joined #ruby
[09:11:38] cdg_: has joined #ruby
[09:13:00] Ryzokuken: has joined #ruby
[09:13:15] tomphp: has joined #ruby
[09:13:18] jottr: has joined #ruby
[09:14:25] qba73: has joined #ruby
[09:17:02] beauby: has joined #ruby
[09:20:51] white_lilies: has joined #ruby
[09:22:57] jottr: has joined #ruby
[09:23:10] InfinityFye: has left #ruby: ("Leaving")
[09:24:03] phaul: has joined #ruby
[09:27:05] wojnar: has joined #ruby
[09:29:11] tvw: has joined #ruby
[09:29:31] alfiemax: has joined #ruby
[09:29:47] jottr: has joined #ruby
[09:30:47] hay: has joined #ruby
[09:31:07] white_lilies: has joined #ruby
[09:31:58] dminuoso: https://gist.github.com/tociyuki/3936873
[09:32:03] dminuoso: Ugh. That's the BNF for YAML.
[09:32:10] dminuoso: Im disgusted.
[09:32:42] hay: hi all.. I am migrating an old Ruby app to a new server... I am totally new with Ruby and after some magic with gems and their installs and updates the app currently stops with ActiveRecord::ConnectionNotEstablished... I have the correct settings set in database.yml, where should I look further on?
[09:37:46] tomphp: has joined #ruby
[09:41:45] white_lilies: has joined #ruby
[09:43:32] Fusselgesicht: has joined #ruby
[09:44:51] jottr: has joined #ruby
[09:46:49] AJA4350: has joined #ruby
[09:48:14] white_lilies: has joined #ruby
[09:49:42] modin: has joined #ruby
[09:50:36] ghoti: has joined #ruby
[09:51:23] Serpent7776: has joined #ruby
[09:56:11] jottr: has joined #ruby
[09:56:59] Beams: has joined #ruby
[09:58:50] yebyen: has joined #ruby
[09:59:10] tomphp: has joined #ruby
[10:01:17] white_lilies: has joined #ruby
[10:07:41] jottr: has joined #ruby
[10:10:24] white_lilies: has joined #ruby
[10:10:56] qba73: has joined #ruby
[10:21:18] jottr: has joined #ruby
[10:21:34] mtkd: has joined #ruby
[10:22:01] trautwein: hay: you may want to ask over in #RubyOnRails or maybe a look at the Rails Guides could help http://edgeguides.rubyonrails.org/configuring.html#configuring-a-database
[10:23:21] Mike11: has joined #ruby
[10:23:42] white_lilies: has joined #ruby
[10:26:03] Sembei: has joined #ruby
[10:26:55] willmichael: has joined #ruby
[10:29:44] marr: has joined #ruby
[10:30:53] milardovich: has joined #ruby
[10:32:56] jottr: has joined #ruby
[10:36:11] GodFather: has joined #ruby
[10:38:29] white_lilies: has joined #ruby
[10:40:06] jottr: has joined #ruby
[10:42:19] ramfjord: has joined #ruby
[10:48:44] white_lilies: has joined #ruby
[10:48:51] vondruch: has joined #ruby
[10:49:07] drewmcmillan: has joined #ruby
[10:50:26] jottr: has joined #ruby
[10:50:33] qba73: has joined #ruby
[10:51:57] vondruch: has joined #ruby
[10:54:03] xfbs: has joined #ruby
[10:54:43] xfbs: has joined #ruby
[10:55:53] white_lilies: has joined #ruby
[10:56:59] Sylario: has joined #ruby
[11:00:34] jottr: has joined #ruby
[11:03:00] Bit10: wew I definitely need to hide part/join messages for this channel
[11:05:58] white_lilies: has joined #ruby
[11:08:23] bigblind: has joined #ruby
[11:11:43] dminuoso: Bit10: Get weechat, use smart filter - be happy.
[11:11:52] ruby[bot]: dminuoso: I don't know anything about next
[11:11:55] dminuoso: ACTION kicks ruby[bot]
[11:12:56] jottr: has joined #ruby
[11:13:06] milardovich: has joined #ruby
[11:13:59] alfiemax: has joined #ruby
[11:17:13] mandanguita: has joined #ruby
[11:17:34] mandanguita: why is that when I paste code in the irb it prints some files in the current folder?
[11:19:17] white_lilies: has joined #ruby
[11:21:32] jottr: has joined #ruby
[11:22:44] dminuoso: mandanguita: What do you mean?
[11:24:23] jamesaxl: has joined #ruby
[11:26:14] zleap: has joined #ruby
[11:26:55] nowhere_man: has joined #ruby
[11:27:10] cdg: has joined #ruby
[11:27:59] white_lilies: has joined #ruby
[11:28:23] wimplash: has joined #ruby
[11:28:39] ldnunes: has joined #ruby
[11:29:54] sidx64: has joined #ruby
[11:31:54] jottr: has joined #ruby
[11:34:46] anisha: has joined #ruby
[11:37:20] apparition: has joined #ruby
[11:38:07] white_lilies: has joined #ruby
[11:38:28] schneider: has joined #ruby
[11:39:28] deadnull: has joined #ruby
[11:40:57] sidx64: has joined #ruby
[11:41:05] jaruga: has joined #ruby
[11:41:06] jottr: has joined #ruby
[11:42:25] qba73: has joined #ruby
[11:43:03] anisha_: has joined #ruby
[11:44:26] KeyJoo: has joined #ruby
[11:46:44] bigblind: has joined #ruby
[11:47:20] harmaahylje: has joined #ruby
[11:48:43] tomphp: has joined #ruby
[11:51:58] white_lilies: has joined #ruby
[11:52:14] jottr: has joined #ruby
[11:52:51] Psybur: has joined #ruby
[11:56:53] beauby: has joined #ruby
[11:58:04] tomphp: has joined #ruby
[11:59:29] jottr: has joined #ruby
[12:00:47] anjen: has joined #ruby
[12:01:17] devil_tux: has joined #ruby
[12:02:21] tvw: has joined #ruby
[12:02:26] Cavallari: has joined #ruby
[12:02:59] white_lilies: has joined #ruby
[12:04:20] alex``: has joined #ruby
[12:06:23] burgestrand: has joined #ruby
[12:07:23] mostlybadfly: has joined #ruby
[12:07:31] workmad3: has joined #ruby
[12:07:38] jottr: has joined #ruby
[12:09:58] oezgu: has joined #ruby
[12:12:10] white_lilies: has joined #ruby
[12:12:41] Papierkorb: has joined #ruby
[12:15:43] drewmcmillan: has joined #ruby
[12:16:47] qba73: has joined #ruby
[12:18:54] jottr: has joined #ruby
[12:19:42] white_lilies: has joined #ruby
[12:19:55] apeiros: has joined #ruby
[12:24:03] shinnya: has joined #ruby
[12:25:17] jottr: has joined #ruby
[12:26:30] oezgu: has joined #ruby
[12:26:44] mtkd: has joined #ruby
[12:27:33] Papierkorb: has left #ruby: ("Konversation terminated!")
[12:28:14] tomphp: has joined #ruby
[12:28:24] white_lilies: has joined #ruby
[12:31:58] alfiemax: has joined #ruby
[12:36:41] jottr: has joined #ruby
[12:36:42] qba73: has joined #ruby
[12:39:16] white_lilies: has joined #ruby
[12:39:49] daemonwrangler: has joined #ruby
[12:40:36] houhoulis: has joined #ruby
[12:44:33] kspencer: requiring 'rubygems/package' is less taboo in a gem than regular 'rubygems' correct?
[12:46:40] darix: kspencer: hm?
[12:48:41] kspencer: i'm trying make a script that downloads a tar.gz file and unzips it for you and rubygems/package is the only updated non-shell-out that I can find, and I want to make sure I'm not breaking the 'don't require rubygems in code' bit
[12:49:29] jsaak: has joined #ruby
[12:49:32] adlerdias: has joined #ruby
[12:49:33] wojnar: http://guides.rubygems.org/patterns/#requiring_rubygems
[12:49:39] apeiros: the "don't require rubygems in code" bit is related to "it's no longer necessary because it's already loaded"
[12:49:49] apeiros: if you explicitly need parts from it, it's fine
[12:50:12] jottr: has joined #ruby
[12:50:41] apeiros: (or rather it was related to "people who don't want to use rubygems should not be forced by your ill-gotten assumption that just blindly loading rubygems was fine")
[12:51:15] apeiros: but I'm not quite sure why you'd load rubygems to do http stuff. that's what net/http is for.
[12:51:31] white_lilies: has joined #ruby
[12:51:51] kspencer: so basically no need to require, just use Gem::Package::TarReader
[12:52:20] apeiros: again: if you explicitly need parts of rubygems, then DO require it
[12:52:55] kspencer: that answers my question, thanks a bunch
[12:53:06] apeiros: still: but I'm not quite sure why you'd load rubygems to do http stuff. that's what net/http is for.
[12:56:00] kspencer: no, in the script I've already downloaded the tar.gz, but I'm unzipping it after its downloaded
[12:59:14] Asher: has joined #ruby
[12:59:40] jottr: has joined #ruby
[13:05:29] iLtc: has joined #ruby
[13:05:35] white_lilies: has joined #ruby
[13:06:44] jottr: has joined #ruby
[13:07:52] alfiemax: has joined #ruby
[13:10:52] GhiL1: has joined #ruby
[13:10:53] willmichael: has joined #ruby
[13:11:21] avelldiroll: has joined #ruby
[13:15:26] bkxd: has joined #ruby
[13:16:24] anisha__: has joined #ruby
[13:17:56] GhiL1: Hello, I'am trying to parse a firewall conf like this one. Does anybodoy have an idea about the regex to use to return me the content of the 2 main sections in the file. I tested things like /(config.*^end$)?/m but no success...https://gist.github.com/anonymous/7d2f6fa6cf6a4e53815b761c4fec4988
[13:18:46] dminuoso: I absolutely love the frequency of how people starting with "I am trying to parse", and a few words later you see "regex"
[13:19:41] white_lilies: has joined #ruby
[13:20:10] GhiL1: I'm sorry about that
[13:21:13] GhiL1: I've got other option than using regex, but it's qui ugly
[13:21:28] synthroid: has joined #ruby
[13:21:58] dminuoso: GhiL1: You cant describe a recursive grammar with regular expressions.
[13:22:26] apeiros: GhiL1: StringScanner could be useful for your purpose
[13:22:36] apeiros: note: the require is against the convention 'strscan'
[13:23:52] aguestuser: has joined #ruby
[13:24:31] qba73: has joined #ruby
[13:25:01] GhiL1: I think I dont need recursion here, as I just need the 2 section that begins/ends with "config...end" (not the nested on) . I'll check for stringscanner thx :)..
[13:25:48] apeiros: (got distracted) if you want to rely on indents, then: conf.scan(/^config .*?^end$/m)
[13:28:28] GhiL1: @apeiros: so many thx, that match exactly the number of section I've got in my file :)
[13:28:41] white_lilies: has joined #ruby
[13:31:28] leitz: has joined #ruby
[13:33:25] beauby: has joined #ruby
[13:34:49] roshanavand: has joined #ruby
[13:38:33] white_lilies: has joined #ruby
[13:41:19] ruby-lang101: has joined #ruby
[13:43:19] ramfjord: has joined #ruby
[13:44:58] kke: i wonder why the monitormixin module documentation examples call things with self like "self.synchronize do .." http://ruby-doc.org/stdlib-2.5.0/libdoc/monitor/rdoc/MonitorMixin.html
[13:45:25] bmurt: has joined #ruby
[13:47:11] memo1: has joined #ruby
[13:47:38] kke: also i wonder why my class with include MonitorMixin gives undefined method `lock' for nil:NilClass when trying to synchronize { ... }
[13:48:26] alfiemax: has joined #ruby
[13:49:03] kke: ah, maybe because i don't call super in initialize
[13:49:23] ltt: has joined #ruby
[13:49:42] kke: yes, that is why.
[13:49:44] Cork: if i have a string with for example "n" in it, is there an easy way to get "\n"?
[13:49:54] white_lilies: has joined #ruby
[13:50:19] kke: string.gsub('n', '\n')
[13:50:27] apeiros: kke: because you call lock on nil.
[13:50:53] dminuoso: kke: Make a PR fixing the documentation to be more rubyistic.
[13:51:00] dminuoso: (regarding the `self`)
[13:51:06] apeiros: kke: '\n' is not a newline…
[13:51:22] apeiros: or rather, '\n' != "\n"
[13:51:25] dminuoso: kke: and also remove the () because writing parens is so 2008.
[13:51:34] k0mpa: has joined #ruby
[13:51:34] jamesaxl_05: has joined #ruby
[13:51:58] kke: cork didn't speak anything about linefeeds, his quotes were for style :)
[13:52:42] apeiros: kke: yeah, no.
[13:53:00] apeiros: the moment values change, it's no longer style.
[13:53:24] dminuoso: kke: This is why I generally use backticks for quoting code.
[13:53:29] dminuoso: `puts "foo"`
[13:53:48] dminuoso: Less confusing than 'puts "Foo"' or "puts \"foo\""
[13:55:08] cdg: has joined #ruby
[13:55:35] Cork: kke: the question is about how to parse escape characters
[13:56:04] Cork: i'm trying to convert powershell escape characters (`n => \n, `r => \r and so on)
[13:56:59] apeiros: Cork: then your question was poorly phrased IMO
[13:57:25] Cork: i've already made the parser of the escape character
[13:57:34] apeiros: there's no built-in map you can use. so best way is probably to provide a manual Hash with the mappings and then gsub.
[13:57:35] Cork: so i get "r", "n", "'" and so on
[13:57:55] white_lilies: has joined #ruby
[13:57:56] Cork: as it can be basically any ascii character that would be horrible...
[13:58:12] apeiros: Cork: https://github.com/apeiros/literal_parser/blob/master/lib/literal_parser.rb#L132-L146
[13:58:20] jeffreylevesque: has joined #ruby
[13:59:08] apeiros: and https://github.com/apeiros/literal_parser/blob/master/lib/literal_parser.rb#L331 is the place where the doublequoted string is mapped
[13:59:27] drewmcmillan: has joined #ruby
[14:03:52] kspencer: hmm so far I'm just getting GzipFile errors when I try to unzip the tar.gz file
[14:06:15] kspencer: https://gist.github.com/IotaSpencer/d9da017b7d41df781df3c833bc0e43cf
[14:08:05] kspencer: I've tried with both 'w' and 'wb' in the open() block
[14:09:15] cschneid: has joined #ruby
[14:09:54] jcalla: has joined #ruby
[14:10:10] willmichael: has joined #ruby
[14:10:31] ltt: has joined #ruby
[14:12:03] white_lilies: has joined #ruby
[14:12:56] ltt: has joined #ruby
[14:14:38] dminuoso: kspencer: Do you believe the concrete exception, exception messages as well as the stacktrace ruby provides you with are just for aethestics?
[14:15:00] n0m4d1c: has joined #ruby
[14:15:05] dminuoso: And that `GzipFile "errors"` could possibly be only one concrete thing?
[14:15:35] kspencer: I can download the file otherwise just fine, but once I try it with ruby it breaks
[14:16:35] kspencer: if I download it via chrome it works fine extracting, but downloading via ruby with the code i have is erroring out with that such error
[14:17:30] n0m4d1c_: has joined #ruby
[14:18:25] kspencer: but there you go, stacktrace is added to the gist
[14:18:41] qba73: has joined #ruby
[14:22:02] dminuoso: kspencer: The point is just that your error description was not very useful.
[14:23:54] kspencer: would you rather I have said 'I am getting Zlib::GzipFile::Error' when x
[14:24:26] dminuoso: kspencer: The gist as it is would have been good. The first thing I notice is that the stack trace does not line up.
[14:24:42] kspencer: nor does it in the code because of bundler
[14:24:45] dminuoso: kspencer: The URI looks public, can you isolate a testcase that I can run it myself?
[14:24:50] white_lilies: has joined #ruby
[14:25:21] dminuoso: You probably just have to name what TAG I should insert. The rest I can do myself
[14:25:32] cdg: has joined #ruby
[14:26:05] Mike11: has joined #ruby
[14:26:25] dminuoso: kspencer: And to explain, the information that the file was not in gzip format is what you didn't mention. "GzipFile error" could mean anything from "Could not find native extension", "Failed to launch missiles", "Only works on sundays" or "Permission denied" if you catch my drift.
[14:26:47] kspencer: although v1.4.0, so that the gsub works
[14:27:07] dminuoso: kspencer: Can you give me your Gemfile?
[14:27:31] kspencer: i can give you my gemspec instead
[14:27:34] dminuoso: That'll work
[14:27:42] dminuoso: Oh wait, zlib is stdlib isnt it
[14:28:21] dminuoso: kspencer: which platform?
[14:28:43] kspencer: what are you running atm
[14:28:48] alfiemax: has joined #ruby
[14:29:03] dminuoso: kspencer: Doesn't matter, I just want to know what particular file you have issues with.
[14:29:10] dminuoso: So the platform you are using is what matters.
[14:29:50] redlegion: has joined #ruby
[14:30:09] lupine: has joined #ruby
[14:31:00] kspencer: dminuoso: gist updated with gemspec
[14:31:29] dminuoso: kspencer: Curious. It seems like you are getting junk back from github.
[14:31:44] dminuoso: kspencer: Comment out the lines below, execute it and inspect the file you are getting back... with a text editor.
[14:31:54] mtkd: has joined #ruby
[14:32:34] oezgu: has joined #ruby
[14:32:35] Ryzokuken: has joined #ruby
[14:32:51] dminuoso: kspencer: and by "junk" I mean "not what you think it is"
[14:33:35] kspencer: by below you mean the unzipping and just open the file with a text editor
[14:33:43] dminuoso: kspencer: No, edit it with a text editor.
[14:34:05] dminuoso: kspencer: your mistake is just.. well blame the terminology of http
[14:34:50] dminuoso: kspencer: Browsers handle redirects, Net::HTTP apparently does not
[14:34:52] dminuoso: ¯\_(ツ)_/¯
[14:35:56] kspencer: I feared that, thanks for pointing me in the right direction
[14:36:01] white_lilies: has joined #ruby
[14:38:15] dminuoso: kspencer: http://ruby-doc.org/stdlib-2.5.0/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-Following+Redirection
[14:39:33] Cavallari: has joined #ruby
[14:40:06] pastorinni: has joined #ruby
[14:48:48] beauby: has joined #ruby
[14:51:45] white_lilies: has joined #ruby
[14:55:06] alfiemax: has joined #ruby
[15:00:56] riotjoe: has joined #ruby
[15:02:01] synthroid: has joined #ruby
[15:03:08] krawchyk: has joined #ruby
[15:06:28] qba73: has joined #ruby
[15:08:57] deathwishdave: has joined #ruby
[15:09:21] willmichael: has joined #ruby
[15:10:52] apeiros: good morning deathwishdave
[15:11:26] deathwishdave: just curious, does anyone here use conventions for naming their non source related files? for example proposals? do you use versions? dates? spaces? underscores?
[15:12:06] apeiros: dates/versions -> that's what I've got git for
[15:12:19] wojnar: underscores when no version needed
[15:12:28] apeiros: but yes, I have no_git/, documentation/, development/ as toplevel dirs in most projects
[15:12:40] apeiros: no_git obviously does not end up in git and is quite often utter chaos
[15:12:49] apeiros: documentation is for all prosa (non-api) docs
[15:13:12] apeiros: also potentially related 3rd party systems (if the project interfaces with other systems)
[15:14:07] apeiros: development is information relevant to, well, the further development of the project and contains all information which doesn't fit in the other dirs. structure is project dependent.
[15:14:21] deathwishdave: i only use git for stuff directly required by the application
[15:14:40] apeiros: nope. everything relevant for developing a project.
[15:14:51] apeiros: and/or maintaining and/or understanding.
[15:15:25] apeiros: I hate nothing more than having to consult secondary sources. "for this stuff, look there". give it on git clone already. don't make me run around.
[15:15:42] apeiros: (there are of course exceptions)
[15:16:32] cschneid: has joined #ruby
[15:16:33] white_lilies: has joined #ruby
[15:16:55] deathwishdave: I produce a lot of presentations for directors, and have project management related files. I never considered including them in the repo
[15:17:18] netherwolfe: has joined #ruby
[15:17:23] canton7: at work, we have a document control system and process, so documentation is kept outside the repo (but still somewhere project-specific)
[15:18:03] deathwishdave: canton7 indeed, we use confluence.
[15:18:37] deathwishdave: thanks guys, food for thought
[15:18:52] aufi_: has joined #ruby
[15:19:40] Rapture: has joined #ruby
[15:20:53] maufart__: has joined #ruby
[15:22:29] vondruch: has joined #ruby
[15:26:58] vondruch: has joined #ruby
[15:27:29] alfiemax: has joined #ruby
[15:27:46] rwb: has joined #ruby
[15:28:08] cabotto: has joined #ruby
[15:28:10] white_lilies: has joined #ruby
[15:30:41] krawchyk: has joined #ruby
[15:33:51] coderphive: has joined #ruby
[15:33:52] ahmetkapikiran: has joined #ruby
[15:34:32] cschneid: has joined #ruby
[15:35:24] bkxd: has joined #ruby
[15:36:38] ltt: has joined #ruby
[15:37:25] jerryskye: has joined #ruby
[15:40:56] white_lilies: has joined #ruby
[15:41:46] tomphp: has joined #ruby
[15:42:42] desperek: has joined #ruby
[15:44:30] riotjones: has joined #ruby
[15:45:36] dionysus69: has joined #ruby
[15:45:40] soc42: has joined #ruby
[15:50:15] white_lilies: has joined #ruby
[15:50:51] John_Ivan: has joined #ruby
[15:50:51] John_Ivan: has joined #ruby
[15:58:19] tomphp: has joined #ruby
[16:00:36] phaul: has joined #ruby
[16:01:44] ltt: has joined #ruby
[16:02:34] white_lilies: has joined #ruby
[16:02:47] oezgu: has joined #ruby
[16:03:40] bmurt: has joined #ruby
[16:04:06] Psybur_: has joined #ruby
[16:08:13] Mike11: has joined #ruby
[16:09:06] alfiemax: has joined #ruby
[16:10:13] karapetyan: has joined #ruby
[16:12:48] stairmast0r: has joined #ruby
[16:14:02] drewmcmillan: has joined #ruby
[16:14:53] krawchyk: has joined #ruby
[16:16:20] Rr4sT: has joined #ruby
[16:17:48] white_lilies: has joined #ruby
[16:19:47] krawchyk: has joined #ruby
[16:22:31] regedit: has joined #ruby
[16:23:42] cognoscente: has joined #ruby
[16:24:24] coderphive: has joined #ruby
[16:25:16] white_lilies: has joined #ruby
[16:26:19] cschneid: has joined #ruby
[16:26:28] ltt: has joined #ruby
[16:27:02] oleo: has joined #ruby
[16:33:56] troys: has joined #ruby
[16:36:25] n0m4d1c: has joined #ruby
[16:36:34] mtkd: has joined #ruby
[16:36:41] guille-moe: has joined #ruby
[16:38:21] bkxd: has joined #ruby
[16:38:35] darix: apeiros: so git clone should also check out 3rd party library docs?:P
[16:38:39] krawchyk: has joined #ruby
[16:39:32] white_lilies: has joined #ruby
[16:39:50] synthroid: has joined #ruby
[16:41:05] apeiros: darix: that's not what I meant
[16:41:38] apeiros: even though I have cases where I do that, and would do it again
[16:41:45] darix: evil apeiros
[16:41:52] apeiros: no. sanity retaining apeiros.
[16:42:19] apeiros: example case: 3rd party api is non-public. changes are unannounced. old versions of api docs are not accessible.
[16:42:37] apeiros: not having the old docs available to compare is just a nice recipe for insanity.
[16:42:57] apeiros: welcome to enterprise
[16:43:14] apeiros: or rather: welcome to development, enterprise edition
[16:43:50] schneider: has joined #ruby
[16:45:41] white_lilies: has joined #ruby
[16:46:21] bkxd: has joined #ruby
[16:48:45] g-: has joined #ruby
[16:49:40] krawchyk: has joined #ruby
[16:51:19] white_lilies: has joined #ruby
[16:52:29] jottr_: has joined #ruby
[16:56:52] krawchyk: has joined #ruby
[16:57:35] eckhardt_: has joined #ruby
[16:57:48] xfbs: has joined #ruby
[16:57:49] white_lilies: has joined #ruby
[16:59:44] krawchyk: has joined #ruby
[17:00:19] schneider: has joined #ruby
[17:01:46] tomphp: has joined #ruby
[17:02:12] akkad: has joined #ruby
[17:03:31] rodney__: has joined #ruby
[17:05:00] rodney__: has left #ruby: ()
[17:05:00] rodney__: has joined #ruby
[17:05:16] rodney__: has left #ruby: ()
[17:06:58] [Butch]: has joined #ruby
[17:07:48] zaider: has joined #ruby
[17:08:54] beauby: has joined #ruby
[17:09:34] nowhere_man: has joined #ruby
[17:10:02] oezgu: has joined #ruby
[17:12:04] pedahzur: has joined #ruby
[17:12:54] white_lilies: has joined #ruby
[17:15:25] dviola: has joined #ruby
[17:15:56] drewmcmillan: has joined #ruby
[17:16:05] jcarl43: has joined #ruby
[17:18:10] Dimik: has joined #ruby
[17:18:18] guacamole: has joined #ruby
[17:18:19] guacamole: has joined #ruby
[17:23:04] white_lilies: has joined #ruby
[17:26:53] pastorinni: has joined #ruby
[17:27:18] tomphp: has joined #ruby
[17:27:27] despai: has joined #ruby
[17:29:07] beauby: has joined #ruby
[17:29:59] apeiros: has joined #ruby
[17:31:11] guille-moe: has joined #ruby
[17:31:20] guacamole: has joined #ruby
[17:31:20] guacamole: has joined #ruby
[17:31:32] darkhanb: has joined #ruby
[17:32:50] tomphp: has joined #ruby
[17:37:16] white_lilies: has joined #ruby
[17:40:20] soniya29: has joined #ruby
[17:40:21] soniya29_: has joined #ruby
[17:41:28] clemens3: has joined #ruby
[17:41:39] conta: has joined #ruby
[17:43:38] beauby: has joined #ruby
[17:44:09] zmo: how could I do the following python pattern in ruby with Hashes? `some_func(**dict(zip(['param1', 'param2'], ['value1', 'value2'])))`
[17:44:46] zmo: in other words, I got two arrays : ['param1', 'param2'] and ['value1', 'value2']
[17:44:55] apeiros: zmo: how about instead of expressing it in a foreign language, you express it in input + desired output + a short description of what you want it to do?
[17:45:30] zmo: and I want to pass it as arguments to a function so that function is called like `some_func(param1: :value1, param2: :value2)`
[17:46:00] zmo: well, sorry, consider I said: [:param1, :param2] and [:value1, :value2]]
[17:46:09] zmo: s/]]/]/
[17:46:39] apeiros: >> def foo(a:, b:); p a_is: a, b_is: b; end; names = [:a, :b]; vals = [10,20]; foo(**names.zip(vals).to_h)
[17:46:40] ruby[bot]: apeiros: # => {:a_is=>10, :b_is=>20} ...check link for more (https://eval.in/963821)
[17:46:42] zmo: apeiros - well I intended to do both :)
[17:46:52] apeiros: zmo: yupp. noticed. well done :)
[17:47:00] apeiros: I prematurely complained
[17:47:13] zmo: apeiros - no worries, I would have said the same ;-)
[17:47:25] apeiros: note: names is required to be an array of symbols. if it's not, you have to map it to symbols first.
[17:47:28] zmo: that's actually pretty close to the python way :)
[17:48:05] apeiros: and the arguments have to be keyword-args. else the way to do it changes.
[17:48:06] zmo: yup, it's only symbols (which is one nicety that ruby has and python doesn't :) )
[17:48:53] zmo: apeiros - I really file I just asked the question : "what's the english word for the french word 'restaurant' ?" ^^
[17:49:19] zmo: s/file/feel/
[17:50:23] jottr_: has joined #ruby
[17:59:40] white_lilies: has joined #ruby
[18:04:54] n008f4g_: has joined #ruby
[18:05:22] eckhardt_: has joined #ruby
[18:07:43] BTRE: has joined #ruby
[18:08:14] white_lilies: has joined #ruby
[18:08:55] beauby: has joined #ruby
[18:09:22] alfiemax: has joined #ruby
[18:10:02] mikecmpbll: has joined #ruby
[18:10:49] zmo: BTW, I just noticed
[18:11:09] zmo: thank you apeiros 🙌
[18:12:30] apeiros: appreciated. yw.
[18:12:50] amatas_: has joined #ruby
[18:15:13] havenwood: I'm enjoying playing with gRPC from Ruby!
[18:15:46] havenwood: I'm curious about this gem: https://github.com/bigcommerce/gruf
[18:15:46] drewmcmillan: has joined #ruby
[18:17:14] Psybur: has joined #ruby
[18:18:01] dionysus69: has joined #ruby
[18:18:09] Cavallari: has joined #ruby
[18:20:47] jottr_: has joined #ruby
[18:20:54] white_lilies: has joined #ruby
[18:23:58] bkxd: has joined #ruby
[18:25:15] darix: havenwood: gitlab seems to be using that library a lot now
[18:25:41] havenwood: darix: Gruf? Nice, that's really interesting.
[18:25:58] ams__: has joined #ruby
[18:26:35] darix: i think they use it to talk to their go based services
[18:26:48] havenwood: darix: We use gRPC at Square too, across a bunch of langs.
[18:27:04] havenwood: Google of course uses it broadly.
[18:27:22] darix: ACTION patched the grpc gem build to use the system libgrpc
[18:27:30] darix: to avoid building all the intree stuff
[18:27:36] havenwood: ahh, interesting
[18:27:38] bmurt: has joined #ruby
[18:28:07] darix: havenwood: it isnt much magic https://build.opensuse.org/package/view_file/home:darix:apps/rubygem-grpc/grpc-1.4.5_use_system_libs.patch?expand=1
[18:28:29] havenwood: gotta love removing code!
[18:28:31] darix: before rpmifying the gem i patch the extconf.rb and then package the modified gem
[18:29:00] darix: an upstream-able version would query and ENV var and then skip the intree copy
[18:29:06] darix: like nokogiri does
[18:29:11] darix: but this was good enough for me
[18:29:23] darix: because the whole intree copy stuff was horribly broken
[18:29:52] darix: so woot woot
[18:31:19] goodgotogo: has joined #ruby
[18:33:10] tAn: has joined #ruby
[18:33:57] amatas_: has joined #ruby
[18:34:34] white_lilies: has joined #ruby
[18:34:37] krawchyk: has joined #ruby
[18:35:08] tAn: has joined #ruby
[18:37:22] scrptKID000: has joined #ruby
[18:38:33] milardovich: has joined #ruby
[18:40:36] lupine: has joined #ruby
[18:41:39] sameerynho: has joined #ruby
[18:41:39] mtkd: has joined #ruby
[18:44:03] \void: has joined #ruby
[18:44:15] ramfjord: has joined #ruby
[18:46:27] mcr: has joined #ruby
[18:47:50] white_lilies: has joined #ruby
[18:48:05] talntid2: has joined #ruby
[18:48:40] talntid2: currently I am getting this back in my json: "id":{"$oid":"5a6b61c54eae35d5330004f0"}} . ... i'd like that to just be "id":"5a6b61c54eae35d5330004f0"
[18:48:48] talntid2: any ideas how this is happening?
[18:49:28] talntid2: i tried appt[:id] = appt.id.to_s .... didnt seem to do anything
[18:53:12] apeiros: talntid2: what's your current code?
[18:54:13] talntid2: oh, this is a thing with mongoid it seems
[18:54:24] talntid2: https://stackoverflow.com/questions/18646223/ruby-model-output-id-as-object-oid/20813109
[18:54:39] talntid2: here is my exact issue, just need to find a way to implement that fix.... as opposed to changing the whole app
[18:54:50] talntid2: not a ruby person
[18:55:22] dmitriy_: has joined #ruby
[18:56:11] talntid2: where would i put that "module" block?
[18:56:18] bkxd: has joined #ruby
[18:58:03] talntid2: oh i see. anywhere.
[18:59:21] white_lilies: has joined #ruby
[19:00:25] dmitriy_: has joined #ruby
[19:05:24] dmitriy_: has joined #ruby
[19:06:22] cdg: has joined #ruby
[19:07:24] krawchyk: has joined #ruby
[19:10:24] jottr_: has joined #ruby
[19:10:24] dmitriy_: has joined #ruby
[19:11:12] white_lilies: has joined #ruby
[19:14:48] phaul: has joined #ruby
[19:15:27] dmitriy_: has joined #ruby
[19:17:36] jottr_: has joined #ruby
[19:18:59] mcr: has joined #ruby
[19:20:27] dmitriy_: has joined #ruby
[19:20:36] white_lilies: has joined #ruby
[19:21:12] tycoon177: has joined #ruby
[19:22:23] tycoon177: does anyone here know of a way to alter the headers on a rack-cache cache-control header? I want to put `, immutable` on the end of some assets that will NEVER change. If they change, the url is changed with it to reflect any changes
[19:22:38] minimalism: has joined #ruby
[19:23:28] willmichael: has joined #ruby
[19:25:28] dmitriy_: has joined #ruby
[19:30:25] dmitriy_: has joined #ruby
[19:31:14] white_lilies: has joined #ruby
[19:31:44] conta: has joined #ruby
[19:32:49] jottr_: has joined #ruby
[19:33:06] tAn: has joined #ruby
[19:33:24] sammi`: has joined #ruby
[19:33:46] Vapez: has joined #ruby
[19:35:27] dmitriy_: has joined #ruby
[19:36:01] mtkd: has joined #ruby
[19:37:25] memo1: has joined #ruby
[19:39:50] white_lilies: has joined #ruby
[19:40:26] dmitriy_: has joined #ruby
[19:40:48] kies: has joined #ruby
[19:42:08] jottr_: has joined #ruby
[19:45:25] dmitriy_: has joined #ruby
[19:49:39] alfiemax_: has joined #ruby
[19:50:23] nowhere_man: has joined #ruby
[19:50:28] dmitriy_: has joined #ruby
[19:51:07] jottr_: has joined #ruby
[19:51:52] schneider: has joined #ruby
[19:53:46] white_lilies: has joined #ruby
[19:55:20] ahmetkapikiran: has joined #ruby
[19:55:32] dmitriy_: has joined #ruby
[19:56:06] ledestin: has joined #ruby
[19:57:04] tAn: has joined #ruby
[19:59:55] jottr_: has joined #ruby
[20:00:29] dmitriy_: has joined #ruby
[20:01:32] schneider: has joined #ruby
[20:01:54] despai: has joined #ruby
[20:02:35] kies: has joined #ruby
[20:05:04] alfiemax: has joined #ruby
[20:05:27] dmitriy_: has joined #ruby
[20:06:22] wnd: has joined #ruby
[20:08:06] white_lilies: has joined #ruby
[20:08:40] jenrzzz: has joined #ruby
[20:09:11] beauby: has joined #ruby
[20:09:24] Guest2: has joined #ruby
[20:10:15] schneider: has joined #ruby
[20:10:27] dmitriy_: has joined #ruby
[20:10:31] nadir: has joined #ruby
[20:10:53] jottr_: has joined #ruby
[20:12:15] tvw: has joined #ruby
[20:13:40] nowhereman_: has joined #ruby
[20:14:34] sidx64_: has joined #ruby
[20:15:27] dmitriy_: has joined #ruby
[20:17:46] schneider: has joined #ruby
[20:19:53] bmurt: has joined #ruby
[20:20:03] jenrzzz: has joined #ruby
[20:20:03] jenrzzz: has joined #ruby
[20:20:29] dmitriy_: has joined #ruby
[20:21:16] jottr_: has joined #ruby
[20:22:02] alfiemax: has joined #ruby
[20:25:29] dmitriy_: has joined #ruby
[20:27:01] phaul: has joined #ruby
[20:27:08] jottr_: has joined #ruby
[20:27:11] Lytol: has joined #ruby
[20:27:18] guacamole: has joined #ruby
[20:27:22] milardovich: has joined #ruby
[20:27:46] Mike11: has joined #ruby
[20:30:29] dmitriy_: has joined #ruby
[20:30:58] darix: tycoon177: the response header object
[20:31:04] darix: https://github.com/rtomayko/rack-cache/blob/master/lib/rack/cache/response.rb
[20:31:32] darix: https://github.com/rtomayko/rack-cache/blob/master/lib/rack/cache/response.rb#L74
[20:32:23] tycoon177: darix: i'm not super familiar with rails, and i know this isn't the rails channel, but do you know how to access the rack-cache middleware?
[20:32:35] tycoon177: er, i'm not super familiar with middleware*
[20:35:28] dmitriy_: has joined #ruby
[20:37:22] jottr_: has joined #ruby
[20:37:44] workmad3: has joined #ruby
[20:37:49] n0m4d1c: has joined #ruby
[20:38:53] karapetyan: has joined #ruby
[20:39:29] alfiemax: has joined #ruby
[20:40:32] dmitriy_: has joined #ruby
[20:40:58] zleap: has joined #ruby
[20:43:30] jottr_: has joined #ruby
[20:44:13] coderphive: has joined #ruby
[20:45:27] gingray: has joined #ruby
[20:45:29] dmitriy_: has joined #ruby
[20:47:43] claudiuinberlin: has joined #ruby
[20:49:42] conta: has joined #ruby
[20:50:29] dmitriy_: has joined #ruby
[20:52:04] alfiemax: has joined #ruby
[20:55:08] jottr_: has joined #ruby
[20:55:29] dmitriy_: has joined #ruby
[20:55:42] jenrzzz: has joined #ruby
[20:55:42] jenrzzz: has joined #ruby
[20:58:18] cdg: has joined #ruby
[20:58:52] Xiti: has joined #ruby
[21:00:07] milardovich: has joined #ruby
[21:00:30] dmitriy_: has joined #ruby
[21:01:19] bkxd: has joined #ruby
[21:02:06] GinoMan: has joined #ruby
[21:02:55] phaul: has joined #ruby
[21:05:33] dmitriy_: has joined #ruby
[21:05:49] jottr_: has joined #ruby
[21:07:37] conta: has joined #ruby
[21:08:15] despai: has joined #ruby
[21:08:25] cdg_: has joined #ruby
[21:08:51] alfiemax: has joined #ruby
[21:10:51] dmitriy_: has joined #ruby
[21:12:02] jottr_: has joined #ruby
[21:15:32] dmitriy_: has joined #ruby
[21:16:05] dionysus69: has joined #ruby
[21:18:28] memo1: has joined #ruby
[21:18:32] jottr_: has joined #ruby
[21:20:00] guacamole: has joined #ruby
[21:20:00] guacamole: has joined #ruby
[21:20:12] nowhereman_: has joined #ruby
[21:20:35] dmitriy_: has joined #ruby
[21:23:54] zapata: has joined #ruby
[21:24:27] mniip: has joined #ruby
[21:25:26] g-: anyone know how to make Net::SFTP not block on download, so I can stream the file?
[21:25:34] dmitriy_: has joined #ruby
[21:26:02] alfiemax: has joined #ruby
[21:26:49] jottr_: has joined #ruby
[21:29:52] pastorinni: has joined #ruby
[21:30:34] dmitriy_: has joined #ruby
[21:35:35] dmitriy_: has joined #ruby
[21:37:32] mniip: has joined #ruby
[21:38:14] jottr_: has joined #ruby
[21:40:35] dmitriy_: has joined #ruby
[21:41:55] jenrzzz: has joined #ruby
[21:45:08] jottr_: has joined #ruby
[21:45:28] bkxd: has joined #ruby
[21:45:32] dmitriy_: has joined #ruby
[21:47:44] dajackal: has joined #ruby
[21:50:34] dmitriy_: has joined #ruby
[21:52:04] guacamole: has joined #ruby
[21:52:04] guacamole: has joined #ruby
[21:53:32] RougeR: has joined #ruby
[21:54:23] jottr_: has joined #ruby
[21:55:33] dmitriy_: has joined #ruby
[21:57:10] shinnya: has joined #ruby
[21:59:30] joe_from_maine: has joined #ruby
[22:00:28] alfiemax: has joined #ruby
[22:00:30] dmitriy_: has joined #ruby
[22:01:39] joe_from_maine: has joined #ruby
[22:02:00] jottr_: has joined #ruby
[22:02:46] eckhardt_: has joined #ruby
[22:02:52] jenrzzz: has joined #ruby
[22:02:52] jenrzzz: has joined #ruby
[22:05:30] dmitriy_: has joined #ruby
[22:08:39] marr: has joined #ruby
[22:09:18] milardov_: has joined #ruby
[22:09:33] ramfjord: has joined #ruby
[22:10:32] dmitriy_: has joined #ruby
[22:11:23] jottr_: has joined #ruby
[22:15:33] dmitriy_: has joined #ruby
[22:17:33] alfiemax: has joined #ruby
[22:20:30] dmitriy_: has joined #ruby
[22:25:26] jottr_: has joined #ruby
[22:25:34] dmitriy_: has joined #ruby
[22:26:15] phaul: has joined #ruby
[22:26:24] jenrzzz: has joined #ruby
[22:28:30] crankharder: has joined #ruby
[22:30:33] dmitriy_: has joined #ruby
[22:33:15] guacamole: has joined #ruby
[22:33:15] guacamole: has joined #ruby
[22:35:35] dmitriy_: has joined #ruby
[22:38:32] workmad3: has joined #ruby
[22:40:10] jottr_: has joined #ruby
[22:40:28] karapetyan: has joined #ruby
[22:40:33] dmitriy_: has joined #ruby
[22:45:35] dmitriy_: has joined #ruby
[22:47:49] jottr_: has joined #ruby
[22:50:33] dmitriy_: has joined #ruby
[22:54:13] eckhardt_: has joined #ruby
[22:54:32] faces: has joined #ruby
[22:55:32] dmitriy_: has joined #ruby
[22:59:32] jottr_: has joined #ruby
[22:59:58] g-: has left #ruby: ()
[23:00:33] dmitriy_: has joined #ruby
[23:00:56] ramfjord: has joined #ruby
[23:06:24] bkxd: has joined #ruby
[23:13:17] rwb: has joined #ruby
[23:18:15] dmitriy_: has joined #ruby
[23:18:45] riotjones: has joined #ruby
[23:22:00] webhat: has joined #ruby
[23:23:17] dmitriy_: has joined #ruby
[23:27:17] nowhere_man: has joined #ruby
[23:28:37] dmitriy_: has joined #ruby
[23:30:58] riotjones: has joined #ruby
[23:32:01] houhoulis: has joined #ruby
[23:35:33] bkxd: has joined #ruby
[23:38:09] alfiemax: has joined #ruby
[23:49:56] Sammitch: has joined #ruby
[23:50:25] Sammitch: `require 'net/http'` returns false. how dumb am I?
[23:55:26] alfiemax: has joined #ruby