« Back to channel list

#ruby - 27 September 2017

« Back 1 day Forward 1 day »
[00:00:42] jrabe: has joined #ruby
[00:06:23] ramfjord: has joined #ruby
[00:10:54] tolerablyjake: has joined #ruby
[00:15:13] tAn: has joined #ruby
[00:19:55] ramfjord: has joined #ruby
[00:33:58] theunraveler: has joined #ruby
[00:37:22] milardovich: has joined #ruby
[00:46:13] noobineer: has joined #ruby
[00:54:00] Alina-malina: has joined #ruby
[01:06:35] gizmore: has joined #ruby
[01:10:25] milardovich: has joined #ruby
[01:10:32] cschneid_: has joined #ruby
[01:12:33] nankyoku_: has joined #ruby
[01:15:18] sumobob: has joined #ruby
[01:21:11] _whitelogger: has joined #ruby
[01:39:14] mim1k: has joined #ruby
[01:39:22] orbyt_: has joined #ruby
[01:41:30] ramfjord: has joined #ruby
[01:45:43] brw_: has joined #ruby
[01:47:10] brw: has joined #ruby
[01:52:29] tAn: has joined #ruby
[01:53:45] uZiel: has joined #ruby
[01:57:25] orbyt_: has joined #ruby
[01:57:52] d^sh: has joined #ruby
[02:04:48] chouhoulis: has joined #ruby
[02:06:12] cdg: has joined #ruby
[02:09:00] arescorpio: has joined #ruby
[02:09:06] FastJack: has joined #ruby
[02:10:54] Jameser: has joined #ruby
[02:11:03] coderphive: has joined #ruby
[02:15:08] WxW: has joined #ruby
[02:16:49] uneeb: has joined #ruby
[02:20:12] tolerablyjake: has joined #ruby
[02:25:45] ramfjord: has joined #ruby
[02:26:14] brw: has joined #ruby
[02:31:04] enterprisey: has joined #ruby
[02:32:52] r_rios: has joined #ruby
[02:33:48] bronson: has joined #ruby
[02:34:36] r_rios: Hello, all. Is there a pure Ruby gem (or, at least, a Ruby gem with very few native deps) to create simple GUI dialogs?
[02:35:22] r_rios: To be clear, I don't want a full-fledged GUI toolkit, just dialogs
[02:42:56] PaulCape_: has joined #ruby
[02:44:09] danielpclark: has joined #ruby
[02:44:16] kies: has joined #ruby
[02:45:39] chouhoulis: has joined #ruby
[02:46:20] ramfjord: has joined #ruby
[02:48:32] x0F: has joined #ruby
[02:51:14] workmad3: has joined #ruby
[02:52:15] bigkevmcd: has joined #ruby
[02:55:15] dtzuzu: has joined #ruby
[02:57:16] bambanx: has joined #ruby
[02:57:45] Puffball: has joined #ruby
[03:04:09] ramfjord: has joined #ruby
[03:07:01] tAn: has joined #ruby
[03:08:02] Algebr: has joined #ruby
[03:09:25] dstrunk: has joined #ruby
[03:09:31] nofxxx: has joined #ruby
[03:11:31] nobitanobi: has joined #ruby
[03:11:55] chouhoul_: has joined #ruby
[03:15:36] dviola: has joined #ruby
[03:29:03] dinfuehr: has joined #ruby
[03:30:13] Jameser: has joined #ruby
[03:33:38] bronson: has joined #ruby
[03:35:23] gix: has joined #ruby
[03:37:39] Jameser: has joined #ruby
[03:39:23] jenrzzz: has joined #ruby
[03:39:43] mim1k: has joined #ruby
[03:42:23] qpt: has joined #ruby
[03:47:25] govg: has joined #ruby
[03:49:12] ElDoggo_: has joined #ruby
[03:49:49] uZiel: has joined #ruby
[03:50:12] ElDoggo_: has joined #ruby
[03:50:41] Jameser: has joined #ruby
[03:51:37] Alina-malina: has joined #ruby
[04:02:49] Jameser: has joined #ruby
[04:04:42] sp4rrow: has joined #ruby
[04:05:46] ElDoggo: has joined #ruby
[04:08:18] ElDoggo__: has joined #ruby
[04:10:01] Axsuul: has joined #ruby
[04:12:31] jamesaxl: has joined #ruby
[04:12:36] waveprop: has joined #ruby
[04:12:48] ElDoggo: has joined #ruby
[04:13:40] s2013: has joined #ruby
[04:13:54] sumobob: has joined #ruby
[04:16:18] ElDoggo: has joined #ruby
[04:21:02] ben_: has joined #ruby
[04:21:38] ledestin: has joined #ruby
[04:22:16] Rutix`away: has joined #ruby
[04:22:16] Rutix`away: has joined #ruby
[04:22:26] musl_: has joined #ruby
[04:22:35] gix-: has joined #ruby
[04:22:48] naitian_: has joined #ruby
[04:22:58] hyperreal_: has joined #ruby
[04:23:21] Jameser: has joined #ruby
[04:23:33] hlmjr: has joined #ruby
[04:23:47] Nahra`: has joined #ruby
[04:24:25] reaVer_: has joined #ruby
[04:24:32] Mattix: has joined #ruby
[04:24:36] ule_: has joined #ruby
[04:24:37] eam_: has joined #ruby
[04:24:51] bhaak_: has joined #ruby
[04:24:52] Sp4rKy_: has joined #ruby
[04:24:53] Raboo_: has joined #ruby
[04:24:55] gigetoo_: has joined #ruby
[04:25:12] saltsa_: has joined #ruby
[04:25:12] teatime_: has joined #ruby
[04:25:17] mc_fail_: has joined #ruby
[04:25:25] bweh: has joined #ruby
[04:25:44] alveric3: has joined #ruby
[04:25:56] ahuman_: has joined #ruby
[04:26:02] arvindsa-: has joined #ruby
[04:26:03] my123_: has joined #ruby
[04:26:03] my123_: has joined #ruby
[04:27:45] Methos_: has joined #ruby
[04:28:11] huyderman_: has joined #ruby
[04:28:25] FK04: has joined #ruby
[04:28:25] ramfjord: has joined #ruby
[04:28:57] lel: has joined #ruby
[04:29:09] Archrove-: has joined #ruby
[04:29:34] _vircung_: has joined #ruby
[04:29:59] rlex: has joined #ruby
[04:29:59] arthurnn: has joined #ruby
[04:30:00] lexruee: has joined #ruby
[04:30:10] sinduck: has joined #ruby
[04:30:21] Ouchy: has joined #ruby
[04:30:24] armyriad: has joined #ruby
[04:30:28] leonthemisfit: has joined #ruby
[04:30:29] leonthemisfit: has joined #ruby
[04:30:29] drale2k: has joined #ruby
[04:30:32] baweaver: has joined #ruby
[04:30:33] baweaver: has joined #ruby
[04:30:40] segy: has joined #ruby
[04:30:43] jenrzzz: has joined #ruby
[04:30:55] ta: has joined #ruby
[04:30:58] icedragon: has joined #ruby
[04:30:58] gbailey: has joined #ruby
[04:31:03] j416: has joined #ruby
[04:31:06] ujjain: has joined #ruby
[04:31:06] ujjain: has joined #ruby
[04:31:45] bogdanteleaga: has joined #ruby
[04:31:51] mkroman: has joined #ruby
[04:31:58] Map: has joined #ruby
[04:32:01] kloeri: has joined #ruby
[04:32:19] romain_t: has joined #ruby
[04:32:22] ElDoggo_: has joined #ruby
[04:32:25] kaspergrubbe: has joined #ruby
[04:32:25] irick: has joined #ruby
[04:32:28] DanielI: has joined #ruby
[04:32:29] rcs: has joined #ruby
[04:32:39] Radar: has joined #ruby
[04:33:31] gnarf-: has joined #ruby
[04:33:38] adaedra: has joined #ruby
[04:33:44] d^sh: has joined #ruby
[04:33:48] Alina-malina: has joined #ruby
[04:34:10] ggherdov: has joined #ruby
[04:34:26] pelegreno: has joined #ruby
[04:34:38] bokayio: has joined #ruby
[04:34:47] Guiri: has joined #ruby
[04:34:47] Xeago: has joined #ruby
[04:34:53] Tatey: has joined #ruby
[04:35:03] ikopico: has joined #ruby
[04:35:10] SCHAPiE: has joined #ruby
[04:35:43] dminuoso: has joined #ruby
[04:35:51] ElDoggo: has joined #ruby
[04:36:02] vdl: has joined #ruby
[04:36:38] typeVoid: has joined #ruby
[04:36:50] arvindsaik: has joined #ruby
[04:36:52] ElDoggo: has joined #ruby
[04:37:07] marienz: has joined #ruby
[04:37:07] cibs: has joined #ruby
[04:37:25] zacts: has joined #ruby
[04:38:01] cajone: has joined #ruby
[04:38:06] mim1k: has joined #ruby
[04:38:08] ricer2: has joined #ruby
[04:38:22] ElDoggo_: has joined #ruby
[04:40:30] conta: has joined #ruby
[04:41:10] Cohedrin_: has joined #ruby
[04:41:30] tamouse__: has joined #ruby
[04:41:52] ElDoggo: has joined #ruby
[04:43:22] ElDoggo: has joined #ruby
[04:46:30] alex``: has joined #ruby
[04:47:52] ElDoggo_: has joined #ruby
[04:50:22] ElDoggo: has joined #ruby
[04:52:03] Alina-malina: has joined #ruby
[04:52:22] ElDoggo: has joined #ruby
[04:54:18] Yzguy: has joined #ruby
[04:54:53] ElDoggo: has joined #ruby
[04:55:53] ricefarmer: has joined #ruby
[04:56:55] ElDoggo_: has joined #ruby
[04:56:57] naprimer2: has joined #ruby
[04:59:40] Yzguy: Anyone every contribute to homebrew?
[04:59:41] ricefarmer: has joined #ruby
[04:59:46] Yzguy: or homebrew-cask
[05:00:36] Jameser: has joined #ruby
[05:00:56] harfangk: has joined #ruby
[05:02:48] neoen: has joined #ruby
[05:03:23] enterprisey: has joined #ruby
[05:04:57] ElDoggo: has joined #ruby
[05:05:01] mtkd: has joined #ruby
[05:05:53] ur5us: has joined #ruby
[05:10:48] ramfjord: has joined #ruby
[05:10:58] ruby[bot]: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[05:14:28] ElDoggo_: has joined #ruby
[05:17:28] ElDoggo_: has joined #ruby
[05:17:43] tamouse__: has joined #ruby
[05:21:27] ElDoggo: has joined #ruby
[05:23:11] sumobob: has joined #ruby
[05:23:57] ElDoggo: has joined #ruby
[05:25:58] ElDoggo__: has joined #ruby
[05:27:57] ElDoggo_: has joined #ruby
[05:29:07] aufi: has joined #ruby
[05:29:58] ElDoggo: has joined #ruby
[05:30:27] rippa: has joined #ruby
[05:30:58] ricefarmer: has left #ruby: ()
[05:32:30] ElDoggo_: has joined #ruby
[05:33:23] anisha_: has joined #ruby
[05:34:47] bronson: has joined #ruby
[05:35:59] ElDoggo: has joined #ruby
[05:36:31] ur5us: has joined #ruby
[05:36:58] tamouse__: has joined #ruby
[05:37:00] ElDoggo: has joined #ruby
[05:39:38] paradisaeidae: has joined #ruby
[05:39:44] paradisaeidae_: has joined #ruby
[05:41:32] ElDoggo: has joined #ruby
[05:42:53] jphase_: has joined #ruby
[05:43:59] jphase: has joined #ruby
[05:45:41] paranoicsan: has joined #ruby
[05:45:52] ElDoggo: has joined #ruby
[05:47:02] ElDoggo_: has joined #ruby
[05:48:33] ElDoggo: has joined #ruby
[05:51:15] Bock: has joined #ruby
[05:52:02] ElDoggo: has joined #ruby
[05:56:02] ElDoggo: has joined #ruby
[05:58:18] milardovich: has joined #ruby
[06:00:11] Ishido: has joined #ruby
[06:01:50] s2013: has joined #ruby
[06:19:52] jinie: has joined #ruby
[06:20:32] jolamb: has joined #ruby
[06:22:40] andikr: has joined #ruby
[06:25:01] snickers: has joined #ruby
[06:29:35] redhedded1: has joined #ruby
[06:29:39] daumie: has joined #ruby
[06:30:49] Joufflu: has joined #ruby
[06:33:09] webguynow: has joined #ruby
[06:36:22] rabajaj: has joined #ruby
[06:36:57] lel: has joined #ruby
[06:37:25] shime: has joined #ruby
[06:38:17] ur5us: has joined #ruby
[06:40:30] harfangk: has joined #ruby
[06:40:49] phaul: has joined #ruby
[06:42:52] YETI: has joined #ruby
[06:43:44] quobo: has joined #ruby
[06:44:15] conta: has joined #ruby
[06:46:48] sumobob: has joined #ruby
[06:53:02] shime: has joined #ruby
[06:53:31] Azure: has joined #ruby
[06:54:12] YETI: has joined #ruby
[06:59:50] YETI: has left #ruby: ("Leaving")
[07:00:47] StarSeedling: has joined #ruby
[07:02:17] jinie: has joined #ruby
[07:06:26] jinie_: has joined #ruby
[07:06:38] selim: has joined #ruby
[07:06:56] ShekharReddy: has joined #ruby
[07:10:41] Xiti: has joined #ruby
[07:11:12] TomyWork: has joined #ruby
[07:11:21] ramfjord: has joined #ruby
[07:13:29] mark_66: has joined #ruby
[07:17:24] sumobob: has joined #ruby
[07:17:54] ur5us: has joined #ruby
[07:21:43] harfangk: has joined #ruby
[07:22:45] sumobob: has joined #ruby
[07:23:44] claudiuinberlin: has joined #ruby
[07:30:18] ta: has joined #ruby
[07:32:48] rafadc: has joined #ruby
[07:34:11] paranoicsan: has joined #ruby
[07:35:17] Hobbyboy: has joined #ruby
[07:35:31] ams__: has joined #ruby
[07:40:38] ta: has joined #ruby
[07:40:55] h1d: has joined #ruby
[07:41:36] claudiuinberlin: has joined #ruby
[07:42:36] Cohedrin_: has joined #ruby
[07:43:17] aupadhye: has joined #ruby
[07:44:41] Sp4rKy: has joined #ruby
[07:45:10] Ouchy: has joined #ruby
[07:45:14] Ouchy`w: has joined #ruby
[07:46:04] bronson: has joined #ruby
[07:46:09] dionysus69: has joined #ruby
[07:46:30] milardovich: has joined #ruby
[07:49:41] morfin: has joined #ruby
[07:49:42] mim1k: has joined #ruby
[07:50:06] morfin: when i raise are parameters passed to exception class constructor?
[07:50:26] contradictioned: has joined #ruby
[07:50:31] morfin: raise SomeError, message, code, details
[07:52:58] elomatreb: morfin: Yes: https://eval.in/868845
[07:53:39] elomatreb: Well, the message is. The second argument is the stack trace IIRC?
[07:53:59] morfin: well that's not trivial error )
[07:54:59] morfin: i should handle somehow external error from API - i have code, message, details(optional), trace(full Java trace if trace generation turned on on server)
[07:55:47] meinside: has joined #ruby
[07:56:36] santhnu: has joined #ruby
[07:56:54] pagios: has left #ruby: ("Leaving")
[07:57:07] mikecmpbll: has joined #ruby
[07:57:30] jaruga: has joined #ruby
[07:57:44] marr: has joined #ruby
[07:59:01] pagios: has joined #ruby
[08:02:11] claudiuinberlin: has joined #ruby
[08:02:19] veex: has joined #ruby
[08:02:41] VladGh: has joined #ruby
[08:04:49] burgestrand: has joined #ruby
[08:04:52] shime: has joined #ruby
[08:05:20] santhnu: has joined #ruby
[08:09:27] Guest24: has joined #ruby
[08:10:07] daumie: has joined #ruby
[08:11:35] ElDoggo: has joined #ruby
[08:13:29] matthewd: morfin: Build the exception then raise it
[08:13:55] matthewd: `raise Foo, "msg"` is just a shortcut for `raise Foo.new("msg")`
[08:16:00] Silthias: has joined #ruby
[08:18:00] Silthias1: has joined #ruby
[08:18:14] morfin: hm interesting thing
[08:18:54] morfin: raise ApiException, message, trace wrote Java backtrace into an exception
[08:21:25] huyderman: has joined #ruby
[08:21:47] morfin: i thought it won't accept Java backtrace
[08:22:07] cdg: has joined #ruby
[08:23:50] Algebr`: has joined #ruby
[08:35:42] jokke: is there any builtin way to do a select/reject + map for an enumerable? It's a fairly common pattern and one has to resort to lazy + to_a so that the enumerable is only iterated once
[08:37:05] jokke: so a relatively simple thing like getting a list of attributes from a list of objects where another attribute is a certain value becomes somewhat complicated
[08:37:07] Beams: has joined #ruby
[08:37:55] jokke: like: foos.lazy.select { |foo| foo.bar == 'bar' }.map(&:baz).to_a
[08:41:27] InfinityFye: has joined #ruby
[08:41:56] matthewd: jokke: You can do it with flat_map
[08:42:31] matthewd: Or map+compact
[08:43:07] matthewd: (which will, strictly speaking, iterate a second time, but only in C)
[08:43:27] elomatreb: One strategy I've liked is using flat_map, and return an empty array where you'd normally return nil
[08:43:28] jokke: matthewd: i thought flat_map is just for mapping over nested arrays flatly?
[08:43:30] rh10: has joined #ruby
[08:43:39] elomatreb: Oh, already mentioned. Nevermind
[08:44:00] _aeris_: has joined #ruby
[08:44:19] matthewd: Yeah: foos.flat_map {|foo| foo.bar == 'bar' ? [foo.baz] : [] }
[08:44:20] rh10: guys, which best place to start with ruby (and rails)? to understand it and supplementary technologies like gems, bundler? need a quick start point
[08:44:24] jokke: so: foos.flat_map { |foo| foo.bar == 'bar' ? [foo.baz ...
[08:44:27] elomatreb: flat_map doesn't flatten recursively, btw, which is useful for this
[08:44:56] jokke: matthewd: it still doesn't quite feel rubyisqe
[08:45:26] matthewd: It's not pretty... the problem is that anything as simple as map, but which allows this, is declaring some value un-"mappable"
[08:46:26] dionysus69: has joined #ruby
[08:47:06] matthewd: I guess you could do it with: def select_map; result = []; token = Object.new; each {|el| x = yield(el, token); result << x unless token.eql?(x) }; result; end
[08:47:24] matthewd: foos.select_map {|foo, skip| foo.bar == 'bar' ? foo.baz : skip }
[08:47:38] Cork: if i have a private key and a cert anyone know how to best verify that they work together?
[08:47:55] elomatreb: I like the flat_map solution, because you can still map everything by just wrapping it in an array once
[08:48:33] jokke: matthewd: i think the problem is rather, that you'd basically need the ability to pass two blocks to methods
[08:48:44] jokke: one for mapping and one for selecting
[08:49:22] matthewd: Cork: The certificate contains the public key's fingerprint; you can derive the public key (and thus its fingerprint) from the private key
[08:49:43] Cork: ah, intressing idea
[08:49:49] Cork: i'll try that, thx
[08:50:14] teatime: er, you can??
[08:50:24] lxsameer: has joined #ruby
[08:51:08] jokke: what about my lazy approach? would that really iterate only once? (also in c?)
[08:51:36] Defenestrate: has joined #ruby
[08:51:36] Defenestrate: has joined #ruby
[08:52:05] elomatreb: The lazy approach being the one with the separate select/map?
[08:52:13] elomatreb: Because that one will iterate twice
[08:52:21] matthewd: jokke: Technically yes, I think so... but it depends why you're trying to avoid the double iteration
[08:52:31] matthewd: elomatreb: As in Enumerable#lazy
[08:52:50] jokke: elomatreb: foos.lazy.select ...
[08:52:51] elomatreb: Oh, I'm not paying attention today, sorry
[08:52:57] jokke: elomatreb: no problem :)
[08:53:23] jokke: matthewd: just to satisfy my curiosity
[08:53:23] Cork: matthewd: sweet that worked perfectly thx!
[08:55:18] nobitanobi: has joined #ruby
[08:56:41] matthewd: jokke: My point is just that, without checking, I think the setup of the laziness could well outweigh the actual iteration -- depending on just how huge your [filtered] array is, of course
[08:57:00] jokke: matthewd: yes, i'm aware
[08:57:12] jokke: won't make sense for arrays of size 5
[08:57:21] goyox86_: has joined #ruby
[08:59:59] burgestrand: has joined #ruby
[09:09:30] sepp2k: has joined #ruby
[09:10:01] claudiuinberlin: has joined #ruby
[09:10:36] kassav_: has joined #ruby
[09:11:34] ramfjord: has joined #ruby
[09:11:42] Jameser: has joined #ruby
[09:12:09] ur5us: has joined #ruby
[09:15:07] Guest24: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[09:16:22] biberu: has joined #ruby
[09:16:57] zzj: has joined #ruby
[09:20:42] Serpent7776: has joined #ruby
[09:20:55] minimalism: has joined #ruby
[09:21:43] buyfn: has joined #ruby
[09:23:50] claudiuinberlin: has joined #ruby
[09:25:08] rafadc: has joined #ruby
[09:32:11] dhollinger: has joined #ruby
[09:33:49] mim1k_: has joined #ruby
[09:34:46] milardovich: has joined #ruby
[09:37:26] tamouse__: has joined #ruby
[09:38:30] sumobob: has joined #ruby
[09:40:57] VladGh: has joined #ruby
[09:47:19] bronson: has joined #ruby
[09:51:16] tvw: has joined #ruby
[09:52:06] ahrs: has joined #ruby
[09:53:28] stamina: has joined #ruby
[09:54:41] rafadc: has joined #ruby
[09:59:30] Hanmac: has joined #ruby
[10:01:14] Guest24: has joined #ruby
[10:02:54] Guest24: has joined #ruby
[10:10:34] foxxx0: has joined #ruby
[10:13:48] ElDoggo: has joined #ruby
[10:21:14] Guest24: has joined #ruby
[10:27:48] morfin: can i somehow set examples path for rpsec?
[10:29:28] morfin: i mean directory where it look for examples
[10:31:01] sumobob: has joined #ruby
[10:31:55] buyfn: has joined #ruby
[10:33:16] ElDoggo_: has joined #ruby
[10:34:42] Hanmac: has joined #ruby
[10:37:03] krandi: has joined #ruby
[10:42:06] bruno-: has joined #ruby
[10:44:54] _whitelogger: has joined #ruby
[10:45:31] Siyfion: has joined #ruby
[10:46:44] lexruee: has joined #ruby
[10:46:50] ElDoggo: has joined #ruby
[10:46:56] rafadc: has joined #ruby
[10:50:21] ElDoggo: has joined #ruby
[10:51:21] __Yiota: has joined #ruby
[10:51:39] rafadc: has joined #ruby
[10:52:21] ElDoggo: has joined #ruby
[10:52:52] tlaxkit: has joined #ruby
[10:54:51] ElDoggo: has joined #ruby
[10:55:51] ElDoggo_: has joined #ruby
[11:00:53] charliesome: has joined #ruby
[11:00:55] paranoicsan: has joined #ruby
[11:05:15] ramfjord: has joined #ruby
[11:10:25] hs367: has joined #ruby
[11:10:53] ElDoggo: has joined #ruby
[11:11:37] elsevero: has joined #ruby
[11:11:53] ElDoggo: has joined #ruby
[11:12:46] DTZUZO: has joined #ruby
[11:14:24] ElDoggo: has joined #ruby
[11:19:47] workmad3: has joined #ruby
[11:20:54] ramfjord: has joined #ruby
[11:22:58] milardovich: has joined #ruby
[11:23:48] nobitanobi: has joined #ruby
[11:29:01] Alina-malina: has joined #ruby
[11:29:38] skweek: has joined #ruby
[11:32:15] anisha__: has joined #ruby
[11:32:41] rafadc: has joined #ruby
[11:33:04] nobitanobi: has joined #ruby
[11:35:56] ElDoggo: has joined #ruby
[11:36:35] sumobob: has joined #ruby
[11:37:15] shinnya: has joined #ruby
[11:38:37] DanielI: has joined #ruby
[11:40:05] DrCode: has joined #ruby
[11:42:27] ferr: has joined #ruby
[11:48:20] bronson: has joined #ruby
[11:53:11] hndk: has joined #ruby
[11:54:56] burgestrand: has joined #ruby
[11:57:11] charliesome: has joined #ruby
[11:58:55] sumobob: has joined #ruby
[12:03:45] Emmanuel_Chanel: has joined #ruby
[12:04:09] claudiuinberlin: has joined #ruby
[12:05:28] Alina-malina: has joined #ruby
[12:06:05] vondruch: has joined #ruby
[12:07:05] skweek: has joined #ruby
[12:12:09] synthroid: has joined #ruby
[12:14:31] Alina-malina: has joined #ruby
[12:16:41] Parraki_: has joined #ruby
[12:17:48] bmurt: has joined #ruby
[12:18:40] hs366: has joined #ruby
[12:35:30] Alina-malina: has joined #ruby
[12:36:25] hyperreal: has joined #ruby
[12:39:49] griffindy: has joined #ruby
[12:40:38] Alina-malina: has joined #ruby
[12:49:15] truenito: has joined #ruby
[12:50:27] marr: has joined #ruby
[12:51:40] ruby-lang191: has joined #ruby
[12:53:38] mson: has joined #ruby
[12:55:55] bruno-: has joined #ruby
[12:58:13] balazs_: has joined #ruby
[13:02:26] Ishido: has joined #ruby
[13:06:51] jphase_: has joined #ruby
[13:08:57] sumobob: has joined #ruby
[13:08:57] cdg: has joined #ruby
[13:10:33] cdg: has joined #ruby
[13:11:15] milardovich: has joined #ruby
[13:11:35] elsevero: has joined #ruby
[13:12:32] cdg_: has joined #ruby
[13:13:16] duckpupp1: has joined #ruby
[13:15:22] kassav_: has joined #ruby
[13:15:22] harfangk: has joined #ruby
[13:15:52] orbyt_: has joined #ruby
[13:17:59] truenito1: has joined #ruby
[13:21:04] ramfjord: has joined #ruby
[13:22:26] claudiuinberlin: has joined #ruby
[13:24:00] sumobob: has joined #ruby
[13:26:25] FastJack_: has joined #ruby
[13:28:15] bmurt: has joined #ruby
[13:30:42] sumobob: has joined #ruby
[13:32:46] DLSteve: has joined #ruby
[13:34:21] claudiuinberlin: has joined #ruby
[13:34:55] knight33: has joined #ruby
[13:35:07] ramfjord: has joined #ruby
[13:36:01] sysvalve: has joined #ruby
[13:36:12] waveprop: has joined #ruby
[13:37:43] bmurt: has joined #ruby
[13:37:52] tamouse__: has joined #ruby
[13:39:14] holgerdanske: has joined #ruby
[13:41:05] holgerdanske: Hello everyone. I've gone a bit maverick and decided to start cracking on developing a fairly rudimentary time clock system for my work. I'm still a pretty amateur rubyist at best and I was curious as to whether any of you had any sort of experience with developing software to handle remote logging (that would be sent to a secure spreadsheet on my boss' computer for him to handle payroll at the end of the weekly pay cycle).
[13:42:44] sumobob: has joined #ruby
[13:43:25] vondruch: has joined #ruby
[13:43:28] bmurt: has joined #ruby
[13:43:40] tobiasvl: why reinvent the wheel? log locally and use filebeat/logstash?
[13:45:52] r_rios: has joined #ruby
[13:46:36] paranoicsan: has joined #ruby
[13:48:12] vondruch: has joined #ruby
[13:48:45] mikecmpb_: has joined #ruby
[13:51:43] rrios: has joined #ruby
[13:51:43] rrios: has joined #ruby
[13:54:42] claudiuinberlin: has joined #ruby
[13:55:51] sumobob: has joined #ruby
[13:56:47] bruno-: has joined #ruby
[14:01:20] tcopeland: has joined #ruby
[14:01:43] nowhereman: has joined #ruby
[14:11:55] matti: has joined #ruby
[14:11:55] matti: has joined #ruby
[14:12:13] __Yiota: has joined #ruby
[14:12:25] griffindy: has joined #ruby
[14:14:22] Rapture: has joined #ruby
[14:15:19] _aeris: has joined #ruby
[14:16:17] claudiuinberlin: has joined #ruby
[14:18:39] DrCode: has joined #ruby
[14:20:15] milardovich: has joined #ruby
[14:22:55] s2013: has joined #ruby
[14:23:59] mikecmpbll: has joined #ruby
[14:24:25] s2013: has joined #ruby
[14:25:46] DaniG2k: has joined #ruby
[14:26:11] DaniG2k: I am trying to upload images using Dropzone as part of a multi-step form that I am building with Vue.js and Rais 5.1, and I'm a bit confused as to how to set this up properly.
[14:26:17] troys: has joined #ruby
[14:26:27] DaniG2k: I've outlined the problem more specifically with my code on SO
[14:26:31] DaniG2k: https://stackoverflow.com/questions/46401470/upload-images-with-a-dropzone-vue-js-and-a-rails-5-form
[14:26:44] DaniG2k: if anyone could help out with that it would be greatly appreciated
[14:28:01] truenito: has joined #ruby
[14:33:48] kassav__: has joined #ruby
[14:36:49] samlisl_: has joined #ruby
[14:37:11] oleo: has joined #ruby
[14:41:59] dinfuehr: has joined #ruby
[14:43:52] mtkd: has joined #ruby
[14:45:58] claudiuinberlin: has joined #ruby
[14:47:02] imode: has joined #ruby
[14:57:15] __Yiota: has joined #ruby
[14:57:45] s2013: has joined #ruby
[14:58:11] FastJack: has joined #ruby
[14:58:35] cjs226: has joined #ruby
[14:59:33] theunraveler: has joined #ruby
[15:00:01] mim1k: has joined #ruby
[15:01:57] john__: has joined #ruby
[15:02:39] synthroid: has joined #ruby
[15:03:46] knight33: has joined #ruby
[15:07:39] fmcgeough: has joined #ruby
[15:09:44] mson: has joined #ruby
[15:09:44] __Yiota: has joined #ruby
[15:13:22] claudiuinberlin: has joined #ruby
[15:13:57] JD2020X: has joined #ruby
[15:16:09] rafadc: has joined #ruby
[15:16:43] milardovich: has joined #ruby
[15:17:12] polishdub: has joined #ruby
[15:17:40] nicholalexander: has joined #ruby
[15:18:30] ElDoggo: has joined #ruby
[15:20:47] rafadc: has joined #ruby
[15:22:32] neachdainn: has joined #ruby
[15:23:26] neachdainn: Hey all, super new to Ruby. How do I make optional arguments? I'm trying to do something like Enumerable's find_index method, but I'm not sure how
[15:23:58] Papierkorb: `def foo(bar = "I'm the default value"); p(bar); end`
[15:25:19] neachdainn: Ok. So when the docs have `find_index(value)` and `find_index { block }`, the second one is just ignoring that the argument exists, right?
[15:25:28] neachdainn: I.e., there isn't an overloaded method or anything
[15:26:08] uZiel: has joined #ruby
[15:26:09] adaedra: It's the same method with an optional parameter
[15:26:11] Papierkorb: No, it still has to be declared like `find_index(value = nil)` (or similar). Blocks do not make arguments optional
[15:26:23] neachdainn: Alright. Thank you!
[15:26:28] adaedra: `find_index` is probably `def find_index(x = nil, &blk)`
[15:27:40] neachdainn: adaedra: What's the advantage of having &blk in the arguments list? Is it required to do things with the block other than `yield`?
[15:28:04] adaedra: ah yes, it's not required if you just yield
[15:28:16] havenwood: neachdainn: if you want to pass the block on, uncalled - then it's useful
[15:28:21] adaedra: if you want to store it or pass it to another method, you need to specify it
[15:28:40] holgerdanske: tobiasvl: Can Filebeat handle outputting to quickbooks format?
[15:30:50] VeryBewitching: has joined #ruby
[15:30:56] DaniG2k: has joined #ruby
[15:34:15] Sylario: has joined #ruby
[15:36:17] TinkerTyper: has joined #ruby
[15:38:29] cagomez: has joined #ruby
[15:40:58] synthroid: has joined #ruby
[15:41:33] bmurt: has joined #ruby
[15:47:30] csk: has joined #ruby
[15:49:57] dhollinger: has joined #ruby
[15:50:21] bronson: has joined #ruby
[15:51:56] TomyLobo: has joined #ruby
[15:55:05] infernix: has joined #ruby
[15:57:17] mkali: has joined #ruby
[15:57:43] neachdainn: So I'm looking at Enumerable's `inject` method. I'm assuming it's defined as `def inject(initial=nil, sym=nil, &blk)`?
[15:58:49] neachdainn: If so, in the `inject(sym) -> obj` form, is it really `initial=sym` and logic inside the function sorts it out?
[15:58:58] neachdainn: Or does Ruby do something magical?
[15:59:55] bmurt: has joined #ruby
[16:00:06] truenito1: has joined #ruby
[16:00:35] claudiuinberlin: has joined #ruby
[16:01:35] ResidentBiscuit: has joined #ruby
[16:02:00] ResidentBiscuit: has joined #ruby
[16:02:25] ResidentBiscuit: has joined #ruby
[16:02:50] ResidentBiscuit: has joined #ruby
[16:04:32] matthewd: neachdainn: Yes, logic inside the function
[16:04:36] havenwood: neachdainn: That's right for how you'd define it if it was written in Ruby, like it is in TruffleRuby or Rubinius. The CRuby implementation of that method is in C.
[16:05:51] havenwood: neachdainn: https://github.com/ruby/ruby/blob/trunk/enum.c#L761-L803
[16:05:57] havenwood: neachdainn: https://github.com/graalvm/truffleruby/blob/master/src/main/ruby/core/enumerable.rb#L434-L472
[16:06:06] adaedra: neachdainn: note that even if it's not how it's done here, optional arguments don't have to be last. `def foo(a = nil, b)` is perfectly valid, and `foo(0)` would set `b`.
[16:06:43] neachdainn: Sounds good! Thanks, all!
[16:08:04] waveprop: has joined #ruby
[16:09:03] paranoicsan: has joined #ruby
[16:14:44] swills: has joined #ruby
[16:16:09] kassav_: has joined #ruby
[16:19:21] NicolasHov: has joined #ruby
[16:19:42] sumobob: has joined #ruby
[16:19:49] yxhuvud: it is worth noting the symbol support for inject is older than Symbol#to_proc. I doubt very much it would have been added at all today.
[16:19:58] holgerdanske: are any of you familiar with "filebeat"?
[16:23:27] cagomez: has joined #ruby
[16:27:06] conta: has joined #ruby
[16:27:15] Yzguy: has joined #ruby
[16:30:19] DaniG2k: has joined #ruby
[16:31:07] bmurt: has joined #ruby
[16:31:31] gregf_: has joined #ruby
[16:32:17] truenito: has joined #ruby
[16:33:25] orbyt_: has joined #ruby
[16:35:43] banisterfiend: has joined #ruby
[16:39:17] Linux_Se7en: has joined #ruby
[16:40:08] moei: has joined #ruby
[16:43:16] aupadhye: has joined #ruby
[16:45:45] bmurt: has joined #ruby
[16:46:44] hephinator: has left #ruby: ("Leaving")
[16:47:37] chouhoulis: has joined #ruby
[16:48:14] chouhoulis: has joined #ruby
[16:49:03] Heph: has joined #ruby
[16:49:55] marxarelli: has joined #ruby
[16:50:31] MrBusiness3: has joined #ruby
[16:50:38] Heph_: has joined #ruby
[16:52:12] raynold: has joined #ruby
[16:52:57] MrSparkle: has joined #ruby
[16:57:36] SeepingN: has joined #ruby
[17:01:42] cdg: has joined #ruby
[17:04:24] Cohedrin_: has joined #ruby
[17:04:32] cdg_: has joined #ruby
[17:04:40] truenito: has joined #ruby
[17:06:07] Parraki: has joined #ruby
[17:06:33] AndBobsYourUncle: has joined #ruby
[17:10:20] auxbuss: has joined #ruby
[17:12:49] NicolasHov: has joined #ruby
[17:14:20] mtkd: has joined #ruby
[17:14:26] jinie: has joined #ruby
[17:14:47] brent__: has joined #ruby
[17:16:34] NicolasHov: Hello, I'm starting to learn ruby, is it the best place to ask questions ? Thanks !
[17:20:39] synthroid: has joined #ruby
[17:21:01] eckhardt: has joined #ruby
[17:23:08] rafadc: has joined #ruby
[17:23:50] Dimik: has joined #ruby
[17:27:13] ^mtkd: has joined #ruby
[17:27:29] rafadc: has joined #ruby
[17:28:41] baweaver: In general, yes
[17:30:14] kies: has joined #ruby
[17:30:50] phaul: has joined #ruby
[17:33:35] bmurt: has joined #ruby
[17:33:42] baweaver: NicolasHov: ^
[17:34:25] auxbuss: has joined #ruby
[17:35:38] auxbuss: has left #ruby: ()
[17:39:04] truenito: has joined #ruby
[17:41:40] tcopeland: has joined #ruby
[17:49:29] Parraki: has joined #ruby
[17:50:50] lxsameer: has joined #ruby
[17:51:26] bronson: has joined #ruby
[17:51:29] orbyt_: has joined #ruby
[17:56:12] john__: has joined #ruby
[17:56:44] ramfjord: has joined #ruby
[17:57:44] orbyt_: has joined #ruby
[17:57:57] erichter: has joined #ruby
[17:58:06] cagomez: has joined #ruby
[17:58:25] erichter: trying to stable sort a hash by value
[17:58:32] erichter: but what im trying isnt stable
[17:58:38] hahuang65: has joined #ruby
[17:58:54] erichter: nums.sort{|key,value| key[1]<=>value[1]}.each { |elem|
[17:58:54] erichter: puts "#{account.friendly_name} #{elem[1]}, #{elem[0]}"
[17:59:19] erichter: }how can i make that stable?
[17:59:54] Parraki: has joined #ruby
[18:01:42] NicolasHov: Baweave ok thanks !
[18:01:48] gusrub: has joined #ruby
[18:04:58] baweaver: First, key and value are misnomers there
[18:05:09] baweaver: it'd be hash one and two if anything
[18:05:20] baweaver: or a, b or something to that tune
[18:05:50] baweaver: &ri Enumerable#with_index
[18:05:50] `derpy: No results
[18:06:00] Quentinius: has joined #ruby
[18:06:07] baweaver: &ri Enumerator#each_with_index
[18:06:08] `derpy: http://ruby-doc.org/core-2.4.1/Enumerator.html#method-i-each_with_index
[18:06:15] baweaver: Every time with that one
[18:06:47] Alina-malina: has joined #ruby
[18:07:00] Quentinius: I have one question, it should be like basics
[18:07:25] baweaver: Basically you return an array from sort with the priority of keys in it
[18:07:26] baweaver: index being first
[18:07:36] baweaver: I have one answer
[18:07:47] neachdainn: How do I actually apply a symbol? The only stuff I'm finding via Google just `puts` it
[18:08:15] neachdainn: Actually use it. For anything
[18:08:22] baweaver: >> :like_this
[18:08:23] ruby[bot]: baweaver: # => :like_this (https://eval.in/869642)
[18:08:35] tcopeland: has joined #ruby
[18:08:51] baweaver: A symbol is just a label
[18:09:14] nchambers: neachdainn: a symbol's value is automagically itself
[18:09:19] neachdainn: I must be completely missing the point of them.
[18:09:25] baweaver: Are you wanting to know what / why they're used?
[18:09:54] neachdainn: I suppose I am. I'm basing this question on how I thought Enumerator's `inject` method utilized the symbol
[18:10:01] matthewd: e.g. how do you "use" a string, or an integer?
[18:10:20] baweaver: &ri Symbol#to_proc
[18:10:20] `derpy: http://ruby-doc.org/core-2.4.1/Symbol.html#method-i-to_proc
[18:10:30] baweaver: Ruby does some magic with &:symbol
[18:10:35] baweaver: but reduce / inject is an odd one
[18:10:41] eckhardt: the ol' methodphetamine
[18:10:46] baweaver: &ri Enumerable#reduce
[18:10:47] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-reduce
[18:11:05] anisha__: has joined #ruby
[18:11:25] baweaver: I think it was a carry over from 1.8 syntax before Symbol to_proc existed
[18:11:26] baweaver: you remember that matthewd?
[18:11:29] Quentinius: I have a string and its poem (its one of the challenges in tryruby) and the challenge is to just reverse it (that easy) but I wanted to reverse only words in the order it was so how should I do it? I was thinking about something like some separators but I am total noob and this is beyond my capbilities... :(
[18:11:50] baweaver: &ri String#split
[18:11:50] `derpy: http://ruby-doc.org/core-2.4.1/String.html#method-i-split
[18:11:54] baweaver: &ri String#join
[18:11:54] `derpy: No results
[18:12:28] cdg: has joined #ruby
[18:12:30] matthewd: baweaver: Well, inject(:foo) and inject(&:foo) do very different things
[18:13:00] Quentinius: baweaver: thanks
[18:13:09] sp4rrow: has joined #ruby
[18:18:17] neachdainn: Ok. Maybe I'm just thick, but I'm not getting it. If I had `sym=:+`, how would I use that to add two numbers?
[18:18:19] Alina-malina: has joined #ruby
[18:19:46] TomyLobo2: has joined #ruby
[18:19:53] DaniG2k: has joined #ruby
[18:20:59] theunraveler: has joined #ruby
[18:22:13] jenrzzz: has joined #ruby
[18:22:13] jenrzzz: has joined #ruby
[18:22:20] neachdainn: I keep thinking I'm getting them until I get to symbols like that
[18:23:55] SeepingN: has joined #ruby
[18:25:50] harai: has joined #ruby
[18:26:11] synthroid: has joined #ruby
[18:26:33] neachdainn: I think I cleared up my confusion.
[18:26:50] neachdainn: A symbol != a Proc
[18:26:54] conta3: has joined #ruby
[18:26:55] __Yiota: has joined #ruby
[18:28:08] Quentinius_: has joined #ruby
[18:28:08] matthewd: neachdainn: Right. Symbol just happens to have a to_proc method, so it can be used in a place that wants one.
[18:28:43] cdg_: has joined #ruby
[18:28:59] benlieb: has joined #ruby
[18:30:13] goyox86_: has joined #ruby
[18:31:09] baweaver: (well, Array join but I was getting pulled off for a meeting and rushed :P)
[18:31:49] Algebr`: has joined #ruby
[18:32:17] Alina-malina: has joined #ruby
[18:33:44] xunila: has joined #ruby
[18:33:49] selim: has joined #ruby
[18:41:24] Joufflu: has joined #ruby
[18:42:45] theunraveler: has joined #ruby
[18:42:51] sp4rrow: has joined #ruby
[18:44:29] elsevero: has joined #ruby
[18:45:38] oetjenj: has joined #ruby
[18:47:11] troulouliou_div2: has joined #ruby
[18:47:28] oetjenj: has joined #ruby
[18:48:42] oetjenj: has joined #ruby
[18:50:27] Rosa: has joined #ruby
[18:50:37] Rosa: does ruby have a ruby bot?
[18:53:39] voker57: has joined #ruby
[18:53:39] voker57: has joined #ruby
[18:54:09] Dimik: has joined #ruby
[18:54:39] rosa_: has joined #ruby
[18:56:15] TomyLobo: has joined #ruby
[18:56:27] mikecmpbll: has joined #ruby
[18:57:10] Rosa: this dead x.x
[18:59:32] matthewd: rosa: I have no idea what you're asking
[19:00:12] Rosa: does ruby have its own version of sh bot
[19:00:37] havenwood: rosa: what is sh bot?
[19:01:58] Rosa: it is a shell bot that executes shell code
[19:03:12] havenwood: rosa: I have no idea what you're asking
[19:03:37] matthewd: Oh, do you mean in the channel?
[19:03:40] ruby[bot]: matthewd: # => 2 (https://eval.in/869691)
[19:04:09] havenwood: rosa: You want an IRC bot that will evaluate code?
[19:05:04] Rosa: why does it paste its output aswell?
[19:05:36] Rosa: n no, i already have one
[19:07:59] shime: has joined #ruby
[19:08:35] gusrub: has joined #ruby
[19:12:18] bmurt: has joined #ruby
[19:14:36] zachk: has joined #ruby
[19:16:39] gr33n7007h: has joined #ruby
[19:16:50] kapil___: has joined #ruby
[19:17:23] gusrub: has joined #ruby
[19:18:45] ElDoggo_: has joined #ruby
[19:20:11] Trynemjoel: has joined #ruby
[19:21:23] AndBobsYourUncle: has joined #ruby
[19:23:16] synthroid: has joined #ruby
[19:25:21] jamesaxl: has joined #ruby
[19:29:12] jenrzzz: has joined #ruby
[19:35:29] goyox86_: has joined #ruby
[19:37:10] mtkd: has joined #ruby
[19:38:58] goyox86_: has joined #ruby
[19:39:30] sp4rrow: has joined #ruby
[19:42:28] sp4rrow: has joined #ruby
[19:43:48] Heph__: has joined #ruby
[19:50:06] Ouchy: has joined #ruby
[19:50:06] Ouchy: has joined #ruby
[19:50:12] Ouchy`w: has joined #ruby
[19:50:33] dminuoso_: has joined #ruby
[19:51:11] dionysus69: has joined #ruby
[19:51:17] Heph__: has left #ruby: ("Leaving")
[19:52:41] bronson: has joined #ruby
[19:55:47] orbyt_: has joined #ruby
[19:58:19] synthroid: has joined #ruby
[20:01:24] Rapture: has joined #ruby
[20:01:30] bronson: has joined #ruby
[20:01:32] Heph_: has joined #ruby
[20:03:29] erichter: has joined #ruby
[20:03:39] cdg: has joined #ruby
[20:04:01] Rapture: has joined #ruby
[20:06:37] dviola: has joined #ruby
[20:06:46] milardovich: has joined #ruby
[20:07:06] ta: has joined #ruby
[20:07:42] eckhardt: has joined #ruby
[20:08:52] Radanisk: has joined #ruby
[20:09:34] Radanisk: has joined #ruby
[20:09:59] antoniobeyah_: has joined #ruby
[20:13:37] cdg_: has joined #ruby
[20:13:58] preyalone: has joined #ruby
[20:16:10] croberts: has joined #ruby
[20:16:21] wald0: has joined #ruby
[20:19:00] csk: has joined #ruby
[20:19:47] [Butch]: has joined #ruby
[20:20:36] goyox86_: has joined #ruby
[20:25:06] goyox86_: has joined #ruby
[20:25:09] knight33: has joined #ruby
[20:31:18] synthroid: has joined #ruby
[20:31:38] gusrub: has joined #ruby
[20:31:51] claudiuinberlin: has joined #ruby
[20:33:59] neachdainn: has joined #ruby
[20:35:24] cagomez: has joined #ruby
[20:39:13] Quentinius: has joined #ruby
[20:40:07] LastWhisper____: has joined #ruby
[20:41:57] OnkelTem: has joined #ruby
[20:42:33] OnkelTem: Folks, can you please recommend an image - https://hub.docker.com/_/ruby/ ? I need ruby to run some deployment scripts
[20:42:50] OnkelTem: I need to run then: gem install docman
[20:47:03] charliesome: has joined #ruby
[20:49:49] bmurt: has joined #ruby
[20:53:13] AndBobsYourUncle: has joined #ruby
[20:54:37] rafadc: has joined #ruby
[20:56:11] Kanibal: Alpine is pretty slim
[20:56:25] Kanibal: Debian pretty stable
[20:59:00] hahuang65: has joined #ruby
[21:00:27] capstar: has joined #ruby
[21:03:46] fusta: has joined #ruby
[21:04:13] hahuang65: has joined #ruby
[21:08:28] ta: has joined #ruby
[21:09:21] RickHull: has joined #ruby
[21:10:02] DaniG2k: has joined #ruby
[21:13:15] jhass: has joined #ruby
[21:18:54] dachi: has joined #ruby
[21:19:54] jrafanie: has joined #ruby
[21:21:24] ur5us: has joined #ruby
[21:21:29] sumobob: has joined #ruby
[21:21:58] OnkelTem: has joined #ruby
[21:26:57] mim1k: has joined #ruby
[21:28:58] naprimer: has joined #ruby
[21:29:20] orbyt_: has joined #ruby
[21:34:17] workmad3: has joined #ruby
[21:39:31] kn-928: has joined #ruby
[21:39:41] sagax: has joined #ruby
[21:41:41] oetjenj: has joined #ruby
[21:43:35] ycyclist: has joined #ruby
[21:44:42] ycyclist: What regex switch after the slash do I use when $s =~ /^something.*somethingelse$/ should cover beginning of string to end, not just any given line on the string, to be true?
[21:46:31] ycyclist: Perhaps I would better simply say: $s =~ /^thisstring has only this in it and no other lines$/
[21:48:14] matcouto: has joined #ruby
[21:50:55] rafadc: has joined #ruby
[21:55:33] banisterfiend: has joined #ruby
[21:56:17] jrafanie: has joined #ruby
[22:00:02] dachi: hello. could anyone help me with mail attachments variable (undefined local variable or method) in helper for mailer and rspec? http://rubyfiddle.com/riddles/1424a/2
[22:00:10] rrios: has joined #ruby
[22:00:25] rrios: has joined #ruby
[22:03:01] RickHull: ycyclist: \A and \z
[22:03:18] RickHull: ycyclist: instead of ^ and $
[22:04:06] gigetoo: has joined #ruby
[22:04:24] RickHull: ycyclist: hm, there is also a multiline switch... trailing x maybe does what you want?
[22:05:52] sp4rrow: has joined #ruby
[22:06:03] Asher: has joined #ruby
[22:06:07] RickHull: dachi: hm, RubyFiddle won't show me the actual error, just says "SyntaxError:"
[22:06:23] RickHull: but yes, where does `attachments` come from, on line 4?
[22:08:04] RickHull: dachi: trailing x means, more or less, ignore newlines in the regex (not sure about newlines in the string-to-match)
[22:08:23] sp4rrow_: has joined #ruby
[22:08:43] dachi: SomeMailer.some_method.attachments
[22:09:09] RickHull: dachi: oops, that last "trailing x" comment was meant for ycyclist
[22:09:41] RickHull: dachi: it looks like whatever defines the attachments method hasn't been loaded yet
[22:10:29] gusrub: has joined #ruby
[22:14:44] jenrzzz: has joined #ruby
[22:16:25] shinnya: has joined #ruby
[22:17:11] ycyclist: has joined #ruby
[22:17:18] ycyclist: Looking at trailing x...
[22:18:13] RickHull: ycyclist: i think you want \A and \z instead of ^ and $
[22:19:16] ycyclist: That may be it. Trying...
[22:19:34] LastWhisper____: has joined #ruby
[22:21:08] pilne: has joined #ruby
[22:21:42] JD2020X: has joined #ruby
[22:24:10] ycyclist: yes, \A and \z does it. Thanks guys.
[22:25:59] bmurt: has joined #ruby
[22:28:01] ycyclist: Sorry about the slow response. This really helps.
[22:29:45] dtzuzu: has joined #ruby
[22:30:53] Lighter: has joined #ruby
[22:33:02] bmurt: has joined #ruby
[22:33:50] cd-rum: has joined #ruby
[22:35:03] Lighter_: has joined #ruby
[22:47:15] graft_: has joined #ruby
[22:47:24] gusrub: has joined #ruby
[22:59:52] ycyclist: I have a routine "blek" that returns a single string. I want it to return a string and an int from now on, but for those calls that still expect just the string, I want to not bother them but still just give them the string.
[23:01:15] elomatreb: That's going to be difficult. You probably should create a new method for the new calls that expect both
[23:02:49] graft_: >> [][0..10]
[23:02:50] ruby[bot]: graft_: # => [] (https://eval.in/869886)
[23:02:55] ycyclist: yes, so there is no way to know what the return value is being assigned to, if anything?
[23:02:55] graft_: >> [][10..20]
[23:02:56] ruby[bot]: graft_: # => nil (https://eval.in/869887)
[23:03:04] graft_: ^^ i find this troubling
[23:03:34] graft_: ycyclist: unless you're passing in an argument or have some instance variable suggesting who the caller is, no
[23:04:56] ledestin: has joined #ruby
[23:05:18] ycyclist: That is very helpful graft. I must be thinking of another language.
[23:05:29] sp4rrow: has joined #ruby
[23:05:47] ycyclist: Adding a new argument or a global item is another option, so I'll check that now. Thanks guys.
[23:10:58] alveric4: has joined #ruby
[23:11:18] brw: has joined #ruby
[23:11:54] sp4rrow: has joined #ruby
[23:12:07] griffindy: has joined #ruby
[23:17:40] workmad3: has joined #ruby
[23:21:43] pskosinski: has joined #ruby
[23:21:46] enterprisey: has joined #ruby
[23:27:26] mim1k: has joined #ruby
[23:28:14] conta1: has joined #ruby
[23:30:42] gusrub: has joined #ruby
[23:34:14] VladGh: has joined #ruby
[23:40:24] zenspider: has joined #ruby
[23:40:29] dreamthese: has joined #ruby
[23:40:42] zenspider: has joined #ruby
[23:40:57] zenspider: rawr. what'd I miss?
[23:47:35] AndBobsYourUncle: has joined #ruby
[23:53:15] cagomez: has joined #ruby
[23:53:46] neachdainn: has joined #ruby
[23:59:15] cdg: has joined #ruby
[23:59:41] ElDoggo: has joined #ruby