« Back to channel list

#ruby - 14 November 2015

« Back 1 day Forward 1 day »
[00:00:44] Musashi007: has joined #ruby
[00:00:46] umgrosscol: has joined #ruby
[00:01:19] Nahra: has joined #ruby
[00:01:21] weemsledeux: has joined #ruby
[00:01:46] mghaig: has joined #ruby
[00:03:07] mistermocha: has joined #ruby
[00:03:38] Ox0dea: shevy: File.write invokes #to_s implicitly.
[00:03:55] Ox0dea: IO.write, even.
[00:03:56] ta: has joined #ruby
[00:04:28] atomical: has joined #ruby
[00:04:49] Ox0dea: >> class Foo; def to_s; 'ohai' end end; StringIO.new.tap { |s| s.write(Foo.new) }.string
[00:04:51] ruboto: Ox0dea # => uninitialized constant StringIO (NameError) ...check link for more (https://eval.in/468573)
[00:05:43] Ox0dea: 2.3 has StringIO available by default.
[00:07:38] Ox0dea: adaedra: Y'doin' a'ight?
[00:07:43] karapetyan: has joined #ruby
[00:07:48] centrx: has joined #ruby
[00:08:41] Ox0dea: adaedra: What's the next step down from sxiv?
[00:08:53] adaedra: from what?
[00:09:17] dn5: Ox0dea: You were right. The JSON library is much easier. But I've done both just for testing purpose.
[00:10:21] dn5: Ox0dea: I also think you can't be explicit to set new hash to be first using json
[00:10:48] diegoaguilar: has joined #ruby
[00:11:37] adaedra: I don't get the extra 'v' in sxiv
[00:12:27] rdavila: has joined #ruby
[00:14:07] rgrmatt: has joined #ruby
[00:15:18] Puffball_: has joined #ruby
[00:16:08] OrbitalKitten: has joined #ruby
[00:16:47] jdawgaz: has joined #ruby
[00:20:21] DEA7TH: has joined #ruby
[00:21:26] Ox0dea: adaedra: sxiv is an image viewer for Unix-likes; it's better than feh.
[00:21:36] Ox0dea: I was trying to assist you in continuing to say things ending in "-eh".
[00:21:37] awd123: has joined #ruby
[00:21:57] adaedra: It made me chuckle.
[00:22:08] gusrub: has joined #ruby
[00:22:09] adaedra: It's very appreciated.
[00:22:47] Ox0dea: dn5: I'm glad you came to your senses. :)
[00:23:02] awd123: first time
[00:23:08] Ox0dea: awd123: We'll be gentle.
[00:23:50] h99h9h88: has joined #ruby
[00:24:02] awd123: has left #ruby: ()
[00:24:13] babblebre: has joined #ruby
[00:24:25] Ox0dea: dn5: I'm not sure what you mean in your second message.
[00:24:26] dn5: Ox0dea: Thanks once again. But as I said, I'm not sure it could help me out. While using Json to append, it appends bellow the key I wanted.
[00:25:06] Ox0dea: dn5: You want an array of hashes, right?
[00:25:37] sankaber: has joined #ruby
[00:26:37] dn5: Ox0dea: I'm not getting you. The new hash I inserted is located bellow the hash that was already in JSON document. Using my dirty-way it explicitly append the new hash to the top.
[00:27:07] Ox0dea: dn5: Which method did you use to insert the new Hash?
[00:27:28] dn5: File.write
[00:27:33] dviola: has joined #ruby
[00:27:36] karapetyan: has joined #ruby
[00:27:42] EminenceHC: has joined #ruby
[00:27:46] Ox0dea: No, to add the new Hash to your Array.
[00:27:48] kies: has joined #ruby
[00:28:47] sankaber: has joined #ruby
[00:29:08] leafybas_: has joined #ruby
[00:29:17] dn5: Ox0dea: https://gist.github.com/dn5/d98bb11d3fc8470160e4
[00:29:48] goodcodeguy: has joined #ruby
[00:29:54] Ox0dea: dn5: Right, you're using #<<, which is an alias for #push, which appends to the end; you want #unshift to prepend to the beginning.
[00:30:04] predator117: has joined #ruby
[00:30:38] dn5: Ox0dea: Thanks! Is there a bot here on this channel for documentation?
[00:30:56] Ox0dea: &ri Array#unshift @dn5
[00:30:56] `derpy: dn5: http://www.rubydoc.info/stdlib/core/Array#unshift-instance_method
[00:30:59] Ox0dea: There sure is.
[00:31:12] Ox0dea: Was that not me, then?
[00:31:37] Ox0dea: What was "too slow"?
[00:31:39] dn5: Ox0dea: Great, let me read it.
[00:31:46] adaedra: I was in the middle of my &ri
[00:31:58] Ox0dea: In any case, I'd like to take a moment to thank you for `derpy.
[00:32:04] akkad: has joined #ruby
[00:32:09] adaedra: You're welcome.
[00:32:18] dn5: Ox0dea: Also, what is the alias to unshift? If there is one.
[00:32:24] Ox0dea: dn5: There isn't one.
[00:32:34] dn5: Ox0dea: Oh, okay :-)
[00:32:50] adaedra: dn5: in documentation, aliases are often grouped in the same paragraph, so you see them all in the title of the section.
[00:32:51] Ox0dea: I did a silly thing where I defined Object#>> as "reverse shovel", but it's a terrible idea.
[00:33:26] jpfuentes2: has joined #ruby
[00:33:42] dn5: adaedra: Ah, good to know. I though they are easer eggs :-p
[00:33:48] dn5: Ox0dea: Thanks man. It works great!
[00:33:48] Ox0dea: >> class Object; def >> a; a << self end end; ary = []; 'foo' >> ary; :bar >> ary; ary # dn5
[00:33:49] ruboto: Ox0dea # => ["foo", :bar] (https://eval.in/468574)
[00:34:00] Ox0dea: dn5: Excellent! Happy I could be of some help.
[00:34:15] based_pdev_: has joined #ruby
[00:36:35] solocshaw: has joined #ruby
[00:37:36] h99h9h88: has joined #ruby
[00:37:45] FailBit: >> @_=?:+?:*6
[00:37:46] ruboto: FailBit # => ":::::::" (https://eval.in/468579)
[00:37:59] bruno-: has joined #ruby
[00:38:32] simplyianm: has joined #ruby
[00:39:43] gambl0re: has joined #ruby
[00:39:56] EminenceHC: has joined #ruby
[00:41:06] DLSteve: has joined #ruby
[00:41:14] tkuchiki: has joined #ruby
[00:41:57] mloy: has joined #ruby
[00:48:02] mistermocha: has joined #ruby
[00:48:29] Ox0dea: >> (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['tiBliaF']
[00:48:30] ruboto: Ox0dea # => "FailBit" (https://eval.in/468583)
[00:48:37] Ox0dea: And there's plenty more where that came from. ^_^
[00:49:49] dlitvak: has joined #ruby
[00:51:02] brushbox: has joined #ruby
[00:52:33] rgrmatt: has joined #ruby
[00:55:41] TheHodge: has joined #ruby
[00:55:44] devoldmx: has joined #ruby
[00:56:46] shevy: please no
[00:56:50] Ox0dea: It's happening.
[00:57:20] Ox0dea: But no, I'll leave it at that.
[00:57:39] Ox0dea: shevy: I get highlighted when people write non-alphanumeric Ruby.
[00:57:46] Ox0dea: Don't ask for the regular expression.
[00:57:50] sdwrage: has joined #ruby
[00:58:38] _blizzy_: time to create a self learning bot in Ruby.
[00:58:46] _blizzy_: this will either work great or backfire horribly.
[00:59:06] shevy: or end in failure without any working code whatsoever
[01:00:34] h99h9h88: has joined #ruby
[01:00:35] xybre: >> tap{|b|break [!b,!!b].shuffle.tap{|c|c+c.shuffle}.each_slice(3).to_a.tap{|x|break x.last.first == x.first.inject{|m,o| m.nil? ? o : m ^ o}}}
[01:00:36] ruboto: xybre # => false (https://eval.in/468584)
[01:01:12] tulak: has joined #ruby
[01:01:33] cluda01: has joined #ruby
[01:01:37] shevy: first Ox0dea, now xybre
[01:01:43] Ox0dea: xybre: Who are you?
[01:01:49] x-light: has joined #ruby
[01:02:10] xybre: Ox0dea: I could ask you the same question.
[01:02:19] Ox0dea: xybre: I've never seen somebody #tap `main`.
[01:02:25] Ox0dea: I'm not sure it ever makes sense to do so.
[01:02:37] xybre: Ox0dea: I know, it's great, isn't it.
[01:02:54] adaedra: we've got a Ox0dea-bis?
[01:03:21] xybre: The only variables are declared in block headers, it was an idea I was playing with.
[01:04:40] ta: has joined #ruby
[01:05:12] Ox0dea: xybre: But why not just declare some Procs and then call 'em?
[01:05:32] shevy: (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['tiBliaF']
[01:05:37] shevy: tap{|b|break [!b,!!b].shuffle.tap{|c|c+c.shuffle}.each_slice(3).to_a.tap{|x|break x.last.first == x.first.inject{|m,o| m.nil? ? o : m ^ o}}}
[01:05:42] shevy: what is becoming of ruby
[01:05:57] shevy: and then frozen strings!
[01:06:03] shevy: the world will come to an end before 2016
[01:06:40] h99h9h88: has joined #ruby
[01:07:08] rgrmatt: has joined #ruby
[01:07:24] xybre: Ox0dea: because tap is a horrible awesome thing and I wanted to abuse it.
[01:07:59] shevy: no worries, Ox0dea likes your code
[01:08:03] ss_much: has joined #ruby
[01:08:10] xybre: shevy: You think that's bad you should see some of the old stdlib code from the 90s.
[01:10:53] jorb: has joined #ruby
[01:11:06] ekinmur: has joined #ruby
[01:12:41] minimalism: has joined #ruby
[01:14:09] karapetyan: has joined #ruby
[01:14:44] Azulinho: has joined #ruby
[01:14:54] northfurr: has joined #ruby
[01:16:15] cirenyc: has joined #ruby
[01:16:39] millerti: has joined #ruby
[01:16:58] pusewicz: has joined #ruby
[01:17:09] yxhuvud: has joined #ruby
[01:18:14] bruce_lee2: has joined #ruby
[01:19:00] iateadonut: has joined #ruby
[01:21:23] swgillespie: has joined #ruby
[01:23:55] Trynemjoel: has joined #ruby
[01:27:27] Ox0dea: xybre: Wait, #tap is horrible? I'm of the opinion it's one of Ruby's most elegant weapons.
[01:27:38] chouhoul_: has joined #ruby
[01:28:00] Ox0dea: https://github.com/ruby/ruby/blob/trunk/object.c#L687-L692
[01:28:02] xybre: Ruby gives you many sharp knives, and tap is one of the sharpest.
[01:28:09] Ox0dea: It's two lines of C.
[01:28:15] adaedra: tap is nice
[01:28:19] Ox0dea: #tap is love.
[01:28:39] roxtrongo: has joined #ruby
[01:28:50] adaedra: How many times did I read on the internet ???I'd tap that???
[01:29:00] xybre: There is pretty much never a good situation where you should use tap. It's very useful in all sorts of bad situations though.
[01:29:03] adaedra: (sorry, that was bad)
[01:29:03] Yzguy: has joined #ruby
[01:29:56] Ox0dea: xybre: I'm not sure I agree.
[01:30:16] Ox0dea: >> require 'stringio'; class Foo; def to_s; 'ohai' end end; StringIO.new.tap { |s| s.write(Foo.new) }.string
[01:30:17] ruboto: Ox0dea # => "ohai" (https://eval.in/468586)
[01:30:22] Ox0dea: xybre: What's wrong with it in that instance?
[01:31:51] xybre: Ox0dea: Why would you want to do that in the first place?
[01:32:23] Ox0dea: xybre: It was for demonstration purposes, granted, but #tap was objectively the better choice, in my opinion.
[01:32:51] Ox0dea: `s = this; s.that` is noisy.
[01:32:54] SteveC: has joined #ruby
[01:33:16] Ox0dea: It was the best way I could think to demonstrate that IO.write invokes #to_s implicitly.
[01:34:45] rickmasta: has joined #ruby
[01:35:24] neanderslob: has joined #ruby
[01:35:43] xybre: It's handy, especially in bad situations. I use it all the time for debugging, and maybe once or twice in my gems. But 99% of the time, I'll use a different technique.
[01:36:48] paradisaeidae: has joined #ruby
[01:37:07] xybre: While setting intermediary variables might be cumbersome, their names can give semantic meaning to the code, this narrative helps other people understand it.
[01:38:06] Ox0dea: I guess I'm in the minority that feels names can be distracting.
[01:38:07] chouhoulis: has joined #ruby
[01:38:26] Ox0dea: Look at what it's doing, not what it says it does.
[01:38:44] xybre: Ox0dea: You'd probably really dig functional languages if you don't already :)
[01:38:47] adaedra: you give it a name through #tap, no? The block argument?
[01:38:56] jhass: I prefer tap over introducing a local too
[01:39:01] Ox0dea: xybre: Clojure is my second-favorite mainstream language, yes.
[01:39:24] Ox0dea: adaedra: Well, yeah, but it can be a "throwaway" name, so to speak.
[01:39:44] xybre: Technically speaking, tap is also an extremely inefficient way of setting a variable, just to use some method chaining sugar.
[01:39:51] Ox0dea: xybre: I also contest your implicit assertion that Ruby isn't functional. :P
[01:40:13] Ox0dea: xybre: #tap isn't "extremely inefficient"; `yield` doesn't create a block.
[01:42:24] Ox0dea: Also, I can't think of a better way to trick a Hash into containing "duplicate" keys.
[01:42:25] Ox0dea: >> h = {}; h[a = [1]] = 1; h[a.tap(&:pop)] = 2; h
[01:42:26] ruboto: Ox0dea # => {[]=>1, []=>2} (https://eval.in/468589)
[01:42:32] xybre: Ruby is not functional. It has functional features that make it possible to perform basic functional-style programming.
[01:42:47] Ox0dea: xybre: What's after "basic" functional programming?
[01:42:53] rgtk: has joined #ruby
[01:43:27] stannard: has joined #ruby
[01:43:39] Gi0: has joined #ruby
[01:44:20] xybre: Ox0dea: You might like this language I was reading about today called Wake: http://wakelang.com/#variables
[01:45:02] bruno-: has joined #ruby
[01:45:16] Ox0dea: xybre: Ruby has lambdae, the essence of functional programming, and the lambda calculus is Turing-complete; I don't see how a subset of the language could be considered functional but not the whole.
[01:45:45] Yzguy: has joined #ruby
[01:46:22] xybre: "A meaningful question is, 'How amenable is Ruby to achieving the thesis of functional programming?' The answer is 'very poorly'."
[01:47:12] xybre: "Ruby enforces an evaluation model (call-by-value) that ensures non-compositionality of programs. The implications of this can easily be under-estimated. Ruby is also married to the idea that a program is a sequence of effects. That is to say, Ruby goes out of its way to make it difficult/intractible to use any other computational model."
[01:47:46] Ox0dea: Oh, so "functional" in the "we can't actually run this on hardware" sense?
[01:48:21] rgrmatt: has joined #ruby
[01:48:29] Ox0dea: Sure it works in practice, but does it work in theory?
[01:48:31] Ox0dea: xybre: ^ You.
[01:49:02] Ox0dea: ACTION goes to find his missing quotation chevron.
[01:50:28] baweaver: has joined #ruby
[01:50:33] Gi0_: has joined #ruby
[01:51:28] ebbflowgo: has joined #ruby
[01:52:04] d5sx43: has joined #ruby
[01:52:22] weemsledeux: has joined #ruby
[01:53:08] xybre: I suppose you'll have to define "functional programming" then, since we're working off your criteria.
[01:53:26] mattwildig: has joined #ruby
[01:55:26] Ox0dea: We can write our programs using nothing but Procs and frozen objects, and the line between functional and not, for every intent and purpose we ought care about, vanishes entirely.
[01:55:58] Ox0dea: Should we? Of course not. But see above regarding a subset and the whole.
[01:56:16] Yzguy: has joined #ruby
[01:56:42] xybre: It is so vanishingly simple to implement lambdas in almost every language, and most have immutable datatypes to build off of, so by that criteria something like 80% of all languages are functional?
[01:57:41] xybre: https://github.com/spencertipping/bash-lambda
[01:57:45] Ox0dea: 80% is quite a stretch, but yes, it's fair to say that there is a functional language hiding inside/fighting to break free of most mainstream languages.
[01:58:24] Ox0dea: The only difference between "functional" and "functional-style" is discipline.
[01:58:30] mary5030: has joined #ruby
[01:58:55] Ox0dea: Languages like Haskell force you to do it, Ruby merely gives you the opportunity.
[02:01:06] xybre: Using that criteria, then Ruby is "functional". As is Bash, Perl, Vimscript, REXX, and others.
[02:02:04] helpa-bot: has joined #ruby
[02:02:18] Ox0dea: As I've said, I don't reject that conclusion, but I do think Ruby deserves the quotes removed.
[02:02:46] Ox0dea: Blocks are idiomatic Ruby, and they're bona fide closures.
[02:02:51] DLSteve: has joined #ruby
[02:03:38] xybre: Ruby uses functional-style constructs, as did SmallTalk. These features greatly enhance the expressive power of the language imho.
[02:03:54] helpa: has joined #ruby
[02:05:10] Ox0dea: >> make_adder = -> n { -> x { n + x } }; n = 3; add3 = make_adder[n]; n = 42; add3[14]
[02:05:11] ruboto: Ox0dea # => 17 (https://eval.in/468597)
[02:05:40] Ox0dea: That right there is a stateless function by any definition you might provide.
[02:06:11] Ox0dea: `add3` closes over its argument just as would be done in any "really functional" language.
[02:06:28] Ox0dea: To call it "functional-style" is taking the piss, in my estimation.
[02:06:53] shinnya: has joined #ruby
[02:07:08] claw: has joined #ruby
[02:07:12] DLSteve: has joined #ruby
[02:07:41] justinmcp_: has joined #ruby
[02:08:49] skweek: has joined #ruby
[02:09:14] ruisantos: has joined #ruby
[02:09:15] FifthWall: has joined #ruby
[02:09:16] lavros: has joined #ruby
[02:09:37] knight_: has joined #ruby
[02:09:54] erichmenge: has joined #ruby
[02:10:25] pragmatism: has joined #ruby
[02:10:26] vigintas: has joined #ruby
[02:10:28] nlsun: has joined #ruby
[02:10:49] xybre: It really just doesn't compare to any language that is designed to be functional from the core out. Much in the same way that most languages that claim "object-oriented" pale in comparison to Ruby.
[02:11:36] amoeba: has joined #ruby
[02:11:40] xybre: I was gonna say Java, but C++ too :D
[02:11:52] FailBit: c++ < java
[02:11:56] FailBit: both are horrifying
[02:12:02] Evans: has joined #ruby
[02:12:13] Radar: has joined #ruby
[02:12:31] jdawgaz: has joined #ruby
[02:13:44] FooMunki: has joined #ruby
[02:13:51] Ox0dea: xybre: What is it, then, that makes something like, say, CLOS not constitute "real" object-orientation?
[02:14:29] xybre: Ox0dea: all languages are roughly equivilent, so it doesn't really matter.
[02:15:27] xybre: FailBit: I might try D out, I've heard a lot of good things about it. I don't really care about a stdlib that much, but it seems to cover all the bases with that too.
[02:16:01] Ox0dea: It's something of an anomaly that D didn't catch on.
[02:16:03] FailBit: D has a nice stdlib
[02:16:16] FailBit: not as great as ruby, but still quite the improvement over c++
[02:16:35] FailBit: plus, D compiles really friggin' fast
[02:17:00] FailBit: my main gripe with C/C++ is that they compile forever, and dmd is just sucking in hundreds of thousands of lines of code in seconds
[02:17:39] paradisaeidae: has joined #ruby
[02:19:45] xybre: I've spent the past 30-ish days writing Go every day. It compiles fast enough that it could be used as a scripting language.
[02:20:03] rgrmatt: has joined #ruby
[02:20:39] FailBit: http://dlang.org/rdmd.html
[02:20:56] araujo: has joined #ruby
[02:21:05] Ox0dea: > Most (if not all) compiler packages, contain a tool named rdmd/gdmd/ldmd or similar.
[02:21:13] Ox0dea: What's that about?
[02:22:50] duncannz: has joined #ruby
[02:23:22] rgrmatt: has joined #ruby
[02:23:25] claw: has joined #ruby
[02:23:36] skcin7: has joined #ruby
[02:24:07] xybre: FailBit: ha, nice. go has `go run` built in.
[02:25:04] swgillespie: has joined #ruby
[02:25:27] yoongkang: has joined #ruby
[02:25:28] northfurr: has joined #ruby
[02:25:31] IrishGringo: has joined #ruby
[02:27:11] dikaio: has joined #ruby
[02:28:29] rgrmatt: has joined #ruby
[02:29:49] TomPeed: has joined #ruby
[02:31:52] jdawgaz: has joined #ruby
[02:34:00] Trynemjoel: has joined #ruby
[02:35:21] banister: has joined #ruby
[02:36:41] northfurr: has joined #ruby
[02:36:58] x-light: has joined #ruby
[02:37:19] quazimodo: has joined #ruby
[02:38:30] jokester: has joined #ruby
[02:40:17] rgrmatt: has joined #ruby
[02:44:10] simplyianm: has joined #ruby
[02:45:03] swgillespie: has joined #ruby
[02:45:23] quazimodo: has joined #ruby
[02:46:04] bruno-: has joined #ruby
[02:46:32] astrobunny: has joined #ruby
[02:46:35] beast: has joined #ruby
[02:47:09] astrobunny: has joined #ruby
[02:48:51] davedev24: has joined #ruby
[02:50:52] dkam: has joined #ruby
[02:51:56] xcesariox: has joined #ruby
[02:52:58] mistermocha: has joined #ruby
[02:54:16] mary5030: has joined #ruby
[02:54:20] rgrmatt: has joined #ruby
[02:55:37] apeiros: has joined #ruby
[02:55:51] Davey: has joined #ruby
[02:55:51] Davey: has joined #ruby
[02:56:00] csmb: has joined #ruby
[02:56:27] FifthWall: has joined #ruby
[02:56:29] devoldmx: has joined #ruby
[02:57:43] doddok: has joined #ruby
[02:57:58] mh_laakso: has joined #ruby
[02:58:02] jericon: has joined #ruby
[02:58:26] NET||abuse: has joined #ruby
[02:58:30] htmldrum: has joined #ruby
[02:58:59] gmci: has joined #ruby
[02:59:02] jokester: has joined #ruby
[03:01:18] Radar_: has joined #ruby
[03:01:18] Yzguy: has joined #ruby
[03:02:05] tulak: has joined #ruby
[03:03:55] gbailey: has joined #ruby
[03:05:56] atomical: has joined #ruby
[03:06:57] hxegon: has joined #ruby
[03:08:57] atomical_: has joined #ruby
[03:11:26] sdwrage: has joined #ruby
[03:13:02] arescorpio: has joined #ruby
[03:15:07] Sam0163141155: has joined #ruby
[03:16:09] yoongkang: has joined #ruby
[03:17:10] ta: has joined #ruby
[03:18:43] Maletor: has joined #ruby
[03:20:02] rdavila: has joined #ruby
[03:21:30] h99h9h88: has joined #ruby
[03:21:49] charliesome: has joined #ruby
[03:24:50] beast_: has joined #ruby
[03:26:18] swgillespie: has joined #ruby
[03:26:49] davedev24: has joined #ruby
[03:32:10] shevy: got a question... I have an array such as this: array = ['--help','abc','def']
[03:32:47] shevy: via .shift I can return (and remove) the first entry; however had, the array may also have its arguments set differently, such as: array = ['abc','--help','def']
[03:33:11] shevy: is there something similar to .shift but that works on a conditional check? e. g. in the case above, it will return array[1] and then remove it from the array as well?
[03:33:37] Ox0dea: shevy: #delete_at.
[03:34:02] shevy: let me try
[03:34:20] Ox0dea: >> ary = ['abc','--help','def']; i = ary.index { |e| e['--'] }; [ary.delete_at(i), ary]
[03:34:22] ruboto: Ox0dea # => ["--help", ["abc", "def"]] (https://eval.in/468629)
[03:35:57] beast__: has joined #ruby
[03:37:38] safe: has joined #ruby
[03:38:19] Ox0dea: >> ary = ['abc','--help','def']; [ary.delete(ary.find { |e| e['--'] }), ary] # shevy
[03:38:20] ruboto: Ox0dea # => ["--help", ["abc", "def"]] (https://eval.in/468635)
[03:38:30] Ox0dea: That's probably better, since the index isn't really important.
[03:38:36] moei: has joined #ruby
[03:38:46] Ox0dea: Shorter, but arguably a little noisier.
[03:43:31] vigintas: has joined #ruby
[03:43:36] xcesariox: has joined #ruby
[03:43:45] rgtk: has joined #ruby
[03:44:22] Ox0dea: >> [].find -> { :wtf } { }
[03:44:23] ruboto: Ox0dea # => :wtf (https://eval.in/468643)
[03:45:07] Trynemjoel: has joined #ruby
[03:45:10] Ox0dea: I am almost certain nobody uses that semantics; #find with an argument should behave like "#grep_one".
[03:46:26] Rollabunna: has joined #ruby
[03:48:05] bruno-: has joined #ruby
[03:49:10] roxtrongo: has joined #ruby
[03:49:15] hahuang65: has joined #ruby
[03:51:42] FailBit: >> [:$:,:$-,:$,]
[03:51:43] ruboto: FailBit # => /tmp/execpad-704b04d99833/source-704b04d99833:2: syntax error, unexpected $undefined, expecting tSTR ...check link for more (https://eval.in/468645)
[03:53:07] PaulCape_: has joined #ruby
[03:54:50] Ox0dea: FailBit: No, like this.
[03:54:51] Ox0dea: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[03:54:52] ruboto: Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/468650)
[03:56:14] Ox0dea: FailBit: For the record, yours was valid until 2.1, when $- became an invalid global identifier.
[03:56:33] sdwrage: has joined #ruby
[03:56:44] Ox0dea: That is was ever valid seems to have been accidental, but I don't see why it had to be removed.
[03:57:34] Trynemjoel: has joined #ruby
[03:57:46] lavros_: has joined #ruby
[03:57:49] Raymon_: has joined #ruby
[03:59:36] swgillespie: has joined #ruby
[03:59:36] chouhoulis: has joined #ruby
[04:07:11] sankaber: has joined #ruby
[04:07:48] mary5030: has joined #ruby
[04:12:09] Trynemjoel: has joined #ruby
[04:12:21] devoldmx: has joined #ruby
[04:15:33] makenoise: has joined #ruby
[04:15:49] houhoulis: has joined #ruby
[04:16:25] braincrash: has joined #ruby
[04:21:21] symm-: has joined #ruby
[04:22:40] Spami: has joined #ruby
[04:23:04] simplyianm: has joined #ruby
[04:24:44] rickmasta: has joined #ruby
[04:25:45] swgillespie: has joined #ruby
[04:25:58] djbkd: has joined #ruby
[04:26:29] shevy: yo snowtiki
[04:30:27] sysanthrope: has joined #ruby
[04:31:24] dlitvak: has joined #ruby
[04:32:36] _blizzy_: my heart goes out to Paris.
[04:33:33] Emmanuel_Chanel: has joined #ruby
[04:34:03] PaulCapestany: has joined #ruby
[04:35:53] mozzarella: what happened?
[04:36:53] _blizzy_: off topic, but important. mozzarella, https://www.reddit.com/r/news/comments/3spi33/shootings_reported_in_central_paris/
[04:39:44] darkf: has joined #ruby
[04:42:01] tkuchiki: has joined #ruby
[04:44:01] SteveC: has joined #ruby
[04:44:18] vigintas: has joined #ruby
[04:44:21] mozzarella: _blizzy_: got a better source?
[04:44:39] _blizzy_: mozzarella, um, no, sorry. I just found out about it on reddit.
[04:44:44] pontiki: all over every news site?
[04:46:07] mozzarella: oh I guess the article itself is better
[04:46:12] mozzarella: I was just reading the comments
[04:47:39] jorb: has joined #ruby
[04:47:52] kp666: has joined #ruby
[04:48:19] roxtrongo: has joined #ruby
[04:48:45] bruno-: has joined #ruby
[04:51:08] Trynemjoel: has joined #ruby
[04:51:32] benlieb: has joined #ruby
[04:52:19] yoongkang: has joined #ruby
[04:52:43] weemsledeux: has joined #ruby
[04:53:46] mistermocha: has joined #ruby
[04:54:17] UtkarshRay: has joined #ruby
[04:55:03] ebbflowgo: has joined #ruby
[04:56:12] The_Phoenix: has joined #ruby
[04:56:40] UtkarshRay: has joined #ruby
[04:57:01] The_Phoenix: has joined #ruby
[04:58:04] ricer2: has joined #ruby
[04:59:21] dlitvak: has joined #ruby
[05:00:51] mattwildig: has joined #ruby
[05:00:57] vdamewood: has joined #ruby
[05:02:01] kfpratt: has joined #ruby
[05:03:02] tulak: has joined #ruby
[05:03:34] yfeldblum: has joined #ruby
[05:05:22] helpa-bot: has joined #ruby
[05:05:25] gix: has joined #ruby
[05:05:57] matled-: has joined #ruby
[05:05:59] mghaig: has joined #ruby
[05:06:16] The_Phoenix1: has joined #ruby
[05:06:40] skcin7_: has joined #ruby
[05:06:55] LicHacker: has joined #ruby
[05:07:23] helpa-bot: has joined #ruby
[05:07:41] Scientz: has joined #ruby
[05:07:44] shevy: how could we get to see more games in ruby?
[05:08:07] yoongkang: has joined #ruby
[05:08:54] shinnya_: has joined #ruby
[05:09:24] helpa-bot: has joined #ruby
[05:09:32] sung_: has joined #ruby
[05:09:43] sunya7a: has joined #ruby
[05:09:49] suffice_: has joined #ruby
[05:09:49] minimali1m: has joined #ruby
[05:09:50] arthurix: has joined #ruby
[05:09:53] jamo: has joined #ruby
[05:10:03] M-Techni1: has joined #ruby
[05:10:08] [ace]: has joined #ruby
[05:10:12] ejnahc_: has joined #ruby
[05:10:12] rfi_: has joined #ruby
[05:10:30] kiki_lamb: Quickie question: let's say I have a method, and someone's going to pass a class to it as an argument. Is there a way I can inquire about the arity of that class's initialize method?
[05:11:07] exceion: has joined #ruby
[05:11:26] helpa-bot: has joined #ruby
[05:11:40] shevy: >> puts 0.1 + 0.2
[05:11:41] ruboto: shevy # => 0.30000000000000004 ...check link for more (https://eval.in/468679)
[05:12:15] shevy: kiki_lamb you can try to call it
[05:12:18] Eising_: has joined #ruby
[05:12:25] ponga: has joined #ruby
[05:12:29] shevy: and then call .arity
[05:12:30] shevy: >> Proc.new {|a,b,c|}.arity
[05:12:31] ruboto: shevy # => 3 (https://eval.in/468680)
[05:12:38] lele`: has joined #ruby
[05:13:00] baweaver: has joined #ruby
[05:13:13] Ray`_: has joined #ruby
[05:13:13] kiki_lamb: shevy: let's say they're passing a class though, not a proc
[05:13:27] helpa-bot: has joined #ruby
[05:13:30] Lildirt|SomeoneT: has joined #ruby
[05:13:37] SirCmpwn_: has joined #ruby
[05:13:38] Sthebig_: has joined #ruby
[05:13:38] Sthebig_: has joined #ruby
[05:13:42] NET||abu-: has joined #ruby
[05:13:52] aep_: has joined #ruby
[05:14:05] ekleog_: has joined #ruby
[05:14:07] james1: has joined #ruby
[05:14:07] Bish-: has joined #ruby
[05:14:07] g3funk: has joined #ruby
[05:14:35] jidar_: has joined #ruby
[05:14:41] ssvss: has joined #ruby
[05:14:45] Koshian: has joined #ruby
[05:14:57] duracrisis: has joined #ruby
[05:15:00] YaknotiS: has joined #ruby
[05:15:07] alexherbo2: has joined #ruby
[05:15:09] gregf: has joined #ruby
[05:15:10] Silicium: has joined #ruby
[05:15:28] helpa: has joined #ruby
[05:15:52] minimalism: has joined #ruby
[05:16:08] bahar: has joined #ruby
[05:17:00] bytecrawler: has joined #ruby
[05:17:06] shevy: yeah you can try to call it
[05:17:59] LicHacker: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[05:18:10] Eiam_: has joined #ruby
[05:18:13] peitera: has joined #ruby
[05:18:19] wjimenez5271: has joined #ruby
[05:18:19] hyperdrive: has joined #ruby
[05:18:19] Gadgetoid: has joined #ruby
[05:18:19] bier_: has joined #ruby
[05:18:19] Kuukunen: has joined #ruby
[05:18:31] shevy: >> x = String; s = x.new; x.method(:initialize).arity
[05:18:32] ruboto: shevy # => -1 (https://eval.in/468681)
[05:18:34] brixen_: has joined #ruby
[05:18:38] shevy: http://ruby-doc.org/core-2.2.0/Method.html#method-i-arity
[05:18:43] funnel: has joined #ruby
[05:18:55] shevy: "returns -1 if the call takes a variable number of arguments"
[05:19:48] shevy: does anyone of you have some fancy ascii animations? I collect these
[05:21:23] Sam0163141155: shevy: sorry, I do not.
[05:21:55] Sam0163141155: Does anyone know if you can identify which object called a method without passing the object itself to the called method?
[05:23:10] mary5030: has joined #ruby
[05:23:20] shevy: hmm this may be tricky
[05:23:44] shevy: via caller() you should be able to get a stack trace ... but you don't get the individual object e. g. object_id that called it
[05:23:59] gusrub: has joined #ruby
[05:23:59] shevy: http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-caller
[05:24:31] shevy: there also are some ad-hoc additions possible to trace calls... set_trace_var and set_trace_func ... but they are also somewhat limited http://apidock.com/ruby/Kernel/set_trace_func
[05:25:29] Sam0163141155: Thanks, shevy, I'll have a read through this stuff :-)
[05:27:40] shevy: for my use cases, caller() usually was enough; I use it in a project to automatically determine the name of the class + constant, and to colourize this
[05:27:43] shevy: for instance
[05:27:51] shevy: module Foo; class Bar
[05:28:27] shevy: RED_COLOUR_START Foo::Bar: END_OF_RED_COLOUR "We will whack down the pandas next." # where the leading part is in a red colour on the console
[05:28:39] rdavila: has joined #ruby
[05:29:31] Musashi007: has joined #ruby
[05:29:44] Sam0163141155: I hear you. I am really new to this (but #new2ruby is empty). I'm trying to give an object different behaviour depending on which object called its methods. Would you do that by passing self?
[05:30:48] shevy: is there no other way for you to toggle that behaviour?
[05:31:24] Sam0163141155: This isn't what I'm doing, but it's a simpler example. If you had a password object with a display method and you wanted it to print the password if the owner of the password called the print method, otherwise, print stars or something
[05:33:30] baweaver: there's a new to ruby channel? Huh
[05:33:59] Sam0163141155: baweaver: yes, but it's very quiet (read: just one lonely person)
[05:36:20] baweaver: for passwords, never print anything plaintext, but that's not the point.
[05:37:21] dionysus69: has joined #ruby
[05:37:31] Sam0163141155: it's not a password. It's a board game, where one player can see more information than the other.
[05:37:37] simplyianm: has joined #ruby
[05:38:24] framling: has joined #ruby
[05:38:36] Sam0163141155: anyway, sorry, I got impatient and bothered all you nice people. Thank you for your time, and I'll combine your advice with some brute force and see what happens.
[05:38:58] baweaver: Just check whose turn it is then
[05:39:30] baweaver: find a way to model a game in such a way that information is only available in certain contexts.
[05:39:48] baweaver: caller in this case would be overkill
[05:40:01] baweaver: just encapsulate the logic in a turn system
[05:41:05] Sam0163141155: baweaver: good idea, thank you, I'll try looking at it that way :-)
[05:41:20] baweaver: Look into Practical Object Oriented Design in Ruby
[05:41:47] baweaver: Chances are when you find yourself metaprogramming or reaching for anything off that shelf, there's an easier cleaner way to do it
[05:42:01] Sam0163141155: Thanks, I'm about halfway through POODR, but getting it to stick will take some time
[05:42:46] tkuchiki: has joined #ruby
[05:43:09] Sam0163141155: baweaver: I'll set this project aside and go read awhile. Thanks again for the advice and have a good day
[05:43:40] baweaver: we answer questions, you're not wasting time here mate
[05:43:53] baweaver: otherwise we wouldn't be online to answer now would we? ;)
[05:44:25] baweaver: we don't bite
[05:44:33] tatertot: has joined #ruby
[05:44:36] baweaver: I can't speak for shevy, pretty sure he does.
[05:44:51] edward__: has joined #ruby
[05:44:57] Pixi_: has joined #ruby
[05:44:57] rgtk: has joined #ruby
[05:45:04] vigintas: has joined #ruby
[05:45:27] matled-: has joined #ruby
[05:46:54] Trynemjoel2: has joined #ruby
[05:47:01] Outlastsheep: has joined #ruby
[05:48:00] Marc-: has joined #ruby
[05:48:26] Armand: has joined #ruby
[05:48:30] AccordsLTN: has joined #ruby
[05:48:50] kith_: has joined #ruby
[05:49:10] lianj_: has joined #ruby
[05:49:11] gregf1: has joined #ruby
[05:49:14] ironcame1: has joined #ruby
[05:49:22] rideh-: has joined #ruby
[05:49:23] abra0_: has joined #ruby
[05:49:24] parus_: has joined #ruby
[05:49:42] chrisarc1nd: has joined #ruby
[05:49:56] mary5030: has joined #ruby
[05:50:01] bruno-: has joined #ruby
[05:50:07] Bish: has joined #ruby
[05:50:09] LoganG_: has joined #ruby
[05:50:20] Liam-: has joined #ruby
[05:50:33] contradictioned_: has joined #ruby
[05:50:37] sung: has joined #ruby
[05:50:38] martinbjeldbak_: has joined #ruby
[05:50:43] bascht1: has joined #ruby
[05:50:45] HashNuke_: has joined #ruby
[05:50:50] sp3: has joined #ruby
[05:50:55] lancetw_: has joined #ruby
[05:50:56] bryancp_: has joined #ruby
[05:50:57] borkdude: has joined #ruby
[05:50:58] mbeasley_: has joined #ruby
[05:51:00] tobyx_: has joined #ruby
[05:51:01] ajaiswal_: has joined #ruby
[05:51:01] Shapeshi1ter: has joined #ruby
[05:51:02] heftig_: has joined #ruby
[05:51:04] AdamMeghji_: has joined #ruby
[05:51:13] kalleth_: has joined #ruby
[05:51:14] mighty_gorilla: has joined #ruby
[05:51:14] soahccc: has joined #ruby
[05:51:16] chinmay_dd_: has joined #ruby
[05:51:17] skmp_: has joined #ruby
[05:51:20] ohcibi: has joined #ruby
[05:51:21] claws: has joined #ruby
[05:51:22] elektronaut: has joined #ruby
[05:51:22] oz: has joined #ruby
[05:51:33] BackEndCoder: has joined #ruby
[05:51:33] canton7: has joined #ruby
[05:51:41] tekacs: has joined #ruby
[05:51:42] Fluent: has joined #ruby
[05:51:43] noodle: has joined #ruby
[05:51:48] bytecrawler: has joined #ruby
[05:51:51] danoo_: has joined #ruby
[05:51:51] JStoker: has joined #ruby
[05:51:52] sorah: has joined #ruby
[05:51:55] nemesit|znc: has joined #ruby
[05:51:56] ec\: has joined #ruby
[05:51:57] tubbo: has joined #ruby
[05:51:58] tuor: has joined #ruby
[05:52:00] kies: has joined #ruby
[05:52:02] DefV: has joined #ruby
[05:52:05] ddv: has joined #ruby
[05:52:06] haasn: has joined #ruby
[05:52:09] SegFaultAX: has joined #ruby
[05:52:12] astrobunny: has joined #ruby
[05:52:33] ndrst: has joined #ruby
[05:52:41] varesa_: has joined #ruby
[05:52:41] duckson: has joined #ruby
[05:52:42] Scroff: has joined #ruby
[05:52:42] bjmllr: has joined #ruby
[05:52:52] drPoggs: has joined #ruby
[05:52:53] bougyman: has joined #ruby
[05:52:54] woodruffw: has joined #ruby
[05:52:58] araujo: has joined #ruby
[05:53:00] phrozen77: has joined #ruby
[05:53:11] Shidash: has joined #ruby
[05:53:15] leat: has joined #ruby
[05:53:33] gix: has joined #ruby
[05:53:53] Sirecote: has joined #ruby
[05:53:54] Morrolan: has joined #ruby
[05:53:54] cgfbee: has joined #ruby
[05:54:17] hplar: has joined #ruby
[05:54:48] bauruine: has joined #ruby
[05:54:50] SuperTux88: has joined #ruby
[05:55:08] BLuEGoD: has joined #ruby
[05:55:20] Hobbyboy: has joined #ruby
[05:55:57] iDavid: has joined #ruby
[05:56:37] Heero: has joined #ruby
[05:56:40] nyandoge: has joined #ruby
[05:56:46] Raboo: has joined #ruby
[05:58:13] bjeanes: has joined #ruby
[05:58:13] jmcc: has joined #ruby
[05:58:14] cbednarski: has joined #ruby
[05:58:18] tonini: has joined #ruby
[05:58:20] jpinnix______: has joined #ruby
[05:58:22] jxf: has joined #ruby
[05:58:23] pizzaops: has joined #ruby
[05:58:27] vcoinminer: has joined #ruby
[05:58:28] tejasmanohar: has joined #ruby
[05:58:30] ckrailo: has joined #ruby
[05:58:48] cstrahan: has joined #ruby
[05:58:56] frode15243: has joined #ruby
[05:58:57] zipkid: has joined #ruby
[05:59:09] zzak: has joined #ruby
[05:59:10] dmoe: has joined #ruby
[05:59:19] darkxploit: has joined #ruby
[05:59:30] pimpin: has joined #ruby
[06:00:12] arta82: has joined #ruby
[06:00:30] cardoni: has joined #ruby
[06:00:31] chrisseaton: has joined #ruby
[06:00:56] twodayslate: has joined #ruby
[06:01:27] Eleeleth: has joined #ruby
[06:01:38] bestie: has joined #ruby
[06:01:49] jmhmccr: has joined #ruby
[06:01:56] guest192123: has joined #ruby
[06:02:00] akitada: has joined #ruby
[06:02:01] mjc_: has joined #ruby
[06:02:09] griffindy: has joined #ruby
[06:02:25] countryHick: has joined #ruby
[06:02:28] bttf: has joined #ruby
[06:04:08] Meow-J: has joined #ruby
[06:04:30] DoYouKnow: has joined #ruby
[06:05:03] yo61: has joined #ruby
[06:06:29] Trynemjoel: has joined #ruby
[06:06:44] ThatsNotJack: has joined #ruby
[06:08:04] DoYouKnow: has joined #ruby
[06:08:04] DoYouKnow: has joined #ruby
[06:08:14] machty: has joined #ruby
[06:09:40] shevy: I was playing a game for a moment :D
[06:09:54] shevy: still have to continue ... :P
[06:11:08] infernix: has joined #ruby
[06:13:44] slackbotgz: has joined #ruby
[06:13:55] zapata: has joined #ruby
[06:14:30] arta82: has joined #ruby
[06:14:47] helpa: has joined #ruby
[06:14:56] rdavila: has joined #ruby
[06:15:06] Tref_: has joined #ruby
[06:15:41] skcin7: has joined #ruby
[06:16:56] skakri`: has joined #ruby
[06:17:29] ihme-TTilus: has joined #ruby
[06:17:42] m4rCsi: has joined #ruby
[06:17:59] DefV_: has joined #ruby
[06:19:04] matp_: has joined #ruby
[06:19:22] hagebake: has joined #ruby
[06:19:31] neanderslob_: has joined #ruby
[06:19:39] gregf: has joined #ruby
[06:19:41] Miccet: has joined #ruby
[06:19:48] cfloare_: has joined #ruby
[06:19:55] Xiti`: has joined #ruby
[06:19:57] diprotic: has joined #ruby
[06:19:58] diprotic: has joined #ruby
[06:20:00] Sthebig: has joined #ruby
[06:20:00] Sthebig: has joined #ruby
[06:20:16] YaknotiS: has joined #ruby
[06:20:27] janelleb: has joined #ruby
[06:20:31] Utkarsh: has joined #ruby
[06:20:32] adam_: has joined #ruby
[06:20:44] tw1sted: has joined #ruby
[06:20:58] |ifei5g00d: has joined #ruby
[06:21:10] bhorn1|away: has joined #ruby
[06:21:26] Pro|: has joined #ruby
[06:21:30] charliesome: has joined #ruby
[06:21:37] johnny56: has joined #ruby
[06:21:50] nomadic_: has joined #ruby
[06:21:51] Davey: has joined #ruby
[06:21:57] Affix: has joined #ruby
[06:22:17] xybre: has joined #ruby
[06:22:20] bodie_: has joined #ruby
[06:22:20] Trynemjoel: has joined #ruby
[06:22:21] \13k: has joined #ruby
[06:22:28] Davey: has joined #ruby
[06:22:34] chouhoulis: has joined #ruby
[06:23:45] arta82: has joined #ruby
[06:24:21] charliesome: has joined #ruby
[06:25:44] lkba: has joined #ruby
[06:27:20] Trynemjoel: has joined #ruby
[06:28:23] araujo: has joined #ruby
[06:28:55] Sirecote: has joined #ruby
[06:29:16] bruce_lee2: has joined #ruby
[06:30:15] baweaver: has joined #ruby
[06:31:54] lemur: has joined #ruby
[06:33:11] neanderslob: has joined #ruby
[06:37:35] cpup: has joined #ruby
[06:37:43] jamesadickerson: has joined #ruby
[06:38:57] lxsameer: has joined #ruby
[06:45:55] Trynemjoel: has joined #ruby
[06:47:34] wldcordeiro: has joined #ruby
[06:47:44] exadeci: has joined #ruby
[06:49:27] cpup: has joined #ruby
[06:49:29] arta82: has joined #ruby
[06:50:20] bruno-: has joined #ruby
[06:50:23] weemsledeux: has joined #ruby
[06:57:00] djbkd: has joined #ruby
[06:58:40] sabram_: has joined #ruby
[06:58:41] tater: has joined #ruby
[06:58:56] Trynemjoel: has joined #ruby
[06:59:05] tw1sted: has joined #ruby
[06:59:14] edward_: has joined #ruby
[06:59:21] tercenya: has joined #ruby
[06:59:37] terminal_: has joined #ruby
[07:00:12] lxsameer: has joined #ruby
[07:00:49] csaunders_: has joined #ruby
[07:01:25] shaman42: has joined #ruby
[07:01:35] rtl_: has joined #ruby
[07:01:36] tenderlove: has joined #ruby
[07:01:51] _fumk: has joined #ruby
[07:01:51] mattwildig: has joined #ruby
[07:01:52] ruisanto1: has joined #ruby
[07:02:20] nomadic: has joined #ruby
[07:02:20] nomadic: has joined #ruby
[07:03:58] houhoulis: has joined #ruby
[07:04:00] livcd: has joined #ruby
[07:04:01] tulak: has joined #ruby
[07:04:09] j0bk: has joined #ruby
[07:04:15] bakedb: has joined #ruby
[07:04:22] iko1: has joined #ruby
[07:04:25] sumark: has joined #ruby
[07:04:31] pleiosaur: has joined #ruby
[07:04:34] low-prof1: has joined #ruby
[07:04:38] redlegion: has joined #ruby
[07:04:42] Drakevr: has joined #ruby
[07:04:46] tubuliferous: has joined #ruby
[07:04:50] gmci: has joined #ruby
[07:04:55] oddalot: has joined #ruby
[07:04:57] Jello_Raptor: has joined #ruby
[07:05:01] CustosLimen: has joined #ruby
[07:05:02] phreakocious: has joined #ruby
[07:05:02] Scroff: has joined #ruby
[07:05:10] bluntman: has joined #ruby
[07:05:12] crowell: has joined #ruby
[07:05:13] crowell: has joined #ruby
[07:05:13] edwardly: has joined #ruby
[07:05:13] edwardly: has joined #ruby
[07:05:17] Davey: has joined #ruby
[07:05:17] Davey: has joined #ruby
[07:05:28] df: has joined #ruby
[07:05:30] samuelkadolph: has joined #ruby
[07:05:30] kellabyte: has joined #ruby
[07:05:40] ghormoon: has joined #ruby
[07:05:41] arthurnn: has joined #ruby
[07:05:50] spectra: has joined #ruby
[07:05:50] fumduq: has joined #ruby
[07:06:06] tubbo: has joined #ruby
[07:06:07] AustinMatherne: has joined #ruby
[07:06:10] shtirlic: has joined #ruby
[07:06:11] three18ti: has joined #ruby
[07:06:12] rcs: has joined #ruby
[07:06:19] Coraline: has joined #ruby
[07:06:32] Kamilion: has joined #ruby
[07:07:23] cajone: has joined #ruby
[07:08:32] reaVer: has joined #ruby
[07:09:33] lorn: has joined #ruby
[07:10:35] michael_mbp: has joined #ruby
[07:13:09] gorpon: has joined #ruby
[07:13:32] tkuchiki: has joined #ruby
[07:14:42] rippa: has joined #ruby
[07:16:21] devoldmx: has joined #ruby
[07:16:40] apofis: has joined #ruby
[07:19:55] dlitvak: has joined #ruby
[07:23:01] ta: has joined #ruby
[07:27:54] cpup: has joined #ruby
[07:28:33] baweaver: has joined #ruby
[07:29:12] x-light: has joined #ruby
[07:29:45] nsuke: has joined #ruby
[07:30:14] djbkd: has joined #ruby
[07:34:38] charliesome: has joined #ruby
[07:36:02] crdpink2: has joined #ruby
[07:38:57] chipotle: has joined #ruby
[07:39:34] F4GG07: has joined #ruby
[07:39:38] last_staff: has joined #ruby
[07:39:48] kerunaru: has joined #ruby
[07:45:27] rgtk: has joined #ruby
[07:46:23] akem: has joined #ruby
[07:47:11] devl_: has joined #ruby
[07:48:05] PaulCape_: has joined #ruby
[07:50:53] cpup: has joined #ruby
[07:51:55] bruno-: has joined #ruby
[07:58:25] mistermocha: has joined #ruby
[08:02:17] nofxx: has joined #ruby
[08:06:39] dlitvak: has joined #ruby
[08:07:12] Emmanuel_Chanel: has joined #ruby
[08:07:18] naftilos76: has joined #ruby
[08:07:44] Outlastsheep: has joined #ruby
[08:08:07] A124: has joined #ruby
[08:08:12] ledestin: has joined #ruby
[08:10:47] Psy-Q: has joined #ruby
[08:11:28] rgtk: has joined #ruby
[08:15:15] mrtomme: has joined #ruby
[08:20:04] majjoha: has joined #ruby
[08:22:21] arta82: has joined #ruby
[08:22:33] OrbitalKitten: has joined #ruby
[08:23:29] trosborn: has joined #ruby
[08:23:36] benlieb: has joined #ruby
[08:24:40] crdpink: has joined #ruby
[08:28:22] OrbitalKitten: has joined #ruby
[08:29:36] baweaver: has joined #ruby
[08:31:15] jenaiz: has joined #ruby
[08:31:29] jenaiz: has left #ruby: ()
[08:31:55] ta: has joined #ruby
[08:32:02] unknowns2k2: has joined #ruby
[08:32:27] ruby-lang688: has joined #ruby
[08:33:40] nertzy: has joined #ruby
[08:33:47] chouhoulis: has joined #ruby
[08:34:26] yoongkang: has joined #ruby
[08:35:16] vigintas: has joined #ruby
[08:35:34] marr: has joined #ruby
[08:37:30] bnizzle: has joined #ruby
[08:43:05] ta: has joined #ruby
[08:45:42] trosborn: has joined #ruby
[08:46:22] karapetyan: has joined #ruby
[08:46:44] PaulCapestany: has joined #ruby
[08:48:55] jamesaxl: has joined #ruby
[08:49:29] lukaszes: has joined #ruby
[08:53:02] roxtrongo: has joined #ruby
[08:53:40] leafybasil: has joined #ruby
[08:55:29] MEATCHICKEN: has joined #ruby
[08:55:35] MEATCHICKEN: has left #ruby: ()
[08:55:46] ruby-02: has joined #ruby
[08:56:19] ruby-02: Is anyone hiring devs in here? looking for work
[08:56:41] DEA7TH: has joined #ruby
[08:56:56] aramiscd: has joined #ruby
[08:57:06] karapetyan: has joined #ruby
[08:57:12] unknowns2k2_: has joined #ruby
[08:58:30] solars: has joined #ruby
[08:59:29] htmldrum: has joined #ruby
[09:02:23] Emmanuel_Chanel: has joined #ruby
[09:02:31] mattwildig: has joined #ruby
[09:03:58] Jackneill: has joined #ruby
[09:04:07] nofxx: has joined #ruby
[09:04:48] tulak: has joined #ruby
[09:07:37] Helheim: has joined #ruby
[09:11:42] bruno-: has joined #ruby
[09:13:02] trosborn: has joined #ruby
[09:15:50] adac: has joined #ruby
[09:16:12] yasu: has joined #ruby
[09:17:09] devoldmx: has joined #ruby
[09:17:26] rgtk: has joined #ruby
[09:18:41] Emmanuel_Chanel: has joined #ruby
[09:19:02] lapide_viridi: has joined #ruby
[09:19:57] roxtrongo: has joined #ruby
[09:24:06] karapetyan: has joined #ruby
[09:25:56] dasher00: has joined #ruby
[09:26:54] DEA7TH: has joined #ruby
[09:29:08] arulmani88: has joined #ruby
[09:30:26] baweaver: has joined #ruby
[09:34:07] benlieb: has joined #ruby
[09:35:58] Oli`: has joined #ruby
[09:36:27] karapetyan: has joined #ruby
[09:36:44] Spami: has joined #ruby
[09:36:47] Mon_Ouie: has joined #ruby
[09:37:34] wildlander: has joined #ruby
[09:38:11] tmtwd: has joined #ruby
[09:38:27] Spami: has joined #ruby
[09:43:15] cpup: has joined #ruby
[09:43:37] ta: has joined #ruby
[09:43:51] lubarch: has joined #ruby
[09:44:12] k3asd`: has joined #ruby
[09:44:17] tkuchiki: has joined #ruby
[09:45:51] lubarch: has joined #ruby
[09:46:41] Oli`: has joined #ruby
[09:48:21] BTRE: has joined #ruby
[09:50:10] devl_: has joined #ruby
[09:52:13] pandaant: has joined #ruby
[09:54:35] skcin7: has joined #ruby
[09:55:58] dasher00: has joined #ruby
[09:58:02] lsv_: has joined #ruby
[09:59:05] akem: has joined #ruby
[09:59:15] yosiat: has joined #ruby
[10:00:20] akem: has joined #ruby
[10:03:39] nowhereFast: has joined #ruby
[10:04:19] nowhereFast: 2.2.3 :008 > Faye::Websocket.new
[10:04:27] nowhereFast: NameError: uninitialized constant Faye::Websocket
[10:04:56] nowhereFast: I'm not getting why this complains about not being initialized
[10:05:05] nowhereFast: can somebody shed some light on this?
[10:09:39] leafybasil: has joined #ruby
[10:09:48] Caius: nowhereFast: forgive the obvious question, but have you required faye and/or faye/websocket?
[10:10:12] F4GG07: has joined #ruby
[10:12:42] nowhereFast: Caius: I figured it out, thanks :-)
[10:12:43] codecop: has joined #ruby
[10:13:35] nowhereFast: while I do have your attention... I'm adding a middleware module, the example I'm looking at in Sinatra defines both a module and a class in the file
[10:13:41] apeiros: F4GG07: 30s to change your nick.
[10:13:55] nowhereFast: the examples I've come accross for rails show only the class in the file
[10:14:12] nowhereFast: then to just config.middleware in the application.rb file
[10:14:55] ChanServ: +b F4GG07!*@*
[10:14:55] ChanServ: ChanServ kicked F4GG07: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[10:15:11] AccordLTN: has joined #ruby
[10:15:29] nowhereFast: how would I define the config.middleware statement to include module?
[10:15:31] peteyg_: has joined #ruby
[10:16:00] nowhereFast: just have the file named in accordance with the module name irrispective of the classes it contains?
[10:16:24] plonk_: has joined #ruby
[10:16:24] plonk_: has joined #ruby
[10:16:53] kkh: has joined #ruby
[10:17:07] cek_: has joined #ruby
[10:17:09] AnoHito_: has joined #ruby
[10:17:13] Fluent_: has joined #ruby
[10:17:14] wlanboy_: has joined #ruby
[10:17:51] pepperbreath1: has joined #ruby
[10:17:53] mostlybadfly_: has joined #ruby
[10:18:58] lxsameer: has joined #ruby
[10:18:58] lxsameer: has joined #ruby
[10:19:42] greenbig-: has joined #ruby
[10:19:47] akitada_: has joined #ruby
[10:19:55] TvL: has joined #ruby
[10:19:58] moeabdol: has joined #ruby
[10:20:03] mh_laaks1: has joined #ruby
[10:20:04] sivoais_: has joined #ruby
[10:20:04] Eising: has joined #ruby
[10:20:04] nej: has joined #ruby
[10:20:06] ccooke_: has joined #ruby
[10:20:13] phutchins2: has joined #ruby
[10:20:15] raenk: has joined #ruby
[10:20:16] [ace]_: has joined #ruby
[10:20:16] bakingbread: has joined #ruby
[10:20:18] galeido^: has joined #ruby
[10:20:18] dwithers: has joined #ruby
[10:20:21] nowhereFast: has left #ruby: ()
[10:20:41] artmann: has joined #ruby
[10:20:41] G: has joined #ruby
[10:20:41] GarethAdams: has joined #ruby
[10:20:41] KervyN: has joined #ruby
[10:20:41] mroth: has joined #ruby
[10:20:41] zly: has joined #ruby
[10:20:42] G: has joined #ruby
[10:20:42] mroth: has joined #ruby
[10:20:42] GarethAdams: has joined #ruby
[10:20:42] SegFaultAX: has joined #ruby
[10:20:42] shevy: has joined #ruby
[10:20:42] bgresham: has joined #ruby
[10:20:42] freedrul1: has joined #ruby
[10:20:43] Ankhers_: has joined #ruby
[10:20:43] daniel: has joined #ruby
[10:20:43] mroth: has joined #ruby
[10:20:43] davidt: has joined #ruby
[10:20:44] soulcutter: has joined #ruby
[10:20:45] j2k_: has joined #ruby
[10:20:45] Olipro_: has joined #ruby
[10:20:46] golgaroth: has joined #ruby
[10:20:46] knight_: has joined #ruby
[10:21:01] _5moufl: has joined #ruby
[10:21:01] kerunaru: has joined #ruby
[10:21:01] ahuman: has joined #ruby
[10:21:03] bascht1: has joined #ruby
[10:21:07] mprelude: has joined #ruby
[10:21:08] skmp_: has joined #ruby
[10:21:14] prosodyCagain_: has joined #ruby
[10:21:17] drew2_: has joined #ruby
[10:21:18] Meeh: has joined #ruby
[10:21:32] aspiers: has joined #ruby
[10:21:39] Shidash: has joined #ruby
[10:21:44] nizmow-: has joined #ruby
[10:21:49] hplar: has joined #ruby
[10:21:51] ramblinpeck: has joined #ruby
[10:21:59] kalz: has joined #ruby
[10:22:01] oddmunds: has joined #ruby
[10:22:08] err_ok: has joined #ruby
[10:22:14] kriskropd: has joined #ruby
[10:22:19] Takumo: has joined #ruby
[10:22:20] Takumo: has joined #ruby
[10:22:25] TheHodge: has joined #ruby
[10:22:48] redlegion: has joined #ruby
[10:23:11] camilasan: has joined #ruby
[10:23:24] vigintas: has joined #ruby
[10:24:39] frankS2: has joined #ruby
[10:25:24] TheMoonMaster: has joined #ruby
[10:25:59] johnny56: has joined #ruby
[10:25:59] kalzz: has joined #ruby
[10:26:06] ValicekB_: has joined #ruby
[10:26:29] pfg: has joined #ruby
[10:26:37] eggoez: has joined #ruby
[10:26:44] PhilK: has joined #ruby
[10:27:01] kellabyte: has joined #ruby
[10:27:04] andersh: has joined #ruby
[10:27:18] DukeDave: has joined #ruby
[10:27:19] mikolalysenko: has joined #ruby
[10:27:25] lukaszes: has joined #ruby
[10:27:29] djbender: has joined #ruby
[10:27:38] halfdan: has joined #ruby
[10:27:43] AckZ: has joined #ruby
[10:27:44] bcavileer: has joined #ruby
[10:28:04] vayan: has joined #ruby
[10:28:11] bjeanes: has joined #ruby
[10:28:14] deimos: has joined #ruby
[10:28:20] crayfishx: has joined #ruby
[10:28:35] akahn: has joined #ruby
[10:29:11] dellavg: has joined #ruby
[10:29:16] jmcc: has joined #ruby
[10:29:18] jord: has joined #ruby
[10:29:22] glowcoil: has joined #ruby
[10:29:23] knowtheory: has joined #ruby
[10:29:46] sivoais: has joined #ruby
[10:29:49] thesheff17: has joined #ruby
[10:29:55] iateadonut: has joined #ruby
[10:30:50] OrbitalKitten: has joined #ruby
[10:31:23] baweaver: has joined #ruby
[10:31:25] Lloyd: has joined #ruby
[10:31:33] im0b: has joined #ruby
[10:33:49] johnny56: has joined #ruby
[10:34:49] mission712: has joined #ruby
[10:36:05] stamina: has joined #ruby
[10:36:58] johnny56: has joined #ruby
[10:37:41] infernix: has joined #ruby
[10:37:52] vdamewood: has joined #ruby
[10:40:34] FooMunki: has joined #ruby
[10:40:36] johnny56: has joined #ruby
[10:41:13] Scripore: has joined #ruby
[10:41:43] sdwrage: has joined #ruby
[10:41:58] roxtrongo: has joined #ruby
[10:45:25] johnny56: has joined #ruby
[10:45:53] Xeago: has joined #ruby
[10:52:57] Musashi007: has joined #ruby
[10:57:01] Rutix: has joined #ruby
[10:57:01] Rutix: has joined #ruby
[11:03:40] mattwildig: has joined #ruby
[11:04:50] roxtrongo: has joined #ruby
[11:05:34] tulak: has joined #ruby
[11:05:43] nofxx: has joined #ruby
[11:06:02] OrbitalKitten: has joined #ruby
[11:08:00] lxsameer: has joined #ruby
[11:09:45] quazimodo: has joined #ruby
[11:09:57] govg: has joined #ruby
[11:12:23] vigintas: has joined #ruby
[11:12:57] trosborn: has joined #ruby
[11:13:34] OrbitalKitten: has joined #ruby
[11:14:16] A124: Good lazy morning. How do I convert hex byte array to byte array and back?
[11:14:33] A124: Unable to figre out pack and unpack.
[11:14:33] yxhuvud: pack/unpack.
[11:15:11] araujo: has joined #ruby
[11:15:53] dionysus69: has joined #ruby
[11:17:52] devoldmx: has joined #ruby
[11:18:16] rgtk: has joined #ruby
[11:18:59] A124: apeiros Oh, I wondered what I did stupid. Yeah, that does it. Thank you. If I want to iterate over a byte what way you would devise?
[11:19:32] A124: Long, hm.
[11:22:46] apeiros: String#each_byte
[11:23:32] _blizzy_: has joined #ruby
[11:23:45] A124: Oh. Thats nice too, Though I meant the nonprintable characters, UTF mangling.
[11:24:01] A124: I got it figure out, I missed the * on the pack. Thanks.
[11:28:36] OrbitalKitten: has joined #ruby
[11:30:42] araujo_: has joined #ruby
[11:33:20] baweaver: has joined #ruby
[11:41:40] [k-: has joined #ruby
[11:45:46] bruno-: has joined #ruby
[11:46:27] subscope: has joined #ruby
[11:50:54] leafybasil: has joined #ruby
[11:53:30] jdawgaz: has joined #ruby
[11:57:27] ht__: has joined #ruby
[11:57:39] tkuchiki: has joined #ruby
[11:58:29] OrbitalKitten: has joined #ruby
[11:58:33] lenwood: has joined #ruby
[11:59:38] treaki: has joined #ruby
[12:00:28] mistermocha: has joined #ruby
[12:01:13] roxtrongo: has joined #ruby
[12:02:09] zacts: has joined #ruby
[12:03:18] OrbitalKitten: has joined #ruby
[12:04:11] roxtrongo: has joined #ruby
[12:04:16] sepp2k: has joined #ruby
[12:05:13] tkuchiki: has joined #ruby
[12:05:22] tkuchiki: has joined #ruby
[12:06:02] roxtrongo: has joined #ruby
[12:09:37] Spami: has joined #ruby
[12:11:54] Xeago: has joined #ruby
[12:11:56] sdothum: has joined #ruby
[12:12:26] AlexRussia: has joined #ruby
[12:13:19] ht__: has joined #ruby
[12:13:52] symm-: has joined #ruby
[12:17:30] rippa: has joined #ruby
[12:22:24] decoponio: has joined #ruby
[12:23:32] ruid: has joined #ruby
[12:25:05] ruid: has joined #ruby
[12:25:40] lukaszes: has joined #ruby
[12:26:06] karapetyan: has joined #ruby
[12:26:15] dlitvak: has joined #ruby
[12:27:17] ht__: has joined #ruby
[12:28:57] lxsameer: has joined #ruby
[12:30:16] devl_: has joined #ruby
[12:31:00] WillAmes: has joined #ruby
[12:32:26] lxsameer: has joined #ruby
[12:32:49] zotherstupidguy: has joined #ruby
[12:34:02] baweaver: has joined #ruby
[12:36:47] dlitvak_: has joined #ruby
[12:40:11] djbkd: has joined #ruby
[12:40:20] hs366: has joined #ruby
[12:41:20] ht__: has joined #ruby
[12:42:20] ruid: has joined #ruby
[12:42:23] Rollabunna: has joined #ruby
[12:45:16] ht__: has joined #ruby
[12:46:54] nertzy: has joined #ruby
[12:49:28] cyb3rspy: has joined #ruby
[12:51:41] dlitvak: has joined #ruby
[12:51:54] FailBit: has left #ruby: ("WeeChat 0.4.2")
[12:52:02] cyb3rspy: has joined #ruby
[12:55:50] karapetyan: has joined #ruby
[12:58:39] symm-: has joined #ruby
[13:01:29] BaroMeter: has joined #ruby
[13:03:44] dfdfdf: has joined #ruby
[13:04:16] mattwildig: has joined #ruby
[13:06:40] tulak: has joined #ruby
[13:07:01] dlitvak_: has joined #ruby
[13:07:08] kirun: has joined #ruby
[13:07:16] nofxx: has joined #ruby
[13:10:26] syath: has joined #ruby
[13:13:28] lkba_: has joined #ruby
[13:15:00] FernandoBasso: has joined #ruby
[13:15:16] ht__: has joined #ruby
[13:18:05] lenwood: has joined #ruby
[13:19:11] rgtk: has joined #ruby
[13:22:26] dlitvak: has joined #ruby
[13:23:01] BillSussman: has joined #ruby
[13:27:06] millerti: has joined #ruby
[13:27:30] arta82: has joined #ruby
[13:27:41] kerunaru: has joined #ruby
[13:28:33] melter: has joined #ruby
[13:28:55] Cork: has joined #ruby
[13:31:01] ht__: has joined #ruby
[13:31:37] dionysus69: has joined #ruby
[13:32:59] millerti: has joined #ruby
[13:33:07] sanjayu: has joined #ruby
[13:34:55] dzejrou: has joined #ruby
[13:36:03] SingleUsage11: has joined #ruby
[13:36:11] yeticry: has joined #ruby
[13:39:32] sgambino: has joined #ruby
[13:40:11] Guest24980: has joined #ruby
[13:42:10] djbkd: has joined #ruby
[13:43:04] rgrmatt: has joined #ruby
[13:46:33] karapetyan: has joined #ruby
[13:49:45] bahar: has joined #ruby
[13:50:34] goodcodeguy: has joined #ruby
[13:51:39] rgtk: has joined #ruby
[13:53:21] ht__: has joined #ruby
[13:54:49] Scripore: has joined #ruby
[13:54:57] flak: has joined #ruby
[13:56:14] moeabdol: has joined #ruby
[13:56:40] rgrmatt: has joined #ruby
[14:00:44] sdwrage: has joined #ruby
[14:02:17] rgtk: has joined #ruby
[14:02:35] mistermocha: has joined #ruby
[14:07:28] fantazo: has joined #ruby
[14:07:39] dlitvak_: has joined #ruby
[14:07:42] FernandoBasso: has joined #ruby
[14:08:16] northfurr: has joined #ruby
[14:09:38] A124: has joined #ruby
[14:10:28] SteveC: has joined #ruby
[14:13:33] IrishGringo: has joined #ruby
[14:14:13] lukaszes: has joined #ruby
[14:17:38] unreal: has joined #ruby
[14:17:49] ruid: has joined #ruby
[14:19:05] Encapsulation: has joined #ruby
[14:19:11] s00pcan: has joined #ruby
[14:20:36] nofxx: has joined #ruby
[14:21:01] nickjj: has joined #ruby
[14:22:59] DEA7TH: has joined #ruby
[14:23:57] yoongkang: has joined #ruby
[14:25:47] waxjar: has joined #ruby
[14:26:18] akem: has joined #ruby
[14:28:45] favadi: has joined #ruby
[14:30:19] lxsameer: has joined #ruby
[14:33:08] gix: has joined #ruby
[14:34:26] Drakevr: has joined #ruby
[14:35:37] bruno-: has joined #ruby
[14:37:23] waxjar: has joined #ruby
[14:39:54] houhoulis: has joined #ruby
[14:41:02] arta82: has joined #ruby
[14:41:24] leafybasil: has joined #ruby
[14:41:26] shevy: long live ruby!
[14:42:54] diegoaguilar: has joined #ruby
[14:43:06] haylon: has joined #ruby
[14:43:23] Rollabunna: has joined #ruby
[14:43:45] UNIMPL: At least once parser bugs are all fixed.
[14:43:51] Xeago: has joined #ruby
[14:44:59] lukaszes: has joined #ruby
[14:45:15] favadi: has joined #ruby
[14:48:50] Rollabunna: has joined #ruby
[14:50:09] daivyk: has joined #ruby
[14:50:47] waxjar: has joined #ruby
[14:51:55] lavros: has joined #ruby
[14:52:01] northfurr: has joined #ruby
[14:52:06] kerunaru: has joined #ruby
[14:53:59] c0ncealed: has joined #ruby
[14:54:04] mattwildig: has joined #ruby
[14:54:07] atomical: has joined #ruby
[14:54:09] mghaig: has joined #ruby
[14:54:33] northfurr: has joined #ruby
[14:57:02] northfurr: has joined #ruby
[14:59:31] northfurr: has joined #ruby
[15:01:56] northfurr: has joined #ruby
[15:02:20] dn5: has joined #ruby
[15:03:04] aevitas: has joined #ruby
[15:03:06] lukaszes: has joined #ruby
[15:04:37] northfurr: has joined #ruby
[15:07:14] tulak: has joined #ruby
[15:07:35] northfurr: has joined #ruby
[15:11:21] northfurr: has joined #ruby
[15:11:34] sankaber: has joined #ruby
[15:12:47] veg_: has joined #ruby
[15:13:47] northfurr: has joined #ruby
[15:16:44] rgtk: has joined #ruby
[15:17:01] davedev24: has joined #ruby
[15:19:01] bmalum: has joined #ruby
[15:20:05] DLSteve: has joined #ruby
[15:20:06] umgrosscol: has joined #ruby
[15:20:23] PlasmaStar: has joined #ruby
[15:20:36] lavros: has joined #ruby
[15:21:06] roxtrongo: has joined #ruby
[15:21:42] jorb: has joined #ruby
[15:21:57] Xeago: has joined #ruby
[15:24:10] blue_deref: has joined #ruby
[15:24:57] mrtomme: has joined #ruby
[15:25:10] mghaig: has joined #ruby
[15:26:21] rgrmatt: has joined #ruby
[15:27:14] Scripore: has joined #ruby
[15:31:55] agentmeerkat: has joined #ruby
[15:37:20] ht__: has joined #ruby
[15:37:26] lukaszes: has joined #ruby
[15:37:58] mghaig: has joined #ruby
[15:40:08] shevy: people are so lazy on the weekends
[15:40:23] unknowns2k2: has joined #ruby
[15:40:49] Xeago: has joined #ruby
[15:43:55] apeiros: shevy: not true. working since 10.00.
[15:44:16] unknowns2k2: has joined #ruby
[15:45:10] spider-mario: has joined #ruby
[15:45:17] tmtwd: has joined #ruby
[15:47:26] kobain: has joined #ruby
[15:47:27] freerobby: has joined #ruby
[15:48:05] krz: has joined #ruby
[15:49:25] ekinmur: has joined #ruby
[15:49:41] CloCkWeRX: has joined #ruby
[15:50:14] s00pcan: has joined #ruby
[15:54:10] tkuchiki: has joined #ruby
[15:55:27] akem: has joined #ruby
[15:58:02] shevy: on laundry :D
[15:58:08] karapetyan: has joined #ruby
[15:58:08] Scripore: has joined #ruby
[15:58:39] adaedra: it's too early for laundry
[15:58:49] dorei: has joined #ruby
[15:58:58] xcesariox: has joined #ruby
[16:00:12] xcesariox: has joined #ruby
[16:01:23] sumark: has joined #ruby
[16:01:28] codex: has joined #ruby
[16:02:13] Hacker_TO: has joined #ruby
[16:11:53] User458764: has joined #ruby
[16:11:53] mattwildig: has joined #ruby
[16:12:41] NeverDie: has joined #ruby
[16:14:05] cdg: has joined #ruby
[16:14:10] atomical_: has joined #ruby
[16:16:03] blackmesa: has joined #ruby
[16:16:51] devoldmx: has joined #ruby
[16:18:51] freerobby: has joined #ruby
[16:18:51] riotjones: has joined #ruby
[16:21:16] favadi: has joined #ruby
[16:21:42] gambl0re: has joined #ruby
[16:23:41] Hacker_TO: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[16:24:01] elemenopy: has joined #ruby
[16:27:13] mattwildig: has joined #ruby
[16:27:15] guacjack: has joined #ruby
[16:28:41] _blizzy_: in ruby, is it better to name files like-this, or like_this
[16:29:14] jhass: _blizzy_: the general convention is the latter, see also http://guides.rubygems.org/name-your-gem/
[16:29:25] _blizzy_: jhass, thanks.
[16:30:40] leifg: has joined #ruby
[16:33:41] mattwildig: has joined #ruby
[16:34:16] dn5: Sup. How do I edit only <% @var %> in ERB?
[16:34:34] dn5: File.write & File.open (w) rewrites whole file
[16:35:05] unknowns2k2: has joined #ruby
[16:35:13] AndyBotwin: has joined #ruby
[16:35:26] jhass: read the whole file, edit the read string, write the whole edited string
[16:36:34] dn5: jhass: So, @erb = File.read('x.erb'), how do you mean write the whole edited string
[16:36:48] dn5: Ain't there a lib "erb" that can do it?
[16:37:03] jhass: File.write("x.erb", @erb.gsub(/.../, ...))
[16:37:16] jhass: oh, so you want to interpret the erb?
[16:37:21] jhass: sure, erb is in stdlib
[16:37:36] jhass: I thought that's obvious
[16:38:02] jhass: http://ruby-doc.org/stdlib-2.2.3/libdoc/erb/rdoc/ERB.html#method-c-new
[16:38:42] dn5: jhass: File.write overwrites whole file. I want only to pass var from the Ruby and display it in HTML, like ERB: <p><% @var %></p>
[16:38:48] dn5: jhass: Let me check that out.
[16:39:03] SteveC: has joined #ruby
[16:40:02] yxhuvud: has joined #ruby
[16:40:17] cek: has left #ruby: ()
[16:40:20] diegoaguilar: has joined #ruby
[16:40:44] jhass: dn5: you said edit, so I thought you want to edit the file in some way and that it was erb was only an irrelevant detail
[16:41:42] jhass: dn5: we call erb a template engine, which makes x.erb a template and we say you render a template
[16:42:51] dn5: jhass: Ahh I get it. Sorry, I'm still new in Ruby. Well, yes, the erb file is a template in my case.
[16:43:58] ruid: has joined #ruby
[16:44:19] _blizzy_: can anyone help me figure out why Im getting 'uninitialized constant ChatParser::ChatHelpers (NameError)' with these two files? https://gist.github.com/NotBlizzard/fe309662815135c968fe
[16:44:53] pimpin: has joined #ruby
[16:45:14] _blizzy_: they're both in the same directory.
[16:45:36] _blizzy_: ignore the 'include Commands'
[16:45:42] roxtrongo: has joined #ruby
[16:45:56] jutr8: has joined #ruby
[16:46:15] jhass: _blizzy_: first of all use require_relative
[16:46:36] _blizzy_: jhass, what's the difference between require and require_relative?
[16:46:46] jhass: the latter does what you think it does
[16:46:59] jhass: require "./" is relative to the working directory
[16:47:02] DEA7TH: has joined #ruby
[16:47:05] karapetyan: has joined #ruby
[16:48:34] jhass: still the same issue?
[16:49:58] hashpuppy: has joined #ruby
[16:50:29] Azure: has joined #ruby
[16:51:23] symm-: has joined #ruby
[16:51:32] _blizzy_: yep, same issue. https://gist.github.com/NotBlizzard/fe309662815135c968fe
[16:52:11] jhass: _blizzy_: then it's time to double check you saved the file, opened the right file in the right directory etc
[16:53:11] treaki: has joined #ruby
[16:53:18] karapetyan: has joined #ruby
[16:53:39] karapetyan: has joined #ruby
[16:54:15] karapetyan: has joined #ruby
[16:55:02] sanjayu: has joined #ruby
[16:55:12] pdoherty: has joined #ruby
[16:57:46] Azulinho: has joined #ruby
[16:58:17] arta82: has joined #ruby
[16:59:21] haylon: has left #ruby: ("Leaving")
[17:01:34] dviola: has joined #ruby
[17:05:39] skweek: has joined #ruby
[17:06:52] atomical: has joined #ruby
[17:08:12] Musashi007: has joined #ruby
[17:08:13] tulak: has joined #ruby
[17:09:21] simplyianm: has joined #ruby
[17:09:56] dopie: has joined #ruby
[17:10:38] dancer_: has joined #ruby
[17:10:47] leafybasil: has joined #ruby
[17:12:07] dasher00: has joined #ruby
[17:12:40] kerunaru: has joined #ruby
[17:13:25] zotherstupidguy: has joined #ruby
[17:14:33] gsingh93: has joined #ruby
[17:14:48] pimpin: has joined #ruby
[17:14:52] mattwildig: has joined #ruby
[17:19:04] jetty: has joined #ruby
[17:19:18] jetty: HI MOTHERFUCKERSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
[17:19:40] riotjones: has joined #ruby
[17:19:47] jetty: MOTHERFUCKEEEEEEEEEEEEEEEEEEEERZ
[17:19:47] terminalrecluse: has joined #ruby
[17:19:51] jetty: TERMINALRECLUSE
[17:20:01] jhass: !ban jetty !T 1w bye troll
[17:20:02] ChanServ: +b jetty!*@*
[17:20:02] ChanServ: ChanServ kicked jetty: bye troll
[17:20:40] mistermocha: has joined #ruby
[17:20:42] terminalrecluse: who was that? a bot or a person?
[17:22:04] segmond: has joined #ruby
[17:25:31] yoongkang: has joined #ruby
[17:27:48] shevy: terminalrecluse just a troll that was squished this was
[17:28:22] EminenceHC: has joined #ruby
[17:28:22] terminalrecluse: don't so much care, just my first experience with a troll on irc in a long while
[17:28:32] jhass: lucky you
[17:28:40] adaedra: it's not even an original one
[17:30:53] simplyianm: has joined #ruby
[17:31:20] shevy: ruboto does a great job at auto-kicking trolls
[17:31:22] shevy: * ruboto has kicked doddok from #ruby (Racism)
[17:32:55] adaedra: ???auto-kicking???
[17:33:36] adaedra: And I'm not sure it's wise to bring back this discussion
[17:33:57] shevy: what discussion
[17:34:23] dreinull75: minitest: one method ina class makes this chain call user.address.street. I dont't want to create all that stuff. Can I tell minitest to mock that? I can use the Mock Object but I don't want to mock every method in the chain.
[17:35:14] dreinull75: as it is, I have to go. I will check in a couple minutes :)
[17:35:29] s00pcan: has joined #ruby
[17:36:04] krz: has joined #ruby
[17:37:50] northfurr: has joined #ruby
[17:37:50] c33s: has joined #ruby
[17:38:08] troulouliou_div2: has joined #ruby
[17:38:50] purplexed-: has joined #ruby
[17:38:51] purplexed-: has joined #ruby
[17:38:58] tubuliferous_: has joined #ruby
[17:40:25] northfurr: has joined #ruby
[17:41:20] purplexed-: Hi, I'm trying to figure out a good way to merge a template file https://gist.github.com/sonicjolt/936942659a32ccfad3a5 with the values in the {{ }}.. I'm thinking I could just load it to a variable, and then search and replace. But I'm wondering if there is a better way that I don't know of in Ruby ?
[17:41:36] devoldmx: has joined #ruby
[17:42:49] northfurr: has joined #ruby
[17:42:58] jhass: purplexed-: that's mustache, google a bit, there's a ruby implementation for sure
[17:42:58] moeabdol: has joined #ruby
[17:43:15] purplexed-: jhass: it doesn't have to look like that.. it's just an idea :)
[17:43:22] jhass: purplexed-: then use erb
[17:43:29] adaedra: there flavoursaver or something like that for mustache/handlebars.
[17:43:46] leafybasil: has joined #ruby
[17:43:48] purplexed-: again, it's just an idea :)
[17:44:33] adaedra: If you're just asking about templating, there's multiple solutions, including jhass proposition, erb, which is built-in.
[17:45:15] northfurr: has joined #ruby
[17:45:20] purplexed-: yeah, i'm just reading about that
[17:45:35] arta82: has joined #ruby
[17:45:55] devoldmx: has joined #ruby
[17:46:16] purplexed-: so, I could have an erb file, that takes a model, and then render the output to a file, I guess ?
[17:46:52] purplexed-: alright, that sounds like what I need :)
[17:49:44] DEA7TH: has joined #ruby
[17:51:29] arta82: has joined #ruby
[17:52:45] Joufflu: has joined #ruby
[17:53:08] mrtomme: has joined #ruby
[17:57:58] grill: has joined #ruby
[17:59:19] fedexo: has joined #ruby
[17:59:59] htmldrum: has joined #ruby
[18:02:25] SenpaiSilver: has joined #ruby
[18:04:58] crankharder: It seems I18n isn't appropriately raising an exception despite setting the config to raise - any ideas? rails 4.2.4 : https://gist.github.com/crankharder/a4cf29d78d54795a6b9e
[18:06:04] crankharder: test still exists: https://github.com/rails/rails/blob/v4.2.4/actionview/test/template/translation_helper_test.rb#L67-L75
[18:06:17] karapetyan: has joined #ruby
[18:08:55] krz: has joined #ruby
[18:09:20] millerti: has joined #ruby
[18:11:54] purplexed-: works like a charm, thanks adaedra and jhass
[18:12:08] northfurr: has joined #ruby
[18:13:11] purplexed-: and the generated code looks much nicer now
[18:13:12] NeverDie: has joined #ruby
[18:14:08] ruby-lang886: has joined #ruby
[18:15:07] northfurr: has joined #ruby
[18:17:43] northfurr: has joined #ruby
[18:18:43] gregf: has joined #ruby
[18:20:47] lubarch: has joined #ruby
[18:20:52] yosiat: has joined #ruby
[18:21:24] gigetoo: has joined #ruby
[18:27:43] gambl0re: has joined #ruby
[18:29:05] mattwildig: has joined #ruby
[18:30:01] lenwood: has joined #ruby
[18:31:42] Coldblackice: has joined #ruby
[18:32:07] felltir: has joined #ruby
[18:32:42] bnagy: has joined #ruby
[18:34:07] VeryBewitching: has joined #ruby
[18:34:12] bmalum: has joined #ruby
[18:35:08] rakm: has joined #ruby
[18:35:28] rdavila: has joined #ruby
[18:35:57] s00pcan: has joined #ruby
[18:38:38] baweaver: has joined #ruby
[18:38:52] skcin7: has joined #ruby
[18:39:35] arthurnn: has joined #ruby
[18:39:59] lukaszes: has joined #ruby
[18:40:10] tkuchiki: has joined #ruby
[18:42:03] |ifei5g00d: has joined #ruby
[18:42:37] huzzah: has joined #ruby
[18:43:18] Guest54: is 'net/http' still the way to go for ruby client CRUD operations?
[18:43:38] karapetyan: has joined #ruby
[18:43:45] NET||abuse: has joined #ruby
[18:44:19] jhass: if you don't want any gem dependencies I guess
[18:44:34] Guest54: I don't mind dependencies, i just want fully featured and easy to use
[18:45:40] baweaver: has joined #ruby
[18:45:52] jhass: I like faraday, the http gem is gaining popularity. Also have a look at https://www.ruby-toolbox.com/categories/http_clients
[18:45:53] moeabdol: has joined #ruby
[18:45:57] blackmes1: has joined #ruby
[18:47:11] lemur: has joined #ruby
[18:47:43] Guest54: jhass: thanks
[18:48:02] northfurr: has joined #ruby
[18:51:25] baweaver: has joined #ruby
[18:52:24] lipoqil: has joined #ruby
[18:56:13] nfk: has joined #ruby
[18:56:43] swgillespie: has joined #ruby
[18:58:42] djbkd: has joined #ruby
[19:09:18] tulak: has joined #ruby
[19:09:28] makenoise: has joined #ruby
[19:10:10] rehat_: has joined #ruby
[19:10:11] lukaszes: has joined #ruby
[19:13:36] sdwrage: has joined #ruby
[19:15:26] kadoppe: has joined #ruby
[19:15:52] safe: has joined #ruby
[19:19:11] Xeago: has joined #ruby
[19:21:01] DexterLB: has joined #ruby
[19:22:08] Meow-J: has joined #ruby
[19:22:12] mistermocha: has joined #ruby
[19:23:05] ruby-lang365: has joined #ruby
[19:23:57] ruby-lang365: hello i am using capybara gem to test the inputs of the user
[19:24:19] ruby-lang365: i build an app with two modules
[19:25:09] futilegames: has joined #ruby
[19:26:45] yoongkang: has joined #ruby
[19:26:47] bruno-: has joined #ruby
[19:27:28] waxjar: has joined #ruby
[19:27:39] DrShoggoth: has joined #ruby
[19:27:43] fantazo: has joined #ruby
[19:27:55] blackmes1: has joined #ruby
[19:28:01] leifg: has joined #ruby
[19:28:11] ruby-lang365: I have a single app with two modules. A module that expose an api and other module with a user interface that call this internal api using httparty. Right now i am trying to use capybara to test the interface but when i sumbit a form that call to this internal api using httparty i am getting an error of connection. I know that capybar use rack_test that means i dont have a server when i am running my test
[19:30:06] jhass: mount the API rack application and use the right paths in the test env?
[19:30:08] ruby-lang365: i am reading that instead of using capybara rack_test i could use selenium but i dont want to do that because i have to install drivers. I dont know what other solution you think
[19:31:20] ruby-lang365: you mean to run the server in the background to test?
[19:31:22] asianMike: has joined #ruby
[19:32:15] _fesuy: has joined #ruby
[19:32:21] jhass: no, rack applications are composable
[19:32:29] jhass: which web frameworks are used?
[19:33:03] futilegames: has joined #ruby
[19:34:23] jdawgaz: has joined #ruby
[19:35:12] codecop: has joined #ruby
[19:35:41] jhass: so I'm saying use a rack app that mounts both sinatra apps, http://www.rubydoc.info/gems/rack/Rack/URLMap
[19:35:55] jhass: and give that to rack-test
[19:36:20] jhass: then you just need to make your UI app configurable in what prefix it uses for the API requests
[19:36:28] bb010g: has joined #ruby
[19:36:30] jhass: and configure that in the test env accordingly
[19:37:08] makenoise: has joined #ruby
[19:37:44] ruby-lang365: thank you so much
[19:37:50] ruby-lang365: i am going to try that
[19:40:26] Azulinho: has joined #ruby
[19:41:42] jamesaxl: has joined #ruby
[19:44:01] lukaszes: has joined #ruby
[19:45:03] rob_: has joined #ruby
[19:45:45] futilegames: has joined #ruby
[19:46:05] johnernaut: has joined #ruby
[19:46:08] rob_: hi, im trying to use the ruby-git module which works fine from irb but when i try to do Git.open from within a grape/rack application i get 'private method "open" called for <name of my module>', anyone know why this could be happening?
[19:46:22] brendan-: has joined #ruby
[19:47:20] jhass: rob_: why is the name of your module a secret? What's the exact line mentioned in the error message?
[19:47:41] makenoise: has joined #ruby
[19:48:10] BillSussman: has joined #ruby
[19:49:02] rob_: jhass: https://gist.github.com/roobert/d2addc8ddb2650e579af
[19:49:45] jhass: rob_: well, that resolves to your Git module, not the one from the gem at the toplevel. What you're calling there is Kernel#open, which is private
[19:50:04] jhass: use ::Git if you absolutely have to name your module Git too
[19:50:19] rob_: ok, thanks
[19:51:10] mghaig: has joined #ruby
[19:51:21] djbkd: has joined #ruby
[19:51:43] Azulinho: has joined #ruby
[19:51:55] zachrose_: has joined #ruby
[19:53:18] armyriad: has joined #ruby
[19:54:09] sbhatore: has joined #ruby
[19:58:03] rgrmatt: has joined #ruby
[19:58:06] sdwrage: has joined #ruby
[19:58:44] blackmes1: has joined #ruby
[20:01:54] moeabdol: has joined #ruby
[20:01:56] pwnd_nsfw: has joined #ruby
[20:03:09] nej: has joined #ruby
[20:03:36] gigetoo: has joined #ruby
[20:04:36] djbkd: has joined #ruby
[20:04:43] _fesuy: has joined #ruby
[20:04:45] kstuart: has joined #ruby
[20:05:06] Mia: has joined #ruby
[20:05:06] Mia: has joined #ruby
[20:08:14] cdg: has joined #ruby
[20:08:37] mattwildig: has joined #ruby
[20:09:40] yqt: has joined #ruby
[20:09:49] perturbation: has joined #ruby
[20:11:46] yosiat: has joined #ruby
[20:12:17] FernandoBasso: has joined #ruby
[20:13:07] dlitvak: has joined #ruby
[20:14:02] diosmiux: has joined #ruby
[20:16:30] karapetyan: has joined #ruby
[20:16:53] mghaig: has joined #ruby
[20:18:01] dlitvak: has joined #ruby
[20:18:37] chipotle: has joined #ruby
[20:19:19] _fesuy: has left #ruby: ("Leaving")
[20:21:45] rickmasta: has joined #ruby
[20:22:25] User458764: has joined #ruby
[20:22:48] weaksauce: has joined #ruby
[20:22:52] cdg: has joined #ruby
[20:25:20] Ox0dea: has joined #ruby
[20:25:43] dlitvak_: has joined #ruby
[20:26:05] robbyoconnor: has joined #ruby
[20:26:25] charliesome: has joined #ruby
[20:28:01] Azulinho: has joined #ruby
[20:28:56] EminenceHC: has joined #ruby
[20:29:49] Yzguy: has joined #ruby
[20:29:54] |ifei5g00d: has joined #ruby
[20:31:38] karapetyan: has joined #ruby
[20:31:44] cornerma1: has joined #ruby
[20:39:02] lukaszes: has joined #ruby
[20:39:32] fantazo: has joined #ruby
[20:42:08] Brando753: has joined #ruby
[20:43:03] Eiam_: has joined #ruby
[20:45:32] Mia: has joined #ruby
[20:45:32] Mia: has joined #ruby
[20:47:00] cluda01: has joined #ruby
[20:47:38] karapetyan: has joined #ruby
[20:47:57] ekinmur: has joined #ruby
[20:48:11] skweek: has joined #ruby
[20:48:19] Mia: has joined #ruby
[20:48:19] Mia: has joined #ruby
[20:49:20] _blizzy_: has joined #ruby
[20:50:04] cdg: has joined #ruby
[20:51:19] Yzguy: there is no -= in ruby?
[20:51:30] banister: Yzguy there should be
[20:51:39] Yzguy: instances_to_terminate -= 1
[20:51:40] banister: yap it works
[20:51:44] Yzguy: that looks right right
[20:51:47] Ox0dea: >> foo = 69; foo -= 27; foo # Yzguy
[20:51:48] ruboto: Ox0dea # => 42 (https://eval.in/468770)
[20:51:50] banister: >> x = 10; x -= 1; x
[20:51:51] ruboto: banister # => 9 (https://eval.in/468771)
[20:51:57] Ox0dea: My numbers were better.
[20:52:02] banister: Ox0dea your numbesr were better
[20:52:14] troulouliou_div2: has joined #ruby
[20:52:26] jhass: Ox0dea: dunno, I'm missing 23 and 5 in there
[20:52:53] Ox0dea: banister: I think you'll like this: https://eval.in/468157
[20:53:08] Ox0dea: And you're just the person to ask why it still works if you change the 4s to 3s.
[20:53:19] haxrbyte: has joined #ruby
[20:53:54] Ox0dea: It seems the memory right after an object's RBasic contains its "eigenmembers" or whatever, but I'd expect that to be 4 bytes.
[20:54:12] Yzguy: ohhh i know what happened
[20:54:28] Yzguy: i didn't change it from string to int so it doesnt know what to do
[20:54:29] Axy: has joined #ruby
[20:54:29] Axy: has joined #ruby
[20:54:46] banister: Ox0dea that's prety cool
[20:54:47] haxrbyte_: has joined #ruby
[20:54:48] sanjayu: has joined #ruby
[20:54:52] Yzguy: yup, there we go
[20:55:00] Ox0dea: banister: It's a little scary, but it seems to be pretty robust.
[20:55:12] Ox0dea: It doesn't lose any of the includes you do outside of the ephemeral block, at any rate.
[20:55:21] haxrbyte_: has joined #ruby
[20:55:49] Ox0dea: It doesn't work for prepends, though. :<
[20:55:58] Ox0dea: At least, I can't find where they are in memory.
[20:56:15] cluda01: has left #ruby: ()
[20:56:39] Ox0dea: I'm wanting to simulate (and, ahem, improve) refinements, since you can refine #method_missing but not #const_missing, which is dumb.
[20:57:28] VeryBewitching: Would it not stand to reason that a constant should either be or not?
[20:57:34] Ox0dea: Of course not.
[20:57:48] Ox0dea: A constant has every right to spring into existence that a method does.
[20:57:51] arup_r: has joined #ruby
[20:58:37] VeryBewitching: If you were to override const_missing, whatever value you assign to the missing constant would have to become immutable.
[20:59:07] Ox0dea: I don't see why that should be so, but that is in fact how I intend to use it.
[20:59:36] Ox0dea: "Constants" scarcely deserve the name in Ruby.
[20:59:37] dlitvak: has joined #ruby
[20:59:40] VeryBewitching: If you were to override it, you could change the value of the constant in the method designated to do that.
[20:59:43] Mia: has joined #ruby
[20:59:43] Mia: has joined #ruby
[20:59:54] VeryBewitching: Oh, well, yes I concede on that point.
[21:00:06] Ox0dea: VeryBewitching: $thing can be invoked at the top level, so I have to override Object.const_missing.
[21:00:24] Ox0dea: But I want it to be undoable, so I can't use refinements as they're implemented presently.
[21:00:45] tubuliferous_: has joined #ruby
[21:01:14] damiano: has joined #ruby
[21:01:22] VeryBewitching: I think the toughest part of learning Ruby is that the boundaries are much further out than most languages.
[21:01:44] Ox0dea: I'm not entirely sure how to interpret that.
[21:02:11] damiano: has left #ruby: ()
[21:02:25] mattwildig: has joined #ruby
[21:02:38] moeabdol: has joined #ruby
[21:02:39] Xeago: has joined #ruby
[21:03:43] Guest503: has joined #ruby
[21:04:24] VeryBewitching: Ruby is much more maleable to me than any language I've worked with.
[21:04:33] VeryBewitching: I can change almost anything I want to suit my needs
[21:04:57] Ox0dea: > Ruby is a language for consenting adults.
[21:05:02] karapetyan: has joined #ruby
[21:05:29] VeryBewitching: I'm not sure I would have thought of it that intimately, but I won't begrudge you for doing so :D
[21:05:38] Ox0dea: It's a direct quotation.
[21:05:51] Ox0dea: DHH at RubyConf 2010.
[21:05:58] perturbation: has joined #ruby
[21:06:08] karapetyan: has joined #ruby
[21:06:08] Ox0dea: https://vimeo.com/17420638
[21:06:09] VeryBewitching: I'm a year new to Ruby.
[21:06:18] Ox0dea: It's a fun watch.
[21:06:21] Azure: has joined #ruby
[21:06:58] fantazo: has joined #ruby
[21:08:33] tflat_: has joined #ruby
[21:09:50] Mia: has joined #ruby
[21:09:50] Mia: has joined #ruby
[21:10:10] tulak: has joined #ruby
[21:10:20] asianMike: has joined #ruby
[21:10:32] VeryBewitching: Watching it now.
[21:11:01] Ox0dea: I'll join you in spirit.
[21:12:06] TomPeed: has joined #ruby
[21:13:15] brushbox: has joined #ruby
[21:13:18] Glenny: has joined #ruby
[21:13:21] Xeago: has joined #ruby
[21:18:02] rgtk: has joined #ruby
[21:18:26] ohaibbq: has joined #ruby
[21:18:40] Pupp3tm4st3r: has joined #ruby
[21:18:58] karapetyan: has joined #ruby
[21:19:09] masolino: has joined #ruby
[21:19:38] moeabdol: has joined #ruby
[21:22:45] karapetyan: has joined #ruby
[21:23:00] lukaszes: has joined #ruby
[21:23:15] ekinmur: has joined #ruby
[21:23:48] shevy: VeryBewitching yeah it's like a shapechanging hammer
[21:25:54] Nahra: has joined #ruby
[21:26:09] sysanthrope: has joined #ruby
[21:26:33] karapetyan: has joined #ruby
[21:27:08] rickmasta: has joined #ruby
[21:27:23] yoongkang: has joined #ruby
[21:28:12] arup_r: has joined #ruby
[21:28:36] ekinmur: has joined #ruby
[21:28:43] charliesome: has joined #ruby
[21:29:58] Ox0dea: Swiss Army footgun.
[21:31:51] Musashi007: has joined #ruby
[21:32:50] Tref: has joined #ruby
[21:32:52] Ox0dea: There are several "if programming languages were vehicles/weapons" blog posts, but they all get Ruby wrong.
[21:33:13] xxneolithicxx: has joined #ruby
[21:33:30] Ox0dea: If Ruby were a vehicle and/or a weapon, it would be the Bagger 288: https://www.youtube.com/watch?v=azEvfD4C6ow
[21:33:40] mattwildig: has joined #ruby
[21:33:41] djbkd: has joined #ruby
[21:34:14] xxneolithicxx: has joined #ruby
[21:34:39] karapetyan: has joined #ruby
[21:34:48] ekinmur: has joined #ruby
[21:35:05] sepp2k1: has joined #ruby
[21:35:45] xxneolithicxx: has joined #ruby
[21:36:07] Mia: has joined #ruby
[21:36:07] Mia: has joined #ruby
[21:37:21] chipotle: has joined #ruby
[21:38:03] karapetyan: has joined #ruby
[21:38:04] shevy: the badger?
[21:38:39] Ox0dea: You're trying to summon him, aren't you?
[21:38:48] Ajkthx: has joined #ruby
[21:39:22] troulouliou_div2: has joined #ruby
[21:39:50] shevy: badgers shall rule the world
[21:40:01] chipotle_: has joined #ruby
[21:40:31] karapetyan: has joined #ruby
[21:40:33] robbyoconnor: has joined #ruby
[21:40:49] shevy: Ox0dea do you test your ruby code?
[21:40:57] Ox0dea: When it's for serious, sure.
[21:41:21] aevitas: has joined #ruby
[21:41:31] shevy: what do you use then?
[21:41:35] Ox0dea: minitest.
[21:41:39] DMRadford_: has joined #ruby
[21:42:18] Ox0dea: > Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
[21:42:40] Ox0dea: I don't know how zenspider is going to handle having more or less reached that point with minitest.
[21:43:06] shevy: he'll move on to other things
[21:43:13] shevy: like this game/simulation thingy
[21:43:20] charliesome: has joined #ruby
[21:43:21] Ox0dea: Yeah, graphics is his new baby.
[21:43:37] Eiam_: has joined #ruby
[21:44:41] Axy: has joined #ruby
[21:44:41] Axy: has joined #ruby
[21:45:02] Nahra: has joined #ruby
[21:46:11] simplyianm: has joined #ruby
[21:46:24] chipotle: has joined #ruby
[21:46:47] DMRadford_: Hello all. Completely new to Ruby here and trying to customize Redmine. Could somebody point me in the right direction here? http://www.pasteall.org/62198
[21:46:49] stamina: has joined #ruby
[21:47:04] PaulCape_: has joined #ruby
[21:47:51] DexterLB: has joined #ruby
[21:47:58] jhass: maybe nothing?
[21:48:12] jhass: copy_options={} defines a default, you don't have to give it
[21:48:28] DMRadford_: the top chunk of code is pulled from issue.rb in Redmine. The bottom chunk is what I'm trying to get working in a custom workflow on the after save event. Since I know so little, I don't know how to populate the copy_options={} chunk with values for :subject, :project, etc
[21:48:52] jhass: is there no documentation?
[21:49:06] DMRadford_: None that I can find sadly
[21:49:13] Scripore: has joined #ruby
[21:50:03] DMRadford_: There's no API guide or documentation I can find on the hooks or anything. I THINK what I'm asking is more syntax and such rather than Redmine specific (I can figure out the specifics if I can understand the syntax)
[21:50:34] jhass: well, what's self? are you inside a method inside Issue or whatever the class is?
[21:50:59] jhass: the attributes arguments is probably too supposed to be hash rather than the id
[21:51:20] Mia: has joined #ruby
[21:51:20] Mia: has joined #ruby
[21:51:24] DMRadford_: http://www.pasteall.org/pic/95341
[21:52:08] DMRadford_: That's really all i know. It's a custom workflow plugin that runs ruby code before saving the issue (the left) and after saving the issue (the right)
[21:52:31] allcentury: has joined #ruby
[21:52:50] jhass: https://github.com/anteo/redmine_custom_workflows/wiki/Example-Workflows
[21:52:51] DMRadford_: So self. is the issue being edited, or copied in this case
[21:53:18] jhass: ah, at the bottom, I see
[21:53:18] DMRadford_: yea, it doesn't show how to copy, just create a new issue
[21:54:00] jhass: so what do you want to change?
[21:54:57] DMRadford_: I want to copy the current issue instead of creating a new one, and I need to set the parent_id to the current id, set the project, tracker, assignee and status.
[21:56:36] bruno-: has joined #ruby
[21:56:58] DMRadford_: intersting, there is no definition for create in issue.rb, maybe I'm looking in the wrong .rb file....
[21:57:22] jhass: issue = copy; issue.parent_id = id; issue.project = Project.find(...); issue.tracker = Tracker.find(...); issue.assigned_to = Prinicipal.find(...); issue.status = ...; issue.save!
[21:57:30] jhass: replacing ; with newlines of course
[21:57:53] duncannz: has joined #ruby
[21:58:41] rob_: is it possible to include the contents of another file in-line with ruby?
[21:59:03] tomdp: You could eval it
[21:59:09] jhass: but don't
[21:59:16] jhass: rob_: why do you ask this?
[21:59:23] tomdp: Why is require not sufficient?
[21:59:47] rakm: has joined #ruby
[22:00:00] rob_: i have an api defined in a config file, im using grape to create a REST API
[22:00:02] rob_: https://gist.github.com/roobert/b21137066b81032e79f5
[22:00:09] rob_: it would be nice to have this in a separate file
[22:00:37] tomdp: You can use require for that
[22:00:47] rob_: i tried using require relative but i get an error
[22:00:56] tomdp: What is the error?
[22:00:57] jhass: well, that's probably missing a shitload of context around it
[22:01:02] rob_: `<top (required)>': undefined method `requires' for main:Object (NoMethodError)
[22:01:27] jhass: did you try redoing the Grape.configure or whatever it is around it?
[22:01:35] tomdp: That's right, you'd need to rope that stuff in too
[22:01:35] skweek: has joined #ruby
[22:02:27] shevy: what is "requires"
[22:02:30] rob_: https://gist.github.com/roobert/adeb08c84c195cc11f5c
[22:03:03] rob_: require doesn't work either
[22:03:24] Ox0dea: rob_: You could try `load` instead, but you're probably trying to import locals, and that's not gonna work.
[22:03:30] rob_: same error, presumably requires is a method for Object
[22:03:34] yfeldblum: has joined #ruby
[22:03:36] jhass: Ox0dea: neither, DSL calls
[22:04:00] rob_: jhass: right. is this stupid?
[22:04:02] jhass: rob_: well, we could find workarounds, but I'm not sure it's worth the hassle
[22:04:15] jhass: rob_: elaborate on the "it would be nice" ?
[22:04:24] jhass: why do you want this, what's the benefit?
[22:04:26] Ox0dea: rob_: You probably want `instance_eval(File.read('config/api.rb'))`, but that's gross.
[22:04:36] jhass: ^ please forget this exists. now
[22:04:36] tomdp: Considering how tricky it might be to get the context in and account for everything, I'm gonna be the bad guy and say eval is 100% OK here because it's not user input
[22:04:45] rob_: Ox0dea: yeah, i dont really want to eval
[22:04:50] tomdp: but not worth it
[22:04:54] Ox0dea: rob_: But that's what `require` and `load` do?
[22:05:13] Ox0dea: You seem not to want your cake or to eat it.
[22:05:23] rob_: i just dont know what im doing
[22:05:38] jhass: please, everybody, let's not suggest hacks and instead get behind the motivation for the desire
[22:05:51] jhass: because I'm pretty convinced it's a misguided desire atm
[22:05:52] tomdp: But you'd still need to account for whatever context those methods need to do what they do if you're using require or load
[22:06:09] tomdp: right then
[22:06:15] shevy: he scares me
[22:06:17] _0mega: has joined #ruby
[22:06:20] rob_: so, i could define the api in YAML but im not sure how i'd convert 'String' to String without eval..
[22:06:29] Ox0dea: rob_: #const_get.
[22:06:39] rob_: Ox0dea: ah ok, i'll do that then, thanks!
[22:06:50] Ox0dea: I can't tell if sanity has prevailed or not.
[22:07:07] rob_: not better to read YAML and just loop over it?
[22:07:07] shevy: you made a suggestion so sanity lost!
[22:07:21] jhass: rob_: _why_ ?
[22:07:29] jhass: what's wrong with having it in the file?
[22:07:41] jhass: what's the pain point? what problem are you trying to solve?
[22:07:53] DexterLB: has joined #ruby
[22:07:54] rob_: because i want to make this generic, so you can modify a config file to modify the required params for the api
[22:08:02] jhass: I have a strong feeling you're about to create a needless mess
[22:08:28] jhass: rob_: I share a secret with you: Ruby is so expressive, it's often used for configuration files
[22:08:31] rob_: that sounds like i'd learn something
[22:08:51] adaedra: Is this the too much genericity syndrome?
[22:09:19] jhass: probably, yes. A special form of the premature optimization
[22:09:21] dn5: has joined #ruby
[22:09:26] Ox0dea: Premature generalization.
[22:09:34] rob_: oh, i agree completely
[22:10:45] rob_: i want to be able to send arbitrary JSON to an API that then writes out a file in the context of the parameters using ERB
[22:11:26] ferz_: has joined #ruby
[22:11:34] rob_: i could just not bother validating the input
[22:11:44] jhass: if you want to accept an arbitrary json document it might be better to look into accessing the raw json and parsing it on your own
[22:12:08] jhass: arbitrary is pretty much a synonym for unvalidated
[22:12:49] _0mega: has joined #ruby
[22:15:34] dn5: has joined #ruby
[22:17:04] yoongkang: has joined #ruby
[22:21:04] rob_: i was basically trying to create a generic app that could be configured to require some specific values
[22:21:09] pimpin: has joined #ruby
[22:21:11] VeryBewitching: Ox0dea: Thanks for that, his perspective resonated with my own almost fully.
[22:21:46] dn5: has joined #ruby
[22:23:28] nateberkopec: has joined #ruby
[22:23:29] symm-: has joined #ruby
[22:26:34] arta82: has joined #ruby
[22:26:35] dlitvak: has joined #ruby
[22:27:37] Ox0dea: VeryBewitching: My pleasure, and in the literal sense, by which I mean to say I'm pleased you found little with which to disagree.
[22:27:59] dn5: has joined #ruby
[22:28:03] Ox0dea: DHH is a pretty reasonable fellow nine times out of ten.
[22:28:15] rob_: this, basically, but with a config file that defines required values: https://github.com/roobert/JSONTemplateAPI
[22:28:30] Ox0dea: rob_: It feels like useless magic.
[22:28:37] IrishGringo: has joined #ruby
[22:29:25] rob_: Ox0dea: which bit? :)
[22:30:38] Ox0dea: rob_: Hiding the "complexity" of required parameters, I guess.
[22:31:48] Ox0dea: Obfuscating where the real work gets done.
[22:32:02] rob_: i just wanted the configuration to be outside the app
[22:32:15] rob_: im not trying to obfuscate anything
[22:32:46] PaulCapestany: has joined #ruby
[22:33:08] Ox0dea: "'Missing required parameter'?! I don't see any required parameters."
[22:33:41] Ox0dea: "Oh, they're way the hell over here."
[22:34:49] VeryBewitching: Ox0dea: It was the George Bush picture and clip.
[22:34:56] djbkd: has joined #ruby
[22:35:06] Ox0dea: VeryBewitching: They do hate us for our freedom, though, don't they?
[22:35:16] VeryBewitching: ACTION is Canadian.
[22:35:26] VeryBewitching: But yes, they do.
[22:35:41] Ox0dea: "Us" was Rubyists there, mind.
[22:36:01] VeryBewitching: I find myself trying to show others my love of it, but most developers I know where I live are either C# or PHP
[22:36:53] Ox0dea: In truth, a substantial chunk of languages can be finagled into being quite a bit like Ruby, but we get all the little niceties out of the box.
[22:37:55] VeryBewitching: It's hard for me to make PHP pretty. I've written some rather elegant, concise solutions with it, but after learning Ruby I'm kind of in love.
[22:38:33] Ox0dea: Little sense in preaching to the choir with the last song still in your ears, I suppose.
[22:39:01] Ox0dea: I went from PHP to Python and thought I'd never leave; I was a fool.
[22:39:22] VeryBewitching: I didn't like Python, tbh.
[22:39:36] Ox0dea: You could do so much worse, though.
[22:39:45] jhass: Ox0dea: heh, basically the same here I guess :D
[22:39:47] VeryBewitching: Yes, I could write Befunge
[22:40:08] VeryBewitching: Or *gasp* Visual Basic.
[22:40:31] Ox0dea: But... I like fungeoids.
[22:40:40] Ox0dea: I wrote a brainfuck interpreter in ><>.
[22:40:56] Ox0dea: https://esolangs.org/wiki/Fish#Brainfuck_interpreter
[22:41:43] diegoaguilar: has joined #ruby
[22:41:46] Ox0dea: It's actually really neat to watch it go.
[22:42:03] arta82: has joined #ruby
[22:42:05] Ox0dea: You can just make out the parser.
[22:42:24] leifg: has joined #ruby
[22:42:48] lukaszes: has joined #ruby
[22:46:32] Moeh: has joined #ruby
[22:47:11] VeryBewitching: Running it in the playground.
[22:47:21] Ox0dea: Does it work there? It didn't last I tried.
[22:48:03] sdwrage: has joined #ruby
[22:48:25] safe: has joined #ruby
[22:48:45] charliesome: has joined #ruby
[22:48:48] Moeh: Hello, I want to iterate over a nested hash and every time when I find a specific key, replace the value with something custom. In the end, a hash with the replaced values should be returned. This is the current code: http://pastie.org/10557331 However, as you can see I get the error that I cannot add new keys during the iteration. Would be great if someone could help me.
[22:49:37] Ox0dea: VeryBewitching: The playground on fishlanguage.com requires you to provide stdin as initial stack values, for which my brainfuck interpreter does not account.
[22:50:47] nateberkopec: has joined #ruby
[22:51:02] pimpin: has joined #ruby
[22:51:38] VeryBewitching: Ya, it crapped out. Was fun to watch before it did though :D
[22:53:57] _0mega: has joined #ruby
[22:55:59] EminenceHC: has joined #ruby
[22:57:58] Eiam_: has joined #ruby
[22:58:02] ReK2: has joined #ruby
[22:58:04] Nahra: has joined #ruby
[22:58:13] chipotle: has joined #ruby
[22:58:28] _0mega: has joined #ruby
[22:58:37] djbkd: has joined #ruby
[22:58:40] EasyCo: has joined #ruby
[22:59:20] htmldrum: has joined #ruby
[23:00:07] Ox0dea: VeryBewitching: https://gist.github.com/0x0dea/41313656c85f9132ed11
[23:00:19] Ox0dea: Yes, GitHub highlights brainfuck code. :P
[23:00:49] EasyCo: Hey team, what're your preferences for namespacing? Nested classes (class Car; class Chassis; end; end;, or simply class Car::Chassis? Don't worry about modules.
[23:00:53] _0mega: has joined #ruby
[23:01:09] Ox0dea: EasyCo: Worry about modules.
[23:01:15] solocshaw: has joined #ruby
[23:01:50] EasyCo: Ox0dea: I worry about them all the time, but given those two scenarios. Which do you typically choose?
[23:02:01] Ox0dea: EasyCo: It's situational.
[23:02:31] VeryBewitching: Ox0dea: haha, cool. I'll play with that.
[23:02:44] Ox0dea: VeryBewitching: It uses a few ANSI escape sequences, but surely nothing Konsole can't handle.
[23:02:45] Musashi007: has joined #ruby
[23:03:04] n_blownapart: has joined #ruby
[23:04:09] Ox0dea: asciinema doesn't play nice with them or I'd've just linked a demo.
[23:06:56] mdih: has joined #ruby
[23:08:21] Ox0dea: I had a Vim syntax file for ><> as well, but it seems to have gone into the ether. :<
[23:08:43] NeverDie: has joined #ruby
[23:09:19] jhass: damn ether, stealing all our good stuff
[23:10:14] Ox0dea: Ever so slightly relevant: https://www.youtube.com/watch?v=lnUQwE0YhZo
[23:10:52] tulak: has joined #ruby
[23:10:54] tkuchiki: has joined #ruby
[23:11:48] allcentury: has joined #ruby
[23:12:49] treaki: has joined #ruby
[23:13:15] moeabdol: has joined #ruby
[23:15:04] Ox0dea: I bought two dozen eggs on sale instead of my usual 18 knowing I'd come to regret it, and here I am.
[23:15:36] Ox0dea: You sometimes have to get one more or one less egg than you actually want in order to keep a dozen carton symmetrical, but you can always balance an 18.
[23:15:40] marr: has joined #ruby
[23:16:16] jhass: here the main unit is 10, with 6 being the less popular option
[23:16:25] VeryBewitching: Have to abolish desktop session, one moment.
[23:17:51] VeryBewitching: has joined #ruby
[23:19:07] rgtk: has joined #ruby
[23:20:22] devoldmx: has joined #ruby
[23:21:05] _blizzy_: has joined #ruby
[23:21:48] huzzah: has joined #ruby
[23:22:22] Ox0dea: VeryBewitching: Another ><> program: https://eval.in/468809 ;)
[23:22:31] trosborn: has joined #ruby
[23:23:24] x-light: has joined #ruby
[23:23:33] _0mega: has joined #ruby
[23:24:04] Tref: has joined #ruby
[23:24:18] shevy: VeryBewitching abolish all the things! http://i.imgur.com/KH4wN0k.jpg
[23:25:02] kstuart: has joined #ruby
[23:25:04] shevy: I think on #ruby it was first havenwood who brought forward the meme with that dude... I forgot the context... something with "all the things", but it was not abolish ... hmm
[23:25:50] VeryBewitching: shevy: Plasma 5 took a dump when I deleted 278GB of data on one drive and 400GB of data on another.. at the same time.
[23:25:59] shevy: http://irclog.whitequark.org/ruby/2013-03-12#3223977;
[23:26:01] shevy: there he is!
[23:26:13] shevy: VeryBewitching no surprise, KDE quality :)
[23:26:18] shevy: they went downhill from kde 3
[23:26:32] VeryBewitching: It's that I have file indexing turned on.
[23:27:42] Ox0dea: shevy: "That dude"?
[23:28:32] simplyianm: has joined #ruby
[23:29:11] FooMunki: has joined #ruby
[23:30:13] Ox0dea: http://i.imgur.com/bhbgR2X.png is the original, and that's Allie's interpretation of herself.
[23:30:42] Gi0: has joined #ruby
[23:31:52] shevy: notice the similarity http://i.imgur.com/3rDzSRl.jpg
[23:33:12] mattwildig: has joined #ruby
[23:34:03] Ox0dea: Note the dissimilitude: http://i.imgur.com/k2h6fbR.jpg
[23:34:36] shevy: what does that pic have to do with: http://i.imgur.com/KH4wN0k.jpg
[23:35:05] Ox0dea: That's the artist and her art.
[23:35:27] shevy: That's any random picture of anyone.
[23:35:35] Ox0dea: What are you talking about?
[23:35:37] shevy: I could draw an alot and say that is me.
[23:35:43] shevy: What are you talking about?
[23:35:55] Ox0dea: I've already told you about Hyperbole and a Half.
[23:35:59] Ox0dea: Are you a goldfish?
[23:36:25] shevy: And I have already told you that there is no connection between either.
[23:36:26] shevy: Are you a hedgehog?
[23:36:44] Ox0dea: http://hyperboleandahalf.blogspot.com/2010/06/this-is-why-ill-never-be-adult.html
[23:37:21] Ox0dea: The thing with a unicorn for hair is Allie Brosh's rendition of Allie Brosh, but she doesn't actually look at all like that in Meatspace.
[23:37:27] shevy: Here is another one: http://i.imgur.com/yCeELFR.jpg
[23:37:45] shevy: Please don't try to explain any random dissimilarities.
[23:37:47] gusrub: has joined #ruby
[23:37:54] Ox0dea: I did liberty spikes one night for midkeks. Never again.
[23:40:21] dn5: has joined #ruby
[23:43:25] shevy: Lately I saw something such as Prawn.debug = true
[23:43:36] shevy: how common is it to have lots of class methods like that?
[23:44:18] _0mega: has joined #ruby
[23:48:03] roxtrongo: has joined #ruby
[23:48:42] user1138: has joined #ruby
[23:50:13] _0mega: has joined #ruby
[23:51:40] Ox0dea: I guess that's better than PRAWN_DEBUG, and maybe even Prawn::DEBUG.
[23:52:24] Ox0dea: But if you've got a bunch of methods like that, it's more idiomatic to provide a configurator.
[23:52:38] Ox0dea: Prawn.config { |p| ... }
[23:53:26] Ox0dea: I guess nix the block parameter in this particular case.
[23:54:10] VeryBewitching: I think the way it's done works well because you can turn on debugging at a point in your code you want more detail about and then turn it off and continue.
[23:54:53] Ox0dea: You're right.
[23:56:13] guacjack: has joined #ruby
[23:56:18] guacjack: Evening gfolks
[23:57:14] Ox0dea: guacjack: It's always morning when you enter the channel: http://www.total-knowledge.com/~ilya/mips/ugt.html
[23:57:19] Nahra: has joined #ruby
[23:57:34] guacjack: I'm 4 months into working as a Ruby developer at a new job (they trained me up on Ruby) and i cant help but think im learning something that is on the decline, like the rest of the dept are moving their apps to full stack javascript and in my team the developers want to keep the apps ruby
[23:57:44] guacjack: I do like the language though
[23:57:54] Ox0dea: Ruby is not immortal.
[23:58:21] blackmesa: has joined #ruby
[23:59:02] guacjack: Just wondered if you guys thought it was a good idea go get into more Ruby stuff like Rails cause at the minute i do Sintra apps at work
[23:59:46] Ox0dea: > A day may come when the courage of [the Ruby community] fails, when we forsake our friends and break all bonds of fellowship. But it is not this day. An hour of [snakes] and shattered [objects] when the age of [Ruby] comes crashing down! But it is not this day!
[23:59:48] jhass: do whatever interests you, every new thing you learn will introduce you to at least some concept from which you general work as developer can benefit, no matter the technology applied for the current job