« Back to channel list

#ruby - 06 May 2016

« Back 1 day Forward 1 day »
[00:00:08] Carella: has joined #ruby
[00:00:44] tmtwd: has joined #ruby
[00:01:05] shadows: smathy: I ended up with this and I'm 60% happy with it https://gist.github.com/eshattow/21d3e25b5cf0e27b6734af34f16176c4
[00:01:20] shadows: smathy: ruby code, input, output
[00:01:54] Rasi: has joined #ruby
[00:02:07] Es0teric: has joined #ruby
[00:02:33] cjbottaro: has joined #ruby
[00:05:15] johnmilton: has joined #ruby
[00:05:29] shadows: smathy: I wish it was a 1-liner though
[00:05:36] smathy: shadows, yeah, sometimes code is messy.
[00:05:58] smathy: ...just hide it away in some method.
[00:08:13] Hanmac: has joined #ruby
[00:08:19] moeabdol: has joined #ruby
[00:08:25] cpup: has joined #ruby
[00:12:50] charliesome: has joined #ruby
[00:14:29] nettoweb: has joined #ruby
[00:14:32] idefine: has joined #ruby
[00:14:54] idefine: has joined #ruby
[00:15:39] xcesariox: has joined #ruby
[00:16:44] doublemalt_: has joined #ruby
[00:23:48] swills: has joined #ruby
[00:23:53] swills: has joined #ruby
[00:24:44] whathappens: has joined #ruby
[00:24:59] banister: has joined #ruby
[00:26:19] goldfax: has joined #ruby
[00:27:37] weemsledeux: has joined #ruby
[00:27:43] bronson: has joined #ruby
[00:28:43] CloCkWeRX: has joined #ruby
[00:29:21] whathappens: has joined #ruby
[00:30:09] FooMunki: has joined #ruby
[00:33:05] Guest36175: has joined #ruby
[00:33:49] whathappens: has joined #ruby
[00:35:06] bluOxigen_: has joined #ruby
[00:35:18] whathapp_: has joined #ruby
[00:36:59] n008f4g_: has joined #ruby
[00:38:34] Moosashi: has joined #ruby
[00:41:56] northrup: has joined #ruby
[00:42:02] tAn: has joined #ruby
[00:47:17] IvanSuftin: has joined #ruby
[00:49:04] nando293921: has joined #ruby
[00:49:43] pawnbox: has joined #ruby
[00:49:56] kalleth: has joined #ruby
[00:50:16] ohcibi_: has joined #ruby
[00:50:20] contradictioned: has joined #ruby
[00:50:33] heftig: has joined #ruby
[00:51:21] shadeslayer: has joined #ruby
[00:51:23] Guest53755: has joined #ruby
[00:51:26] cb: has joined #ruby
[00:51:26] FooMunki: has joined #ruby
[00:51:42] Hobbyboy|BNC: has joined #ruby
[00:51:52] valeri_ufo: has joined #ruby
[00:52:27] flashpoint9: has joined #ruby
[00:52:45] phrozen77: has joined #ruby
[00:53:00] aef: has joined #ruby
[00:53:55] ruby-lang969: has joined #ruby
[00:57:31] poorya: has joined #ruby
[00:58:47] n_blownapart: has joined #ruby
[01:01:26] panpainter: has joined #ruby
[01:02:14] RegulationD: has joined #ruby
[01:02:17] zacstewart: has joined #ruby
[01:03:52] Ropeney: has joined #ruby
[01:04:21] Dimik: has joined #ruby
[01:05:10] LastWhisper____: has joined #ruby
[01:05:44] tAn: has joined #ruby
[01:05:44] cdg: has joined #ruby
[01:08:16] ur5us: has joined #ruby
[01:10:27] pawnbox: has joined #ruby
[01:15:12] Asher: has joined #ruby
[01:18:02] patrick_star_2: has joined #ruby
[01:18:11] FooMunki: has joined #ruby
[01:20:29] jmarinelli: has joined #ruby
[01:21:51] edv4rd0: has joined #ruby
[01:22:19] zacstewart: has joined #ruby
[01:22:34] ledestin: has joined #ruby
[01:23:26] rkazak: has joined #ruby
[01:27:02] tAn: has joined #ruby
[01:30:08] cd83x_: has joined #ruby
[01:31:44] whathappens: has joined #ruby
[01:33:18] Karunamon: has joined #ruby
[01:33:40] whathapp_: has joined #ruby
[01:34:33] whathappens: has joined #ruby
[01:36:24] bazz_: has joined #ruby
[01:39:31] dikaio: has joined #ruby
[01:41:41] cd83x_: has joined #ruby
[01:45:38] banisterfiend: has joined #ruby
[01:46:34] chipotle: has joined #ruby
[01:46:56] rbennacer: has joined #ruby
[01:51:36] tAn: has joined #ruby
[01:55:08] justin_pdx: has joined #ruby
[01:56:24] moeabdol: has joined #ruby
[01:56:45] skade: has joined #ruby
[01:57:27] rbennacer: has joined #ruby
[01:58:59] kobain: has joined #ruby
[02:01:48] nanoz: has joined #ruby
[02:08:28] freerobby: has joined #ruby
[02:09:26] edv4rd0_: has joined #ruby
[02:15:27] devbug: has joined #ruby
[02:17:33] tAn: has joined #ruby
[02:18:48] neanderslob: has joined #ruby
[02:19:11] LoneHerm_: has joined #ruby
[02:22:23] pawnbox: has joined #ruby
[02:23:45] JoshGlzBrk: has joined #ruby
[02:25:08] hahuang61: has joined #ruby
[02:25:13] perlgod: has joined #ruby
[02:27:14] nando293921: has joined #ruby
[02:28:18] bronson: has joined #ruby
[02:30:43] Caerus|Away: has joined #ruby
[02:36:11] havenwood: >> require 'prime'; 1.step.lazy.select { |n| (8 * n).pred.prime? }.first(38).last(2).map(&:chr).join
[02:36:12] ruby[bot]: havenwood: # => "lo" (https://eval.in/566433)
[02:39:41] nano-: has joined #ruby
[02:40:53] perlgod: has joined #ruby
[02:41:29] kfpratt: has joined #ruby
[02:43:14] zacstewart: has joined #ruby
[02:43:27] _kfpratt: has joined #ruby
[02:44:19] statelesscode: has joined #ruby
[02:44:22] kfpratt_: has joined #ruby
[02:45:11] GriffinHeart: has joined #ruby
[02:45:18] nanoz: has joined #ruby
[02:45:23] kfpratt__: has joined #ruby
[02:46:01] ensyde__: has joined #ruby
[02:46:15] kfpratt__: has joined #ruby
[02:47:12] kfpratt: has joined #ruby
[02:48:18] kfpratt__: has joined #ruby
[02:48:37] d0nn1e: has joined #ruby
[02:49:17] _kfpratt: has joined #ruby
[02:50:12] kfpratt_: has joined #ruby
[02:55:34] lkba: has joined #ruby
[02:55:56] kfpratt: has joined #ruby
[02:56:12] shadows: want to stabby stab ruby for variable scoping in conditional statement
[02:56:48] shadows: m = hex.join(" ").split; m[4..9] = ["__", "__", "__", "__", "__", "__"] if flip == true
[02:56:52] _kfpratt: has joined #ruby
[02:56:53] shadows: never works.
[02:57:31] shadows: the m with the conditional is scoped differently
[02:57:47] kfpratt__: has joined #ruby
[02:58:47] kfpratt__: has joined #ruby
[02:59:42] kfpratt__: has joined #ruby
[03:00:42] kfpratt_: has joined #ruby
[03:01:23] robbyoconnor: has joined #ruby
[03:01:36] kfpratt: has joined #ruby
[03:02:37] _kfpratt: has joined #ruby
[03:03:01] colegatron: has joined #ruby
[03:03:02] Devalo: has joined #ruby
[03:03:34] shadows: it's deeper than what I said
[03:03:50] shadows: it has to do with tricking ruby into using a scoped variable outside of its scope
[03:04:27] kfpratt__: has joined #ruby
[03:04:36] bougyman: what's the hip way to throw out a repl to a running ruby app these days?
[03:05:27] benlieb: has joined #ruby
[03:05:28] kfpratt__: has joined #ruby
[03:06:22] kfpratt_: has joined #ruby
[03:06:35] rehat: has joined #ruby
[03:07:09] havenwood: bougyman: Sounds like pry-remote if I'm understanding.
[03:07:17] kfpratt: has joined #ruby
[03:07:22] shadows: shouldn't array[range] = array[1,2,3,4] work inside a conditional?
[03:07:25] havenwood: Though not new enough to be hip?
[03:07:36] shadows: if not, why the heck not
[03:07:52] bougyman: havenwood: sounds right, I've used that before.
[03:07:57] bougyman: just didn't know if there was anything new.
[03:08:08] havenwood: bougyman: not that i know of
[03:08:12] _kfpratt: has joined #ruby
[03:08:39] havenwood: Pry via DRb ftw.
[03:08:40] ramfjord: has joined #ruby
[03:08:47] JoshGlzBrk: has joined #ruby
[03:09:13] kfpratt__: has joined #ruby
[03:09:16] shadows: ACTION stabs things
[03:09:47] havenwood: shadows: Are you wanting to check equality? Twoquals style?
[03:09:54] havenwood: shadows: ==
[03:09:59] shazaum__: has joined #ruby
[03:10:03] havenwood: shadows: Or do you mean to assign?
[03:10:08] kfpratt__: has joined #ruby
[03:10:09] tAn: has joined #ruby
[03:10:18] havenwood: Assuming you don't.
[03:11:07] kfpratt__: has joined #ruby
[03:11:35] braincrash: has joined #ruby
[03:11:35] shadows: havenwood: trying to modify part of an array
[03:11:46] shadows: only do it conditionally
[03:12:01] kfpratt_: has joined #ruby
[03:12:14] shadows: I process things line-by-line it goes in an array and every other line I want to set part of the array
[03:12:37] shadows: the statement works until I nest it in the conditional
[03:12:58] kfpratt: has joined #ruby
[03:13:56] _kfpratt: has joined #ruby
[03:14:51] kfpratt__: has joined #ruby
[03:15:44] kfpratt__: has joined #ruby
[03:15:59] SilverKey: has joined #ruby
[03:16:07] justin_pdx: has joined #ruby
[03:16:20] Channel6: has joined #ruby
[03:16:31] sneakerhax: has joined #ruby
[03:16:44] kfpratt__: has joined #ruby
[03:17:39] kfpratt_: has joined #ruby
[03:18:35] kfpratt: has joined #ruby
[03:19:31] _kfpratt: has joined #ruby
[03:20:28] kfpratt__: has joined #ruby
[03:21:26] eljimmy: has joined #ruby
[03:21:27] kfpratt__: has joined #ruby
[03:22:21] kfpratt__: has joined #ruby
[03:23:18] kfpratt_: has joined #ruby
[03:23:30] shadows: havenwood: ruby bug I think.
[03:24:12] kfpratt: has joined #ruby
[03:25:09] _kfpratt: has joined #ruby
[03:25:13] azor: has joined #ruby
[03:26:06] kfpratt__: has joined #ruby
[03:27:00] kfpratt__: has joined #ruby
[03:27:08] cdg: has joined #ruby
[03:27:19] gix: has joined #ruby
[03:27:52] shadows: convinced is ruby bug. dammit
[03:27:59] kfpratt__: has joined #ruby
[03:28:54] kfpratt_: has joined #ruby
[03:29:34] nanoyak: has joined #ruby
[03:30:32] pawnbox: has joined #ruby
[03:30:47] kfpratt: has joined #ruby
[03:30:56] ramfjord: has joined #ruby
[03:31:40] _kfpratt: has joined #ruby
[03:31:46] shadows: print is accessing stale variables
[03:32:02] shadows: mindnumbingly frustrating here :(
[03:32:38] kfpratt__: has joined #ruby
[03:32:41] bruno-: has joined #ruby
[03:33:20] shadows: fuck it, writing in python ugh
[03:33:38] kfpratt__: has joined #ruby
[03:34:28] kfpratt_: has joined #ruby
[03:34:40] tAn: has joined #ruby
[03:35:25] kfpratt__: has joined #ruby
[03:37:18] kfpratt: has joined #ruby
[03:38:04] zotherstupidguy: has joined #ruby
[03:38:13] _kfpratt: has joined #ruby
[03:38:28] moeabdol: has joined #ruby
[03:38:35] G: has joined #ruby
[03:39:12] kfpratt__: has joined #ruby
[03:40:07] kfpratt_: has joined #ruby
[03:40:59] d0lph1n98: has joined #ruby
[03:41:06] kfpratt__: has joined #ruby
[03:42:02] kfpratt__: has joined #ruby
[03:42:55] kfpratt: has joined #ruby
[03:43:17] GnuYawk: has joined #ruby
[03:43:24] GnuYawk: has joined #ruby
[03:43:52] _kfpratt: has joined #ruby
[03:44:48] kfpratt__: has joined #ruby
[03:45:25] SparkMasterTape: has joined #ruby
[03:45:43] kfpratt_: has joined #ruby
[03:46:33] bruno-: has joined #ruby
[03:46:41] kfpratt__: has joined #ruby
[03:47:13] Moosashi: has joined #ruby
[03:47:21] arescorpio: has joined #ruby
[03:47:37] kfpratt__: has joined #ruby
[03:48:31] kfpratt: has joined #ruby
[03:49:30] _kfpratt: has joined #ruby
[03:50:25] kfpratt__: has joined #ruby
[03:51:05] pawnbox: has joined #ruby
[03:51:09] b|ackwolf: has joined #ruby
[03:51:56] terminal_: has joined #ruby
[03:52:16] rbennacer: has joined #ruby
[03:58:45] torandu: has joined #ruby
[04:02:07] tAn: has joined #ruby
[04:04:10] xcesariox: has joined #ruby
[04:05:50] jaguarmagenta: has joined #ruby
[04:07:18] Channel6: has joined #ruby
[04:08:08] nettoweb: has joined #ruby
[04:09:05] cdg: has joined #ruby
[04:09:32] tmtwd: has joined #ruby
[04:11:06] freerobby: has joined #ruby
[04:13:02] cd83x_: has joined #ruby
[04:14:06] kareeoleez: has joined #ruby
[04:14:11] phpwebdev: has joined #ruby
[04:14:58] terminal_: has joined #ruby
[04:18:55] pawnbox: has joined #ruby
[04:22:15] jaguarmagenta: has joined #ruby
[04:22:20] tAn: has joined #ruby
[04:24:07] ledestin: has joined #ruby
[04:24:17] drewo: has joined #ruby
[04:26:57] Blaguvest: has joined #ruby
[04:29:30] binaryplease1: has joined #ruby
[04:30:09] bronson: has joined #ruby
[04:31:32] Alina-malina: has joined #ruby
[04:31:38] dikaio: has joined #ruby
[04:34:07] ramfjord: has joined #ruby
[04:34:41] idefine_: has joined #ruby
[04:35:25] n_blowna_: has joined #ruby
[04:35:55] duncannz: has joined #ruby
[04:37:26] panpainter: has joined #ruby
[04:40:45] djbkd: has joined #ruby
[04:43:34] mtkd: has joined #ruby
[04:45:30] kfpratt: has joined #ruby
[04:46:52] terminal_: has joined #ruby
[04:50:42] tAn: has joined #ruby
[04:50:45] chipotle: has joined #ruby
[04:51:00] jaguarmagenta: has joined #ruby
[04:57:16] benlieb: has joined #ruby
[04:59:58] aufi: has joined #ruby
[05:00:56] y2mq37: has joined #ruby
[05:01:03] grenierm: has joined #ruby
[05:02:27] fedexo: has joined #ruby
[05:03:47] sauvin: has joined #ruby
[05:04:25] chouhoulis: has joined #ruby
[05:04:55] dikaio: has joined #ruby
[05:05:04] zacts: has joined #ruby
[05:06:39] bazz_: if I include a module with "self" methods .. how can I invoke them... self.method doesn't seem to work
[05:06:50] bazz_: self.class.method?
[05:07:00] bazz_: self.module.?
[05:07:14] Arcaire: Why did you make them class methods if you've immediately put yourself in this scenario?
[05:07:50] pawnbox: has joined #ruby
[05:08:08] Radar: bazz_: Why did you define them as self methods?
[05:08:37] yfeldblum: has joined #ruby
[05:09:35] Arcaire: bazz_: self.class.whatever would work from an instance (non "self") method within the class. variable.class.whatever would work if you're calling it that way.
[05:09:44] Arcaire: But I feel like you're misusing class methods if you're doing this.
[05:10:58] dikaio: has joined #ruby
[05:11:02] DevastatingDave: has joined #ruby
[05:11:10] bazz_: I'm abstracting some functions ... I am keeping track of highscores independent of their backend implementation .. in this case, I have a Redis module (the one in question) who is covering some API functions ... in the module is a "module variable" which is the redis client handle ... since these are "library calls" I don't want them to be instance methods ... but maybe I did it the wrong way?
[05:11:43] bazz_: my code is completely open source so we can take a closer look if need be ..
[05:12:06] Radar: bazz_: Code is best explained with itself, rather than words. You should start by showing us the code, then discussing it.
[05:12:44] LoneHerm_: has joined #ruby
[05:13:01] bazz_: Radar, I'm going to warn you.. there's a "double abstraction" that kind of pisses me off in the code .. I decided to abstract "Score" too .. so just be prepared for this double abstraction which is probably confusing and needless
[05:13:30] Radar: bazz_: I used to review code for a living. You cannot shock me.
[05:13:33] bazz_: and you might garner a bunch of feedback based on the fact this is my first Ruby project .. and first time coding Ruby since 2008 ...
[05:13:35] Radar: Only 0x0dea can shock me these days.
[05:13:49] bazz_: and why's that
[05:14:15] Radar: he writes Ruby that looks like Perl barfed into a restaurant's sink after their busiest night.
[05:14:17] Arcaire: 0x spends a lot of time performing "extreme code golf".
[05:14:36] Radar: *and it works*
[05:15:43] bazz_: arg.. I'm refactoring the code in my head before I send it to you
[05:16:42] tAn: has joined #ruby
[05:17:23] Devalo: has joined #ruby
[05:17:31] Bloomer: has joined #ruby
[05:17:43] bazz_: start here -- redis.rb you can think of as Redis helper function .. a library that is developed on a needs basis .. but only 1 function actually deviates from the native call ... scores.rb shows an interface along with a Redis backend implementation which uses the redis helpers
[05:17:45] bazz_: https://github.com/bazzinotti/ayumi/tree/master/lib/bazz/utils
[05:18:03] panpainter: has joined #ruby
[05:19:47] GriffinHeart: has joined #ruby
[05:19:53] bruno-: has joined #ruby
[05:19:59] bazz_: OK so CONTEXT -- this is an IRC bot with a plugins system .. I am mostly monkeypatching for a nice plugin system
[05:20:11] bazz_: https://github.com/bazzinotti/ayumi/tree/master/lib/cinch/plugins/utils -- check out highscores and highscores_backend
[05:20:55] Bloomer: has joined #ruby
[05:21:01] bazz_: these will rely on the Scores API (not to be confused with highscores)
[05:23:26] bazz_: https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/utils/highscores.rb -- see here I `include Redis` basically here I am saying I want Redis as a backend for my highscores .. | and of course in the future I will want to be able to specify my backend in one place
[05:24:33] bazz_: I am trying to create this Highscores code to be re-usable from any plugin definition .. (it works .. of course I am only showing you the code based on your questioning of why I am using self methods and whether it's the right approach)
[05:25:19] howdoi: has joined #ruby
[05:25:31] haxrbyte: has joined #ruby
[05:25:51] bazz_: there is some module magic for the highscores in `self.included` to add certain things to the plugin that includes it .. typically adding a highscores subcommand for the IRC bot
[05:26:25] RegulationD: has joined #ruby
[05:28:15] bazz_: P.S. I am already planning on re-implementing the Highscores via composition rather than inheritance .. I think it would be cleaner ... but that's not directly related to our discussion
[05:32:21] dikaio: has joined #ruby
[05:36:37] brianpWins: has joined #ruby
[05:38:00] ensyde__: has joined #ruby
[05:38:21] CloCkWeRX: has joined #ruby
[05:40:54] bazz_: I am starting to see points of improvement -- there's no point including these functions (library) into the plugin to begin with .. I probably would like them all called to static class with all class methods for this kind of thing
[05:41:05] n_blownapart: has joined #ruby
[05:41:24] bazz_: well actually ..
[05:41:42] bazz_: :| I need more time to truly understand it all
[05:44:25] tax: has joined #ruby
[05:46:09] Sammichmaker: has joined #ruby
[05:50:33] bazz_: Radar, what's your status?
[05:51:13] chipotle: has joined #ruby
[05:51:47] the_drow: has joined #ruby
[05:52:05] raeoks: has joined #ruby
[05:52:14] bazz_: I am heading to bed .. I'll idle here but it's likely I'll miss your response .. I'll ping you tomorrow about it. I can sense a large pontential for a improved design
[05:52:16] Radar: bazz_: working
[05:52:20] Radar: I don't have time to look at all that code.
[05:52:20] n_blownapart: has joined #ruby
[05:53:06] bazz_: Radar, it's nothing I can't handle.
[05:53:09] Hanmac: has joined #ruby
[06:00:10] mikecmpbll: has joined #ruby
[06:01:02] n_blownapart: has joined #ruby
[06:04:48] the_drow: has joined #ruby
[06:07:17] kareeoleez: has joined #ruby
[06:08:36] Madplatypus: has joined #ruby
[06:08:42] kareeoleez: has joined #ruby
[06:08:58] brianpWins_: has joined #ruby
[06:09:30] tAn: has joined #ruby
[06:13:59] LoneHermit: has joined #ruby
[06:14:09] ramfjord: has joined #ruby
[06:16:35] CloCkWeRX: has joined #ruby
[06:17:39] tvw: has joined #ruby
[06:20:35] firstdayonthejob: has joined #ruby
[06:20:36] bruno-: has joined #ruby
[06:21:26] rumia: has joined #ruby
[06:22:37] lsmola: has joined #ruby
[06:25:46] al2o3-cr: has joined #ruby
[06:27:22] pawnbox: has joined #ruby
[06:29:40] the_drow: has joined #ruby
[06:30:35] Ishido: has joined #ruby
[06:31:29] bronson: has joined #ruby
[06:31:58] [dmp]: has joined #ruby
[06:32:13] arup_r: has joined #ruby
[06:33:47] janebootydoe: has joined #ruby
[06:34:02] cliff: has joined #ruby
[06:34:13] pLaToOn: has joined #ruby
[06:36:19] Moosashi: has joined #ruby
[06:40:04] nando293921: has joined #ruby
[06:42:50] pawnbox: has joined #ruby
[06:43:32] the_drow: has joined #ruby
[06:44:46] zacstewart: has joined #ruby
[06:46:00] scepticulous: has joined #ruby
[06:47:25] ravishankarjha: has joined #ruby
[06:53:02] sameerynho: has joined #ruby
[06:54:05] n_blownapart: has joined #ruby
[06:55:28] scepticulous: has joined #ruby
[06:58:47] devbug: has joined #ruby
[06:59:31] lubekpl: has joined #ruby
[07:00:27] the_drow: has joined #ruby
[07:00:44] tmtwd: has joined #ruby
[07:02:38] JohnBat26: has joined #ruby
[07:04:31] akem: has joined #ruby
[07:08:09] lessless: has joined #ruby
[07:08:36] lessless: Hey peeps, how to get parent process's application name?
[07:08:47] lessless: or how to resolve app name by pid?
[07:09:02] ramfjord: has joined #ruby
[07:10:27] devbug: has joined #ruby
[07:11:03] xcesariox: has joined #ruby
[07:11:47] grenierm: lessless: +1
[07:14:19] symm-: has joined #ruby
[07:15:30] lessless: I think it boils down to get a cmdline by parent pid
[07:16:26] moshee: has joined #ruby
[07:16:26] moshee: has joined #ruby
[07:16:45] the_drow: has joined #ruby
[07:17:28] n_blownapart: has joined #ruby
[07:20:56] the_drow: has joined #ruby
[07:22:11] toretore: has joined #ruby
[07:22:43] n_blownapart: has joined #ruby
[07:24:10] vondruch: has joined #ruby
[07:26:02] terlar: has joined #ruby
[07:26:24] norc: has joined #ruby
[07:27:27] al2o3-cr: lessless: how do you mean?
[07:27:51] lessless: al2o3-cr regarding what?
[07:28:03] al2o3-cr: lessless: your question
[07:28:35] lessless: getting a process cmdline by it's pid?
[07:31:34] the_drow: has joined #ruby
[07:32:04] tagaulap: has joined #ruby
[07:33:43] TvL2386: has joined #ruby
[07:34:26] n_blownapart: has joined #ruby
[07:34:54] piotrj: has joined #ruby
[07:35:37] jaruga___: has joined #ruby
[07:35:45] anisha: has joined #ruby
[07:38:14] adaedra: lessless: under Linux, you can read /proc/$PPID/cmdline
[07:43:13] panpainter: has joined #ruby
[07:44:29] devbug: has joined #ruby
[07:44:53] ravishankarjha: has joined #ruby
[07:45:02] lessless: adaedra, right it seems that there is no portable solution in the stdlib
[07:45:09] Gasher: has joined #ruby
[07:46:02] Devalo: has joined #ruby
[07:46:22] charliesome: has joined #ruby
[07:47:43] adaedra: there may be a gem to do that but I'm not aware of any.
[07:49:44] Gasher^: has joined #ruby
[07:52:09] haxrbyte_: has joined #ruby
[07:52:43] clifford_: has joined #ruby
[07:53:10] dikaio: has joined #ruby
[07:56:17] Kero: has joined #ruby
[07:56:41] cbetta__: has joined #ruby
[07:59:37] bestie: has joined #ruby
[07:59:38] zipkid: has joined #ruby
[08:00:04] biberu: has joined #ruby
[08:00:10] podman: has joined #ruby
[08:00:10] frode15243_: has joined #ruby
[08:00:47] daxroc1: has joined #ruby
[08:00:59] LoneHermit: has joined #ruby
[08:03:00] vcoinminer: has joined #ruby
[08:03:57] twodayslate_: has joined #ruby
[08:05:17] jabreity__: has joined #ruby
[08:05:24] tesuji: has joined #ruby
[08:05:44] pawnbox: has joined #ruby
[08:06:34] roshanavand: has joined #ruby
[08:13:06] skade: has joined #ruby
[08:13:20] i12345678: has joined #ruby
[08:13:25] marr: has joined #ruby
[08:13:47] troulouliou_div2: has joined #ruby
[08:15:57] mikecmpbll: has joined #ruby
[08:16:53] n_blownapart: has joined #ruby
[08:18:47] skade: has joined #ruby
[08:19:59] htmldrum: has joined #ruby
[08:21:03] DoubleMalt: has joined #ruby
[08:23:20] bruno-: has joined #ruby
[08:23:40] CausaMortis: has joined #ruby
[08:24:51] mark_66: has joined #ruby
[08:32:35] edwinvdgraaf: has joined #ruby
[08:32:44] tAn: has joined #ruby
[08:33:10] b|ackwolf: has joined #ruby
[08:33:31] znz_jp: has joined #ruby
[08:33:46] bronson: has joined #ruby
[08:35:58] lomex: has joined #ruby
[08:36:45] Dimik: has joined #ruby
[08:36:49] neanderslob_: has joined #ruby
[08:37:49] aupadhye: has joined #ruby
[08:39:00] snowy: has joined #ruby
[08:39:23] enedil: has joined #ruby
[08:39:45] Miron: has joined #ruby
[08:40:04] beawesomeinstead: has joined #ruby
[08:40:36] madgen: has joined #ruby
[08:41:26] sulky_: has joined #ruby
[08:47:33] Devalo: has joined #ruby
[08:47:59] vondruch: has joined #ruby
[08:49:03] TheHodge: has joined #ruby
[08:51:37] ravishankarjha: has joined #ruby
[08:52:30] znz_jp: has joined #ruby
[08:54:42] tAn: has joined #ruby
[08:55:22] yfeldblum: has joined #ruby
[08:56:56] chipotle: has joined #ruby
[08:58:56] n_blownapart: has joined #ruby
[08:59:06] edwinvdgraaf: has joined #ruby
[09:00:15] pawnbox: has joined #ruby
[09:00:42] edwinvdg_: has joined #ruby
[09:01:54] workmad3: has joined #ruby
[09:02:33] ravishankarjha: has joined #ruby
[09:04:39] n_blownapart: has joined #ruby
[09:08:17] ftj: has joined #ruby
[09:09:40] skade: has joined #ruby
[09:09:46] orangey: has joined #ruby
[09:09:54] enedil: has left #ruby: ()
[09:12:28] FooMunki: has joined #ruby
[09:14:09] moeSeth: has joined #ruby
[09:14:42] madgen: has joined #ruby
[09:15:04] pandaant: has joined #ruby
[09:19:56] ur5us: has joined #ruby
[09:20:18] nisstyre: has joined #ruby
[09:21:56] akem: has joined #ruby
[09:24:09] bruno-: has joined #ruby
[09:28:52] xue: has joined #ruby
[09:30:36] terlar: has joined #ruby
[09:31:40] lessless: has joined #ruby
[09:39:28] tubuliferous: has joined #ruby
[09:39:56] blackmes1: has joined #ruby
[09:40:20] ravishankarjha: has joined #ruby
[09:41:11] Chunlea: has joined #ruby
[09:42:15] blaxter: has joined #ruby
[09:43:01] tAn: has joined #ruby
[09:43:12] bweston92: I need to create a service that listens to all events from a message broker and records statistics for me to query time frames etc for example PaymentWasMade would record payments_made++ or ApplicationSubmitted would record applicants_submitted++ what would be the best database of choice to query it all fast?
[09:43:52] zenspider: has joined #ruby
[09:45:32] Moosashi: has joined #ruby
[09:45:42] vdamewood: has joined #ruby
[09:47:13] apeiros: bweston92: sounds like you want a key-value store
[09:47:53] blur3d: has joined #ruby
[09:48:17] sauvin: has joined #ruby
[09:48:34] al2o3-cr: has joined #ruby
[09:48:52] der-landgraf: has joined #ruby
[09:50:29] Moosashi: has joined #ruby
[09:50:38] zenspider: has joined #ruby
[10:01:32] Hanmac: has joined #ruby
[10:02:57] Papierkorb: bweston92: Do you want to persist that data immediately or later? Do you already have a document based DB in your stack, are planning to do so or don't want it?
[10:03:49] Papierkorb: bweston92: If not persistent, then what apeiros says, Redis does a great job here. I used that to count visitors to a webpage which was persisted every hour into a SQL DB. Worked fine.
[10:04:16] d0lph1n98: has joined #ruby
[10:04:39] chipotle: has joined #ruby
[10:05:30] apofis: has joined #ruby
[10:10:44] GioVdK: has joined #ruby
[10:12:03] GioVdK: Hello, I'd need to url encode a time string so that also the plus is url encoded in %2B instead of being read as a space (e.g. 2013-09-12 22:49:27 +0530) but CGI.encode keeps it at as a space
[10:12:28] GioVdK: would ERB::Util.url_encode be a good solution?
[10:13:07] sepp2k: has joined #ruby
[10:14:00] Papierkorb: GioVdK: See URI.encode
[10:14:41] Papierkorb: Oh, URI.encode is apparently obsolete now.
[10:14:46] bweston92: apeiros a k/v store wouldn't allow me to filter on dates, I've found statsd which looks promising
[10:15:18] GioVdK: Hi Papierkorb thanks, yep I read that too
[10:15:38] GioVdK: and anyway is not converting the plus: 2016-05-06%2010:14:46%20+0000
[10:15:38] mrgrieves: has joined #ruby
[10:16:07] bweston92: Papierkorb I've found a database Grahpite which statsd uses, might look promising :)
[10:23:56] GioVdK: Papierkorb: actually CGI.escape should be ok, it is converting + to %2B and spaces to + (instead of %20 but that's the same), I probably misread the output hehe
[10:25:13] moshee: has joined #ruby
[10:25:13] moshee: has joined #ruby
[10:25:30] Papierkorb: GioVdK: Yeah, but tbh I'd prefer the ERB one here, so that browsers don't have to guess if the + is meant to be a space or just a weirdly (wrong?) encoded plus character
[10:25:43] bruno-: has joined #ruby
[10:26:41] sdothum: has joined #ruby
[10:26:48] hk238: has joined #ruby
[10:28:42] ferr: has joined #ruby
[10:29:11] framling: has joined #ruby
[10:31:37] GioVdK: Papierkorb: in terms of reliability, they should be the same right? (not dependant on other config or ruby version, etc.)
[10:31:54] Papierkorb: GioVdK: Reliability in which sense?
[10:32:20] Papierkorb: that a (most likely) web browser client parses the URL part correctly?
[10:32:45] finnnnnnnnnnn: has joined #ruby
[10:33:03] finnnnnnnnnnn: in a sinatra app, I’m trying to create a simple method that accepts a block, but it’s not being recognised. ArgumentError at / wrong number of arguments (given 0, expected 1). https://gist.github.com/fionnbharra/86d809a513999e8103b401156c1e7c44
[10:33:19] GioVdK: I'm new with ruby and ERB is for templating, right? So maybe there are some global settings that may affect the output / the way it is encoded or something like that?
[10:34:17] GioVdK: nope I literally meant (reliability) for the output of ERB::Util.url_encode to always be the same
[10:35:16] Papierkorb: GioVdK: ERB is for templating, correct. The code of .url_encode means that no configuration option affects its output
[10:35:37] Papierkorb: GioVdK: You can check so yourself. I guess you're using irb, correct?
[10:35:40] bronson: has joined #ruby
[10:37:50] tAn: has joined #ruby
[10:38:20] GioVdK: yep, irb and I also have it as the result of a method I'm writing for a script
[10:38:39] Papierkorb: GioVdK: Then let me make your life a little easier :) $ gem install pry pry-coolline # You may need sudo depending on your platform.
[10:38:51] GioVdK: so yep I checked the option, I just wanted to make sure that on a different configuration it would be the same
[10:39:11] Papierkorb: GioVdK: Afterwards, start 'pry'. Pry is basically irb on steroids. You can use it like irb, but it comes with lots of useful other stuff
[10:39:14] ctp: has joined #ruby
[10:39:44] Papierkorb: Oh, actually, start pry like this to directly require 'erb': pry -rerb
[10:40:17] Papierkorb: Now in the pry shell, type INCLUDING the dollar sign as first character: $ ERB::Util.url_encode
[10:40:25] Shashikant86: has joined #ruby
[10:43:44] GioVdK: nice one, didn't know about it. thanks
[10:44:05] GioVdK: so I guess the dollar sign stands for source
[10:44:10] Papierkorb: GioVdK: Replace the $ with a ? to directly access the docs
[10:44:16] Papierkorb: GioVdK: You guess correctly, yes
[10:44:29] GioVdK: uh cool, thanks! really handy
[10:44:32] ctp: hi folks. kind of noob question but cannot figure it out actually. how to bring two arrays (same length, corresponding elements) into an array of hashes? foo = ["a", "b", "c"] and bar = [1,2,3] shall become [{name: "a", version: 1}, {name: "b", version: 2}, {name: "c", version: 3}]? the only thing i got so far is foo.zip(bar).to_h which gives me {"a": 1, "b": 2, "c": 3}.
[10:44:43] sameerynho: has joined #ruby
[10:44:48] pawnbox: has joined #ruby
[10:44:53] Papierkorb: GioVdK: Works with stuff too like $ my_variable.some_func or $ Array#each etc. :)
[10:45:07] tobiasvl: ctp: you probably need to map something there
[10:45:23] ctp: tobiasvl $something :)
[10:45:26] tobiasvl: it needs to know the hash keys
[10:45:32] xue: has joined #ruby
[10:45:52] ctp: yep, thats true
[10:45:57] Papierkorb: ctp: Check out Enumerable#zip for the first step and then #map for the mapping step, then do #to_h to get the hash
[10:46:15] zacstewart: has joined #ruby
[10:46:33] xue: has joined #ruby
[10:46:48] ramfjord: has joined #ruby
[10:47:48] Papierkorb: ctp: Oh, you don't need the #to_h in your case then, just have you #map return the 'inner' Hash
[10:48:14] ctp: lemme try
[10:49:39] ctp: ok, like this?
[10:49:42] ctp: foo.zip(bar).map {|k,v| {"name": k, "version": v} }
[10:49:57] Ox0dea: `k` is misleading there, though.
[10:50:08] rodfersou: has joined #ruby
[10:50:31] ctp: but got the idea, thx guys & gals
[10:51:07] nando293921: has joined #ruby
[10:51:35] mdw: has joined #ruby
[10:53:08] ravishankarjha: has joined #ruby
[10:54:08] Tichodroma: has joined #ruby
[10:55:12] Couch: has joined #ruby
[10:55:25] bluOxigen: has joined #ruby
[10:57:32] DaniG2k: has joined #ruby
[10:58:36] SpeakingClojure: has joined #ruby
[10:59:14] n008f4g_: has joined #ruby
[11:00:18] blackmes1: has joined #ruby
[11:03:34] nettoweb: has joined #ruby
[11:06:00] perlgod: has joined #ruby
[11:06:01] karapetyan: has joined #ruby
[11:15:45] tens0r: has joined #ruby
[11:16:58] ceegee_: does anyone know if there is a possibility to override the displayed page name in rdoc documentation? normally the filename is displayed but I want to have the absolute path included
[11:18:37] d0lph1n98: has joined #ruby
[11:19:35] jeanlinux: has joined #ruby
[11:19:39] panpainter: has joined #ruby
[11:20:41] joonty: has joined #ruby
[11:22:57] Dysp: has joined #ruby
[11:26:14] bruno-: has joined #ruby
[11:27:42] tubuliferous: has joined #ruby
[11:28:21] pawnbox: has joined #ruby
[11:28:59] zapata: has joined #ruby
[11:31:36] ravishankarjha: any one used azure storage with ruby?
[11:31:48] duckpuppy: has joined #ruby
[11:33:30] zotherstupidguy: has joined #ruby
[11:34:29] TomyLobo: has joined #ruby
[11:35:35] pawnbox: has joined #ruby
[11:39:31] dostoyevsky: I cannot gem install tokyocabinet with ruby2.3 ... does it not exist anymore?
[11:40:50] flashpoint9: has joined #ruby
[11:41:04] twe4ked: has joined #ruby
[11:41:25] FooMunki: has joined #ruby
[11:41:33] gnufied: has joined #ruby
[11:42:09] htmldrum: has joined #ruby
[11:42:31] dostoyevsky: kyotocabinet even ...
[11:42:53] hchcode: has joined #ruby
[11:43:34] |2701: has joined #ruby
[11:44:46] ldnunes: has joined #ruby
[11:45:44] platzhirsch: has joined #ruby
[11:48:01] yude: has joined #ruby
[11:48:46] xue: has joined #ruby
[11:51:05] Moosashi: has joined #ruby
[11:53:31] akkad: has joined #ruby
[11:55:56] sameerynho: has joined #ruby
[11:56:45] Devalo: has joined #ruby
[11:57:14] fnux: has joined #ruby
[11:58:00] johnmilton: has joined #ruby
[12:00:44] jeanlinux: has joined #ruby
[12:02:41] shevy: it exists https://rubygems.org/gems/kyotocabinet
[12:02:43] shevy: but is quite old, 2010
[12:03:10] synthroid: has joined #ruby
[12:03:53] shevy: extconf.rb:18:in `<main>': uninitialized constant Config (NameError)
[12:04:29] shevy: one can change that line to RbConfig
[12:04:49] shevy: but the flags include -lkyotocabinet which I don't have so I can't check further
[12:06:12] GodFather: has joined #ruby
[12:07:05] VeryBewitching: has joined #ruby
[12:07:43] blackmes1: has joined #ruby
[12:08:18] madgen: has joined #ruby
[12:08:34] jaruga___: has joined #ruby
[12:10:58] DaniG2k: has joined #ruby
[12:15:16] nadir: has joined #ruby
[12:16:21] FooMunki: has joined #ruby
[12:17:49] jeanlinux: has joined #ruby
[12:18:51] joonty: has joined #ruby
[12:20:07] chouhoulis: has joined #ruby
[12:21:21] Shashikant86: has joined #ruby
[12:21:58] cdg: has joined #ruby
[12:24:25] camilasan: has joined #ruby
[12:27:13] chouhoulis: has joined #ruby
[12:27:29] bruno-: has joined #ruby
[12:27:36] rbennacer: has joined #ruby
[12:29:05] finnnnnnnnnnn: has joined #ruby
[12:29:14] GodFather: has joined #ruby
[12:30:15] tAn: has joined #ruby
[12:31:56] madgen: has joined #ruby
[12:31:59] mikecmpbll: has joined #ruby
[12:34:18] rbennacer: has joined #ruby
[12:37:35] bronson: has joined #ruby
[12:38:16] kam270: has joined #ruby
[12:39:39] twe4ked: has joined #ruby
[12:40:33] rbennacer: has joined #ruby
[12:40:54] millerti: has joined #ruby
[12:43:30] gizmore: has joined #ruby
[12:48:25] Paraxial: has joined #ruby
[12:50:12] dionysus69: has joined #ruby
[12:50:18] ravishankarjha: has joined #ruby
[12:52:33] vcoinminer: has joined #ruby
[12:53:57] ferr1: has joined #ruby
[12:55:00] fmcgeough: has joined #ruby
[12:56:09] ramortegui: has joined #ruby
[12:57:11] AnoHito_: has joined #ruby
[12:59:57] zzz: has joined #ruby
[13:00:56] flashpoint9: has joined #ruby
[13:01:37] DaniG2k: has joined #ruby
[13:02:01] s00pcan_: has joined #ruby
[13:03:28] MassDebates: has joined #ruby
[13:07:04] tknz: has joined #ruby
[13:07:36] davedev24: has joined #ruby
[13:09:07] Symbiosisz: has joined #ruby
[13:10:26] blackmes1: has joined #ruby
[13:12:22] zacstewart: has joined #ruby
[13:15:49] tubuliferous: has joined #ruby
[13:17:19] finnnnnnnnnnn_: has joined #ruby
[13:17:55] cdg: has joined #ruby
[13:19:32] tens0r: has joined #ruby
[13:20:44] rippa: has joined #ruby
[13:21:06] yude: has joined #ruby
[13:24:46] n_blownapart: has joined #ruby
[13:25:04] CloCkWeRX: has joined #ruby
[13:27:55] bruno-: has joined #ruby
[13:31:04] tens0r: has joined #ruby
[13:31:22] armatechnicos: has joined #ruby
[13:32:35] GioVdK: has joined #ruby
[13:32:56] crystal77: has joined #ruby
[13:34:50] tkiel: has joined #ruby
[13:36:56] griffindy: has joined #ruby
[13:40:04] jxs_: has joined #ruby
[13:40:10] stannard: has joined #ruby
[13:40:47] pawnbox: has joined #ruby
[13:40:59] jxs_: has joined #ruby
[13:41:02] armatechnicos: has joined #ruby
[13:41:46] panpainter: has joined #ruby
[13:41:59] jxs_: has joined #ruby
[13:42:37] mdw: has joined #ruby
[13:43:31] banister: has joined #ruby
[13:45:28] tAn: has joined #ruby
[13:45:44] crystal77: has joined #ruby
[13:45:45] GnuYawk: has joined #ruby
[13:45:50] GnuYawk: has joined #ruby
[13:45:50] bwlang: has joined #ruby
[13:46:14] ChiefAlexander: has joined #ruby
[13:46:41] bwlang: I have a ruby program (not rails) with multiple classes in one file. time to refactor… any good patterns for me to follow?
[13:47:24] bwlang: thinking of putting everything in lib… but not sure if that’s expected.
[13:47:52] griffindy: i would say that's not surprising
[13:47:56] tildes: has joined #ruby
[13:49:26] shevy: bwlang yes, always space it out, and I would also go one-file-per-class unless there is reason not to
[13:49:50] vondruch: has joined #ruby
[13:50:11] bwlang: i didn’t find any example non-rails projects to learn from on github, anybody know of an example?
[13:52:00] shevy: it is quite simple, people do things differently though. usually the main require file is one that has the same name of the directory
[13:52:05] shevy: so you have foo/ and foo.rb
[13:52:18] shevy: foo.rb then either has the code, or it delegates to the other .rb files that are within the directory foo/
[13:52:43] shevy: I usually start with the basic parts of the project, such as constants.rb which often has, as the name implies, some project-specific / shared constants
[13:53:00] shevy: for batch-requiring, I sometimes add a subdirectory called requires/
[13:53:13] crystal77: has joined #ruby
[13:53:14] shevy: if it is really many files, I often end up just doing a Dir[] on the files where they are
[13:54:37] bwlang: shevy: my “main” file now has about 30 require statements at the top… pretty ugly. sorry - i’m not getting your Dir[] method … to you feed the results of Dir to requrie?
[13:55:40] bwlang: right now looks like this : https://gist.github.com/bwlang/1eeb42a702f2f5097065e2331d3897ac
[13:56:20] SilverKey: has joined #ruby
[13:56:23] tAn: has joined #ruby
[13:57:41] crystal77: has joined #ruby
[13:57:48] shevy: yeah it can have a lot of individual requires
[13:58:03] tens0r: has joined #ruby
[13:58:11] shevy: that is one reason why I often use Dir[]; another reason, and actually equally cool is that I don't have to add any more manual requires lateron. I can just drop a .rb file and it will be required
[13:59:05] shevy: yeah I have something like Dir[].each or something like that
[13:59:25] smathy: has joined #ruby
[13:59:30] kobain: has joined #ruby
[14:00:25] kobain: has joined #ruby
[14:00:43] inukshuk_: has joined #ruby
[14:00:46] bwlang: like this Dir[‘lib’].each {|f| require f} ?
[14:01:30] idefine: has joined #ruby
[14:01:34] IvanSuftin: has joined #ruby
[14:01:39] shevy: the argument has to include something like *.rb
[14:01:47] shevy: or if you don't care, * may suffice
[14:01:52] shevy: but I always use the *.rb variant
[14:02:09] idefine: has joined #ruby
[14:02:15] shevy: but stick to individual require statements for now, you can change to anything else lateron anyway
[14:02:58] shevy: you must have quite a big project already with those many require statements :)
[14:04:09] grenierm: has joined #ruby
[14:04:26] skade: has joined #ruby
[14:05:28] idle_task: has joined #ruby
[14:05:50] crystal77: has joined #ruby
[14:09:48] crystal77: has joined #ruby
[14:11:16] swills: has joined #ruby
[14:13:08] n_blownapart: has joined #ruby
[14:14:32] ravishankarjha: has joined #ruby
[14:16:15] Elvin: has joined #ruby
[14:17:56] joonty: has joined #ruby
[14:18:28] Pwnna: has joined #ruby
[14:18:49] Baprath: has joined #ruby
[14:19:24] Pwnna: is there a way to set an extra paragraph below the banner of optparse?Right now I'm using separator with text but I want to be able to modify that section after the flags have been set (for subclassing)
[14:19:45] jhack: has joined #ruby
[14:22:25] dopamean_: has joined #ruby
[14:22:59] iNs: oi, anyone ever had a problem with specifying --rakefile manually? my rake ignores the argument completely
[14:23:13] eljimmy: has joined #ruby
[14:25:56] bruno-: has joined #ruby
[14:30:03] Ispira: has joined #ruby
[14:32:21] nw1: has joined #ruby
[14:32:26] shaman42: has joined #ruby
[14:33:08] jeanlinux: has joined #ruby
[14:33:45] banister: has joined #ruby
[14:34:12] n_blownapart: has joined #ruby
[14:34:35] jeanlinux: has joined #ruby
[14:35:21] kareeoleez: has joined #ruby
[14:36:57] jeanlinux: has joined #ruby
[14:37:43] cd83x_: has joined #ruby
[14:38:02] jeanlinux: has joined #ruby
[14:39:08] jeanlinux: has joined #ruby
[14:39:09] jds: has joined #ruby
[14:41:15] bwlang: shevy: yeah - this is overdue for a refactor...
[14:42:36] zzz: has joined #ruby
[14:42:58] griffindy: better late than never :D
[14:43:11] norc: has joined #ruby
[14:43:53] GriffinHeart: has joined #ruby
[14:43:55] norc: Should an ensure block be exception safe?
[14:44:37] toretore: norc: yes, probably
[14:44:48] norc: toretore: Your reason being?
[14:44:56] toretore: i imagine it will stop executing at an exception just like any other block of code
[14:45:30] toretore: so for most ensure blocks you probably want to make sure it runs until completion
[14:45:37] norc: Program flow will be interrupted regardless if an exception is thrown.
[14:45:51] norc: My point is the debugging information about the original exception seems to be lost irrecoverably.
[14:47:05] heftig: has joined #ruby
[14:47:35] troulouliou_div2: has joined #ruby
[14:47:39] codecop: has joined #ruby
[14:47:40] norc: toretore: https://gist.github.com/norc/ebb96f9d331c1bd69d4f57c15f4e9ac5
[14:47:56] thejoecarroll: has joined #ruby
[14:47:56] chipotle: has joined #ruby
[14:48:24] loincloth: has joined #ruby
[14:48:42] norc: If release_resource raises an exception you have no way of knowing if an exception was thrown before.
[14:49:33] freerobby: has joined #ruby
[14:49:53] norc: But I guess that is the price for the ensure block.
[14:50:00] troulouliou_div2: hi this works s.scan(/.{1,4}/) but not this : s.scan(/.{1,#{options[:length]}/)
[14:50:03] freerobby: has joined #ruby
[14:50:16] troulouliou_div2: options[:length] = 4
[14:50:17] shevy: and what is s
[14:50:19] norc: troulouliou_div2: Can you be specific what you mean by "it does not work" ?
[14:50:24] troulouliou_div2: shelling__, a string
[14:50:30] shevy: no I mean exactly
[14:50:34] norc: asm>> s.scan(/.{1,#{options[:length]}/)
[14:50:35] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/566659
[14:50:37] norc: The code compiles fine for me.
[14:50:37] troulouliou_div2: norc, it does outbut a string splitted every 4 chars
[14:51:00] Ropeney: has joined #ruby
[14:51:17] shevy: btw are you missing a } ?
[14:51:46] troulouliou_div2: shevy, yes i m -> went to shame :)
[14:51:52] troulouliou_div2: shevy, long time did not used ruby :)
[14:52:17] toretore: norc: i don't get what you mean. the rescue runs before the ensure
[14:52:55] norc: toretore: Precisely.
[14:53:16] norc: toretore: Well leave the rescue handlers away then it becomes a bit more sensible.
[14:53:58] shevy: I always thought of ensure in the context of the begin/rescue clauses
[14:54:18] toretore: norc: yes, then it will be lost, but how would it work otherwise?
[14:54:19] ravishankarjha: has joined #ruby
[14:54:34] toretore: norc: thus you want to make sure your ensure doesn't raise
[14:54:56] shevy: ensure another raise to be rescued :)
[14:55:02] norc: shevy: rescue and ensure are just wrappers for setjmp() under the hood.
[14:55:45] norc: Effectively mruby invokes longjmp() on everything that interrupts flow wrt exceptions.
[14:56:26] banister: has joined #ruby
[14:56:30] norc: toretore: Im thinking I would like an exception stack!
[14:57:35] camilasan: has joined #ruby
[14:57:38] weemsledeux: has joined #ruby
[14:58:00] norc: toretore: And that is not possible if you have to release a remote resource through a SOAP API.
[14:59:40] toretore: norc: sure it is, you just rescue the exception
[15:00:22] Devalo: has joined #ruby
[15:00:30] toretore: but i wouldn't use this sort of logic to release a remote lock
[15:00:45] norc: toretore: you kind of have to
[15:00:53] RegulationD: has joined #ruby
[15:01:16] toretore: only if you're making a "magic" lock-releasing block thing
[15:01:22] toretore: you could choose not to
[15:01:24] norc: toretore: https://gist.github.com/norc/7ecd4f771270ac8074350a4b96a9a10a
[15:01:33] norc: To implement a rather common pattern
[15:01:37] camilasan: has joined #ruby
[15:01:50] panpainter: has joined #ruby
[15:01:59] toretore: but as soon as you put a network in between everything is different and the rules change
[15:02:16] norc: If your API requires resources to be freed then you have a problem still.
[15:02:52] norc: Ah well, gotta run for the train. Will be back later for this.
[15:02:58] toretore: sometimes it's the better choice to force the user to make these decisions
[15:03:21] whippythellama: has joined #ruby
[15:03:31] toretore: a lot of decisions, i find. as the user, i'd like more control and less non-working magic
[15:03:54] tubuliferous: has joined #ruby
[15:03:59] idefine_: has joined #ruby
[15:04:23] astrobunny: has joined #ruby
[15:07:47] sameerynho: has joined #ruby
[15:07:59] GriffinH_: has joined #ruby
[15:08:35] davedev24: has joined #ruby
[15:10:19] s00pcan_: has joined #ruby
[15:10:53] polishdub: has joined #ruby
[15:11:41] freerobby: has joined #ruby
[15:13:14] phpwebdev: has joined #ruby
[15:15:02] flashpoint9: has joined #ruby
[15:15:22] ravishankarjha: has joined #ruby
[15:19:02] jdr: has joined #ruby
[15:21:01] SilverKey: has joined #ruby
[15:21:28] FooMunki: has joined #ruby
[15:21:29] platzhirsch: has joined #ruby
[15:21:32] platzhirsch: has left #ruby: ()
[15:22:20] kareeoleez: has joined #ruby
[15:24:53] skolman_: has joined #ruby
[15:26:15] yqt: has joined #ruby
[15:26:29] mdw: has joined #ruby
[15:26:57] swills: has joined #ruby
[15:27:12] madgen: has joined #ruby
[15:27:34] jxs_: has joined #ruby
[15:29:11] dikaio: has joined #ruby
[15:29:20] hobodave: has joined #ruby
[15:29:38] crystal77: has joined #ruby
[15:30:22] hobodave: has joined #ruby
[15:32:03] bobbycvi: has joined #ruby
[15:34:34] kareeoleez: has joined #ruby
[15:34:55] sameerynho: has joined #ruby
[15:35:04] nando294021: has joined #ruby
[15:36:16] clifford_: has joined #ruby
[15:38:05] lessless: has joined #ruby
[15:38:11] joonty: has joined #ruby
[15:40:04] [Butch]: has joined #ruby
[15:40:25] bronson: has joined #ruby
[15:40:34] bougyman: hrm. googlefail. looking for a tool which does a refactoring task... takes module Foo and makes it module Super::Duper::Foo
[15:40:54] bougyman: was trying to sed it, but the indenting becomes a bitch.
[15:41:15] bougyman: have to write a real sed script, that is, not a one-liner. that's when I decided to google it.
[15:41:23] bougyman: seems like someone would have done this before.
[15:42:06] symm-: has joined #ruby
[15:42:07] BSaboia: has joined #ruby
[15:42:14] flashpoint9: has joined #ruby
[15:42:22] ramfjord: has joined #ruby
[15:43:04] dopamean_: has joined #ruby
[15:43:32] lubekpl: has joined #ruby
[15:43:37] gix: has joined #ruby
[15:44:07] whathappens: has joined #ruby
[15:45:15] _orangejuice: has joined #ruby
[15:46:39] JJM: has joined #ruby
[15:46:55] karmatr0n: has joined #ruby
[15:47:10] Shashikant86: has joined #ruby
[15:48:25] duderonomy: has joined #ruby
[15:49:33] amclain: has joined #ruby
[15:50:31] Coldblackice: has joined #ruby
[15:52:07] Veejay: has joined #ruby
[15:52:56] PaulCapestany: has joined #ruby
[15:53:22] weemsledeux: has joined #ruby
[15:53:25] Veejay: Hello everyone, is there a way to make a HTTP request using the BAN method using Net::HTTP? The documentation for Net::HTTPRequest specifies that Net::HTTPRequest should not be used directly and advises to use the appropriate subclasses instead
[15:53:37] platzhirsch: has joined #ruby
[15:54:17] Veejay: And the subclasses only cover the usual HEAD, GET, POST, PUT, etc.
[15:54:47] ruby[bot]: -b gintaz!*@*$#ruby-banned
[15:54:57] Cohedrin: has joined #ruby
[15:56:10] tildes_: has joined #ruby
[15:56:33] PaulCapestany: has joined #ruby
[15:57:19] lycaonian: has joined #ruby
[15:57:53] RegulationD: has joined #ruby
[15:58:10] lycaonian: has joined #ruby
[16:00:08] troulouliou_div2: hi how can i set a variable based on a string containing the var name : something like this : var1 = 1 ; s = "var1" ; ???s = ???s + 1 ;
[16:01:42] camilasan: has joined #ruby
[16:02:46] SilverKey: has joined #ruby
[16:04:15] n_blownapart: has joined #ruby
[16:04:26] minimalism: has joined #ruby
[16:05:10] astrobunny: has joined #ruby
[16:05:33] GinoMan2440: has joined #ruby
[16:05:47] Sembei: has joined #ruby
[16:07:13] camilasan: has joined #ruby
[16:07:57] swills: has joined #ruby
[16:08:23] saltsa: has joined #ruby
[16:08:57] platzhirsch: has joined #ruby
[16:08:58] platzhirsch: has left #ruby: ()
[16:09:41] speakingcode: has joined #ruby
[16:12:33] ferr1: has joined #ruby
[16:13:28] nrd_pxs: has joined #ruby
[16:13:44] idefine: has joined #ruby
[16:15:38] kareeoleez: has joined #ruby
[16:17:02] GioVdK: has joined #ruby
[16:18:37] n_blownapart: has joined #ruby
[16:19:49] synthroid: has joined #ruby
[16:20:51] Guest38: has joined #ruby
[16:22:50] terminalrecluse: has joined #ruby
[16:24:03] SCHAAP137: has joined #ruby
[16:25:28] zzz: has joined #ruby
[16:25:29] terminalrecluse: has joined #ruby
[16:25:38] xcesariox: has joined #ruby
[16:26:15] whathappens: has joined #ruby
[16:26:22] modin: has joined #ruby
[16:26:30] sepp2k: has joined #ruby
[16:26:35] joevandyk: has joined #ruby
[16:26:54] mtkd: has joined #ruby
[16:27:04] ckrailo: has joined #ruby
[16:27:11] finnnnnnnnnnn: has joined #ruby
[16:27:15] rtl: has joined #ruby
[16:29:11] matt_d: has joined #ruby
[16:29:13] Elvin: has joined #ruby
[16:29:27] connor_goodwolf: has joined #ruby
[16:29:45] karmatr0n: has joined #ruby
[16:30:19] yonatankoren: has joined #ruby
[16:30:19] headius: has joined #ruby
[16:30:28] nlsun: has joined #ruby
[16:30:29] bogdanteleaga: has joined #ruby
[16:30:41] Alina-ma-: has joined #ruby
[16:30:43] martinbjeldbak: has joined #ruby
[16:30:58] apeiros: troulouliou_div2: you don't. you use a hash.
[16:31:27] pabs: has joined #ruby
[16:32:09] troulouliou_div2: apeiros, isntance_get_name ?
[16:32:11] adaedra: has joined #ruby
[16:32:14] Meow-J: has joined #ruby
[16:32:28] null__: has joined #ruby
[16:32:38] diegoviola: has joined #ruby
[16:32:44] irick: has joined #ruby
[16:32:47] apeiros: troulouliou_div2: instance variables are those with an @
[16:32:54] apeiros: bareword variables are local variables
[16:32:59] clamstar: has joined #ruby
[16:33:00] Biohazard: has joined #ruby
[16:33:10] df: has joined #ruby
[16:33:11] UserInneed: has joined #ruby
[16:33:12] UKn0Me: has joined #ruby
[16:33:18] SirFunk: has joined #ruby
[16:33:24] gsingh93: has joined #ruby
[16:33:44] troulouliou_div2: apeiros, ok hash then :)
[16:33:57] D9: has joined #ruby
[16:34:31] strongcode: has joined #ruby
[16:34:42] Vircung: has joined #ruby
[16:35:00] CalimeroTeknik: has joined #ruby
[16:35:18] jeanlinux: has joined #ruby
[16:35:20] Amnez777: has joined #ruby
[16:35:34] segy: has joined #ruby
[16:35:57] awk: has joined #ruby
[16:36:21] pjaspers: has joined #ruby
[16:36:28] flashpoint9: has joined #ruby
[16:36:44] Veejay: troulouliou_div2: You can also have a look at instance_variable_set, but generally speaking, listen to apeiros and use a hash
[16:37:47] isene: has joined #ruby
[16:38:20] ferr: has joined #ruby
[16:39:05] whathappens: has joined #ruby
[16:39:21] coyo: has joined #ruby
[16:39:22] coyo: has joined #ruby
[16:39:31] jidar: has joined #ruby
[16:39:42] mikecmpbll: has joined #ruby
[16:40:24] robbyoconnor: has joined #ruby
[16:40:48] majjoha: has joined #ruby
[16:40:54] davedev24: has joined #ruby
[16:43:27] mostlybadfly: has joined #ruby
[16:43:43] whathappens: has joined #ruby
[16:43:57] ruid: has joined #ruby
[16:43:58] ruid: has joined #ruby
[16:44:33] idefine: has joined #ruby
[16:44:36] karmatr0n: has joined #ruby
[16:44:38] whathapp_: has joined #ruby
[16:44:43] Veejay: troulouliou_div2: instance_variable_get and instance_variables are one of many methods that look (and are) powerful, but that can quickly lead to unmanageable pieces of "avant garde" coding
[16:45:05] Veejay: Avec modération as they say
[16:45:14] apeiros: remains the question whether they wanted ivars (and asked their question badly) or local variables.
[16:45:20] CustosLimen: why does is this false: (""..."923000161236").include?( "923000161232" )
[16:45:36] azor: has joined #ruby
[16:45:39] apeiros: >> "".succ
[16:45:40] ruby[bot]: apeiros: # => "" (https://eval.in/566677)
[16:45:43] djbkd: has joined #ruby
[16:45:53] apeiros: because the enumerated range does not include that string.
[16:46:41] CustosLimen: why is this so slow: ("0"..."923000161236") === ( "923000161232" )
[16:46:45] newbie1: has joined #ruby
[16:46:55] CustosLimen: I would expect it to just do two string comparisons
[16:46:59] apeiros: you might want cover? instead, but with strings instead of numbers, you'll probably just run into the next problem (because "9" > "10", not like 9 < 10)
[16:46:59] Elvin: has joined #ruby
[16:47:10] Veejay: apeiros: Apparently local variables, but in that context I thought it'd be worth having a look
[16:47:17] apeiros: CustosLimen: then maybe verify your expectation and read the docs?
[16:47:23] snockerton: has joined #ruby
[16:47:25] apeiros: because no, it does not do two string comparisons.
[16:47:26] Veejay: I feel those methods can make you fall in love with the language pretty fast :)
[16:47:48] CustosLimen: ok cover is quicker
[16:47:48] benlieb: has joined #ruby
[16:48:03] CustosLimen: ("0"..."923000161236").cover?( "923000161232" )
[16:48:06] CustosLimen: >> ("0"..."923000161236").cover?( "923000161232" )
[16:48:07] ruby[bot]: CustosLimen: # => true (https://eval.in/566678)
[16:48:28] CustosLimen: thanks apeiros
[16:48:39] GriffinHeart: has joined #ruby
[16:48:51] apeiros: CustosLimen: did you read up what Range#include? and #cover? do? or are you just blindly using it now?
[16:49:32] SilverKey: has joined #ruby
[16:50:15] CustosLimen: apeiros, yes i did - but honestly to me element of range if range is delimited as strings seems like >= min and <= max (regarding include? docs)
[16:50:24] CustosLimen: apeiros, which is why I was surprised
[16:50:30] edwinvdgraaf: has joined #ruby
[16:51:55] apeiros: CustosLimen: "element of range" means it has to enumerate the range
[16:52:00] tubuliferous: has joined #ruby
[16:52:49] CustosLimen: apeiros, yeah, that part was not really evident to me from the documentation of it
[16:53:08] apeiros: sadly, numerics are special cased, which makes Range#include? behave like cover? for those, but other than that, you can't have a generic solution using <=>, as that misses the "stepwidth" (or whatever you want to call how .succ works)
[16:53:36] DoubleMalt: has joined #ruby
[16:55:27] ChiefAlexander: has joined #ruby
[16:56:46] CustosLimen: anyway, thanks, I'm giddy that what I wanted to do worked with so little code ;)
[16:57:03] CustosLimen: was getting fed up with awk's lack of json and date processing
[17:00:13] blackmes1: has joined #ruby
[17:01:58] freerobby: has joined #ruby
[17:03:03] BSaboia: has joined #ruby
[17:04:10] firstdayonthejob: has joined #ruby
[17:05:54] astrobunny: has joined #ruby
[17:06:02] SilverKey: has joined #ruby
[17:07:00] n008f4g_: has joined #ruby
[17:08:15] swills: has joined #ruby
[17:09:58] kaleido: has joined #ruby
[17:12:36] spectra: has joined #ruby
[17:12:51] Moosashi: has joined #ruby
[17:14:51] CustosLimen: shevy, indeed
[17:15:00] kareeoleez: has joined #ruby
[17:17:46] ramfjord: has joined #ruby
[17:18:20] spiette: has joined #ruby
[17:19:36] nanoz: has joined #ruby
[17:21:18] madgen: has joined #ruby
[17:21:33] idefine: has joined #ruby
[17:22:38] polishdub: has joined #ruby
[17:25:32] ctp: has joined #ruby
[17:25:34] drewo: has joined #ruby
[17:25:54] ramfjord: has joined #ruby
[17:32:51] haxrbyte: has joined #ruby
[17:34:57] akem2: has joined #ruby
[17:35:28] phantummm: has joined #ruby
[17:36:22] gnarld_: has joined #ruby
[17:37:31] flashpoint9: has joined #ruby
[17:38:13] nanoz: has joined #ruby
[17:39:01] nanoz: has joined #ruby
[17:39:02] ramfjord: has joined #ruby
[17:41:15] mosez: has joined #ruby
[17:41:17] brent__: has joined #ruby
[17:41:18] df: has joined #ruby
[17:41:32] lupine_: has joined #ruby
[17:41:40] nanoz: has joined #ruby
[17:41:58] bronson: has joined #ruby
[17:42:28] ule: Hey guys.. if I have an instance variable.. how can I access it from inside a method?
[17:42:37] ule: I'm getting undefined method 'foo'
[17:42:48] ule: I'm using self.my_var
[17:43:04] DevastatingDave: has joined #ruby
[17:43:09] davedev24: has joined #ruby
[17:43:36] d0nn1e: has joined #ruby
[17:43:43] haxrbyte_: has joined #ruby
[17:43:49] ule: actually.. here it's not a variable.. it's a hash
[17:43:53] ule: but should work
[17:44:10] shevy: do you have the code?
[17:44:33] ule: shevy: I'll create an example.. sec...
[17:44:53] Skept: has joined #ruby
[17:44:54] shadows: ule: use a pastebin (here is using gist, see topic)
[17:45:03] Skept: has left #ruby: ()
[17:46:16] ravishan_: has joined #ruby
[17:46:43] programmerq: has joined #ruby
[17:47:06] davedev24: has joined #ruby
[17:48:48] ule: shadows: http://codepad.org/QGJepSv0
[17:49:13] ule: as you can see on my output, "undefined method"
[17:50:55] ftj: has joined #ruby
[17:52:10] ule: any idea what's going on guys?
[17:52:32] Ox0dea: ule: How come you don't want to just refer to the instance variable with `@foo`?
[17:53:40] tildes_: has joined #ruby
[17:54:26] ule: Ox0dea: if I replace for puts @foo it doesnt have content
[17:55:06] chopin: has joined #ruby
[17:55:12] Dimik: has joined #ruby
[17:55:24] Ox0dea: ule: That'll be because you're setting `@foo` on the Class itself; you usually do that in #initialize so that it gets set on instances thereof.
[17:55:53] yos7ph: has joined #ruby
[17:55:57] elifoster: has joined #ruby
[17:56:03] Alina-ma-: has joined #ruby
[17:56:15] Ox0dea: What resource(s) are you using to learn Ruby?
[17:56:24] Elvin: has joined #ruby
[17:56:26] ule: ok.. the problem is.. My hash is too big.. and my code analyzer "Tailor" is compaining because I'm exceeding max of lines
[17:56:36] Ox0dea: I'm bailing.
[17:56:42] ule: that's why I decided to move my hash out of my method
[17:57:11] ule: if I can do @foo = 10.. I thought I could do the same wit hashes
[17:57:54] mikecmpbll: has joined #ruby
[17:57:59] shevy: ule you can define an accessor method that will tap into that other @foo
[17:59:03] shevy: ule https://gist.github.com/shevegen/f88e2602582e55e169ddb8d77ce3e1f9
[17:59:16] Shidash: has joined #ruby
[18:00:07] grenierm: has joined #ruby
[18:00:17] ule: shevy: that's actually a really cool idea
[18:01:50] ProofTechnique: has joined #ruby
[18:01:58] modin: has joined #ruby
[18:02:13] hogetaro_: has joined #ruby
[18:02:26] goldfax: has joined #ruby
[18:03:29] blackmes1: has joined #ruby
[18:03:46] kriskropd: has joined #ruby
[18:04:45] ule: shevy: WORKED
[18:05:01] ule: its very weird.. but working
[18:05:04] ule: I'm using self.class.users_hash_list?[user_email]['first_name']
[18:05:21] ule: because I'm iterating through the hash fromt he method
[18:05:44] ule: thats cool!!
[18:05:51] shevy: I used to use constants for that in the past
[18:05:58] shevy: like FOO then rather than @foo
[18:06:03] shevy: until havenwood commented on it :D
[18:06:23] polishdub: has joined #ruby
[18:06:38] astrobunny: has joined #ruby
[18:06:48] ule: Since worked I'm gonna grab some food and after eat I'll run a debug here to understand very well what's going on
[18:06:57] headius: has joined #ruby
[18:07:09] ule: thank you very much guys
[18:08:23] swills: has joined #ruby
[18:10:30] joaumg: has joined #ruby
[18:10:53] hobodave: has joined #ruby
[18:11:14] whathappens: has joined #ruby
[18:11:21] Pwnna: has left #ruby: ("Leaving")
[18:11:54] skalfyfan: has joined #ruby
[18:12:44] justin_pdx: has joined #ruby
[18:12:59] skalfyfan: has joined #ruby
[18:13:08] n_blownapart: has joined #ruby
[18:13:41] pawnbox: has joined #ruby
[18:17:32] tax: has joined #ruby
[18:17:32] chipotle: has joined #ruby
[18:17:36] ravishankarjha: has joined #ruby
[18:19:22] ChiefAlexander: has joined #ruby
[18:21:25] whathappens: has joined #ruby
[18:21:47] djbkd: has joined #ruby
[18:22:05] whathappens: has joined #ruby
[18:23:21] flashpoint9: has joined #ruby
[18:24:19] yfeldblum: has joined #ruby
[18:24:30] Kus: has joined #ruby
[18:25:00] Vircung: has joined #ruby
[18:26:34] postmodern: has joined #ruby
[18:27:17] last_staff: has joined #ruby
[18:27:44] n_blownapart: has joined #ruby
[18:28:58] griffindy: has joined #ruby
[18:30:29] ravishankarjha: has joined #ruby
[18:31:16] zacstewart: has joined #ruby
[18:31:23] snowy: has joined #ruby
[18:31:33] pawnbox: has joined #ruby
[18:31:34] ChiefAlexander: has joined #ruby
[18:31:54] cdg: has joined #ruby
[18:32:11] lubekpl: has joined #ruby
[18:33:22] cdg: has joined #ruby
[18:33:25] mjuszczak: has joined #ruby
[18:34:09] scepticulous: has joined #ruby
[18:35:13] panpainter: has joined #ruby
[18:36:35] dionysus69: has joined #ruby
[18:36:42] ramfjord: has joined #ruby
[18:37:01] tildes_: has joined #ruby
[18:37:02] Hanmac: has joined #ruby
[18:37:38] whathappens: has joined #ruby
[18:39:10] drewo: has joined #ruby
[18:40:07] tubuliferous: has joined #ruby
[18:40:19] grenierm: has joined #ruby
[18:40:30] karapetyan: has joined #ruby
[18:40:57] hahuang65: has joined #ruby
[18:42:25] tohuw: has joined #ruby
[18:44:16] tohuw: Is there an easy way to see why a gem was installed by bundle? Meaning, it installed a gem as a dependency of another gem, but I don't see which gem has this dependency
[18:44:25] goldfax: has joined #ruby
[18:44:35] bougyman: Gemfile.lock should show the whole dep graph
[18:45:35] BTRE: has joined #ruby
[18:45:37] bronson: has joined #ruby
[18:45:54] tohuw: oh! Thank you bougyman
[18:46:36] kareeoleez: has joined #ruby
[18:48:15] idefine: has joined #ruby
[18:49:55] zzz: has joined #ruby
[18:52:14] ramfjord: has joined #ruby
[18:52:19] finisherr: has joined #ruby
[18:52:31] futilegames: has joined #ruby
[18:52:31] |2701: has joined #ruby
[18:53:01] nando293921: has joined #ruby
[18:54:51] hk238: has joined #ruby
[18:55:31] Alina-malina: has joined #ruby
[18:56:07] kareeoleez: has joined #ruby
[18:57:09] Hanmac: has joined #ruby
[18:58:23] Amnez777: has joined #ruby
[19:00:48] snowy: has joined #ruby
[19:02:49] flashpoint9: has joined #ruby
[19:03:18] symm-: has joined #ruby
[19:06:41] mjuszczak: has joined #ruby
[19:07:08] swills: has joined #ruby
[19:07:23] astrobunny: has joined #ruby
[19:07:52] ravishankarjha: has joined #ruby
[19:09:07] idefine: has joined #ruby
[19:12:48] choke: has joined #ruby
[19:13:13] chouhoulis: has joined #ruby
[19:14:03] kareeoleez: has joined #ruby
[19:16:08] haxrbyte: has joined #ruby
[19:16:09] ur5us: has joined #ruby
[19:16:21] flashpoint9: has joined #ruby
[19:18:00] pikajude: has joined #ruby
[19:18:00] pikajude: has joined #ruby
[19:18:24] tAn: has joined #ruby
[19:18:35] banister: has joined #ruby
[19:19:34] SilverKey: has joined #ruby
[19:19:56] tAn: has joined #ruby
[19:20:12] crystal77: has joined #ruby
[19:20:39] The_Phoenix: has joined #ruby
[19:21:14] ravishankarjha: has joined #ruby
[19:22:36] The_Phoenix: has joined #ruby
[19:23:35] whathappens: has joined #ruby
[19:24:32] The_Phoenix: has joined #ruby
[19:24:37] Hanmac: has joined #ruby
[19:25:27] The_Phoenix: has joined #ruby
[19:25:49] mosez: has joined #ruby
[19:26:52] Alina-malina: has joined #ruby
[19:27:12] The_Phoenix: has joined #ruby
[19:28:48] The_Phoenix: has joined #ruby
[19:29:35] idefine: has joined #ruby
[19:29:54] The_Phoenix: has joined #ruby
[19:32:05] kareeoleez: has joined #ruby
[19:32:35] sergey_makagon: has joined #ruby
[19:35:15] snowy: has joined #ruby
[19:36:30] Madplatypus: has joined #ruby
[19:36:34] kareeoleez: has joined #ruby
[19:37:25] ruid: has joined #ruby
[19:37:25] ruid: has joined #ruby
[19:39:00] jenrzzz: has joined #ruby
[19:41:30] arup_r: has joined #ruby
[19:42:36] idefine: has joined #ruby
[19:42:53] hahuang65: has joined #ruby
[19:45:07] deepak_: has joined #ruby
[19:45:14] jcp_: has joined #ruby
[19:47:37] whathappens: has joined #ruby
[19:48:36] kirun: has joined #ruby
[19:48:58] mwlang: has joined #ruby
[19:49:58] DukeDave: has joined #ruby
[19:53:02] shevy: does any of you happen to know a commandline gem that makes heavy use of different colours (on a terminal)? I want to have a look how they solve different colours used in text, e. g. emphasis... perhaps even if anyone uses bold or italic stuff, but regular colours are ok too
[19:53:02] FooMunki: has joined #ruby
[19:53:46] benzrf: shevy: pry
[19:54:46] shevy: hmm how to get to these colours?
[19:55:26] havenwood: shevy: https://www.ruby-toolbox.com/categories/Terminal_Coloring
[19:56:05] hayden__: has joined #ruby
[19:56:27] shevy: there is a gem called lolcat
[19:57:24] Ox0dea: It uses ruby-paint.
[19:57:27] mroth_: has joined #ruby
[19:57:58] Ox0dea: Which in turn uses rainbow.
[19:58:04] Ox0dea: It's colors all the way down.
[19:58:24] shevy: hmm seems rainbow is popular, I'll have a look
[19:59:03] zacstewart: has joined #ruby
[19:59:03] drewo: has joined #ruby
[20:00:07] panpainter: has joined #ruby
[20:00:11] safe: has joined #ruby
[20:01:09] hahuang65: has joined #ruby
[20:01:21] Jackneill: has joined #ruby
[20:02:44] hobodave_: has joined #ruby
[20:03:07] ramfjord: has joined #ruby
[20:03:13] benlieb: has joined #ruby
[20:04:15] cisco: has joined #ruby
[20:04:17] blackmes1: has joined #ruby
[20:04:22] iooner: has joined #ruby
[20:05:39] nofxx: has joined #ruby
[20:05:39] nofxx: has joined #ruby
[20:09:01] crameth: has joined #ruby
[20:09:56] BSaboia: has joined #ruby
[20:10:53] tubuliferous: has joined #ruby
[20:11:19] Moosashi: has joined #ruby
[20:11:59] aeterne: has joined #ruby
[20:14:32] madgen: has joined #ruby
[20:14:59] chouhoulis: has joined #ruby
[20:15:07] kristofferR: has joined #ruby
[20:16:13] finnnnnnnnnnn: has joined #ruby
[20:16:34] rbennacer: has joined #ruby
[20:16:47] bruce_lee: has joined #ruby
[20:16:48] bruce_lee: has joined #ruby
[20:16:57] theery: has joined #ruby
[20:17:31] theery: Anyone have any experience with the barby barcode gem and want some bounty points? http://stackoverflow.com/questions/37015579/printing-with-barby-gem-barcode-image-is-fuzzy
[20:18:00] Alina-ma-: has joined #ruby
[20:20:50] chopin: has joined #ruby
[20:21:31] rbennacer: has joined #ruby
[20:21:45] mtkd: has joined #ruby
[20:22:04] idefine: has joined #ruby
[20:22:31] Amnez777: has joined #ruby
[20:23:30] Tohuw_: has joined #ruby
[20:26:15] Chachi: has joined #ruby
[20:26:30] sdothum: has joined #ruby
[20:27:22] haxrbyte: has joined #ruby
[20:28:31] linoespinoza: has joined #ruby
[20:28:51] northrup: has joined #ruby
[20:29:09] Alina-ma-: has joined #ruby
[20:33:55] zacts: hello rubyists
[20:36:04] kareeole_: has joined #ruby
[20:36:16] mjuszczak: has joined #ruby
[20:36:27] Gasher: has joined #ruby
[20:37:09] s00pcan_: has joined #ruby
[20:37:59] arup_r: has left #ruby: ()
[20:39:33] clifford_: has joined #ruby
[20:40:11] yos7ph: has joined #ruby
[20:40:40] Guest38: has joined #ruby
[20:41:13] melbu: has joined #ruby
[20:41:47] pawnbox: has joined #ruby
[20:42:54] johnmilton: has joined #ruby
[20:45:30] goldfax: has joined #ruby
[20:46:58] flashpoint9: has joined #ruby
[20:47:50] Chachi: has joined #ruby
[20:49:31] hayden__: has joined #ruby
[20:50:32] SCHAAP137: has joined #ruby
[20:51:35] maxiu: has joined #ruby
[20:55:02] djbkd: has joined #ruby
[20:55:04] cd83x_: has joined #ruby
[20:57:39] whathappens: has joined #ruby
[20:58:32] mwlang: has joined #ruby
[21:00:24] yfeldblum: has joined #ruby
[21:00:33] johnmilton: has joined #ruby
[21:00:40] idefine: has joined #ruby
[21:01:41] hahuang65: has joined #ruby
[21:01:55] FooMunki: has joined #ruby
[21:02:27] GoatHandler: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[21:02:31] sneakerhax: has joined #ruby
[21:04:15] ghr: theery does your png look okay when you open it on your desktop?
[21:04:21] ardu: has joined #ruby
[21:04:59] ironcamel: what is the best way to install all my ruby deps to a local folder? is bundler the thing i want?
[21:04:59] djbkd: has joined #ruby
[21:05:22] ironcamel: i'm looking for the ruby equivalent of perl's local::lib module, if that helps.
[21:05:49] shevy: eam knows perl!
[21:06:32] uncot: has joined #ruby
[21:06:52] haxrbyte_: has joined #ruby
[21:07:22] ardu: has left #ruby: ()
[21:07:53] aeontech: has joined #ruby
[21:07:57] nofxx: has joined #ruby
[21:08:34] Moosashi: has joined #ruby
[21:08:44] duckpuppy: has joined #ruby
[21:09:00] whiteline: has joined #ruby
[21:09:21] whathappens: has joined #ruby
[21:09:24] SCHAAP137: has joined #ruby
[21:09:46] zzz: has joined #ruby
[21:10:44] mwlang: has joined #ruby
[21:11:35] Elvin: has joined #ruby
[21:11:57] whathapp_: has joined #ruby
[21:12:05] gizless: has joined #ruby
[21:12:17] havenwood: ironcamel: gem install -g path/to/Gemfile -i path/to/install/dir
[21:12:37] akkad: has joined #ruby
[21:12:47] ironcamel: havenwood++ thanks
[21:12:47] jenrzzz: has joined #ruby
[21:12:48] jenrzzz: has joined #ruby
[21:12:52] tubuliferous: has joined #ruby
[21:12:58] text1: has joined #ruby
[21:13:02] havenwood: ironcamel: or yeah, with bundler you can use the --deployment flag or --path path/to/install/dir
[21:13:06] solocshaw: has joined #ruby
[21:13:13] havenwood: the bundler flags are "remembered", they persist in a conf file
[21:13:23] surrounder: has joined #ruby
[21:13:41] havenwood: ironcamel: The built-in RubyGems way works well and has been around for several years but it's seldom used.
[21:14:03] ironcamel: why is it seldom used?
[21:14:36] freerobby: has joined #ruby
[21:15:06] havenwood: ironcamel: Mostly because folk don't read release notes. :P I don't think most Rubyists know about RUBYGEMS_GEMDEPS=~ and gem install -g
[21:15:55] whippythellama: has joined #ruby
[21:17:46] havenwood: ironcamel: Bundler is required by the default Rails setup. I'd like to see more use of RubyGem's dependency resolver.
[21:18:43] ironcamel: the version of gem i have on this server doesn't seem to have a -g option (1.3.7)
[21:18:49] havenwood: We need to use it to bring any remaining bugs to light so it can be the Rails 6 default.
[21:18:58] havenwood: ironcamel: That's quite old.
[21:19:07] havenwood: ironcamel: I'd say update RubyGems but you need to update Ruby.
[21:19:13] havenwood: Ruby ships with RubyGems these days.
[21:19:17] havenwood: RubyGems 2.
[21:19:17] ironcamel: not on this server
[21:19:28] havenwood: ironcamel: Eek, you're past EoL.
[21:19:39] havenwood: Hope they're backporting security updates.
[21:19:47] havenwood: Because Ruby core isn't.
[21:20:03] havenwood: 2.1.9+ receive security updates.
[21:20:24] ironcamel: i understand, but i have no control over it
[21:20:24] havenwood: 2.1 is in maintenance mode.
[21:20:28] blackmes1: has joined #ruby
[21:20:39] havenwood: ironcamel: Bundler it is!
[21:21:11] johnmilton: has joined #ruby
[21:21:18] braincra-: has joined #ruby
[21:22:39] htmldrum: has joined #ruby
[21:25:53] freerobby: has joined #ruby
[21:26:41] eljimmy: has joined #ruby
[21:26:50] ironcamel: havenwood: how do i make bundler forget?
[21:27:05] havenwood: ironcamel: Edit the config.
[21:27:35] havenwood: ironcamel: .bundle/config
[21:28:09] ironcamel: ah, that behavior only persists for the local dir
[21:28:13] ironcamel: that seems more sane
[21:28:35] ironcamel: i thought i had changed bundler's behavior globally
[21:32:25] htmldrum: has joined #ruby
[21:32:36] gizmore: has joined #ruby
[21:33:39] mwlang: has joined #ruby
[21:33:54] Es0teric: has joined #ruby
[21:34:49] GinoMan2440: has joined #ruby
[21:34:58] _orangejuice: has joined #ruby
[21:36:41] _orangejuice: hi dear rubyists. Im making a simple two page web store with a blog. any known practices to make templates load real fast? php feels a little snappier than the sinatra + erb combo
[21:38:48] nullFxn: has joined #ruby
[21:40:49] tubuliferous: has joined #ruby
[21:41:06] havenwood: _orangejuice: for a two page app you could just do a raw Rack app instead of Sinatra on top of Rack - or generate a static with Jekyll, Middleman or the like
[21:41:08] whathappens: has joined #ruby
[21:41:35] havenwood: _orangejuice: Or go to the metal with mruby and nginx for the very fastest Ruby has to offer: https://github.com/matsumoto-r/ngx_mruby#readme
[21:42:10] charliesome: has joined #ruby
[21:42:13] yqt: has joined #ruby
[21:42:56] havenwood: _orangejuice: Here's a benchmark of Hello Worlds in various Rack adapter and Rack itself: https://github.com/luislavena/bench-micro#readme
[21:43:02] havenwood: Roda is my personal fav.
[21:44:20] panpainter: has joined #ruby
[21:44:29] chopin: has joined #ruby
[21:44:49] nullFxn: has joined #ruby
[21:45:02] blackmes1: has joined #ruby
[21:45:28] pabs: has joined #ruby
[21:47:51] _orangejuice: havenwood: good suggestions. reading roda. when using rack, will i need to write boilerplate for security?
[21:48:31] idefine: has joined #ruby
[21:49:54] havenwood: _orangejuice: depending on what you need, yeah - in Roda you'd review the security plugins and include the ones you need
[21:50:08] havenwood: _orangejuice: and for Roda auth there's Rodauth: http://rodauth.jeremyevans.net
[21:50:51] jenrzzz: has joined #ruby
[21:53:43] nullFxn: has joined #ruby
[21:54:33] duckpupp1: has joined #ruby
[21:55:09] musl: grep \.io
[21:55:21] musl: ^^ Eep! Sorry, mt.
[21:56:13] Elvin: has joined #ruby
[21:57:09] mikeiniowa: has joined #ruby
[21:57:17] SilverKey: has joined #ruby
[21:57:39] Elvin: has joined #ruby
[21:58:04] musl: While I'm here; is there a more elegant way to do this:
[21:58:06] musl: DEFAULTS.merge( ENV.select { |k,_| DEFAULTS.keys.include? k } )
[21:58:07] panpainter: has joined #ruby
[21:59:09] musl: (I'd like to merge in the environment, but the resulting hash should only have keys from DEFAULTS.)
[22:00:04] nullFxn: has joined #ruby
[22:00:56] Ox0dea: musl: Sounds like you want Hash#&, but that doesn't exist yet.
[22:01:18] whathappens: has joined #ruby
[22:01:55] Azure: has joined #ruby
[22:02:37] havenwood: Rails 5 RC1 released: https://github.com/rails/rails/releases
[22:02:52] mjuszczak: has joined #ruby
[22:03:06] Ox0dea: Maybe intersection isn't as well-defined for Hash as it is for Set and Array, but just doing it based on matching keys seems pretty intuitive.
[22:03:08] smathy: musi: DEFAULTS.merge ENV.slice *DEFAULTS.keys
[22:03:13] gnufied: has joined #ruby
[22:03:46] mjuszczak: has joined #ruby
[22:03:56] Ox0dea: >> ENV.slice rescue $!
[22:03:57] ruby[bot]: Ox0dea: # => #<NoMethodError: undefined method `slice' for #<Object:0x41a9a90c>> (https://eval.in/566732)
[22:04:57] smathy: Oh, ha :) Forgot it wasn't actually a Hash.
[22:05:28] BSaboia: has joined #ruby
[22:05:35] Ox0dea: >> {}.respond_to? :slice
[22:05:36] ruby[bot]: Ox0dea: # => false (https://eval.in/566733)
[22:05:39] Ox0dea: (I'll stop.)
[22:06:00] Ox0dea: musl should just be able to say `DEFAULTS & ENV`.
[22:06:09] smathy: Oh noes, it's worse than I thought. /me goes back to #RoR with tail firmly planted
[22:06:37] evie_hammond: has joined #ruby
[22:06:45] Ox0dea: It's pretty strange that Hash#& isn't core after all this time. :/
[22:07:23] smathy: ...considering what is.
[22:09:59] Ox0dea: >> (Array.instance_methods & Hash.instance_methods).size
[22:10:00] ruby[bot]: Ox0dea: # => 130 (https://eval.in/566734)
[22:10:02] Ox0dea: I'm just sayin'.
[22:11:14] ur5us: has joined #ruby
[22:12:32] benzrf: Ox0dea: lol
[22:12:53] musl: smathy: Interesting.
[22:13:02] musl: Ox0dea: Very cool.
[22:13:43] smathy: musl, unfortunately not at all interesting :(
[22:15:30] benzrf: >> (Array.instance_methods & Hash.instance_methods - Enumerable.instance_methods).size
[22:15:31] ruby[bot]: benzrf: # => 77 (https://eval.in/566735)
[22:15:38] benzrf: not too shabby o:
[22:15:51] drptbl: has joined #ruby
[22:16:05] theery: @ghr Yes, and I just responded to you on S.O. and updated my post to make it more clear.
[22:16:29] theery: @ghr That's what weird, is the PNG looks perfect and crisp even when zooming way in
[22:17:45] ghr: I just had a look at some old code and we used the rmagick formatter
[22:18:03] ghr: the png looks identical though, so not sure its that
[22:18:10] ghr: might be worth a go, though?
[22:18:21] crystal77: has joined #ruby
[22:18:48] theery: Any chance you have a barcode made from that you could send me to try to print?
[22:19:12] ghr: 2 seconds
[22:19:21] ghr: well, 2 minutes :)
[22:19:40] workmad3: has joined #ruby
[22:20:51] musl: Ox0dea: `DEFAULTS & ENV` no worky: https://eval.in/566737
[22:21:23] Ox0dea: musl: Yes, I raised the same complaint.
[22:21:36] musl: ah, word. I mis-understood.
[22:24:29] drptbl_: has joined #ruby
[22:24:30] ghr: theery http://imgur.com/a/OF8x9
[22:24:40] ghr: I do get a slightly bigger png from using rmagick
[22:25:57] Ox0dea: I suspect optipng and/or pngcrush could do away with that.
[22:26:52] Ox0dea: musl: Other than swapping `.keys.include? k` for `.key? k`, I think that's the best it gets right meow. :/
[22:27:18] theery: @ghr That prints fuzzy too. So weird
[22:27:22] idletask: has joined #ruby
[22:27:47] musl: Ox0dea: :D Thanks for that.
[22:27:59] Ox0dea: musl: Sure thing. :)
[22:28:28] azor: has left #ruby: ("WeeChat 1.4")
[22:29:12] Ox0dea: It's definitely better than creating that intermediate Array each time, and constructing a Set to query would be overkill, not to mention almost entirely redundant.
[22:29:42] ghr: theery when I actually used this in production we rendered it in to a PDF with prawn or something similar
[22:30:24] johnmilton: has joined #ruby
[22:30:26] Guest38: has joined #ruby
[22:31:23] theery: @ghr I'm doing that too in the end, but I have to make a png first b/c I need to put some text in the pdf as well. I guess for kicks though I could see if going straight to pdf is any different
[22:32:19] ghr: ours was http://pastie.org/private/jifkf2epmy5n3iy0nezg
[22:32:43] ghr: trying to figure out what the pdf lib was – rails 2 app; no gemfile!
[22:33:12] theery: thanks for helping, i've been stuck on this for days, and tried all kinds of different settings etc
[22:33:22] theery: it's the last piece of a big project i'm finishing up
[22:33:46] diegoviola: has joined #ruby
[22:34:04] ghr: ah http://ruby-pdf.rubyforge.org/pdf-writer/
[22:34:45] theery: I'm using wickedpdf
[22:34:49] diegoviola: has joined #ruby
[22:35:03] ghr: yeah, like I said, this was quite some time ago! :)
[22:37:31] zenlot6: has joined #ruby
[22:37:35] ghr: theery got a barcode that prints successfully your end?
[22:37:45] lukeholder: has joined #ruby
[22:37:51] theery: Yeah, it's in a pdf from amazon though
[22:38:43] freerobby: has joined #ruby
[22:39:08] skade: has joined #ruby
[22:40:38] ghr: just printed one of the examples from imgur and it seems okay. its not perfect but it looks like it would scan to me
[22:40:44] drewo: has joined #ruby
[22:40:47] ghr: without a scanner its a bit hard to say of course!
[22:41:27] davedev24: has joined #ruby
[22:42:11] freerobby: has joined #ruby
[22:46:02] workmad3: has joined #ruby
[22:47:18] theery: @ghr I just went straight to PDF and I think it's good!
[22:47:25] musl: Ox0dea: And thus, 'core_extensions/union_merge.rb' was born: https://eval.in/566753 Thoughts?
[22:48:18] Gasher: ghr; hello, short version of me :D
[22:48:32] johnmilton: has joined #ruby
[22:48:32] dikaio: has joined #ruby
[22:48:59] ghr: theery nice! :)
[22:49:07] ghr: Gasher heh, hello!
[22:50:47] JoshGlzBrk: has joined #ruby
[22:51:30] Coldblackice: has joined #ruby
[22:52:14] SCHAAP137: has joined #ruby
[22:52:15] Ox0dea: musl: Nifty!
[22:52:20] Ox0dea: Misnamed, though. :P
[22:52:34] musl: I can refactor that, what should it be?
[22:52:35] Ox0dea: You're doing intersection, not union.
[22:53:15] jenrzzz: has joined #ruby
[22:53:19] musl: Ohhh, riiiiight. Yeah, I am.
[22:54:03] Ox0dea: Be advised that if you've got a bang method, it makes sense to just define the non-bang one in terms of that.
[22:55:01] musl: I'm not sure I understand. How?
[22:55:14] edavis: has joined #ruby
[22:55:24] Ox0dea: `def union_merge other; dup.union_merge! other; end`
[22:56:35] musl: Clear. Awesome.
[22:56:47] senayar: has joined #ruby
[22:57:27] Ox0dea: You might also consider structuring it as a Refinement, then you can `using UnionMerge` only in the places where you want such functionality, rather than sticking it onto Hash directly and affecting every single Hash in the system.
[22:57:36] musl: Heh, Hash#intersect! sounds better, anyway.
[22:57:52] musl: Oo. I'll try that out.
[22:59:18] musl: Oh, hells yes; I love that. Doin' it as a refinement.
[22:59:45] musl: Screw ruby < 2.0 anyhow. :P
[23:02:00] cd83x: has joined #ruby
[23:02:47] flashpoint9: has joined #ruby
[23:03:44] hahuang65: has joined #ruby
[23:04:01] Ox0dea: Nice. Ruby 1 is long dead in theory; it is right and proper to strive to have it be so in practice. :P
[23:04:22] musl: Agreed. Thanks for your help!
[23:04:31] Ox0dea: No worries.
[23:04:40] renderful: has joined #ruby
[23:05:10] gregf: has joined #ruby
[23:05:49] Kus: has joined #ruby
[23:06:22] nanoyak: has joined #ruby
[23:07:20] chouhoulis: has joined #ruby
[23:07:37] statelesscode: has joined #ruby
[23:08:21] jenrzzz: has joined #ruby
[23:08:22] jenrzzz: has joined #ruby
[23:11:33] benlieb: has joined #ruby
[23:12:32] kratos2511: has joined #ruby
[23:14:18] davedev24: has joined #ruby
[23:14:35] diegoaguilar: has joined #ruby
[23:14:37] moeabdol: has joined #ruby
[23:14:56] weemsledeux: has joined #ruby
[23:15:17] davedev24: has joined #ruby
[23:15:28] FooMunki: has joined #ruby
[23:16:42] trinaldi: has joined #ruby
[23:17:38] idefine: has joined #ruby
[23:18:01] ftj: has joined #ruby
[23:19:38] renderful: has joined #ruby
[23:20:16] chouhoulis: has joined #ruby
[23:21:56] gnufied: has joined #ruby
[23:23:44] lessless: has joined #ruby
[23:24:21] swills: has joined #ruby
[23:26:04] mnrmnaugh: has joined #ruby
[23:27:08] renderful: has joined #ruby
[23:29:38] renderful: has joined #ruby
[23:29:58] mtkd: has joined #ruby
[23:31:41] whathappens: has joined #ruby
[23:31:43] bazz_: can I programatically open a pre-defined module using its symbol?
[23:32:46] baweaver: What exactly are you trying to do that'd need that?
[23:32:56] Ox0dea: bazz_: Object.const_get(:Foo).module_eval { ... }
[23:33:59] baweaver: not Kernel?
[23:34:49] Ox0dea: Not Kernel.
[23:35:19] wldcordeiro: has joined #ruby
[23:35:41] havenwood: >> Object.public_method(:const_get).owner
[23:35:42] ruby[bot]: havenwood: # => Module (https://eval.in/566758)
[23:36:04] Ox0dea: I suppose clarity of intent would be good here. :P
[23:36:31] baweaver: Still though, why in the world you'd _need_ it is a relevant question
[23:37:23] baweaver: especially given the relative newness to Ruby
[23:37:59] Ox0dea: I sell rope.
[23:38:57] baweaver: I try and talk people out of using that rope in a way that would lead to negative consequences and bodily harm
[23:39:00] duncannz: has joined #ruby
[23:39:03] bazz_: baweaver, monkey patching ('nuff said?)
[23:39:12] arescorpio: has joined #ruby
[23:39:18] havenwood: bazz_: ahem, freedom patching
[23:39:30] whathappens: has joined #ruby
[23:39:32] bazz_: elaborate
[23:40:36] bazz_: There may be flaws in my monkey-patch design but it would take hours of research with a professional to create the deduction
[23:40:40] cdg: has joined #ruby
[23:41:18] baweaver: When you're new to Ruby, whatever you can do to avoid monkeypatching and metaprogramming, you should do
[23:41:59] bazz_: I did occasionally consider redesigning the API of the "mother-project" ... but I'm so heavily "under" the monkey-patched solution it doesn't seem to matter
[23:42:15] baweaver: The newer you are to the language, the more likely you are to fall into the very dangerous parts trying to be clever
[23:42:27] baweaver: sunk cost fallacy.
[23:42:38] baweaver: but you're already set on this, so god speed
[23:43:32] bazz_: thanks I'll be alright
[23:47:27] solocshaw1: has joined #ruby
[23:50:48] Es0teric: has joined #ruby
[23:53:26] finisherr: has left #ruby: ()
[23:54:13] ramfjord: has joined #ruby
[23:55:33] diegoaguilar: has joined #ruby
[23:56:04] lukeholder: has joined #ruby
[23:58:05] jaguarmagenta: has joined #ruby
[23:59:14] benlieb: has joined #ruby