« Back to channel list

#ruby - 27 July 2017

« Back 1 day Forward 1 day »
[00:00:20] al2o3-cr: it's like flag wash
[00:01:06] eckhardt: has joined #ruby
[00:01:15] SeepingN: sound like an expensive german drink
[00:01:33] SeepingN: "mmm that tastes like ass, but ass from 30 years ago. that's good!"
[00:01:36] lesce: has joined #ruby
[00:01:43] ecuanaso: has joined #ruby
[00:02:31] al2o3-cr: can't fault german or polish beer
[00:02:53] SeepingN: many jokes await, but I resist
[00:02:58] al2o3-cr: zubr best polish beer going imo
[00:03:11] SeepingN: itz zubr gewd
[00:04:58] dionysus69: has joined #ruby
[00:05:07] al2o3-cr: SeepingN: put it this way, you'd be fuck'd
[00:06:10] SeepingN: we have a vveener
[00:06:54] JBlazeCoder21: has joined #ruby
[00:07:46] SeepingN: maybe a good 40oz is what I need
[00:08:23] al2o3-cr: SeepingN: american?
[00:09:32] SeepingN: yeah. see the problem? lol
[00:10:40] al2o3-cr: 40 f'king imperial ounce
[00:11:25] al2o3-cr: why still use this shit
[00:11:38] JBlazeCo_: has joined #ruby
[00:11:39] al2o3-cr: only in a america
[00:12:07] SeepingN: yes, quite embarrassing at this point
[00:12:25] SeepingN: it was embarrassing when I was growing up. now it's just pathetic
[00:13:26] al2o3-cr: a normal can over the pond is about 3000000ml
[00:13:43] Cohedrin_: has joined #ruby
[00:13:59] t-recx: has joined #ruby
[00:14:07] al2o3-cr: oh. sorry. 654564oz
[00:15:11] al2o3-cr: SeepingN: joke
[00:15:52] al2o3-cr: big cunts everywhere
[00:16:20] al2o3-cr: pardon my french
[00:17:05] banisterfiend: SeepingN what does pry do that's confusingn for you?
[00:18:01] umaaji: has joined #ruby
[00:18:17] olivier__: has joined #ruby
[00:22:42] SeepingN: that's quite a can. lol
[00:22:49] SeepingN: it doesn't do anything for me
[00:23:20] SeepingN: but I've now seen/read 3 times where a problem someone was having was due to pry, or pry and some library not working togegther
[00:23:38] SeepingN: or perhaps it was the/a logger
[00:24:39] banisterfiend: SeepingN it doesn't do anything? it can show you source code for methods/classes on demand, it makes complicated introspection/reflection actions trivial to perform, and so on. My guess is, it doesn't do anything for you because you haven't learned what it can do ;)
[00:26:31] al2o3-cr: what a croc of shite
[00:27:49] ResidentBiscuit: has joined #ruby
[00:28:31] al2o3-cr: pry is the best thing sliced/buttered bread
[00:30:03] brent__: has joined #ruby
[00:33:57] al2o3-cr: >> Module.singleton_methods
[00:33:58] ruby[bot]: al2o3-cr: # => [:constants, :nesting] (https://eval.in/838085)
[00:34:32] al2o3-cr: used_modules too
[00:34:45] ResidentBiscuit: has joined #ruby
[00:36:57] brent__: has joined #ruby
[00:37:36] code_zombie_: has joined #ruby
[00:39:41] Technaton: has joined #ruby
[00:40:09] enterprisey: has joined #ruby
[00:41:26] tAn: has joined #ruby
[00:44:16] cagomez: has joined #ruby
[00:46:44] AxelAlex: has joined #ruby
[00:47:16] barx: has joined #ruby
[00:48:30] al2o3-cr: >> Module { nesting }
[00:48:31] ruby[bot]: al2o3-cr: # => undefined method `Module' for main:Object (NoMethodError) ...check link for more (https://eval.in/838086)
[00:48:46] al2o3-cr: >> Module.new { nesting }
[00:48:47] ruby[bot]: al2o3-cr: # => undefined local variable or method `nesting' for #<Module:0x40875b64> ...check link for more (https://eval.in/838087)
[00:49:43] olivier__: has joined #ruby
[00:50:23] bronson: has joined #ruby
[00:50:42] al2o3-cr: >> Module.new { self.class.nesting }
[00:50:48] ruby[bot]: al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:51:42] al2o3-cr: >> Module.new { self.class.nesting }
[00:51:43] ruby[bot]: al2o3-cr: # => #<Module:0x422f9b34> (https://eval.in/838090)
[00:52:02] hutch34: has joined #ruby
[00:56:05] bonhoeffer: has joined #ruby
[00:56:30] bronson: has joined #ruby
[00:56:58] AX31_A13X: has joined #ruby
[00:59:04] bruno-: has joined #ruby
[01:08:12] jphase_: has joined #ruby
[01:09:32] jhass: has joined #ruby
[01:10:15] gildo: has joined #ruby
[01:10:34] hutch34: has joined #ruby
[01:13:02] SteenJobs_: has joined #ruby
[01:17:35] Cohedrin_: has joined #ruby
[01:19:18] cam27: has joined #ruby
[01:23:14] eljimbo: has joined #ruby
[01:25:11] herbmillerjr: has joined #ruby
[01:26:07] muzik: has joined #ruby
[01:29:10] brent__: has joined #ruby
[01:29:26] Cohedrin_: has joined #ruby
[01:30:18] duderonomy: has joined #ruby
[01:33:56] al2o3-cr: i just tought something
[01:34:52] al2o3-cr: dominoes is nearly shut
[01:39:47] gizmore|2: has joined #ruby
[01:41:00] TinkerTyper: has joined #ruby
[01:42:38] Cohedrin_: has joined #ruby
[01:43:02] d^sh: has joined #ruby
[01:44:48] enterprisey: has joined #ruby
[01:49:01] gusrub: has joined #ruby
[01:49:03] agent_white: has joined #ruby
[01:51:30] jenrzzz: has joined #ruby
[01:51:30] jenrzzz: has joined #ruby
[01:52:35] sarmiena_: has joined #ruby
[01:54:34] Jameser: has joined #ruby
[01:57:01] Jameser: has joined #ruby
[01:57:05] Cohedrin_: has joined #ruby
[01:58:00] barx: has joined #ruby
[01:59:02] MtnGoat: has joined #ruby
[01:59:43] MichaelBurge: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[02:01:44] umaaji: has joined #ruby
[02:01:48] lesce: has joined #ruby
[02:05:27] Jameser: has joined #ruby
[02:06:15] charliesome: has joined #ruby
[02:06:50] al2o3-cr: years ago you could pass instance variabes as block args :(
[02:08:38] al2o3-cr: foo { |@x, @y| }.. scope or someshit?
[02:09:13] al2o3-cr: only scope inside the block
[02:10:13] al2o3-cr: 1.6 waas a very funny ting
[02:14:04] al2o3-cr: ruby ruby ruby
[02:19:54] npgm: has joined #ruby
[02:21:09] Mrgoose2: has joined #ruby
[02:23:12] tAn: has joined #ruby
[02:23:49] ghormoon: has joined #ruby
[02:24:18] crayfishx: has joined #ruby
[02:24:20] foamz: has joined #ruby
[02:25:30] sneep: has joined #ruby
[02:27:18] mim1k: has joined #ruby
[02:30:49] Evesy: has joined #ruby
[02:31:32] TinkerTyper_: has joined #ruby
[02:32:32] olivier__: has joined #ruby
[02:35:21] TinkerTyper: has joined #ruby
[02:42:32] guacamole: has joined #ruby
[02:44:13] astrobunny: has joined #ruby
[02:44:31] astrobunny: has joined #ruby
[02:47:32] lesce: has joined #ruby
[02:52:04] ahrs: has joined #ruby
[02:55:54] hutch34: has joined #ruby
[03:03:59] Jameser: has joined #ruby
[03:05:25] ecuanaso: has joined #ruby
[03:08:45] sarmiena_: has joined #ruby
[03:09:04] wanhar: has joined #ruby
[03:12:52] bronson: has joined #ruby
[03:13:49] hutch34: has joined #ruby
[03:14:00] tfitts: has joined #ruby
[03:14:41] eljimbo: has joined #ruby
[03:15:24] eljimbo: has joined #ruby
[03:16:21] eljimbo: has joined #ruby
[03:17:09] eljimbo: has joined #ruby
[03:17:49] eljimbo: has joined #ruby
[03:18:30] jcao219: has joined #ruby
[03:21:57] gix: has joined #ruby
[03:23:42] Hanmac: has joined #ruby
[03:24:57] dviola: has joined #ruby
[03:25:41] McBride36: has left #ruby: ("Leaving")
[03:36:12] _whitelogger: has joined #ruby
[03:36:14] guacamole: has joined #ruby
[03:38:02] guacamole: has joined #ruby
[03:40:57] guacamole: has joined #ruby
[03:42:27] Jameser: has joined #ruby
[03:50:33] sarmiena_: has joined #ruby
[03:50:45] tAn: has joined #ruby
[03:52:37] Jameser: has joined #ruby
[03:54:07] warrshrike: has joined #ruby
[03:54:27] Puffball: has joined #ruby
[03:54:29] warrshrike: guys my ruby code is too slow
[03:54:43] warrshrike: I'm in big trouble
[03:55:46] muzik: What kind of project are you running?
[03:58:06] warrshrike: muzik: its a batch analysis kind of thing -> read long text files (app data) -> make OO objects 'nodes' -> apply a string matching algorithm 'levinshtein'
[03:58:46] warrshrike: basically, by comparing different "appdata's" for similarity, it tries to find malware, but isn't really relevant i guess
[03:58:50] wanhar: has joined #ruby
[03:59:00] muzik: Can any of your code be further optimized?
[03:59:22] havenwood: warrshrike: what db are you using? is this a db query?
[03:59:28] warrshrike: basically there are 2000 apps. so it should take 2000 * 2000 * time taken. time taken varies from 0.1 ms to 16 ms.
[03:59:40] muzik: By using "puts 1", "puts 2" and using the time command in your shell, you can look for slow parts
[03:59:45] warrshrike: havenwood: no reading off text files stored on my ssd
[03:59:49] guacamole: has joined #ruby
[04:00:04] warrshrike: muzik: i suspect the levinshtein algorithm is too slow
[04:00:19] warrshrike: il show you guys maybe you can spot something obvious
[04:00:31] havenwood: warrshrike: Ah, was going to say we use Postgres fuzzystrmatch for fast levenshtein.
[04:00:44] havenwood: warrshrike: What's your implementation? Using the one from Gem::Text or a gem?
[04:00:51] muzik: Wow. thats an interesting read on wikipedia
[04:01:01] muzik: Could you run it in a ram drive?
[04:01:26] warrshrike: havenwood: err something i read off a website...here it is
[04:01:48] warrshrike: https://gist.github.com/anonymous/89a1a20fffbd9de84cc7e42e9ac477ca
[04:01:51] jenrzzz: has joined #ruby
[04:02:08] warrshrike: havenwood: whats postgres fuzzystrmatch
[04:02:24] havenwood: >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'warrshrike', 'mountainbike'
[04:02:26] ruby[bot]: havenwood: # => 9 (https://eval.in/838132)
[04:02:43] warrshrike: btw this algo was designed for string but im using it for arrays containing node class which implements ==
[04:02:49] havenwood: warrshrike: It provides postgres functions for levenshtein, soundex, etc.
[04:03:13] eckhardt: has joined #ruby
[04:03:28] havenwood: warrshrike: I believe the Gem::Text implementation will be quite a bit faster. Or you can use a c-ext gem.
[04:03:42] warrshrike: havenwood: oh thats very cool!. would it work on my arrays rather than strings?
[04:04:16] havenwood: You'd have to modify it. Arrays of chars?
[04:05:12] warrshrike: havenwood: nope array of Node class (which implements ==)
[04:05:18] dviola: has joined #ruby
[04:05:26] warrshrike: the current one worked as is so i thanked the stars and moved on
[04:05:32] mesamoo: has joined #ruby
[04:05:52] AKPWD: has joined #ruby
[04:06:29] havenwood: warrshrike: Here's the Gem::Text implementation: https://github.com/rubygems/rubygems/blob/0749715e4bd9e7f0fb631a352ddc649574da91c1/lib/rubygems/text.rb#L40-L73
[04:08:03] havenwood: warrshrike: And a c-ext version: https://github.com/GlobalNamesArchitecture/damerau-levenshtein/blob/master/ext/damerau_levenshtein/damerau_levenshtein.c
[04:08:05] renchan: has joined #ruby
[04:08:12] warrshrike: havenwood: yeah it uses stuff like each_char
[04:08:21] warrshrike: wont work for arrays
[04:08:32] moei: has joined #ruby
[04:08:35] havenwood: Or you could use a Levenshtein Rust crate with Helix.
[04:09:08] warrshrike: err whats a rust crate
[04:09:22] havenwood: Crystal-lang has native Levenshtein you could embed in a gem.
[04:09:28] havenwood: I mean a cargo package*
[04:09:34] havenwood: https://crates.io/crates/levenshtein
[04:09:39] warrshrike: may i could use a client server architecture with tcp sockets and a dedicated server running levinshtein in c
[04:09:47] havenwood: https://usehelix.com/
[04:10:23] warrshrike: but wouldnt the same issues occur. c and rust are typed so
[04:10:27] havenwood: warrshrike: I'd be tempted to make a postgres adapter to the files and use fuzzystrmatch extension
[04:10:50] warrshrike: i suspect theyd be even agreeable to using arrays...
[04:11:14] warrshrike: havenwood: isnt postgres a database? how would it fit here
[04:11:52] havenwood: it is a db, yeah
[04:12:02] warrshrike: so the first rubygems extension you gave me seems like it should work but these are the only troubling lines
[04:12:12] warrshrike: str1.each_char.each_with_index do |char1,i|
[04:12:12] havenwood: warrshrike: i was thinking a foreign data wrapper
[04:12:27] warrshrike: what can i replace each_char with in case of an array?
[04:12:39] havenwood: warrshrike: https://wiki.postgresql.org/wiki/Foreign_data_wrappers
[04:13:14] bronson: has joined #ruby
[04:13:21] havenwood: A file wrapper, then the very fast fuzzystrmatch
[04:13:38] havenwood: warrshrike: Amazon Lambda, Levenshtein as a service.
[04:14:53] Joufflu: has joined #ruby
[04:15:29] warrshrike: hmm this sounds like it work
[04:15:45] warrshrike: lol @ levinshtein as a service ~~
[04:18:21] JBlazeCoder21: has joined #ruby
[04:20:13] nadir: has joined #ruby
[04:21:09] jenrzzz: has joined #ruby
[04:21:49] nacsurte: has joined #ruby
[04:22:10] yunior_alayo: has joined #ruby
[04:22:57] JBlazeCo_: has joined #ruby
[04:23:20] yunior_alayo: hello everybody
[04:23:33] yunior_alayo: i need some help with RoR
[04:24:10] yunior_alayo: i'm getting an error when i call the mail method in the mailer
[04:24:49] yunior_alayo: wrong number of arguments (given 1, expected 0)
[04:26:45] warrshrike: yunior_alayo: try #rubyonrails
[04:27:18] yunior_alayo: i can not open that channel
[04:27:43] mim1k: has joined #ruby
[04:27:59] JBlazeCoder21: has joined #ruby
[04:30:31] __Yiota: has joined #ruby
[04:31:28] juggler: has joined #ruby
[04:31:32] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[04:31:47] havenwood: ?register yunior_alayo
[04:31:47] ruby[bot]: yunior_alayo: you need to be identified with NickServ, see `/msg NickServ HELP` or: https://freenode.net/kb/answer/registration
[04:32:42] JBlazeCo_: has joined #ruby
[04:34:46] kies: has joined #ruby
[04:37:30] JBlazeCoder21: has joined #ruby
[04:42:15] JBlazeCo_: has joined #ruby
[04:46:05] smulverine: has joined #ruby
[04:47:05] JBlazeCoder21: has joined #ruby
[04:47:46] lesce: has joined #ruby
[04:51:49] guardianxx: has joined #ruby
[04:51:56] JBlazeCo_: has joined #ruby
[04:56:10] ahrs: has joined #ruby
[04:56:21] hndk: has joined #ruby
[04:56:48] JBlazeCoder21: has joined #ruby
[05:00:48] eckhardt: has joined #ruby
[05:01:33] JBlazeCoder21: has joined #ruby
[05:01:58] kwesidev: has joined #ruby
[05:04:03] eckhardt: has joined #ruby
[05:06:17] JBlazeCoder21: has joined #ruby
[05:07:07] jackjackdripper: has joined #ruby
[05:09:38] govg: has joined #ruby
[05:10:58] JBlazeCoder21: has joined #ruby
[05:11:08] nofxxxx: has joined #ruby
[05:12:15] umaaji: has joined #ruby
[05:13:24] tAn: has joined #ruby
[05:13:42] djbkd: has joined #ruby
[05:16:04] JBlazeCo_: has joined #ruby
[05:16:33] Jameser: has joined #ruby
[05:20:35] JBlazeCoder21: has joined #ruby
[05:23:18] Bock: has joined #ruby
[05:23:52] uZiel: has joined #ruby
[05:24:24] ascarter: has joined #ruby
[05:25:51] JBlazeCoder21: has joined #ruby
[05:29:54] zenspider: yunior_alayo: so don't pass an arg
[05:30:09] ascarter_: has joined #ruby
[05:30:37] brent__: has joined #ruby
[05:30:40] JBlazeCoder21: has joined #ruby
[05:32:29] Joufflu: has joined #ruby
[05:35:29] JBlazeCoder21: has joined #ruby
[05:39:17] Joufflu: testing new mechanical keyboard...yup it sucks
[05:40:11] JBlazeCoder21: has joined #ruby
[05:44:44] muzik: Which keyboard?
[05:44:59] JBlazeCo_: has joined #ruby
[05:50:01] JBlazeCoder21: has joined #ruby
[05:52:21] bonhoeffer: has joined #ruby
[05:53:14] Jameser: has joined #ruby
[05:54:33] JBlazeCo_: has joined #ruby
[05:54:34] anisha: has joined #ruby
[05:55:39] marr: has joined #ruby
[05:59:34] JBlazeCoder21: has joined #ruby
[06:00:50] tvw: has joined #ruby
[06:04:12] JBlazeCo_: has joined #ruby
[06:05:16] mtkd: has joined #ruby
[06:05:56] wnd: has joined #ruby
[06:08:42] gwilkes: has joined #ruby
[06:09:04] JBlazeCoder21: has joined #ruby
[06:09:44] roshanavand: has joined #ruby
[06:13:51] JBlazeCoder21: has joined #ruby
[06:14:13] bronson: has joined #ruby
[06:15:58] ResidentBiscuit: has joined #ruby
[06:18:44] JBlazeCo_: has joined #ruby
[06:23:24] JBlazeCoder21: has joined #ruby
[06:27:31] andrzejku: has joined #ruby
[06:28:12] JBlazeCo_: has joined #ruby
[06:28:18] mim1k: has joined #ruby
[06:29:12] webnanners: has joined #ruby
[06:29:28] conta: has joined #ruby
[06:33:09] JBlazeCoder21: has joined #ruby
[06:36:13] tAn: has joined #ruby
[06:37:04] nupizdets: has joined #ruby
[06:37:50] JBlazeCoder21: has joined #ruby
[06:41:53] pwned: has joined #ruby
[06:42:26] vali: has joined #ruby
[06:42:42] JBlazeCoder21: has joined #ruby
[06:47:24] JBlazeCo_: has joined #ruby
[06:47:48] cadillac_: has joined #ruby
[06:48:24] lesce: has joined #ruby
[06:52:14] JBlazeCoder21: has joined #ruby
[06:53:13] mark_66: has joined #ruby
[06:54:43] QualityAddict: has joined #ruby
[06:57:00] JBlazeCoder21: has joined #ruby
[06:57:21] Awsy: has joined #ruby
[06:58:03] garathem: has joined #ruby
[07:01:02] stoffus: has joined #ruby
[07:01:09] lesce: has joined #ruby
[07:01:24] ltem: has joined #ruby
[07:01:52] JBlazeCoder21: has joined #ruby
[07:03:48] guardianxx: has left #ruby: ()
[07:04:09] aufi: has joined #ruby
[07:13:00] ledestin: has joined #ruby
[07:13:07] Tempesta: has joined #ruby
[07:13:11] Sylario: has joined #ruby
[07:14:59] high_fiver: has joined #ruby
[07:15:26] ResidentBiscuit: has joined #ruby
[07:18:05] high_fiver_: has joined #ruby
[07:23:15] mark_66: has joined #ruby
[07:23:46] Joufflu_Fail: has joined #ruby
[07:26:47] tAn: has joined #ruby
[07:28:09] antgel: has joined #ruby
[07:29:55] jaruga: has joined #ruby
[07:37:38] chg: has joined #ruby
[07:39:58] Silthias: has joined #ruby
[07:43:01] Silthias1: has joined #ruby
[07:56:30] mikecmpbll: has joined #ruby
[08:01:00] jcao219: has joined #ruby
[08:08:45] Bhootrk_: has joined #ruby
[08:08:57] mim1k: has joined #ruby
[08:09:23] Jameser: has joined #ruby
[08:15:09] bronson: has joined #ruby
[08:18:17] InfinityFye: has joined #ruby
[08:22:25] kapil___: has joined #ruby
[08:26:15] TomyWork: has joined #ruby
[08:28:16] anisha: has joined #ruby
[08:30:01] nacsurte: has joined #ruby
[08:39:44] pandaant: has joined #ruby
[08:40:20] Beams: has joined #ruby
[08:43:15] aupadhye: has joined #ruby
[08:46:57] ruby-lang952: has joined #ruby
[08:57:31] ruby-lang952: https://gist.github.com/Amogh-RG/83ec2da7d88192450f64e7a46984022a
[08:58:04] ruby-lang952: please an someone help me with debugging this.I am new to Ruby actually
[08:58:44] ruby-lang952: i am getting the correct value in console , but getting wrong in erb.html
[09:01:47] jinie_: has joined #ruby
[09:03:25] aupadhye: has joined #ruby
[09:07:38] JBlazeCoder21: has joined #ruby
[09:12:20] JBlazeCoder21: has joined #ruby
[09:16:47] workmad3: has joined #ruby
[09:17:12] JBlazeCoder21: has joined #ruby
[09:17:25] Cohedrin_: has joined #ruby
[09:20:35] Andy: has joined #ruby
[09:22:03] JBlazeCo_: has joined #ruby
[09:22:04] ledestin: has joined #ruby
[09:23:18] Pumukel: has joined #ruby
[09:26:54] JBlazeCoder21: has joined #ruby
[09:30:18] dminuoso: ruby-lang952: What is wrong about it?
[09:30:44] wnd: has joined #ruby
[09:31:08] dminuoso: ruby-lang952: But sure. The trick to debugging is isolation and/or introspection. a) you want to make sure as much irrelevavnt code as possible is removed, and b) you get a perspective from the context that stuff goes wrong.
[09:31:30] JBlazeCoder21: has joined #ruby
[09:32:01] dminuoso: The first is easily doable with the help of git branches (just stash uncommitted changes away, create a new branch and just delete unnecessary code quickly), the second is usually a combination of pry, byebug (or both with pry-byebug) and various "logging" methods.
[09:36:21] JBlazeCoder21: has joined #ruby
[09:40:13] Arahael: ACTION usually goes straight to logging.
[09:40:53] yunior_alayo: has joined #ruby
[09:41:12] JBlazeCoder21: has joined #ruby
[09:43:17] Serpent7776: has joined #ruby
[09:45:53] JBlazeCoder21: has joined #ruby
[09:46:58] Macaveli: has joined #ruby
[09:48:55] brent__: has joined #ruby
[09:51:00] JBlazeCoder21: has joined #ruby
[09:51:49] Terens: I get this RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: upgrade to 2.3.1.
[09:53:04] romankapitonov: has joined #ruby
[09:53:09] guardianx: has joined #ruby
[09:54:30] dminuoso: Terens: And you have trouble understanding what it wants from you?
[09:55:35] JBlazeCo_: has joined #ruby
[09:57:55] ResidentBiscuit: has joined #ruby
[10:00:16] JBlazeCoder21: has joined #ruby
[10:02:12] gokhan__: has joined #ruby
[10:02:42] Terens: I wonder whether it is a real problem
[10:05:06] JBlazeCo_: has joined #ruby
[10:05:12] apeiros: no, they just went out of their way to write that warning for fun
[10:06:56] Terens: If it was under my control I would upgrade
[10:08:04] Jameser: has joined #ruby
[10:08:38] tvw: has joined #ruby
[10:10:01] JBlazeCoder21: has joined #ruby
[10:12:42] jgt: has joined #ruby
[10:14:59] JBlazeCoder21: has joined #ruby
[10:16:25] bronson: has joined #ruby
[10:17:28] SteenJobs_: has joined #ruby
[10:19:51] JBlazeCoder21: has joined #ruby
[10:21:30] dminuoso: Terens: But I see your pain. It would really be helpful if programs didn't annoy you constantly that there's important updates pending. Remember those days when you would just install an apache with mod php and never upgrade it for the next 15 years?
[10:21:38] dminuoso: Those were the days my friend.
[10:23:13] dminuoso: Terens: 2.3.1 didn't bring many bugfixes. http://svn.ruby-lang.org/repos/ruby/tags/v2_3_1/ChangeLog
[10:23:18] dminuoso: As you can see it was just a minor bugfix patch.
[10:24:21] JBlazeCo_: has joined #ruby
[10:24:30] ElFerna: has joined #ruby
[10:25:23] moeabdol: has joined #ruby
[10:25:50] moeabdol: has joined #ruby
[10:25:55] Terens: lol this is bug
[10:29:16] JBlazeCoder21: has joined #ruby
[10:29:42] Jameser: has joined #ruby
[10:33:57] JBlazeCoder21: has joined #ruby
[10:35:10] Mon_Ouie: has joined #ruby
[10:37:28] millerti: has joined #ruby
[10:37:57] bonhoeffer: has joined #ruby
[10:38:50] JBlazeCo_: has joined #ruby
[10:41:46] ledestin: has joined #ruby
[10:43:31] JBlazeCoder21: has joined #ruby
[10:48:30] JBlazeCoder21: has joined #ruby
[10:50:51] StoneWaves: has joined #ruby
[10:51:40] drkhsh: has joined #ruby
[10:52:12] rabajaj: has joined #ruby
[10:52:42] drkhsh: hey all, i have to setup gitlab with ci for work and they want me to implement the missing feature from https://gitlab.com/gitlab-org/gitlab-ce/issues/13187 but i am not able to find a solution as i never used ruby lol ^^ can anyone help me where to get started?
[10:53:30] JBlazeCoder21: has joined #ruby
[10:54:02] Mon_Ouie: has joined #ruby
[10:54:24] rgtk: has joined #ruby
[10:55:38] muzik: has joined #ruby
[10:57:45] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[10:58:13] JBlazeCo_: has joined #ruby
[10:58:20] drkhsh: dminuoso: i dont want to learn ruby. i have to get work done and i thought someone in here has a little time to look over the code and point me in the right direction
[10:59:02] muzik: But Ruby is the greatest programming language, like, EVAR!
[10:59:35] dminuoso: drkhsh: So let me get this straight. You don't want to learn Ruby, but you want to contribute to a project written in Ruby?
[11:00:09] muzik: He wants to work, but doesnt want to know how the work works. Thats works
[11:00:36] drkhsh: dminuoso: i dont want to contribute. i have to. we need this feature in my company and i have to set it up
[11:00:49] dminuoso: Let's see what yorickpeterse has to say :-)
[11:00:49] drkhsh: is anyone in here willing to have a look. please
[11:01:06] muzik: What is the problem? Where is a pastebin of the code?
[11:01:19] dminuoso: muzik: https://gitlab.com/gitlab-org/gitlab-ce/tree/master
[11:01:33] drkhsh: muzik: did you read the issue?
[11:01:51] muzik: I just joined the channel
[11:01:56] dminuoso: drkhsh: Start learning how gitlab-ci works.
[11:02:08] dminuoso: drkhsh: But.. without understanding Ruby that would be quite an interesting journey.
[11:02:15] drkhsh: dminuoso: i know how gitlab-ci works
[11:02:23] drkhsh: i worked with it full time for 3 days now
[11:02:23] herwin: the easier solution would be to pay someone to fix it for you
[11:02:31] dminuoso: drkhsh: You understand how to _use_ it.
[11:02:33] dminuoso: You dont know how it works.
[11:02:39] drkhsh: yeah ok ^^
[11:02:48] dminuoso: What herwin said ^-
[11:02:54] dminuoso: Hire someone or learn Ruby.
[11:03:19] JBlazeCoder21: has joined #ruby
[11:03:29] drkhsh: thought someone of you ruby-geniuses has a clue where the key functions are
[11:03:55] dminuoso: drkhsh: In a project of that magntitude it will be more than just "inserting some line of code in the right place"
[11:04:12] drkhsh: dminuoso: but it should be. i already had a look in some files
[11:04:52] drkhsh: app/models/ci/pipeline.rb for example
[11:05:12] dminuoso: drkhsh: I wouldn't know. I dont understand how gitlab works internally.
[11:07:32] herwin: this feels a bit like asking ``you all speak English, I don't understand this book about quantum physics that is written in English, could someone help me with that?''
[11:08:00] JBlazeCoder21: has joined #ruby
[11:09:31] sysvalve: has joined #ruby
[11:09:40] ytti: drkhsh, i'm sure gitlab will build feature your company wants if you pay them
[11:09:52] ytti: drkhsh, probably will be quite affordable too
[11:09:55] StoneWaves: Have you asked in #gitlab about the status of the feature and any progress?
[11:12:48] JBlazeCo_: has joined #ruby
[11:14:00] howdoi: has joined #ruby
[11:14:07] ytti: this is probably week of work for someone not familiar with gitlab
[11:14:10] Jameser: has joined #ruby
[11:14:14] ytti: and probably half a day for someone familiar with gitlab
[11:17:22] rgtk: has joined #ruby
[11:17:42] JBlazeCoder21: has joined #ruby
[11:22:27] JBlazeCoder21: has joined #ruby
[11:23:57] ramfjord: has joined #ruby
[11:27:17] JBlazeCo_: has joined #ruby
[11:29:21] Jameser: has joined #ruby
[11:32:09] JBlazeCoder21: has joined #ruby
[11:35:00] cahoots: has joined #ruby
[11:35:31] muzik: has joined #ruby
[11:36:24] muzik: has joined #ruby
[11:37:07] JBlazeCoder21: has joined #ruby
[11:37:40] ldnunes: has joined #ruby
[11:38:34] muzik: has joined #ruby
[11:41:44] JBlazeCoder21: has joined #ruby
[11:44:42] muzik: has joined #ruby
[11:44:47] Macaveli: has joined #ruby
[11:45:27] muzik: has joined #ruby
[11:46:41] JBlazeCo_: has joined #ruby
[11:51:21] JBlazeCoder21: has joined #ruby
[11:53:05] dionysus69: has joined #ruby
[11:56:25] JBlazeCoder21: has joined #ruby
[11:59:54] ramfjord: has joined #ruby
[11:59:54] rgtk: has joined #ruby
[12:01:02] JBlazeCo_: has joined #ruby
[12:01:26] __Yiota: has joined #ruby
[12:02:06] guardianx: has left #ruby: ()
[12:05:47] JBlazeCoder21: has joined #ruby
[12:07:47] Bhootrk_: has joined #ruby
[12:08:17] __Yiota: has joined #ruby
[12:08:17] Bhootrk_: has joined #ruby
[12:10:49] JBlazeCoder21: has joined #ruby
[12:12:43] SteenJobs_: has joined #ruby
[12:13:06] anisha: has joined #ruby
[12:13:47] synthroid: has joined #ruby
[12:15:32] ramfjord: has joined #ruby
[12:15:32] JBlazeCo_: has joined #ruby
[12:17:19] bronson: has joined #ruby
[12:18:36] nzst: has joined #ruby
[12:20:19] JBlazeCoder21: has joined #ruby
[12:22:49] ElFerna: has joined #ruby
[12:24:38] dionysus69: has joined #ruby
[12:25:00] JBlazeCoder21: has joined #ruby
[12:27:57] synthroid: has joined #ruby
[12:29:47] JBlazeCoder21: has joined #ruby
[12:30:19] phinxy: has joined #ruby
[12:30:54] ahmgeek: has joined #ruby
[12:31:10] ahmgeek: ehy there's no a good book regards testing
[12:31:12] ahmgeek: in ruby I mean
[12:32:09] Macaveli: has joined #ruby
[12:34:58] JBlazeCoder21: has joined #ruby
[12:35:52] ramfjord: has joined #ruby
[12:39:23] JBlazeCoder21: has joined #ruby
[12:44:18] JBlazeCo_: has joined #ruby
[12:45:03] olivier__: has joined #ruby
[12:45:59] mim1k: has joined #ruby
[12:46:09] muzik: There are plenty
[12:46:10] tacoboy: has joined #ruby
[12:49:07] JBlazeCoder21: has joined #ruby
[12:49:48] jphase: has joined #ruby
[12:50:05] nekomune: has joined #ruby
[12:51:49] mtkd: has joined #ruby
[12:53:16] __Yiota: has joined #ruby
[12:53:47] JBlazeCoder21: has joined #ruby
[12:54:34] eljimmy: has joined #ruby
[12:55:16] olivier__: has joined #ruby
[12:55:56] charliesome: has joined #ruby
[12:57:43] Mon_Ouie: has joined #ruby
[12:58:35] JBlazeCoder21: has joined #ruby
[13:01:48] rfoust: has joined #ruby
[13:03:19] JBlazeCo_: has joined #ruby
[13:08:05] JBlazeCoder21: has joined #ruby
[13:11:44] cam27: has joined #ruby
[13:12:54] JBlazeCoder21: has joined #ruby
[13:17:38] cahoots: has joined #ruby
[13:17:40] JBlazeCo_: has joined #ruby
[13:18:00] aclark: has joined #ruby
[13:18:11] t-recx: has joined #ruby
[13:22:31] JBlazeCoder21: has joined #ruby
[13:23:48] minimalism: has joined #ruby
[13:24:08] truenito: has joined #ruby
[13:27:28] JBlazeCo_: has joined #ruby
[13:31:59] __Yiota: has joined #ruby
[13:32:11] JBlazeCoder21: has joined #ruby
[13:37:14] JBlazeCoder21: has joined #ruby
[13:39:33] ElFerna: has joined #ruby
[13:39:35] dhaller: has joined #ruby
[13:41:24] fohpi: has joined #ruby
[13:41:57] JBlazeCoder21: has joined #ruby
[13:42:09] synthroid: has joined #ruby
[13:42:41] chouhoulis: has joined #ruby
[13:46:36] JBlazeCoder21: has joined #ruby
[13:47:40] GodFather: has joined #ruby
[13:49:39] bkxd: has joined #ruby
[13:49:55] naprimer2: has joined #ruby
[13:51:24] JBlazeCoder21: has joined #ruby
[13:51:30] _aeris_: has joined #ruby
[13:53:08] GodFather: has joined #ruby
[13:53:47] apparition: has joined #ruby
[13:56:14] JBlazeCoder21: has joined #ruby
[13:57:45] gokhan_caglar: has joined #ruby
[13:57:52] rgtk: has joined #ruby
[13:58:03] nickjj_: has joined #ruby
[13:58:19] yabbes: has joined #ruby
[14:01:04] JBlazeCo_: has joined #ruby
[14:02:05] yabbes: hey, this is a beginner question but maybe someone could point me out why im failing to use attr_accessor here https://pastebin.com/CkNUaPUh :/ i thought the point of it was that the attribute would not have to be declared explicitly in the constructor.. all documentation i found says this should work, what am i doing wrong o.O
[14:02:08] ruby[bot]: yabbes: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9217d15fdb1b8791ef87b80c02bf5021
[14:02:08] ruby[bot]: yabbes: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[14:02:24] yabbes: sorry, yeah
[14:02:56] lizardtotem: has joined #ruby
[14:03:14] runescape07rsps: has joined #ruby
[14:03:15] nowhere_man: has joined #ruby
[14:04:19] yabbes: my version of ruby is 2.3.1p112; i already thought maybe this does not exist anymore but its still in the doc
[14:05:01] cahoots: has joined #ruby
[14:06:11] JBlazeCoder21: has joined #ruby
[14:06:27] Rapture: has joined #ruby
[14:06:57] Papierkorb: yabbes: An accessor has a reader (getter), and a writer (setter) part. The latter is used with a `=`. Like in line 12: https://gist.github.com/Papierkorb/8a87ce531272c94abd85c28dde5332f7
[14:07:07] dminuoso: yabbes: Okay, so attr_accessor is basically a shorthand for: def value(); return @value; end; def value=(value); @value = value; end
[14:07:16] dminuoso: yabbes: Explicit parens added for clarification.
[14:07:38] dminuoso: yabbes: as such d.value(30) is trying to invoke the third, but it was implicitly declared to not accept any arguments
[14:07:43] dminuoso: hence "given 1, expected 0"
[14:07:54] dminuoso: *trying to invoke the first
[14:09:29] yabbes: so I cannot really use this shorthand to replace my constructor to set attributes completely ? i tried the attr_reader and _writer before and i didnt really notice anything odd; i have to think about your answer a bit i guess :P
[14:09:31] yabbes: thank you
[14:09:53] dminuoso: yabbes: What is d.value(30) supposed to do?
[14:10:02] lupine: Net::SSH 'strict' host key verifier: "we've never seen this host before, so just automatically add the key."
[14:10:06] yabbes: set the @value to 30
[14:10:31] dminuoso: yabbes: Okay, so attr_accessor is basically a shorthand for: def value(); return @value; end; def value=(value); @value = value; end
[14:10:43] dminuoso: Stare at that line for a while. :-)
[14:10:54] JBlazeCoder21: has joined #ruby
[14:10:58] yabbes: no i wrote those functions before
[14:11:01] yabbes: and it worked
[14:11:06] yabbes: now i thought i could replace them
[14:11:09] dminuoso: yabbes: You wrote something different then.
[14:11:13] bonhoeffer: has joined #ruby
[14:11:16] dminuoso: yabbes: Which one do you think you are invoking?
[14:11:38] dminuoso: value() or value=(value) ?
[14:12:00] yabbes: the setter value=(value)
[14:12:52] yabbes: i love ruby but this is complicated, i have to think :P
[14:13:38] Papierkorb: an equal sign doesn't appear out of nowhere. *That* would be complicated.
[14:14:10] yabbes: okay now i understand your response too Papierkorb
[14:14:59] yabbes: im stupid
[14:15:04] yabbes: thank you all okay
[14:15:21] yabbes: took me a while
[14:15:37] yabbes: so the solution is to use d.value = x
[14:15:39] JBlazeCoder21: has joined #ruby
[14:16:45] Axy: has joined #ruby
[14:18:25] bronson: has joined #ruby
[14:20:00] selim: has joined #ruby
[14:20:05] oleo: has joined #ruby
[14:20:26] JBlazeCoder21: has joined #ruby
[14:24:24] __Yiota: has joined #ruby
[14:25:14] JBlazeCoder21: has joined #ruby
[14:26:14] ElFerna: has joined #ruby
[14:27:50] ResidentBiscuit: has joined #ruby
[14:30:03] JBlazeCoder21: has joined #ruby
[14:30:37] ltem: has joined #ruby
[14:30:41] cdg: has joined #ruby
[14:30:42] Kartagis: has joined #ruby
[14:31:10] cptAngry: has joined #ruby
[14:32:31] sepp2k: has joined #ruby
[14:35:33] bruno-: has joined #ruby
[14:35:52] mikecmpbll: has joined #ruby
[14:37:15] lizardtotem: has left #ruby: ("WeeChat 1.9")
[14:37:38] cptAngry: has joined #ruby
[14:39:37] JBlazeCoder21: has joined #ruby
[14:40:33] synthroid: has joined #ruby
[14:44:31] JBlazeCo_: has joined #ruby
[14:45:15] ruby085: has joined #ruby
[14:46:09] xall: has joined #ruby
[14:49:10] polishdub: has joined #ruby
[14:49:15] JBlazeCoder21: has joined #ruby
[14:50:16] StoneWaves: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:53:13] bonhoeffer: has joined #ruby
[14:54:14] JBlazeCoder21: has joined #ruby
[14:57:55] jcao219: has joined #ruby
[14:58:49] JBlazeCo_: has joined #ruby
[15:00:10] guacamole: has joined #ruby
[15:05:28] rgr: has joined #ruby
[15:06:24] cptAngry|2: has joined #ruby
[15:07:22] cjohnson: Is there are smarter way to write (in haml): - if (defined? someVar) && someVar
[15:08:34] JBlazeCoder21: has joined #ruby
[15:10:18] nzst: what are you trying to safeguard against?
[15:10:40] cjohnson: It's a partial, and in cases where I don't pass someVar as a var to the partial, I'd rather omit the section
[15:11:00] cjohnson: But I'd prefer not to have to explicitly include someVar: false in every inclusion of the partial
[15:11:03] cjohnson: if that makes sense
[15:11:54] Papierkorb: you can also do `- foo ||= nil`, and then `- if foo`. makes it a two liner, but possibly nicer.
[15:12:09] cjohnson: Cool thanks for the tip
[15:12:29] Kartagis: has left #ruby: ("I'll be back...or not")
[15:13:24] JBlazeCoder21: has joined #ruby
[15:13:40] cjohnson: I like that more than mine, using it
[15:13:53] auxbuss: has joined #ruby
[15:15:19] bronson: has joined #ruby
[15:18:15] JBlazeCoder21: has joined #ruby
[15:18:32] cagomez: has joined #ruby
[15:19:49] cagomez: has joined #ruby
[15:20:24] sgen: has joined #ruby
[15:21:12] cagomez: has joined #ruby
[15:21:25] eelster: has joined #ruby
[15:23:06] JBlazeCoder21: has joined #ruby
[15:25:59] eckhardt: has joined #ruby
[15:30:05] ElFerna: has joined #ruby
[15:30:30] pwned: has joined #ruby
[15:31:56] eugenmayer1: has joined #ruby
[15:33:06] eugenmayer1: hello. I am using a gem ( diplomat ) which needs an urgent fix and it seems to not happen very soon. What would be the best way to apply the fix myself ( i forked / fixed it already ) and make it part of my deployment pipeline. I have a own gemserver already ( sonanexus ) so i could publish it under the same name there and would need to kind of change the sources then
[15:33:46] eugenmayer1: forking it and putting it under myname-diplomat i would say is no option, i do not plan to maintain the fork, rather just bridge the time until the official release.
[15:34:38] nzst: eugenmayer1: I point to a github repository in my gemfile sometimes , especially when a gem's master branch works but not the published version
[15:34:47] __Yiota: has joined #ruby
[15:35:14] eugenmayer1: i see, makes sense!
[15:35:38] Papierkorb: eugenmayer1: Do what you say, but also Watch the github repository. I know Diplomat, and we also stumbled across issues in it heh
[15:35:38] eugenmayer1: did not take this way into account, makes a lot more sense to me and is less effort i guess
[15:36:00] brent__: has joined #ruby
[15:36:03] Papierkorb: eugenmayer1: So at least that way, you can move on, but get notified when something happened. Open a GH issue nontheless
[15:36:09] eugenmayer1: Papierkorb: well Issues and Diplomat should be always put into the same sentence..
[15:36:20] brent__: has joined #ruby
[15:36:37] eugenmayer1: issue is open, pull request is there but as usual in this project, they are going to react about 2018/19
[15:36:41] eugenmayer1: approximately
[15:36:45] Papierkorb: eugenmayer1: *cough* docker-api
[15:37:00] eugenmayer1: not sure what you mean with docker-api
[15:37:24] _main_: has joined #ruby
[15:37:26] Papierkorb: Oh yeah. Really, someone should fork diplomat (and probably rename it?), and then maintain it.
[15:37:35] JBlazeCoder21: has joined #ruby
[15:37:53] perniciouscaffei: has joined #ruby
[15:38:07] Papierkorb: eugenmayer1: a docker gem we also used, which sometimes had funny issues. Also due to the fact that Docker (at least when we used it) constantly broke the API, so the fault is not even fully on the gem.
[15:38:12] davidmichaelkarr: has joined #ruby
[15:38:52] rgtk: has joined #ruby
[15:39:00] eugenmayer1: diplomat has literally nothing to do with the dockerAPI, its a more or less REST client for diplomat - we might talk about 2 different gems
[15:40:02] Papierkorb: eugenmayer1: we used both, and my remark had nothing much to do with diplomat. sorry for causing confusion.
[15:40:40] eugenmayer1: using docker for a long time know, never had issues them changing the API yet, but it depends on the case and way you are using it
[15:41:33] eugenmayer1: nzst: is that how one does it? : s.add_runtime_dependency 'diplomat', :git => 'git@github.com:EugenMayer/diplomat', :branch => 'patch-1'
[15:42:09] nzst: I don't believe it's a feature for gemspecs . Bundle and Gemfiles only
[15:43:21] eugenmayer1: also s.add_runtime_dependency 'diplomat', :github => 'EugenMayer/diplomat', :branch => 'patch-1'
[15:43:21] eugenmayer1: does not work
[15:43:32] nacsurte: has joined #ruby
[15:44:26] konsolebox: has joined #ruby
[15:44:35] [Butch]: has joined #ruby
[15:44:35] eugenmayer1: guess you are right https://stackoverflow.com/a/15733860/3625317
[15:45:06] barx: has joined #ruby
[15:45:10] rippa: has joined #ruby
[15:45:40] Dimik: has joined #ruby
[15:47:19] JBlazeCo_: has joined #ruby
[15:48:45] zerowaitstate: has joined #ruby
[15:52:08] JBlazeCoder21: has joined #ruby
[15:53:37] anisha: has joined #ruby
[15:56:04] __Yiota: has joined #ruby
[15:56:42] nacsurte: has joined #ruby
[15:59:59] brent__: anyone know how I can get a link in haml to execute a ruby method on click?
[16:00:31] olivier__: has joined #ruby
[16:00:32] pabloh: has joined #ruby
[16:01:21] bonhoeffer: has joined #ruby
[16:07:22] cahoots: has joined #ruby
[16:08:06] amclain: has joined #ruby
[16:09:56] kwesidev: has joined #ruby
[16:13:03] gr33n7007h: has joined #ruby
[16:15:44] nowhere_man: has joined #ruby
[16:17:22] banisterfiend: has joined #ruby
[16:18:27] S007: has joined #ruby
[16:19:17] cdg: has joined #ruby
[16:24:04] TomyLobo2: has joined #ruby
[16:25:32] phinxy: has joined #ruby
[16:32:23] gusrub: has joined #ruby
[16:34:54] cam27: has joined #ruby
[16:35:45] kkiero: has joined #ruby
[16:37:57] hwayne: has joined #ruby
[16:39:58] wald0: has joined #ruby
[16:41:41] banisterfiend: has joined #ruby
[16:42:17] hwayne: The more I try to do stupid htings with rspec the more I realize why Minitest exists
[16:45:40] kkiero: has left #ruby: ()
[16:46:11] ColeHub: has joined #ruby
[16:48:41] rahul_bajaj: has joined #ruby
[16:49:25] pwned: has joined #ruby
[16:49:33] olivier__: has joined #ruby
[16:52:52] rahul_bajaj: has joined #ruby
[16:54:39] fohpi: has joined #ruby
[16:55:28] BSaboia: has joined #ruby
[16:55:42] Dreamer3_: has joined #ruby
[16:57:37] __Yiota: has joined #ruby
[17:01:08] chouhoul_: has joined #ruby
[17:04:38] oleo: has joined #ruby
[17:07:24] eckhardt: has joined #ruby
[17:07:41] rahul_bajaj: has joined #ruby
[17:09:24] cdg: has joined #ruby
[17:14:11] jgt1: has joined #ruby
[17:16:20] duderonomy: has joined #ruby
[17:23:11] chouhoulis: has joined #ruby
[17:23:40] cdg_: has joined #ruby
[17:24:29] cahoots: has joined #ruby
[17:25:50] S007: has joined #ruby
[17:27:51] sarmiena_: has joined #ruby
[17:29:49] bruno-: has joined #ruby
[17:29:52] kies: has joined #ruby
[17:31:30] pwned_: has joined #ruby
[17:31:51] ElFerna: has joined #ruby
[17:32:06] nowhere_man: has joined #ruby
[17:33:09] rahul_bajaj: has joined #ruby
[17:33:16] yabbes: has joined #ruby
[17:36:33] pwned: has joined #ruby
[17:39:16] jhass: has joined #ruby
[17:39:30] ResidentBiscuit: has joined #ruby
[17:41:24] brent__: has joined #ruby
[17:44:32] fohpi: has joined #ruby
[17:44:59] rabajaj: has joined #ruby
[17:47:06] rabajaj: has joined #ruby
[17:49:52] olivier__: has joined #ruby
[17:51:02] vuoto: has joined #ruby
[17:53:04] perniciouscaffei: has joined #ruby
[17:57:06] ldnunes: has joined #ruby
[17:58:34] sarmiena_: has joined #ruby
[17:58:56] ramfjord: has joined #ruby
[17:59:39] dviola: has joined #ruby
[18:00:36] guacamole: has joined #ruby
[18:00:38] chouhoul_: has joined #ruby
[18:00:50] gusrub: has joined #ruby
[18:02:26] chouhoul_: has joined #ruby
[18:02:44] JBlazeCoder21: has joined #ruby
[18:04:39] gusrub: has joined #ruby
[18:05:16] alexday: has left #ruby: ("WeeChat 1.8")
[18:05:35] Paraxial: has joined #ruby
[18:07:43] JBlazeCoder21: has joined #ruby
[18:08:35] ltem: has joined #ruby
[18:10:17] vuoto: has joined #ruby
[18:11:29] bronson: has joined #ruby
[18:12:40] JBlazeCo_: has joined #ruby
[18:13:47] banisterfiend: has joined #ruby
[18:16:42] uZiel: has joined #ruby
[18:17:03] chouhoulis: has joined #ruby
[18:17:24] Paraxial: has joined #ruby
[18:17:31] JBlazeCoder21: has joined #ruby
[18:17:40] eckhardt: has joined #ruby
[18:19:56] dtzuzu: has joined #ruby
[18:20:52] Paraxial: has joined #ruby
[18:22:46] Eiam: has joined #ruby
[18:23:16] Beams: has joined #ruby
[18:23:50] chouhoulis: has joined #ruby
[18:25:50] dtzuzu: has joined #ruby
[18:26:45] wilbert: has joined #ruby
[18:28:14] alex``: has joined #ruby
[18:36:17] jackjackdripper: has joined #ruby
[18:38:28] jackjackdripper: has joined #ruby
[18:41:54] Joufflu_Fail: has joined #ruby
[18:43:20] uZiel: has joined #ruby
[18:44:54] postmodern: has joined #ruby
[18:49:31] cadillac_: has joined #ruby
[18:51:03] nowhere_man: has joined #ruby
[18:51:21] SeepingN: has joined #ruby
[18:56:06] knight33: has joined #ruby
[19:01:01] chouhoulis: has joined #ruby
[19:03:23] chouhoulis: has joined #ruby
[19:03:35] SHyx0rmZ: has joined #ruby
[19:04:17] Sammichmaker: has joined #ruby
[19:04:33] Sammichmaker: has joined #ruby
[19:05:16] plujon: has joined #ruby
[19:05:53] plujon: Can one define a method in a module that is available without qualification to classes in that module?
[19:05:59] plujon: as in http://ix.io/yJJ
[19:06:52] zapata: has joined #ruby
[19:07:11] Mon_Ouie: No, you could do something like including module M in class C
[19:07:33] sepp2k: plujon: The classes could include the module, but you probably meant something more automatic, right?
[19:08:02] plujon: Yes because the module has many classes.
[19:09:19] plujon: I notice that I define foo outside M, that seems to work. But I was aiming to avoid polluting the namespace outside of M.
[19:09:29] jphase: has left #ruby: ()
[19:10:16] sepp2k: plujon: You could loop over all the classes to include the module.
[19:10:41] sepp2k: Outside it works because you're adding the methods to the Kernel (I think) module, which gets included automatically.
[19:10:43] plujon: module M; FOO=40; end # works for constants
[19:10:52] Dreamer3_: has joined #ruby
[19:10:58] plujon: Kernel module? Interesting.
[19:11:42] bronson: has joined #ruby
[19:11:49] sepp2k: Constants have actual lookup rules. Methods are always instance methods (that is `foo(x,y)` always calls `foo` as an instance method on `self`).
[19:15:42] S007: has joined #ruby
[19:19:39] mipesom: has joined #ruby
[19:21:02] dtzuzu: has joined #ruby
[19:21:27] olivier__: has joined #ruby
[19:21:38] jphase: has joined #ruby
[19:22:32] ElFerna: has joined #ruby
[19:23:27] ruby[bot]: -b *!*@82.131.39.236.cable.starman.ee$#ruby-banned
[19:24:56] uZiel: has joined #ruby
[19:25:02] guacamole: has joined #ruby
[19:26:27] romankapitonov: has joined #ruby
[19:26:28] milardovich: has joined #ruby
[19:26:49] workmad3: has joined #ruby
[19:28:16] ohnowendigo: has joined #ruby
[19:31:02] cagomez: has joined #ruby
[19:33:12] MrBusiness: has joined #ruby
[19:35:02] bonhoeffer: has joined #ruby
[19:36:13] moeabdol1: has joined #ruby
[19:37:12] AnoHito: has joined #ruby
[19:41:35] milardovich: has joined #ruby
[19:53:14] eckhardt: has joined #ruby
[19:53:24] Cohedrin_: has joined #ruby
[19:53:31] Luyt: has joined #ruby
[19:53:41] nb_bez_______: has joined #ruby
[19:55:25] sneakerhax: has joined #ruby
[19:56:18] lxsameer: has joined #ruby
[19:57:35] Immune: has joined #ruby
[20:00:02] GodFather: has joined #ruby
[20:02:36] Rapture: has joined #ruby
[20:02:44] kies: has joined #ruby
[20:05:58] knight33: has joined #ruby
[20:06:18] Beams: has joined #ruby
[20:11:39] ElFerna: has joined #ruby
[20:19:02] dtzuzu: has joined #ruby
[20:20:21] someuser: has joined #ruby
[20:23:02] quobo: has joined #ruby
[20:23:18] JBlazeCoder21: has joined #ruby
[20:25:50] ElFerna: has joined #ruby
[20:28:03] JBlazeCoder21: has joined #ruby
[20:30:21] cagomez: has joined #ruby
[20:31:04] cagomez: has joined #ruby
[20:32:44] JBlazeCo_: has joined #ruby
[20:33:41] cahoots_: has joined #ruby
[20:36:56] dexter1: has joined #ruby
[20:37:35] JBlazeCoder21: has joined #ruby
[20:38:53] dexter_: has joined #ruby
[20:41:29] HoierM: has joined #ruby
[20:42:15] JBlazeCo_: has joined #ruby
[20:42:52] ctp: has joined #ruby
[20:44:02] domgetter: has joined #ruby
[20:45:11] cdg: has joined #ruby
[20:47:06] JBlazeCoder21: has joined #ruby
[20:50:57] milardovich: has joined #ruby
[20:51:58] JBlazeCoder21: has joined #ruby
[20:55:33] psmolen: has joined #ruby
[20:56:38] JBlazeCo_: has joined #ruby
[20:58:43] eckhardt: has joined #ruby
[21:01:22] psmolen: has joined #ruby
[21:03:17] psmolen: has joined #ruby
[21:05:12] Beams: has joined #ruby
[21:05:21] rubycoder37: has joined #ruby
[21:06:12] JBlazeCoder21: has joined #ruby
[21:06:52] __Yiota: has joined #ruby
[21:07:59] Beams_: has joined #ruby
[21:10:58] JBlazeCoder21: has joined #ruby
[21:12:30] bronson: has joined #ruby
[21:12:41] mim1k: has joined #ruby
[21:13:28] Cohedrin_: has joined #ruby
[21:14:37] rubycoder37: I have this code that is part of my CSV importer, any suggestions about what I can improve in the code? https://gist.github.com/anonymous/903e4b74380f183adc4b769ea3dc44b7
[21:15:48] JBlazeCo_: has joined #ruby
[21:15:53] rubycoder37: I really hate the if/else checks in #process_row and I also dislike the .blank | checks in no_time_data? but I don't know how to write that better
[21:16:50] zenspider: so much hate...
[21:17:13] Dreamer3_: has joined #ruby
[21:17:29] cagomez: has joined #ruby
[21:17:41] zenspider: rubycoder37: don't EVER rescue Exception
[21:17:44] zenspider: rescue what you need
[21:18:09] rubycoder37: zenspider: ok
[21:20:36] JBlazeCoder21: has joined #ruby
[21:20:51] cagomez: has joined #ruby
[21:21:04] zenspider: passing around this params thing left and right is a hint that your design needs some help. not very OO
[21:22:43] juand: has joined #ruby
[21:24:04] zenspider: plujon: what are you trying to do?
[21:24:42] _sfiguser: has joined #ruby
[21:25:34] JBlazeCoder21: has joined #ruby
[21:25:43] enterprisey: has joined #ruby
[21:27:33] SeepingN: I found the problem with rescuing very specific things, is when those libraries update and improve(?) the way they do push up exceptions, your code can break if it doesn't already look for these new exception types
[21:28:11] SeepingN: (much pain going from 1.8.6 to 2.x, along with the updated gems for ssh/sftp)
[21:28:27] rubycoder37: can you tell me why rescue Exception is a bad idea?
[21:28:52] SeepingN: too generic. may catch issues outside of what you had in mind
[21:30:01] apeiros: rubycoder37: also rescues stuff like Interrupt (triggered by ctrl-C) and NoMemoryError (might be named differently)
[21:30:24] __Yiota: has joined #ruby
[21:30:27] rubycoder37: I see, thank you
[21:30:29] JBlazeCo_: has joined #ruby
[21:30:33] apeiros: the maximum common exception to rescue is StandardError. that's also the maximum top-level to inherit from. don't inherit from Exception directly for custom exceptions.
[21:30:46] SeepingN: and your rescue appears to just retry Membership.new. What if that's what crashed just before that?
[21:31:11] juand: has left #ruby: ()
[21:31:19] tAn: has joined #ruby
[21:31:34] ElFerna: has joined #ruby
[21:31:44] SeepingN: hmm I didn't realize rescue could be part of a def. I've always put a "begin"
[21:32:26] apeiros: I think as of 2.5 you can even have one in a block iirc
[21:32:35] apeiros: *will be able to
[21:35:04] JBlazeCoder21: has joined #ruby
[21:37:00] enterprisey: has joined #ruby
[21:37:43] Dreamer3_: has joined #ruby
[21:39:54] JBlazeCo_: has joined #ruby
[21:40:16] banisterfiend: has joined #ruby
[21:41:17] cahoots: has joined #ruby
[21:44:31] coreyw: has joined #ruby
[21:44:37] JBlazeCoder21: has joined #ruby
[21:46:47] brent__: has joined #ruby
[21:47:11] coreyw: any ideas of how i could call an XMLRPC server within context of a capistrano/mina task?
[21:49:27] JBlazeCoder21: has joined #ruby
[21:54:13] tao_: has joined #ruby
[21:54:41] JBlazeCoder21: has joined #ruby
[22:01:24] weaksauce: has joined #ruby
[22:03:18] FahmeF: has joined #ruby
[22:03:32] phate408: has joined #ruby
[22:04:02] jamal7: has joined #ruby
[22:04:35] JBlazeCoder21: has joined #ruby
[22:06:38] ahrs: has joined #ruby
[22:08:53] Cohedrin_: has joined #ruby
[22:09:09] jphase: has joined #ruby
[22:09:26] JBlazeCoder21: has joined #ruby
[22:11:02] jrz: has joined #ruby
[22:12:45] eckhardt: has joined #ruby
[22:14:18] JBlazeCoder21: has joined #ruby
[22:15:04] jenrzzz: has joined #ruby
[22:15:04] jenrzzz: has joined #ruby
[22:15:30] JBlazeCo_: has joined #ruby
[22:17:51] Cohedrin_: has joined #ruby
[22:22:33] JBlazeCoder21: has joined #ruby
[22:25:13] ar1a: has joined #ruby
[22:26:58] skinnymg1: has joined #ruby
[22:31:02] plujon: zenspider: I want to put the code for a web app in a common namespace (i.e. module) so that I can put another web app in the same process without name collision. I also want to make some methods callable from anywhere in the namespace (i.e. module, or any class therein).
[22:31:46] b3ck: has joined #ruby
[22:33:08] plujon: Mainly, I think I have yet to well understand the ruby-way of names, scope, and lookup.
[22:33:24] Cohedrin_: has joined #ruby
[22:34:48] konsolebox: has joined #ruby
[22:37:02] knight33: has joined #ruby
[22:37:48] helpa-bot: has joined #ruby
[22:38:36] watersoul: has joined #ruby
[22:39:03] coreyw: has left #ruby: ()
[22:39:21] cahoots_: has joined #ruby
[22:40:20] olivier__: has joined #ruby
[22:40:54] nowhereman_: has joined #ruby
[22:41:28] synstack: has joined #ruby
[22:41:29] synstack: has joined #ruby
[22:41:35] bhaak_: has joined #ruby
[22:41:36] segy: has joined #ruby
[22:41:43] VladGh_: has joined #ruby
[22:41:44] reaVer_: has joined #ruby
[22:41:44] ramfjord_: has joined #ruby
[22:41:45] chrisarc1nd: has joined #ruby
[22:41:46] rgs_: has joined #ruby
[22:41:48] crankhar1er: has joined #ruby
[22:41:50] Freijo: has joined #ruby
[22:41:51] chihhsin_: has joined #ruby
[22:41:52] uxp: has joined #ruby
[22:41:54] TvL2386_: has joined #ruby
[22:41:55] Miron: has joined #ruby
[22:41:58] ineb1: has joined #ruby
[22:41:59] hinbody: has joined #ruby
[22:42:03] unreal_: has joined #ruby
[22:42:05] Lyfe_: has joined #ruby
[22:42:07] quuxman_: has joined #ruby
[22:42:09] guacamol1: has joined #ruby
[22:42:10] ccooke_: has joined #ruby
[22:42:11] lucasr: has joined #ruby
[22:42:14] karlding_: has joined #ruby
[22:42:18] gaurav_: has joined #ruby
[22:42:19] ltd: has joined #ruby
[22:42:20] tunaBee__: has joined #ruby
[22:42:20] ltp_: has joined #ruby
[22:42:21] gse: has joined #ruby
[22:42:22] gs: has joined #ruby
[22:42:24] shmoon_: has joined #ruby
[22:42:25] jdeen_: has joined #ruby
[22:42:30] ptx0_: has joined #ruby
[22:42:34] dioxylin_alterna: has joined #ruby
[22:42:40] kaspergr1bbe: has joined #ruby
[22:42:46] plujon: For example, I have a method named 'pretty_time' that takes a time and returns a humanized relative-to-now string for it. Where should I stick this method? Do I need to create a class for it? Should I monkey patch Time? I wouldn't, if I could simply do "#{pretty_time(t)}" wherever I wanted.
[22:42:55] kaizoku_: has joined #ruby
[22:42:59] snapcase: has joined #ruby
[22:43:02] mnemon: has joined #ruby
[22:43:08] Nightmare: has joined #ruby
[22:43:12] Axy: has joined #ruby
[22:43:12] Axy: has joined #ruby
[22:43:22] jrz: has joined #ruby
[22:43:42] sunrunner20: has joined #ruby
[22:43:45] mesamoo: has joined #ruby
[22:43:48] SeepingN: has joined #ruby
[22:43:57] abort: has joined #ruby
[22:43:57] friday: has joined #ruby
[22:44:14] helpa: has joined #ruby
[22:44:35] aef: has joined #ruby
[22:45:07] havenwood: has joined #ruby
[22:45:07] havenwood: has joined #ruby
[22:46:46] jidar: has joined #ruby
[22:46:48] kiltzman: has joined #ruby
[22:46:51] diegok: has joined #ruby
[22:46:57] rt: has joined #ruby
[22:47:06] brendan-: has joined #ruby
[22:47:29] dyyylan: has joined #ruby
[22:47:35] bokayio: has joined #ruby
[22:47:36] ytti: has joined #ruby
[22:47:45] ozzloy: has joined #ruby
[22:47:45] ozzloy: has joined #ruby
[22:47:48] jericon: has joined #ruby
[22:47:49] MrSparkle: has joined #ruby
[22:47:50] valkyr2e: has joined #ruby
[22:47:55] quiller: has joined #ruby
[22:47:59] Sp4rKy: has joined #ruby
[22:48:01] d^sh: has joined #ruby
[22:48:27] daed: has joined #ruby
[22:48:28] Keltia: has joined #ruby
[22:48:29] MissionCritical: has joined #ruby
[22:48:30] ericmathison: has joined #ruby
[22:48:43] DEac-: has joined #ruby
[22:48:46] SuperLag: has joined #ruby
[22:49:15] empty_cup: has joined #ruby
[22:49:18] rprimus: has joined #ruby
[22:50:17] nekomune: has joined #ruby
[22:52:29] biox: Hello rubyists! I'm struggling to come up with a data transform solution currently. Detail here: https://hastebin.com/xahohoboci.rb
[22:52:46] planigan: has joined #ruby
[22:53:07] biox: More or less I'm bad at thinking about how to associate the data to its' job. I always tend to fall back on map/each loops, and I think that's limiting me.
[22:53:50] QualityAddict: has joined #ruby
[22:54:39] Papierkorb: biox: That looks like a job for Enumerable#group_by followed by a #map
[22:55:11] Papierkorb: And then somewhere a `puts result.to_yaml`
[22:55:27] Papierkorb: ... If that's supposed to be yaml
[22:55:38] biox: it's not, just sorta pretty output.
[22:55:41] chg: has joined #ruby
[22:56:11] biox: But I will look into group_by now. It sounds like I'd need to split my initial strings into arrays and group them by [0] or something?
[22:57:14] Papierkorb: sounds like a possible solution. there are a few in any case
[22:58:08] biox: Alright, I'll hack something together, group_by seems to be what I was searching for, but I had no idea how to word it
[22:58:31] eljimmy: has joined #ruby
[23:01:14] fr33domlover: has joined #ruby
[23:03:00] eljimmy: has joined #ruby
[23:03:05] fr33domlover: There's no SASS channel so asking here: Given a (non partial) sass file, how do I make a list of all the files it depends on? The naive method is to go over the imports recursively - is the correct or are there tricks to be aware of?
[23:04:38] Papierkorb: No idea about sass, but as far dependency list building is concerned, that's pretty much the way to go. One optimization would be not rediscovering a dependency you've already seen, if applicable. And watching out for circular dependencies.
[23:04:50] Papierkorb: Maybe #RubyOnRails knows something more specific fr33domlover
[23:05:40] olivier__: has joined #ruby
[23:06:52] fr33domlover: Papierkorb thanks
[23:06:53] nacsurte: is it possible to do a switch statement on hash keys? ala if key is present in hash, do this
[23:08:59] AndroUser2: has joined #ruby
[23:09:45] ramfjord: has joined #ruby
[23:10:35] x0F: has joined #ruby
[23:11:49] eelster: nacsurte I don't believe so. You can check if a key is in a hash by using the #key? method.
[23:12:19] fr33domlover: has left #ruby: ()
[23:12:30] cahoots: has joined #ruby
[23:13:14] mim1k: has joined #ruby
[23:13:28] ElFerna: has joined #ruby
[23:13:44] bronson: has joined #ruby
[23:14:22] rgr: has joined #ruby
[23:17:47] SteenJobs_: has joined #ruby
[23:18:28] alex``: has joined #ruby
[23:18:30] olivier__: has joined #ruby
[23:21:50] dionysus70: has joined #ruby
[23:22:45] cagomez: has joined #ruby
[23:26:43] sneakerhax: has joined #ruby
[23:33:27] jenrzzz: has joined #ruby
[23:34:13] oleingem_: has joined #ruby
[23:34:45] plujon: I think my scoping question boils down to: Array.wrap vs array_wrap.
[23:35:15] outoftime: has joined #ruby
[23:40:08] Azure: has joined #ruby
[23:41:02] brent__: has joined #ruby
[23:41:54] JBlazeCoder21: has joined #ruby
[23:44:05] sarmiena_: has joined #ruby
[23:44:39] brent__: has joined #ruby
[23:45:52] herbmillerjr: has joined #ruby
[23:46:24] JBlazeCoder21: has joined #ruby
[23:50:59] plujon: Is Array "global" because (1) Object.constants contains [..., Array, ...], (2), most (all?) ruby objects are instances of a Class, (3) most (all except BasicObject?) Class objects are subclasses of Object?
[23:52:28] Papierkorb: Array is globally accessible cause it's a constant in Object, and as everything [citation needed] is an Object, everything has it in its lookup chain
[23:52:49] Papierkorb: Well, not everything. Wouldn't be ruby if there wasn't an exception, eh? :P
[23:53:17] Arahael: So, to answer the question, it is 1, 2, and 3.
[23:53:27] Arahael: ACTION did well at school tests.
[23:55:24] ledestin: has joined #ruby
[23:55:28] Papierkorb: plujon: Try this in pry or irb: `module Foo; module Bar; class Baz; end; end; end` Now, check the ancestor chain: `Foo::Bar::Baz.ancestors`. When ruby needs to find something, it'll start to look in the ancestor chain. First the first item. If it knows an `Array`, it'll be used. Then, the next one ist tried. etc.
[23:55:32] olivier__: has joined #ruby
[23:56:01] Papierkorb: (More or less)
[23:56:24] plujon: Is the lookup chain: obj.methods, then, obj.class.ancestors.each { |x| x.instance_methods } ?
[23:57:11] barx: how long can symbols be?
[23:57:24] plujon: It is interesting that ancestors include modules and not just superclasses.
[23:57:29] Papierkorb: plujon: err, yeah that was the lookup chain for methods. Silly me.
[23:58:05] Papierkorb: plujon: The lookup chain for constants, after that chain, is then descending modules, until it hits the top level. If still not found, it doesn't exist.
[23:58:41] plujon: Interesting.
[23:58:51] olivier__: has joined #ruby
[23:58:54] Papierkorb: plujon: As far those look up chains are concerned, there's no real difference between a class and a module. In fact, `Class.is_a? Module`.