« Back to channel list

#ruby - 12 November 2015

« Back 1 day Forward 1 day »
[00:00:06] tomphp_: has joined #ruby
[00:01:10] Ox0dea: blubjr: In which language is `if` not a special form?
[00:01:19] Ox0dea: (Besides Smalltalk.)
[00:01:27] devoldmx: has joined #ruby
[00:01:42] roxtrongo: has joined #ruby
[00:03:03] yorickpeterse: banister: don't IRC and smoke at once
[00:03:30] Ox0dea: cyberfawkes: https://gist.github.com/0x0dea/a715674678191e83bf5d
[00:04:05] Ox0dea: You should totally use Cinch, but it's nice that you can write an IRC bot in ~10 lines of Ruby.
[00:04:28] blubjr: smalltalk :p
[00:05:02] Encapsulation: has joined #ruby
[00:05:32] h99h9h88: has joined #ruby
[00:06:01] Kiseki: has joined #ruby
[00:06:31] yorickpeterse: It's strange there are no actively used languages (that I know of) besides Smalltalk where even keywords are methods
[00:06:43] yorickpeterse: as in, if/else/while/etc being methods
[00:06:50] framling: has joined #ruby
[00:07:00] mwlang: has joined #ruby
[00:07:28] tomphp: has joined #ruby
[00:07:38] JDiPierro: has joined #ruby
[00:07:40] weemsledeux: has joined #ruby
[00:07:44] davedev24: has joined #ruby
[00:07:52] blubjr: lisp isn't far off
[00:08:27] Ox0dea: blubjr: Yes, it is?
[00:08:57] yorickpeterse: blubjr: note the specific inclusion of "methods"
[00:09:02] Ox0dea: `if` is a special form in every Lisp I know of.
[00:09:16] blubjr: thats why i said not far off, i was excluding it
[00:09:17] lemur: has joined #ruby
[00:09:39] blubjr: if could be a method if you were using lisp's object system
[00:09:44] blubjr: it's a historical accident that it isn't
[00:09:47] mostlybadfly: has joined #ruby
[00:10:06] TTilus: blubjr: could it really? http://stackoverflow.com/questions/33465692/why-is-cond-a-special-form-in-scheme-rather-than-a-function
[00:10:41] tomphp: has joined #ruby
[00:11:19] Ox0dea: It boils down to being able to delay evaluation, and you can do that in pretty much any mainstream language.
[00:11:23] tkuchiki: has joined #ruby
[00:11:50] yorickpeterse: maybe in a few years once I actually finish my language we'll have a proper successor to Smalltalk
[00:11:57] rakm: has joined #ruby
[00:12:01] blubjr: TTilus: well in smalltalk if gets passed closures anyway
[00:12:03] yorickpeterse: I may or may not also ride a unicorn at that time
[00:12:45] _wldcordeiro: has joined #ruby
[00:12:46] blubjr: i just mean subclassing bool to handle if like smalltalk does
[00:12:49] TTilus: blubjr: mm, point taken
[00:12:53] tomphp: has joined #ruby
[00:13:07] davedev24: has joined #ruby
[00:14:23] Ox0dea: blubjr: How do you feel about this? https://eval.in/467353
[00:14:46] Ox0dea: >> def if; 42; end; p if() # This is weird.
[00:14:51] ruboto: Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:15:06] htmldrum: has joined #ruby
[00:15:08] rickmasta: has joined #ruby
[00:15:29] yorickpeterse: Ox0dea: heh, clever use of whitespace
[00:15:30] ebbflowgo: has joined #ruby
[00:15:51] Ox0dea: Ah, right.
[00:15:53] Ox0dea: I think it's neat.
[00:16:05] yorickpeterse: I think you should burn forever if you actually use that somewhere in production :P
[00:16:12] Ox0dea: I'll get the kerosene.
[00:16:14] yorickpeterse: but yes, it's neat
[00:16:52] blackmes1: has joined #ruby
[00:17:04] shortdudey123: anyone know of HA setups for geminabox? not finding much
[00:17:22] blubjr: i mean sure i wasn't saying it's not powerful enough to define it, just like you could define it like that if you wanted in lisp, just that neither language comes with it defined like that, it's ugly
[00:17:44] blubjr: in ruby every operation is just sending a message except for some arbitrary things that aren't
[00:17:54] blubjr: everything in java is an object
[00:18:17] Ox0dea: blubjr: Is your presence here some strange masochistic penance?
[00:18:27] yorickpeterse: blubjr: not everything in java is an object
[00:18:49] bougyman: blubjr: not everything
[00:18:55] bougyman: oh, yorick just said that.
[00:18:56] blubjr: yorickpeterse: thats what i meant
[00:19:03] x-light: has joined #ruby
[00:19:24] Ox0dea: blubjr: What is the significance of the "blub" in your nick, if you don't mind my prying?
[00:19:27] ramfjord_: has joined #ruby
[00:19:34] TomPeed: has joined #ruby
[00:19:47] yorickpeterse: they're a fish
[00:19:54] blubjr: Ox0dea: i dont see whats wrong with calling ugly things ugly, im just learning ruby lately for a job. i think its better than most languages so far
[00:20:17] blubjr: i think the paul graham essay is stupid but i like lisp too, it's kind of ironic
[00:21:53] benlovell: has joined #ruby
[00:22:18] eam: any ffi folks about? I want to basically cast one FFI::Struct into another
[00:22:22] platzhirsch: has left #ruby: ()
[00:23:11] benlieb: has joined #ruby
[00:23:37] baweaver: has joined #ruby
[00:24:22] Pupeno: has joined #ruby
[00:25:05] veg: has joined #ruby
[00:30:06] jdawgaz: has joined #ruby
[00:30:26] hxegon: has joined #ruby
[00:32:19] predator117: has joined #ruby
[00:32:19] Arkon: has joined #ruby
[00:33:12] ibouvousaime: has joined #ruby
[00:33:13] Channel6: has joined #ruby
[00:33:20] agent_white: has joined #ruby
[00:33:51] tomphp: has joined #ruby
[00:35:24] hkumar: has joined #ruby
[00:35:25] mary5030: has joined #ruby
[00:35:41] tubuliferous_: has joined #ruby
[00:36:21] Kuntinator: has joined #ruby
[00:36:25] Kuntinator: has left #ruby: ()
[00:42:18] stannard: has joined #ruby
[00:42:24] ruurd: has joined #ruby
[00:44:22] rickmasta: has joined #ruby
[00:44:23] weaksauce: has joined #ruby
[00:45:17] CodingWolf: has joined #ruby
[00:45:34] rickmasta: has joined #ruby
[00:45:35] htmldrum: has joined #ruby
[00:45:39] dented42: has joined #ruby
[00:46:34] atomical: has joined #ruby
[00:47:11] TheNet: has joined #ruby
[00:49:25] veg: has joined #ruby
[00:49:46] mattwildig: has joined #ruby
[00:50:18] baroquebobcat: has joined #ruby
[00:51:10] krz: has joined #ruby
[00:51:32] lsv: has joined #ruby
[00:52:18] mjuszczak: has joined #ruby
[00:52:22] cmoney: has joined #ruby
[00:54:01] pkrueger: has joined #ruby
[00:55:53] h99h9h88: has joined #ruby
[00:56:19] gusrub: has joined #ruby
[00:59:18] mghaig: has joined #ruby
[00:59:26] sankaber: has joined #ruby
[01:00:16] lsv_: has joined #ruby
[01:01:06] henry1: has joined #ruby
[01:03:07] ebbflowgo: has joined #ruby
[01:06:29] to_json: has joined #ruby
[01:06:29] to_json: has joined #ruby
[01:09:02] northfurr: has joined #ruby
[01:09:19] h99h9h88: has joined #ruby
[01:10:13] lemur: has joined #ruby
[01:10:33] dlitvak: has joined #ruby
[01:12:39] rgtk: has joined #ruby
[01:13:56] Ox0dea: eam: FFI::Pointer doesn't let you poke memory like Fiddle::Pointer does, but having both seems a little weird.
[01:14:43] rgtk: has joined #ruby
[01:15:15] Ox0dea: You can just say `Fiddle::Pointer.new(foo.object_id * 2)[0, n] = Fiddle::Pointer.new(bar.object_id * 2)[0, n]`.
[01:15:37] Ox0dea: Where `foo` is some instance of the Fiddle::Struct you're trying to cast to, and `bar` the thing you've got.
[01:16:08] Ox0dea: You'll have to muck about with `n` to determine what all needs to be copied over for the "cast" to be valid.
[01:16:32] rgtk: has joined #ruby
[01:17:17] Maletor: has joined #ruby
[01:17:36] rgtk: has joined #ruby
[01:17:48] Yzguy: has joined #ruby
[01:17:57] tkuchiki: has joined #ruby
[01:20:04] Ox0dea: eam: Por ejemplo: https://eval.in/467374
[01:20:26] Ox0dea: An example of an "incomplete cast", as it were.
[01:21:03] Ox0dea: Fancy, right?
[01:21:30] ESpiney: has joined #ruby
[01:21:49] Senjai: has joined #ruby
[01:22:42] ebbflowgo: has joined #ruby
[01:22:50] eam: so I think I did what I want which is something like new_struct = new_struct_class.new FFI::MemoryPointer.from_string old_struct.to_ptr.read_string old_struct.size
[01:22:54] to_json: has joined #ruby
[01:22:54] to_json: has joined #ruby
[01:22:55] eam: it just seems .. odd
[01:23:24] Ox0dea: That does look unpleasant.
[01:23:27] mghaig: has joined #ruby
[01:23:51] TheNet: has joined #ruby
[01:23:52] Ox0dea: blubjr: Do you disagree, then, with his "shockingly controversial" assertion that languages vary in power?
[01:23:53] chouhoulis: has joined #ruby
[01:25:33] Ox0dea: > i think the paul graham essay is stupid
[01:25:59] pedahzur: has joined #ruby
[01:26:28] eam: Ox0dea: yeah, in fact it was so unpleasant what I actually did was just avoid casting and have something like s2_abc = s1[:xyz] # comment: :xyz is actually :abc when an instance of s2
[01:26:34] ekinmur: has joined #ruby
[01:26:41] eam: since I only needed like two fields
[01:27:03] _stu_: has joined #ruby
[01:27:44] Ox0dea: What could possibly go wrong? :P
[01:28:02] ruboto: FailBit, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[01:28:06] drbrain: eam: that sounds exactly like what C does when you cast a struct
[01:28:19] Ox0dea: FailBit: eval.in is on the fritz.
[01:28:25] eam: drbrain: yup, that's exactly what I'm trying to copy
[01:28:55] Ox0dea: But we're supposed to be pretending it's more than just bits underneath!
[01:29:09] eam: struct thing2 t *t2 = (struct thing2 *) &t1
[01:29:14] eam: is the C version
[01:29:22] mghaig: has joined #ruby
[01:29:51] pedahzur: Beginner question here. I'm trying to use rspec/mocks. I do include 'rspec/mocks' and that succeeds, but I'm still being told allow(....) is an undefined method. What (simple) error am I making?
[01:30:47] eam: Ox0dea: which pg essay is stupid, btw?
[01:31:14] Ox0dea: eam: blubjr's namesake.
[01:31:27] Ox0dea: http://www.paulgraham.com/avg.html
[01:32:32] Ox0dea: pedahzur: You're using #allow at the top level?
[01:32:37] swgillespie: has joined #ruby
[01:32:53] blubjr: the part that i think is stupid about that essay is that he thinks lisp is exempt from his criticism for some reason
[01:33:04] ebbflowgo: has joined #ruby
[01:33:23] pedahzur: Ox0dea: The README here: https://github.com/rspec/rspec-mocks doesn't indicate anything different.
[01:33:34] pedahzur: Unless the bare code sample are supposed to imply some sort of context. :)
[01:34:02] veg: has joined #ruby
[01:34:23] pedahzur: Ox0dea: But yes, using #allow at top level.
[01:34:31] Ox0dea: pedahzur: Yes, they assume context.
[01:34:42] Ox0dea: #allow is only invokable in the context of a subject.
[01:34:49] Ox0dea: That is, an #it block, more or less.
[01:35:46] pedahzur: Ox0dea: hmm...then I'm really misunderstanding this question/answer: http://stackoverflow.com/questions/24182465/is-it-possible-or-even-recommended-to-mock-a-ruby-require-statement-in-chefspe/26064800#26064800
[01:35:48] Ox0dea: blubjr: And yet here you are called blubjr; if there's a joke to get, I'm missing it.
[01:35:49] eam: blubjr: not the part where he disregards the difficulty of finding fluent engineers in a particular implementation?
[01:37:19] Ox0dea: $ ruby -r rspec/mocks -e 'p methods.grep /allow/'
[01:37:26] Ox0dea: pedahzur: ^ I'm not sure what to tell ya, mate.
[01:38:01] segmond: has joined #ruby
[01:38:05] blubjr: sorry i guess its double ironic, don't worry about it
[01:38:23] Ox0dea: It's cognitive dissonance.
[01:39:04] pedahzur: Ox0dea: Hmm, OK. Any quick tips on getting Ruby to ignore/return true for a require statement during a test (That's what I was trying to do here.) Trying to allow a test to run without having a particular module installed.
[01:39:16] blubjr: thats the joke
[01:39:26] Ox0dea: pedahzur: You could rescue LoadError?
[01:39:54] pedahzur: I could...seems yucky, though, and we wouldn't want that in production.
[01:40:15] Ox0dea: Whale, I think you'd have to redefine Kernel#require, then.
[01:40:18] Ox0dea: And that's yuckier.
[01:40:43] pedahzur: Ox0dea: yeah, that's why I thought that allow() method would help out. Ah well.
[01:40:52] devoldmx: has joined #ruby
[01:41:05] JDiPierro: has joined #ruby
[01:41:10] Ox0dea: #allow just says that it's okay for some object to receive some method; it's not a catch-all in the way you were hoping.
[01:41:27] Ox0dea: *some message
[01:41:36] pedahzur: Ox0dea: Ah. Again, was going off of http://stackoverflow.com/questions/24182465/is-it-possible-or-even-recommended-to-mock-a-ruby-require-statement-in-chefspe/26064800#26064800
[01:42:14] eam: I like to mock them like this: require, you are slow as shit and do a lot of absurd, unnecessary work!
[01:42:39] eam: though it's not entirely constructive if I'm being honest with myself
[01:43:50] baroquebobcat: has joined #ruby
[01:45:03] ekinmur: has joined #ruby
[01:45:43] RobertBirnie: has joined #ruby
[01:46:00] Ox0dea: pedahzur: https://eval.in/467378
[01:46:16] Ox0dea: I don't know why the SO answer got upvoted and accepted, but it's wrong.
[01:47:07] pedahzur: Ox0dea: Bummer.
[01:47:11] A124: has joined #ruby
[01:48:14] momloy: has joined #ruby
[01:48:14] bigmac_: has joined #ruby
[01:48:53] ESpiney_: has joined #ruby
[01:49:50] SenpaiSilver: has joined #ruby
[01:50:28] rgtk: has joined #ruby
[01:51:03] cicloid: has joined #ruby
[01:52:29] rgtk: has joined #ruby
[01:52:36] zenspider: why would you mock out a require??
[01:52:44] zenspider: I... just no.
[01:53:24] sdwrage: has joined #ruby
[01:54:15] rgtk: has joined #ruby
[01:55:04] pontiki: eam: being constructive is sometimes highly overrated.
[01:55:24] pontiki: taking the piss is sometimes the best course
[01:55:29] Kuntinator: has joined #ruby
[01:55:34] Kuntinator: can ruby run on windows?
[01:55:37] Ox0dea: Kuntinator: No.
[01:55:38] pedahzur: zenspider: Trying to allow a unit test to run without having to require the dev to install said gem.
[01:55:46] Ox0dea: Also, !cops
[01:56:06] rgtk_: has joined #ruby
[01:56:21] pedahzur: Kuntinator: http://lmgtfy.com/?q=ruby+windows
[01:56:36] Ox0dea: pedahzur: You're feeding a troll.
[01:56:57] pedahzur: Ox0dea: Ah well, I fed him google.
[01:57:04] eam: nom nom nom
[01:57:04] Kuntinator: pedahzur: will it have the same features as my friend on os x?
[01:57:05] Ox0dea: He needs to be fed the door.
[01:57:21] pontiki: zenspider: more of my coworkers are starting to look more seriously at minitest
[01:57:40] pedahzur: Kuntinator: I don't know what features your friend has. Male? Female? Tall? Short?
[01:58:01] rgtk: has joined #ruby
[01:58:15] Kuntinator: female big boobs small waist kind of chubby but still fit you could say thick and somewhat attractive but not really your type
[01:58:24] Kuntinator: she has abs of steel
[01:58:44] pontiki: speak of trolls, Ox0dea
[01:58:47] Kuntinator: but a her second chin and short stature makes her look like she's fat
[01:58:51] Ox0dea: pontiki: Hm?
[01:58:56] pontiki: and feeding
[01:59:07] Ox0dea: Do I feed trolls?
[01:59:30] pontiki: sorry, i meant "tell them again"
[01:59:33] JDiPierro: has joined #ruby
[01:59:39] Ox0dea: I already phoned the authorities; I don't know why zenspider is permitting this to continue.
[01:59:58] A124: has joined #ruby
[01:59:59] Kuntinator: maybe because you're being deliberately obtuse Ox0dea
[02:00:03] rgtk: has joined #ruby
[02:00:09] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
[02:00:16] mghaig: has joined #ruby
[02:00:19] ruboto: -o ruboto
[02:00:21] Radar: Thanks pontiki
[02:00:21] ruboto: -o ruboto
[02:00:24] Radar: baweaver: too slow
[02:00:39] Kabal: has joined #ruby
[02:00:44] Kuntinator: has left #ruby: ()
[02:01:09] Radar: Ox0dea: "I already phoned the authorities; "?
[02:01:13] Radar: Actually phoned or what?
[02:01:27] jhass: looks like the ban/quiet list is full again, somebody should clean up
[02:01:35] Radar: Ox0dea: It's !ops, on a single line by itself.
[02:01:36] Ox0dea: I didn't want to bug the rest of you on account of zenspider's proximity to the situation.
[02:01:47] eam: Ox0dea: you have to actually sing the song "bad boys bad boys, whatcha gonna do"
[02:01:52] rickmasta: has joined #ruby
[02:01:54] Radar: He probably doesn't have IRC open in front.
[02:01:58] tkuchiki: has joined #ruby
[02:02:00] rgtk: has joined #ruby
[02:02:00] Radar: Probably tabs over to it just like the rest of us
[02:02:26] Contigi: has joined #ruby
[02:03:43] rgtk: has joined #ruby
[02:04:21] cyberfawkes: has left #ruby: ()
[02:04:32] bruno-: has joined #ruby
[02:05:37] rgtk_: has joined #ruby
[02:05:38] |ifei5g00d: has joined #ruby
[02:07:36] rgtk: has joined #ruby
[02:08:34] zenspider: sorry. I was cooking
[02:08:39] zenspider: pontiki: that's great!
[02:09:26] rgtk: has joined #ruby
[02:10:08] pontiki: zenspider: they were deeply impressed at the readability/understandability of the test code, and the speed blew them away
[02:10:11] benlovell: has joined #ruby
[02:10:23] pontiki: (did not use spec)
[02:11:27] rgtk: has joined #ruby
[02:11:57] ESpiney__: has joined #ruby
[02:12:20] pontiki: zenspider: so long way around to saying "Thank you very much"
[02:12:35] DLSteve: has joined #ruby
[02:13:10] rgtk_: has joined #ruby
[02:13:16] zenspider: yay! you're very welcome
[02:14:45] pedahzur: So, the only way I'm seeing this is to make the dev install the gem, and then mock out the two calls to the Module. Siiigh...that was looking so promising. Thanks for your help Ox0dea. It was good talking through all that. It is appreciated.
[02:15:07] rgtk: has joined #ruby
[02:15:33] zenspider: !ban rgtk !T 1h please fix your connection
[02:15:35] ChanServ: +b rgtk!*@*
[02:15:35] ChanServ: ChanServ kicked rgtk: please fix your connection
[02:16:28] pontiki: pedahzur: this smells a bit; if a gem is required in only some circumstances and not others, and you don't want to force the gem user to install it, the structure your requires so they don't have to
[02:16:45] pontiki: warping you tests to mock out a require is quite odd
[02:17:04] asianMike: has joined #ruby
[02:17:11] zenspider: pontiki: lemme know if they have any questions or feedback.
[02:17:16] pontiki: if you need to, use two helpers, one can require it and the other helper that doesn't
[02:17:55] pontiki: or follow the practice of requiring the gem in the places it's used
[02:19:09] pedahzur: pontiki: It might not be the right way. There is always that possibility. The required gem returns some information used to contruct a config file. If I could just have mock'ed stubs that returned that informatoin, I woudln't need to require the module for the tests. We install via chef_gem during the chef run, so the 'require' is in the function itself. I suppose I could see if I am running under ChefSpec and branch on that.
[02:20:34] pdoherty: has joined #ruby
[02:21:35] zenspider: this sounds really backwards
[02:22:14] to_json: has joined #ruby
[02:22:14] to_json: has joined #ruby
[02:23:04] nizmow: has joined #ruby
[02:24:31] pedahzur: zenspider: Totally open for suggestions to improve it. I work with a bunch of guys that are pretty smart in Ruby, but we are not Ruby experts, I'm sure. This is what we came up with. Now I'm trying to figure out how to test it. :)
[02:24:38] cmoney: has joined #ruby
[02:24:44] Pupeno: has joined #ruby
[02:24:46] bigmac_: has joined #ruby
[02:25:40] tubuliferous_: has joined #ruby
[02:30:11] blackmes1: has joined #ruby
[02:30:40] unknowns2k2: has joined #ruby
[02:32:02] bigmac_: has joined #ruby
[02:32:05] dented42: has joined #ruby
[02:32:52] houhoulis: has joined #ruby
[02:33:01] bigmac_: Ox0dea: i found a way to speed up a permutation.
[02:33:06] bigmac_: i would like to share
[02:33:09] Ox0dea: bigmac_: Yay!
[02:33:12] Ox0dea: Please do so.
[02:33:29] bigmac_: [0,1].repeated_permutation(24){|x|}
[02:33:40] Ox0dea: I don't follow.
[02:33:48] bigmac_: takes my machine to complete (102.247645998)
[02:34:17] bigmac_: i can perform this same permutation in (7.498221399)
[02:35:23] bigmac_: ill post eval
[02:36:08] bigmac_: https://eval.in/467380
[02:37:32] Ox0dea: bigmac_: Do you know that you can access the individual bits of a Fixnum?
[02:37:47] bigmac_: what do you mean?
[02:38:08] Ox0dea: >> 6.times.map { |i| 42[i] } # bigmac_
[02:38:09] ruboto: Ox0dea # => [0, 1, 0, 1, 0, 1] (https://eval.in/467381)
[02:38:33] Ox0dea: You've still said little to nothing about why you're doing these permutations, but I bet this realization will help you speed it up even further.
[02:39:01] rakm: has joined #ruby
[02:44:36] tkuchiki: has joined #ruby
[02:46:36] pontiki: ah, they've left
[02:46:56] bigmac_: wife up my butt
[02:49:01] unknowns2k2: has joined #ruby
[02:49:24] Axsuul: has joined #ruby
[02:54:44] kies: has joined #ruby
[02:55:49] freerobby: has joined #ruby
[02:56:03] tater: has joined #ruby
[02:56:10] DiCablo: has joined #ruby
[02:57:37] araujo_: has joined #ruby
[02:59:48] TheNet: has joined #ruby
[03:01:00] dlitvak: has joined #ruby
[03:02:15] symm-: has joined #ruby
[03:02:27] Ox0dea: bigmac_: And now that your rather unorthodox colonoscopy has presumably finished, what're you doing with these permutations?
[03:03:01] krazyj: has joined #ruby
[03:03:02] bigmac_: i feel stupid lol
[03:03:06] bigmac_: i cant explain
[03:03:17] neonalpine: has joined #ruby
[03:03:17] krazyj: can the `||` operator be strung together? and will it stop evaluating on the first one that returns something?
[03:03:22] Ox0dea: krazyj: Yep.
[03:03:36] krazyj: Ox0dea: thanks!
[03:04:00] EminenceHC: has joined #ruby
[03:04:09] Ox0dea: I do hope they have a solid understanding of what they meant by "returns something".
[03:04:30] Arkon_: has joined #ruby
[03:05:05] bigmac_: i cant see your example performing faster
[03:05:24] Ox0dea: bigmac_: It depends on what you're doing.
[03:05:41] bigmac_: i guess your right
[03:05:53] bruno-: has joined #ruby
[03:05:59] Ox0dea: bigmac_: Do you *really* need every number from 0 to 16777215 as an array of bits?
[03:06:51] bigmac_: i dont exactly need it as array
[03:07:07] Ox0dea: But you do need the bits of every number from 0 to 16777215?
[03:07:52] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[03:08:25] bigmac_: "she wore her wedding dress to the orgy "
[03:08:26] bigmac_: "she wore her wedding dress to the orgy "
[03:08:28] bigmac_: "she wore her wedding dress to the orgy "
[03:08:30] ruboto: dorei # => 65536 (https://eval.in/467382)
[03:08:34] ruboto: dorei # => 4294967296 (https://eval.in/467383)
[03:08:49] Ox0dea: bigmac_: Is everything okay, mate?
[03:08:59] bigmac_: quote from anchorman
[03:09:53] favadi: has joined #ruby
[03:10:07] rgtk_: has joined #ruby
[03:10:08] ChanServ: +b *!*@ip-91.246.72.229.skyware.pl
[03:10:08] ChanServ: ChanServ kicked rgtk_: please fix your connection
[03:10:10] bigmac_: for x in 0..2**20; 20.times.map {|i| (x[i])} ; end
[03:10:15] bigmac_: >>for x in 0..2**20; 20.times.map {|i| (x[i])} ; end
[03:10:18] astrobunny: has joined #ruby
[03:10:18] ruboto: bigmac_ # => (https://eval.in/467384)
[03:10:28] bigmac_: i guess it didnt print anything
[03:11:38] baweaver: has joined #ruby
[03:13:03] ValicekB: has joined #ruby
[03:15:17] crystalmaiden: has joined #ruby
[03:15:21] mghaig: has joined #ruby
[03:15:33] ChanServ: -bb rgtk!*@* *!*@ip-91.246.72.229.skyware.pl
[03:15:52] peppers: has joined #ruby
[03:16:04] rgtk: has joined #ruby
[03:16:08] weemsledeux: has joined #ruby
[03:17:42] rgtk: has joined #ruby
[03:18:02] SalexW: has joined #ruby
[03:18:40] dopie: has joined #ruby
[03:19:41] rgtk: has joined #ruby
[03:21:27] bb010g: has joined #ruby
[03:21:43] rgtk: has joined #ruby
[03:23:03] ElSif: has joined #ruby
[03:23:37] rgtk: has joined #ruby
[03:23:38] SirFunk: Anyone know of a convenient way to share some memory between workers in a forking ruby server (like unicorn) ?
[03:24:36] karapetyan: has joined #ruby
[03:25:16] rgtk: has joined #ruby
[03:27:13] rgtk: has joined #ruby
[03:27:40] pwnd_nsfw: has joined #ruby
[03:27:50] doll: has joined #ruby
[03:27:56] Arkon: has joined #ruby
[03:28:53] doll: I'm using active record to access a mysql database in ruby; I have figured out how to delete all tables' contents, but I can't figure out how to delete the contents for any single table... halp?
[03:29:10] Radar: doll: ?code
[03:29:14] Radar: doll: ?gist
[03:29:18] doll: sec, working on it
[03:29:20] CrazyEddy: has joined #ruby
[03:29:38] gambl0re: has joined #ruby
[03:30:13] doll: book store simulator: http://pastie.org/private/9axbjqmdleld5nlcsnw
[03:31:06] dlitvak: has joined #ruby
[03:31:32] chipotle: has joined #ruby
[03:32:19] blackmes1: has joined #ruby
[03:33:19] pontiki: where do you test it?
[03:33:32] doll: could you clarify?
[03:33:37] pontiki: seriously?
[03:33:48] doll: english isn't my first language
[03:34:01] pontiki: which of those words don't you understand?
[03:34:03] Radar: doll: Seems like clean_table would delete all the contents of a single table.
[03:35:03] doll: @Radar which is what I want, but I'm getting an error: pry(main)> clean_table (books) NameError: undefined local variable or method `books' for main:Object from (pry):7:in `<main>'
[03:35:27] Radar: clean_table(Book)
[03:35:35] h99h9h88: has joined #ruby
[03:35:35] Radar: Or, you could just do Book.delete_all
[03:35:40] Radar: Since it's almost the same length
[03:35:51] doll: thank you
[03:35:52] Radar: I really don't understand the reason for the clean_table method. It doesn't seem to add any usefulness.
[03:35:59] Radar: I am not jesus.
[03:36:02] doll: it's not, it's just required for the assignment
[03:36:05] doll: you are jesus
[03:36:07] doll: hail Radar
[03:36:16] Radar: Jesus was much nicer than me./
[03:36:20] Radar: At least, that's how the stories go.
[03:36:22] doll: i will put your image on my starbucks cup
[03:36:31] doll: thanks boo
[03:37:11] h99h9h88: has joined #ruby
[03:38:55] rakm: has joined #ruby
[03:39:16] cmoney: has joined #ruby
[03:41:13] qiukun: has joined #ruby
[03:43:46] rickmasta: has joined #ruby
[03:45:47] devl: has joined #ruby
[03:46:22] RegulationD: has joined #ruby
[03:47:58] RobertBirnie: has joined #ruby
[03:50:28] jhack: has joined #ruby
[03:50:38] jhack: hows it going everyone
[03:50:47] h99h9h88: has joined #ruby
[03:52:53] jhack: So i???m trying to create a binary search method that takes a value and array, where i don???t use array/enumerable methods.. can someone lead me to the right direction? I???ve tried slicing the array into two halves and creating a while loop
[03:53:57] Ox0dea: jhack: I trust you know that binary search requires a sorted collection?
[03:54:06] Arkon: has joined #ruby
[03:54:19] fedexo: has joined #ruby
[03:55:06] axl_: has joined #ruby
[03:55:24] Ox0dea: jhack: How are you going to halve the array without using *any* Enumerable methods?
[03:55:50] Eiam_: has joined #ruby
[03:56:14] benlieb: has joined #ruby
[03:56:50] SirFunk: Is there a good way to share memory between unicorn workers?
[03:57:02] Ox0dea: SirFunk: Don't Unicorn processes already share memory?
[03:57:24] yfeldblum: has joined #ruby
[03:57:29] jhack: sorry, i meant without relying on enumerable methods
[03:57:58] Ox0dea: jhack: Well, how do you determine the size of the collection without doing something like checking for when Array#[] returns nil?
[03:58:09] SirFunk: Ox0dea: no, they fork.. Puma Threads share
[03:58:26] benlovell: has joined #ruby
[03:58:33] Ox0dea: SirFunk: Parents can share memory with their children just fine.
[03:58:51] SirFunk: hmm, is that so?
[03:59:15] Ox0dea: The memory will have to be copied if you modify it, but *only* if you modify it.
[03:59:39] SirFunk: Ox0dea: oh, yeah. I should have specified, I need to write to it from the children
[04:00:15] Ox0dea: SirFunk: I suppose Marshal dumps are out of the question?
[04:00:29] SirFunk: Dump to where? File?
[04:00:37] Ox0dea: Yeah, it's not the greatest idea.
[04:00:40] jhack: Ox0dea: okay so if we were able to use .length/array#[]
[04:00:52] Ox0dea: jhack: Then it would become much easier. :P
[04:01:03] SirFunk: Ox0dea: I have an implementation using a PStore to share that seemsm to work better than expected, but it's not "fast enough"
[04:01:20] G186: has joined #ruby
[04:01:49] jhack: Ox0dea: so, something along the lines of if the value is equal to the last value of the half then return the value but if not slice it again ?
[04:01:57] G186: has joined #ruby
[04:01:57] Ox0dea: jhack: Recursively.
[04:02:34] Ox0dea: SirFunk: PStore is backed by a file; are you looking to do away with sharing via file entirely?
[04:03:15] G186: has joined #ruby
[04:03:34] dlitvak: has joined #ruby
[04:03:43] charliesome: has joined #ruby
[04:03:52] SirFunk: Ox0dea: It is for this: https://github.com/prometheus/client_ruby/issues/9 I'm actually OK with the performance of the PStore method in my simple tests.. the people with commit bits have reservations?
[04:04:02] G186: can any one help out with basic cucumber help?
[04:04:22] G186: i just want to write a test case for an isPalindrome ruby program, trying to learn cucumber,
[04:04:26] G186: using rubymine.
[04:06:17] samu: has joined #ruby
[04:06:30] baweaver: has joined #ruby
[04:06:52] ruurd: has joined #ruby
[04:07:05] Radar: G186: What do you need help with, specifically.
[04:07:15] Radar: question-mark-goes-here
[04:07:43] G186: Radar, well, I made the ruby program, it works, now I just need to test it with cucumber
[04:07:57] G186: Radar, I made the features folder in the root of the project
[04:08:11] G186: Radar, and I made a test.features file
[04:08:16] neonalpine: has joined #ruby
[04:08:21] bruno-: has joined #ruby
[04:08:34] G186: and i wrote some stuff in it, but it doesn't work.. and it doesn't seem like it should!
[04:08:57] G186: so, how do I write the Give, When, Then?
[04:08:59] Radar: G186: You're going to have to be more specific than that.
[04:09:02] G186: so, how do I write the Given, When, Then?
[04:09:02] Radar: G186: ?gist
[04:09:08] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[04:09:22] karapetyan: has joined #ruby
[04:09:25] Radar: Put what code you have up on there, please. and then anything that indicates it not working too.
[04:10:12] gix: has joined #ruby
[04:11:38] G186: its really short
[04:11:39] G186: https://gist.github.com/anonymous/c5b404b852cbea02ebfa
[04:12:23] framling: has joined #ruby
[04:12:24] baweaver: has joined #ruby
[04:12:27] Radar: Short is good.
[04:12:34] Radar: What happens when you run it? What is indicating to you that it is not working?
[04:13:17] northfurr: has joined #ruby
[04:14:27] G186: I don't know how to run it I guess.
[04:14:30] braincrash: has joined #ruby
[04:14:52] jhack: Ox0dea: I need a little more guidance if thats okay
[04:15:03] G186: I've ran j-unit testing before, I was looking to do the same thing, but using ruby and cucumber,
[04:15:05] Ox0dea: jhack: Are you pursuing the recursive approach, then?
[04:15:23] Arkon: has joined #ruby
[04:15:24] jhack: yeah, would i be able to do it with only 2 inputs? value and array?
[04:15:30] Ox0dea: Absolutely.
[04:16:01] Ox0dea: What are the termination conditions? When do you know you won't be able to find the target element?
[04:16:29] brushbox: has joined #ruby
[04:18:42] jhack: Ox0dea: when the value is higher than the value at the midpoint array?
[04:18:47] jhack: and on and on?
[04:18:54] Radar: G: Run cucumber features/test.feature
[04:19:08] Xiti`: has joined #ruby
[04:20:28] sdwrage: has joined #ruby
[04:20:55] Arkon: has joined #ruby
[04:21:06] jhack: Ox0dea: termination conditions are when we find the input, or when have an empty array?
[04:21:10] Ltnt_Hawkeye: has joined #ruby
[04:21:13] Ox0dea: jhack: Right, the latter.
[04:21:34] Ltnt_Hawkeye: does anyone know of an API for interfacing with Makerbot?
[04:21:57] robbyoconnor: has joined #ruby
[04:22:08] Ox0dea: jhack: If the array to be searched has become empty, you can't possibly find the element, but this is also true if you find yourself with an array of length 1 which doesn't contain the target.
[04:23:07] CloCkWeRX: has joined #ruby
[04:24:22] arup_r: has joined #ruby
[04:24:23] Radar: G186: did that work?
[04:24:50] ruurd: has joined #ruby
[04:24:53] kiki_lamb: So... if I feel like I want what would, in C++, be private inheritance, then in Ruby I probably wanna just use composition instead, right?
[04:25:04] chipotle: has joined #ruby
[04:25:16] kiki_lamb: or, rather, just make a different class delegating as needed to the class i want to, in theory, privately inherit from?
[04:25:30] mghaig: has joined #ruby
[04:26:04] h99h9h88: has joined #ruby
[04:26:33] rbowlby: has joined #ruby
[04:27:29] G186: Radar, that seems to run it, but I got some errors I'm going to try and work out!
[04:27:36] Radar: G186: ok :)
[04:27:38] G186: Radar, thank you for the info!
[04:27:39] Radar: We'll still be here to help.
[04:27:50] jhack: Ox0dea: Okay now my question is how are we splitting the arrays continuously to check for this, can we set two variables equal to slice? then return the variable if the value of the number is greater than the input?
[04:28:25] Ox0dea: jhack: left, right = a[0...mid], a[mid..-1]
[04:28:34] G186: Radar, sometimes I think about you and the other people here that help, (not anyone in particular) and I wonder why do you help? j
[04:28:37] kp666: has joined #ruby
[04:28:48] baweaver: has joined #ruby
[04:28:51] Radar: G186: Because I wanted this kind of help when I was new too.
[04:28:52] astrobun_: has joined #ruby
[04:28:55] jhack: Ox0dea: yeah, and then we can have a conditional with the recursion iin the block?
[04:29:05] Ox0dea: jhack: Which block?
[04:29:28] Ox0dea: That's not a "block" in Ruby parlance, mind.
[04:29:31] G186: Radar, understood!
[04:29:36] kp666: has joined #ruby
[04:29:45] Ox0dea: "Clause" is a little better, I guess.
[04:30:28] Ox0dea: G186: "Be the change you wish to see in the world."
[04:32:29] jhack: Ox0dea: would this work if the value and array were symbols as well?
[04:32:52] Ox0dea: jhack: That would depend on your implementation, of course, but Symbols are indeed Comparable.
[04:33:05] Ox0dea: >> Symbol.include? Comparable
[04:33:06] ruboto: Ox0dea # => true (https://eval.in/467448)
[04:33:11] Radar: G186: Also: I can't tell you how many times I've helped someone in one of these channels and then later on (maybe days, weeks or months later) I've been able to use what I found out then in my own work.
[04:34:30] G186: Ox0dea,Radar good stuff, I've helped out before, but not as much as I've asked, but I will do better!
[04:35:29] Ltnt_Hawkeye: does anyone know of an API for interfacing with Makerbot?
[04:36:20] gusrub: has joined #ruby
[04:36:37] Ox0dea: Ltnt_Hawkeye: This looks promising? https://github.com/tbuser/RublicatorG
[04:36:59] jhack: Ox0dea: can i show you on gist what I have?
[04:37:06] Ox0dea: jhack: Please do.
[04:37:54] jhack: https://gist.github.com/jhack32/f2283bafaa65159b1137
[04:38:00] jhack: the spacing is kinda messed up.
[04:38:38] Ox0dea: jhack: You're not slicing the left array out properly.
[04:38:39] ThatsNotJack: has joined #ruby
[04:39:31] mghaig: has joined #ruby
[04:39:37] Ox0dea: Line 2 is just a very verbose way of saying `left = sorted_array`. :P
[04:39:38] simplyianm: has joined #ruby
[04:40:01] Ox0dea: Well, `left = sorted_array.dup`, but still, that's not what you want.
[04:40:16] axisys: has joined #ruby
[04:40:30] jhack: so i needa do sorted_array.length/2
[04:41:00] Ox0dea: jhack: Yeah, in my example from earlier, that's what `mid` was meant to indicate.
[04:41:43] jhack: okay, so i can just create, mid = sorted_array.length / 2
[04:41:43] luckyme: has joined #ruby
[04:41:58] ThatsNotJack: has joined #ruby
[04:42:18] atzorvas: has joined #ruby
[04:42:30] atzorvas_: has joined #ruby
[04:44:07] solenoids: has joined #ruby
[04:45:50] Ox0dea: jhack: You'll be using that calculation more than once, so yeah, it makes sense for it to be its own variable.
[04:46:05] Ox0dea: Ruby lets you have *billions* of locals if you so desire. :P
[04:46:17] jhack: Ox0dea: so now it seems like my if/else statements need to be fixed right?
[04:46:52] gusrub: has joined #ruby
[04:47:05] Ox0dea: jhack: Do you see where it's broken?
[04:47:21] jhack: Ox0dea: it???s giving me the output [:A, :B]
[04:47:23] jhack: which is weird..
[04:47:33] Ox0dea: jhack: Well, you're returning the array.
[04:47:51] jhack: oh right...
[04:48:04] Ox0dea: But you've also got a condition the wrong way round.
[04:49:01] psy: has joined #ruby
[04:49:37] shinenelson: has joined #ruby
[04:49:39] jhack: something with the left == nil part?
[04:49:55] N|993R: has joined #ruby
[04:50:01] psy: has joined #ruby
[04:50:02] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
[04:50:18] ruboto: -o ruboto
[04:50:28] patdohere: has joined #ruby
[04:51:03] jhack: Ox0dea: yeah so it would be my first if statement right? checking if left == nil?
[04:51:20] Ox0dea: jhack: You're talking about different code than what you shared up there.
[04:51:43] Ox0dea: Oh, sorry, I didn't realize you'd updated it.
[04:51:45] baweaver: why an explicit nil check? nil is falsy anyways
[04:52:02] Radar: Thank you Ox0dea.
[04:52:09] baweaver: (now that you've gone and got my attention :P)
[04:52:11] Ox0dea: jhack: `nil` and an empty array are hardly synonymous.
[04:52:54] Ox0dea: Also, how come you're returning the array?
[04:53:06] Uptime: has joined #ruby
[04:53:27] jhack: Yeah, i should be returning left
[04:53:45] jhack: along with nil => []
[04:54:06] Ox0dea: `nil` need never come into this. :P
[04:54:22] rickmasta: has joined #ruby
[04:54:42] baweaver: someone's been using js lately
[04:54:48] astrobunny: has joined #ruby
[04:54:57] jhack: Now, i???m getting the [:A] value
[04:56:29] Ox0dea: jhack: You don't want an array at all.
[04:56:35] ss_much: has joined #ruby
[04:56:38] Ox0dea: Either the sought value or `nil`, right?
[04:56:58] axl_: has joined #ruby
[04:57:03] djbkd: has joined #ruby
[04:57:14] nateberkopec: has joined #ruby
[04:57:48] Ox0dea: value: 8 array: 7 right: 4 if: 4 end: 3 left: 3 mid: 3 return: 3 bsearch: 3 first: 2 size: 2 else: 1 last: 1 empty: 1 def: 1
[04:57:49] dented42: has joined #ruby
[04:57:56] Ox0dea: There's a histogram of the words I used in my solution. :P
[04:58:23] N|993R: what is a detailed resource where i can learn lambdas?
[04:58:36] Ox0dea: Do you even Greek?
[04:58:53] ruboto: -o ruboto
[04:58:54] havenwood: !ban N|993R !T 1d
[04:58:55] ChanServ: +b N|993R!*@*
[04:58:55] ChanServ: ChanServ kicked N|993R: is banned from this channel
[04:58:55] jhack: Im still lost Ox0dea
[04:59:17] jhack: so u didnt even use elsif's
[04:59:23] Ox0dea: jhack: Write the base case first.
[04:59:39] G186: Radar, I'm stuck! I'm not sure where to go from here,
[04:59:39] G186: https://gist.github.com/anonymous/6f19448fb18ca8615f96
[04:59:40] Ox0dea: Return `nil` as soon as you have enough information to correctly do so.
[04:59:47] saddad: has joined #ruby
[05:00:08] era: has joined #ruby
[05:00:18] KindOne: has joined #ruby
[05:00:56] Radar: G186: You need to define those steps in Cucumber.
[05:01:07] Radar: G186: I'd really recommend writing this test in RSpec instead of Cucumber
[05:01:17] jhack: okay, so if right.empty? || right.length == 1 return nil
[05:01:31] Radar: G186: My Cucumber is very rusty. I haven't used it in quite some time.
[05:01:51] G186: Radar, unfortunately, I have to use cucumber..
[05:01:54] pontiki: i'd recommend writing it in minitest :D
[05:02:03] Ox0dea: jhack: You have an opportunity to return if before you've split the list.
[05:02:07] Ox0dea: *even before
[05:02:14] lsv: has joined #ruby
[05:02:27] pontiki: G186: is this an exercise to teach you cucumber?
[05:02:33] darkf: has joined #ruby
[05:02:53] duckgoose: has joined #ruby
[05:02:56] duckgoose: has left #ruby: ("ByrdIRC")
[05:03:14] era: has left #ruby: ("Bye")
[05:03:54] G186: pontiki, kind of, we have to implement cucumber on any ruby program.
[05:04:12] jhack: Ox0dea: so??? return sorted_array[mid]
[05:04:26] Ox0dea: jhack: Definitely not.
[05:04:27] ElSif: jhack: i noticed u are excluding the last element in your right slice `(mid...-1)` is that intentional?
[05:04:57] jhack: ElSif: no it wasn???t, thanks
[05:05:18] KindOne: has left #ruby: ()
[05:05:43] jhack: Ox0dea: you lost me :X
[05:05:47] jhack: oops wrong emoji
[05:06:49] Ox0dea: jhack: https://eval.in/467452
[05:07:02] Ox0dea: I reckon you can take it from there with a bit of hammock time.
[05:07:23] benlovell: has joined #ruby
[05:07:26] jhack: oh, i didnt know you can use return if like that...
[05:08:42] tubuliferous_: has joined #ruby
[05:08:54] Ox0dea: jhack: Sure thing. I'm gonna step out for a bit; I hope I've left you a sufficiently illuminating skeleton. ^_^
[05:09:06] jhack: yes you have, thanks a lot!
[05:09:08] bruno-: has joined #ruby
[05:09:17] Ox0dea: Happy to help.
[05:09:23] neonalpine: has joined #ruby
[05:09:24] Ox0dea: (If only I could be so grossly incandescent.)
[05:10:11] mghaig: has joined #ruby
[05:11:17] mattwildig: has joined #ruby
[05:12:26] dlitvak_: has joined #ruby
[05:14:45] x-light: has joined #ruby
[05:15:33] dkam_: has joined #ruby
[05:16:43] N|993R_: has joined #ruby
[05:16:44] ChanServ: +b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.50.136.154.155
[05:16:44] ChanServ: ChanServ kicked N|993R_: is banned from this channel
[05:16:47] haraoka: has joined #ruby
[05:17:10] karapetyan: has joined #ruby
[05:21:22] hxegon: has joined #ruby
[05:21:23] dviola: has joined #ruby
[05:21:41] skcin7: has joined #ruby
[05:24:50] psye: has joined #ruby
[05:25:44] qiukun: has joined #ruby
[05:25:58] Maletor: has joined #ruby
[05:28:41] drs: has joined #ruby
[05:30:39] drs: is there a good ruby web framework that has examples of getting it's data through http requests? (so no database, just http calls returning json).
[05:34:03] blackmes1: has joined #ruby
[05:36:06] ohaibbq: has joined #ruby
[05:36:24] makenoise: has joined #ruby
[05:38:18] Arkon: has joined #ruby
[05:39:27] akkad: has joined #ruby
[05:41:26] roxtrongo: has joined #ruby
[05:42:09] roxtrongo: has joined #ruby
[05:43:33] favadi: has joined #ruby
[05:45:50] ruurd: has joined #ruby
[05:47:33] Arkon: has joined #ruby
[05:47:50] hays: has joined #ruby
[05:49:58] samwize: has joined #ruby
[05:51:24] rgtk: has joined #ruby
[05:51:33] yfeldblum: has joined #ruby
[05:51:50] prateekp: has joined #ruby
[05:52:34] prateekp: i am getting this error 645
[05:52:50] prateekp: error: 'SSLv3_method' undeclared here (not in a function) OSSL_SSL_METHOD_ENTRY(SSLv3),
[05:53:02] prateekp: when i am trying to install 2.2.3 ruby using rbenv
[05:53:08] prateekp: what should i do
[05:53:27] qiukun: has joined #ruby
[05:57:42] axl_: has joined #ruby
[05:58:28] yes`r: has joined #ruby
[05:59:56] rbowlby: has joined #ruby
[06:00:44] yfeldblum: has joined #ruby
[06:02:11] ChanServ: -bb havenwoood!*@* *!*@172.56.38.154
[06:03:51] foooobear: has joined #ruby
[06:04:54] nateberkopec: has joined #ruby
[06:05:42] mark2: has joined #ruby
[06:07:16] ThatsNotJack: has joined #ruby
[06:08:16] krz: has joined #ruby
[06:08:48] ESpiney__: has joined #ruby
[06:09:52] bruno-: has joined #ruby
[06:10:07] neonalpine: has joined #ruby
[06:10:19] lxsameer: has joined #ruby
[06:12:27] RobertBirnie: has joined #ruby
[06:13:23] ramfjord: has joined #ruby
[06:16:23] A124: has joined #ruby
[06:17:10] h99h9h88: has joined #ruby
[06:17:30] yes`r: has joined #ruby
[06:17:56] roxtrongo: has joined #ruby
[06:19:26] yfeldblum: has joined #ruby
[06:22:18] slawrence00: has joined #ruby
[06:23:30] chrissonar: has joined #ruby
[06:25:11] mghaig: has joined #ruby
[06:28:22] dhjondoh: has joined #ruby
[06:29:11] krz: has joined #ruby
[06:29:32] mhib: has joined #ruby
[06:30:04] DoubleMalt: has joined #ruby
[06:31:14] doll: has joined #ruby
[06:31:34] doll: @radar are you around?
[06:31:44] Radar: doll: Yes, but about to leave work
[06:32:01] Radar: doll: it's likely that there's someone else who can help you here
[06:35:01] doll: does any one know how to use activerecord to return a list of products for which the quantity in the stock is less than min_stock?
[06:35:32] yfeldblum: has joined #ruby
[06:37:42] doll: nm i got it
[06:37:44] tubuliferous_: has joined #ruby
[06:37:53] simplyianm: has joined #ruby
[06:37:54] Tricon: has joined #ruby
[06:38:02] sinkensabe: has joined #ruby
[06:44:03] Arkon: has joined #ruby
[06:44:27] codecop: has joined #ruby
[06:45:38] vdamewood: has joined #ruby
[06:47:57] thesquidbits: has joined #ruby
[06:48:41] jas02: has joined #ruby
[06:50:50] stannard: has joined #ruby
[06:51:32] abucha: has joined #ruby
[06:52:04] yardenbar: has joined #ruby
[06:55:21] roxtrongo: has joined #ruby
[06:56:33] astrobunny: has joined #ruby
[06:56:43] thesquidbits: has joined #ruby
[06:58:47] axl_: has joined #ruby
[06:59:29] trosborn: has joined #ruby
[06:59:56] ReK2: has joined #ruby
[06:59:56] ReK2: has joined #ruby
[07:00:15] nateberkopec: has joined #ruby
[07:00:29] rbowlby: has joined #ruby
[07:00:35] Oatmeal: has joined #ruby
[07:01:42] devbug: has joined #ruby
[07:03:20] ruurd: has joined #ruby
[07:03:53] qiukun: has joined #ruby
[07:05:28] Oatmeal: has joined #ruby
[07:06:17] thang: has joined #ruby
[07:10:05] sinkensabe: has joined #ruby
[07:10:52] aganov: has joined #ruby
[07:10:54] neonalpine: has joined #ruby
[07:13:15] helpa-bot: has joined #ruby
[07:13:58] akkad: has joined #ruby
[07:15:16] helpa-bot: has joined #ruby
[07:15:21] bafbomb: has joined #ruby
[07:15:39] Puffball: has joined #ruby
[07:15:42] pwnd_nsfw: has joined #ruby
[07:16:22] ReK2GnULinuX: has joined #ruby
[07:17:00] wlanboy: has joined #ruby
[07:17:17] helpa: has joined #ruby
[07:17:21] Muz: has joined #ruby
[07:17:22] psye: has joined #ruby
[07:17:24] sumark: has joined #ruby
[07:17:26] mbeasley: has joined #ruby
[07:17:33] tw1sted: has joined #ruby
[07:17:59] TTilus: has joined #ruby
[07:18:15] thesquidbits: has joined #ruby
[07:18:21] Pupp3tm4st3r: has joined #ruby
[07:18:34] konopka: has joined #ruby
[07:18:39] psye: has joined #ruby
[07:18:44] baweaver: has joined #ruby
[07:18:54] varesa: has joined #ruby
[07:19:10] psye: has joined #ruby
[07:19:17] segy: has joined #ruby
[07:19:48] Radar: has joined #ruby
[07:19:56] darkhex: has joined #ruby
[07:20:03] lemur: has joined #ruby
[07:20:13] Pupp3tm4_: has joined #ruby
[07:21:35] Brando753: has joined #ruby
[07:22:10] roxtrongo: has joined #ruby
[07:22:40] bmalum: has joined #ruby
[07:24:16] tmtwd: has joined #ruby
[07:26:05] Stan: has joined #ruby
[07:28:55] djbkd: has joined #ruby
[07:29:46] x-light: has joined #ruby
[07:30:49] Xeago: has joined #ruby
[07:30:53] simplyianm: has joined #ruby
[07:30:55] sdwrage: has joined #ruby
[07:31:58] h99h9h88: has joined #ruby
[07:33:24] cfjk: has joined #ruby
[07:34:47] Oatmeal: has joined #ruby
[07:34:49] blackmes1: has joined #ruby
[07:35:57] dionysus69: has joined #ruby
[07:38:50] Sam0984328719874: has joined #ruby
[07:42:00] Arkon: has joined #ruby
[07:46:26] lubarch: has joined #ruby
[07:47:31] neanderslob: has joined #ruby
[07:47:56] lubarch: has joined #ruby
[07:48:37] simplyianm: has joined #ruby
[07:48:46] Xeago: has joined #ruby
[07:50:21] roxtrongo: has joined #ruby
[07:51:05] unknowns2k2: has joined #ruby
[07:51:56] ruurd: has joined #ruby
[07:52:14] adac: has joined #ruby
[07:53:09] lukaszes: has joined #ruby
[07:53:16] solars: has joined #ruby
[07:54:33] lubekpl: has joined #ruby
[07:55:00] Oatmeal: has joined #ruby
[07:55:10] moeabdol: has joined #ruby
[07:59:38] axl_: has joined #ruby
[07:59:58] User458764: has joined #ruby
[08:00:14] rgtk: has joined #ruby
[08:01:48] nateberkopec: has joined #ruby
[08:03:24] sjums: moin certainty
[08:03:45] sjums: or mojn, as my dialect would say it
[08:05:00] Arkon: has joined #ruby
[08:05:11] aufi: has joined #ruby
[08:06:09] ibouvousaime: has joined #ruby
[08:06:13] SCHAAP137: has joined #ruby
[08:06:14] brushbox: has joined #ruby
[08:06:30] teclator: has joined #ruby
[08:07:26] joonty: has joined #ruby
[08:08:52] spider-mario: has joined #ruby
[08:09:31] lubarch: has joined #ruby
[08:11:40] neonalpine: has joined #ruby
[08:12:59] mghaig: has joined #ruby
[08:14:54] Spami: has joined #ruby
[08:18:47] skweek: has joined #ruby
[08:19:12] Pupeno: has joined #ruby
[08:21:12] baweaver: has joined #ruby
[08:24:07] lubarch: has joined #ruby
[08:25:30] tkuchiki: has joined #ruby
[08:25:55] c0m0: has joined #ruby
[08:29:37] krz: has joined #ruby
[08:29:57] Kedare: has joined #ruby
[08:30:02] Xeago: has joined #ruby
[08:30:36] A124: has joined #ruby
[08:32:12] hakunin: has joined #ruby
[08:35:30] blackmes1: has joined #ruby
[08:39:21] symm-: has joined #ruby
[08:40:51] psye: has joined #ruby
[08:42:14] marr: has joined #ruby
[08:43:57] troulouliou_div2: has joined #ruby
[08:44:11] dlitvak: has joined #ruby
[08:45:11] camilasan: has joined #ruby
[08:46:08] darkhex: has joined #ruby
[08:46:35] bruno-: has joined #ruby
[08:49:49] TomyWork: has joined #ruby
[08:50:55] Oli`: has joined #ruby
[08:51:13] blaxter: has joined #ruby
[08:51:44] vigintas: has joined #ruby
[08:52:07] vigintas: has joined #ruby
[08:54:34] lubarch: has joined #ruby
[08:55:27] Hounddog: has joined #ruby
[08:57:26] colegatron: has joined #ruby
[08:57:32] colegatron_origi: has joined #ruby
[08:57:55] Emmanuel_Chanel: has joined #ruby
[08:58:12] arne: has joined #ruby
[09:00:22] axl_: has joined #ruby
[09:00:34] mikecmpbll: has joined #ruby
[09:01:47] User458764: has joined #ruby
[09:01:56] ruurd: has joined #ruby
[09:02:43] nateberkopec: has joined #ruby
[09:03:00] Zackio: has joined #ruby
[09:03:07] tlarevo: has joined #ruby
[09:03:12] matp: has joined #ruby
[09:03:32] tlarevo: has left #ruby: ()
[09:03:42] lubekpl: has joined #ruby
[09:04:00] abucha_: has joined #ruby
[09:05:09] platzhirsch: has joined #ruby
[09:05:42] brushbox: has joined #ruby
[09:08:49] blackmes1: has joined #ruby
[09:09:14] teclator: has joined #ruby
[09:09:24] cammer: has joined #ruby
[09:09:42] astrobunny: has joined #ruby
[09:09:49] cammer: has left #ruby: ()
[09:10:44] karapetyan: has joined #ruby
[09:11:16] tomphp: has joined #ruby
[09:12:36] neonalpine: has joined #ruby
[09:12:39] bonemind: has joined #ruby
[09:12:59] mattwildig: has joined #ruby
[09:13:32] rdark: has joined #ruby
[09:13:59] astrobunny: has joined #ruby
[09:14:02] nfk|laptop: has joined #ruby
[09:15:30] sanjayu: has joined #ruby
[09:15:50] tulak: has joined #ruby
[09:16:20] blaxter: has joined #ruby
[09:18:03] scmx: has joined #ruby
[09:18:11] arne: yorickpeterse, hello!
[09:18:50] tulak_: has joined #ruby
[09:23:01] ramfjord: has joined #ruby
[09:23:07] baweaver: has joined #ruby
[09:23:25] colegatron: has joined #ruby
[09:23:25] colegatron_origi: has joined #ruby
[09:25:26] matti: has joined #ruby
[09:30:01] DEA7TH: has joined #ruby
[09:30:49] linduxed: has joined #ruby
[09:31:12] leafybas_: has joined #ruby
[09:31:32] htmldrum: has joined #ruby
[09:33:06] leafybas_: has joined #ruby
[09:34:16] Mon_Ouie: has joined #ruby
[09:36:28] trosborn: has joined #ruby
[09:38:35] sdwrage: has joined #ruby
[09:41:10] kerunaru: has joined #ruby
[09:42:22] dlitvak: has joined #ruby
[09:42:35] ibouvousaime: has joined #ruby
[09:43:41] roxtrongo: has joined #ruby
[09:43:54] User458764: has joined #ruby
[09:45:38] karapetyan: has joined #ruby
[09:45:59] solocshaw: has joined #ruby
[09:46:17] voodo: has joined #ruby
[09:46:23] pri: has joined #ruby
[09:47:58] dlitvak: has joined #ruby
[09:48:40] pri: has left #ruby: ()
[09:54:19] karapetyan: has joined #ruby
[09:55:28] fargot: has joined #ruby
[09:55:28] ChanServ: +b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196
[09:55:28] ChanServ: ChanServ kicked fargot: http://ruby-community.com/pages/user_rules#rule_2_10
[09:57:31] TPBallbag: has joined #ruby
[09:58:02] rodfersou: has joined #ruby
[09:58:27] nickjj: has joined #ruby
[09:58:50] sdwrage: has joined #ruby
[09:59:04] dlitvak: has joined #ruby
[10:01:07] axl_: has joined #ruby
[10:01:17] Spami: has joined #ruby
[10:01:32] karapetyan: has joined #ruby
[10:02:03] bruno-: has joined #ruby
[10:03:22] nateberkopec: has joined #ruby
[10:04:56] linocisco: has joined #ruby
[10:06:01] linocisco: what is ruby most for?
[10:06:08] linocisco: what is ruby most used for?
[10:07:28] Papierkorb: linocisco: web development (according to some statistics I read months ago), general tooling
[10:09:05] nanoz: has joined #ruby
[10:09:43] Hounddog: has joined #ruby
[10:10:41] sameerynho: has joined #ruby
[10:12:15] baweaver: has joined #ruby
[10:12:40] linocisco: Papierkorb, I am searching google for "how to build your own db driven website using ruby" but it shows only rails learning
[10:12:43] Hounddog: has joined #ruby
[10:12:56] Papierkorb: yep. what's the issue?
[10:13:11] Papierkorb: Rails, or Ruby on Rails, is the most popular web framework with ruby.
[10:13:27] benlovell: has joined #ruby
[10:13:34] gregf_: has joined #ruby
[10:13:38] linocisco: Papierkorb, i want to learn ruby to interact with db. like creating own inventory software using one powerful db. not to use rails
[10:13:53] Papierkorb: Why NOT rails?
[10:14:16] Papierkorb: There are other frameworks, but rails gets the job done in general
[10:14:41] linocisco: Papierkorb, it is just framework already written.
[10:14:43] abucha: has joined #ruby
[10:15:14] arne: linocisco, rails is a great framework to get shit done in short amount of time, there are plenty of alternatives to create stuff with ruby, im using webmachine right now ( which is a webserver written in ruby ), and sequel to speak to a sql database
[10:15:17] linocisco: Papierkorb, the reason why I am learning ruby is as prerequisite to learn rails
[10:15:32] DoubleMalt: has joined #ruby
[10:15:37] arne: rails is easy and quickly teaches you ruby
[10:15:39] linocisco: Papierkorb, arne but I dont know to which level of ruby I should learn
[10:15:55] lubekpl: has joined #ruby
[10:15:59] gregf_: start with level 1?
[10:15:59] ruurd: has joined #ruby
[10:16:05] linocisco: arne, most in rails community said u need to learn ruby before kissing rails otherwise it is more complicated
[10:16:08] linocisco: what is truth?
[10:16:28] FernandoBasso: has joined #ruby
[10:16:31] Papierkorb: linocisco: Use rails. Learn ruby along the way. Your first project *will* suck, no matter what you do. There's no "oh you learn this and then you're set and write perfect apps right away"
[10:16:51] arne: well, i learned ruby because i loved the language, never liked rails though, loving it now
[10:17:02] Papierkorb: linocisco: is ruby your first programming language?
[10:17:22] im0b: has joined #ruby
[10:17:56] linocisco: Papierkorb, yes. and no. I learned some old languages C,C++, just like kid hello world program. no db driven. and I forgot them and their syntax as it was over a decade
[10:18:27] lubarch: has joined #ruby
[10:18:32] Papierkorb: linocisco: Start with rails. Doing everything on your own is too frustrating for most ppl
[10:18:45] Papierkorb: linocisco: Check out the guides, they're well written and teach you quite a lot
[10:19:13] Papierkorb: linocisco: The beginner guide of rails builds a web blog, with a PostgreSQL as DB, and everything nice to get you up to speed for the start.
[10:19:33] Papierkorb: If you're having issues then, come in here or in #RubyOnRails and just ask.
[10:20:11] Papierkorb: have to go now though
[10:20:38] linocisco: Papierkorb, ok.
[10:20:47] nfk|laptop: has joined #ruby
[10:21:18] linocisco: if I go to #rubyonrails, they keep saying man, start learning ruby before touching rails
[10:22:06] bubbys: has joined #ruby
[10:22:10] gregf_: linocisco: rails is a web framework. a lot of things done in rails are quite different from ruby. you 'should' start with ruby, then use a microframework like sinatra(to understand the basic terminologies used in HTTP). thereafter look at rails
[10:22:40] gregf_: tho rails is not at all complicated. but yeah, there only helpers for everything which makes your life easier ;)
[10:22:47] Peg-leg: has joined #ruby
[10:23:54] baweaver: has joined #ruby
[10:24:19] Axsuul: has joined #ruby
[10:24:21] gregf_: we live in a world where everyone wants everything instantly. unfortunately theres no shortcuts. so begin with ruby. rubykoans or whatever
[10:26:12] bnizzle: has joined #ruby
[10:28:02] exadeci: has joined #ruby
[10:28:13] lxsameer_: has joined #ruby
[10:32:25] skade: has joined #ruby
[10:34:06] beauby: has joined #ruby
[10:40:43] apeiros: ruby 2.3 preview1 out, nice things coming: https://github.com/ruby/ruby/blob/trunk/NEWS
[10:42:11] ruurd: has joined #ruby
[10:43:02] linocisco: ruby latestversino is out, but to install on ubuntu, using apt-get install ruby wont catch latest version ever
[10:43:32] linocisco: but it solved all dependencies using apt
[10:43:53] akem: has joined #ruby
[10:45:38] _blizzy_: has joined #ruby
[10:46:26] ljarvis: oh dear, matz decided on &. instead of .?
[10:46:57] apeiros: I assume because of foo && foo.bar being the current pattern
[10:47:05] bruno-: has joined #ruby
[10:47:35] doddok: has joined #ruby
[10:47:49] ljarvis: can't wait to see that awful syntax litering ruby code
[10:47:59] Hounddog: has joined #ruby
[10:48:47] aufi_: has joined #ruby
[10:49:21] lukaszes: has joined #ruby
[10:50:01] ljarvis: also Array/Hash #dig
[10:50:30] arne: wow, that is ugly.
[10:50:53] arne: reminds me of the first time trying to understand c pointer syntax
[10:51:04] ljarvis: no&.freaking&.way.dig(:wat)
[10:51:49] Hounddog: has joined #ruby
[10:51:58] arne: well, i can't think of a case where i need that, thank god
[10:52:07] apeiros: ljarvis: while foo&.bar&.baz looks ugly, it's IMO a lot more readable than both, foo && foo.bar && foo.bar.baz, and foo.try!(:bar).try!(:baz)
[10:52:31] ljarvis: I disagree that it's more readable than the former
[10:52:47] apeiros: then we disagree :)
[10:52:49] user1138_: has joined #ruby
[10:52:57] apeiros: nullobject pattern fan? :D
[10:53:00] anisha: has joined #ruby
[10:53:01] ldnunes: has joined #ruby
[10:53:03] apeiros: because then it'd be foo.bar.baz
[10:53:13] aufi: has joined #ruby
[10:53:26] apeiros: it's sad that we can't inherit from NilClass
[10:54:04] roxtrongo: has joined #ruby
[10:54:09] ljarvis: heh yeah, in general i feel like too many method chains is a bit of a smell anyway
[10:54:23] trosborn: has joined #ruby
[10:54:50] ddv: stop overengineering, keep it simple silly architect astronauts
[10:55:22] mghaig: has joined #ruby
[10:56:10] waka: has joined #ruby
[10:59:39] ruurd: has joined #ruby
[10:59:41] waka: has joined #ruby
[11:01:20] lukaszes: has joined #ruby
[11:01:45] axl_: has joined #ruby
[11:02:25] alexherbo2: has joined #ruby
[11:02:40] dreinull75: how do I dynamically subclass a class from another module? what do I put in the parens? http://fpaste.org/289546/14473260/
[11:03:04] ljarvis: uh, klass?
[11:03:35] dreinull75: ljarvis well, that would just give me the class name, won't tell ruby where it comes from, right?
[11:03:57] ljarvis: ok so use const_get again?
[11:04:13] dreinull75: Since it's OtherModule::klass
[11:04:38] dreinull75: ljarvis that always just returns the class symbols.
[11:04:45] ljarvis: I would use const_get once with map and then reject not classes
[11:05:03] ljarvis: im confused, why would you have a class symbol if you use const_get?
[11:05:22] ljarvis: you would have the Class instance
[11:05:28] ddv: dreinull75: why are even doing this?
[11:06:13] dreinull75: ddv I'm building an API with a core module and an extended module that allows some tolerance towards errors
[11:06:32] ddv: dreinull75: Ok
[11:06:34] dreinull75: the extended module does exactly the same with some added sugar.
[11:07:20] dreinull75: so instead of writing all classes over and over again with a single include I could as well do this dynamically.
[11:08:52] ljarvis: https://eval.in/467592
[11:10:11] ljarvis: in fact, .grep(Class) would be nicer
[11:12:54] dreinull75: ljarvis: oh, misunderstanding on my part. The mapping already returns classes. I assumed they were just symbols.
[11:13:00] moeabdol: has joined #ruby
[11:13:08] dreinull75: of course, the the whole thing works just fine.
[11:13:25] dreinull75: a problem of representation of values in ruby/irb
[11:13:56] mattwildig: has joined #ruby
[11:13:58] ibouvousaime: has joined #ruby
[11:14:52] neonalpine: has joined #ruby
[11:15:43] nateberkopec: has joined #ruby
[11:17:05] MasterNayru: has joined #ruby
[11:17:46] senayar: has joined #ruby
[11:19:16] blackmes1: has joined #ruby
[11:19:18] stamina: has joined #ruby
[11:19:34] waka: has joined #ruby
[11:20:24] rickmasta: has joined #ruby
[11:20:31] DEA7TH: has joined #ruby
[11:23:11] htmldrum: has joined #ruby
[11:24:37] baweaver: has joined #ruby
[11:24:52] qiukun: has joined #ruby
[11:26:19] waka: has joined #ruby
[11:28:05] FernandoBasso1: has joined #ruby
[11:30:10] abucha_: has joined #ruby
[11:32:33] ruurd: has joined #ruby
[11:35:22] tkuchiki: has joined #ruby
[11:36:14] ibouvousaime: has joined #ruby
[11:37:59] rgtk: has joined #ruby
[11:38:39] leafybas_: has joined #ruby
[11:39:35] antgel: has joined #ruby
[11:41:45] rikkipitt: has joined #ruby
[11:43:09] sepp2k: has joined #ruby
[11:48:30] MasterNayru: has joined #ruby
[11:49:20] Xeago: has joined #ruby
[11:53:47] prestorium: has joined #ruby
[11:54:23] dionysus69: has joined #ruby
[11:54:56] brushbox: has joined #ruby
[11:55:29] blackmes1: has joined #ruby
[11:59:20] ruurd: has joined #ruby
[12:00:22] suchness: has joined #ruby
[12:01:14] Mon_Ouie: has joined #ruby
[12:01:30] clauswitt: has joined #ruby
[12:01:47] blandflakes: has joined #ruby
[12:02:19] mbeasley: has left #ruby: ("WeeChat 0.4.2")
[12:02:21] purplexed-: has joined #ruby
[12:02:25] axl_: has joined #ruby
[12:03:11] ruurd: has joined #ruby
[12:03:15] leafybas_: has joined #ruby
[12:04:59] jdawgaz: has joined #ruby
[12:05:57] platzhirsch: I have a note here, which I cannot remember fully... does that make sense? "Understanding Rails' subclass method, re-implement it with .grep or .select"
[12:06:01] DEA7TH: has joined #ruby
[12:07:29] apeiros: platzhirsch: maybe you wanted to reimplement Class#subclasses from rails?
[12:08:00] platzhirsch: yes I think so, because it was very inefficient maybe
[12:08:38] chipotle: has joined #ruby
[12:08:46] skade: has joined #ruby
[12:09:01] platzhirsch: must be Rails, not Ruby
[12:09:19] platzhirsch: oh yes, it goes over the whole ObjectSpace
[12:09:26] syath: has joined #ruby
[12:09:43] platzhirsch: well thanks apeiros! I'll add that to my note
[12:09:48] platzhirsch: and maybe in 2 years I'll do it
[12:10:03] tvw: has joined #ruby
[12:10:58] Xeago: has joined #ruby
[12:11:45] platzhirsch: no reason for insults here
[12:12:30] FernandoBasso: has joined #ruby
[12:13:31] shevy: platzhirsch I sometimes have entries in my todo files which don't make any sense to me. And I wrote them myself... since then I am trying to put a lot more details into my todo sections
[12:15:58] neonalpine: has joined #ruby
[12:17:55] s00pcan: has joined #ruby
[12:20:21] apofis: has joined #ruby
[12:20:47] Jackneill: has joined #ruby
[12:21:44] piotrj: has joined #ruby
[12:24:26] AlexRussia: has joined #ruby
[12:25:25] baweaver: has joined #ruby
[12:26:24] sdothum: has joined #ruby
[12:28:13] _stu_: has joined #ruby
[12:28:42] dionysus69: has joined #ruby
[12:28:50] ruurd: has joined #ruby
[12:29:07] guardian: hello, while I can program in Ruby I would like to brush my skills up about idiomatic Ruby and modern Ruby. Could someone point me to a good and recent book please?
[12:30:42] norc: has joined #ruby
[12:31:12] norc: Ox0dea: I figured out where the putnil instruction comes from. :)
[12:32:15] SCHAAP137: has joined #ruby
[12:33:24] norc: modifier_if and modifier_unless produce NULL nodes in the AST for the (missing) else statement so that it puts a nil ontop of the stack
[12:33:32] norc: >> a = (1 if false)
[12:33:33] ruboto: norc # => nil (https://eval.in/467692)
[12:33:36] norc: Basically to allow for this.
[12:36:23] norc: And the reason why my simple if and unless snippets produced different bytecode is a missing optimization for unless. Ill submit a patch for that, it was just overlooked by nobu.
[12:37:12] krz: has joined #ruby
[12:37:34] dlitvak: has joined #ruby
[12:39:41] tlarevo_: has joined #ruby
[12:42:15] jschoolcraft: has joined #ruby
[12:42:36] tlarevo_: has left #ruby: ()
[12:44:17] dlitvak: has joined #ruby
[12:48:02] User458764: has joined #ruby
[12:50:31] daivyk: has joined #ruby
[12:51:12] karapetyan: has joined #ruby
[12:52:09] freerobby: has joined #ruby
[12:53:28] scmx: has joined #ruby
[12:54:18] kobain: has joined #ruby
[12:56:46] nateberkopec: has joined #ruby
[12:56:55] Icey: has joined #ruby
[13:00:50] decoponio: has joined #ruby
[13:00:59] northfurr: has joined #ruby
[13:01:28] zotherstupidguy: has joined #ruby
[13:01:29] tulak: has joined #ruby
[13:01:56] tkuchiki: has joined #ruby
[13:02:22] felixr: has joined #ruby
[13:02:42] synthroid: has joined #ruby
[13:03:21] ibouvousaime: has joined #ruby
[13:03:25] axl_: has joined #ruby
[13:03:40] Scymex: has joined #ruby
[13:03:43] dkam_: has joined #ruby
[13:04:22] Xeago: has joined #ruby
[13:04:46] NeverDie: has joined #ruby
[13:07:19] mostlybadfly: has joined #ruby
[13:07:24] tkuchiki: has joined #ruby
[13:08:24] tkuchiki: has joined #ruby
[13:09:15] yxhuvud: has joined #ruby
[13:09:40] sinkensabe: has joined #ruby
[13:10:14] tkuchiki_: has joined #ruby
[13:10:26] kimegede: has joined #ruby
[13:10:58] k3asd`: has joined #ruby
[13:12:59] jackjackdripper: has joined #ruby
[13:13:22] beauby: has joined #ruby
[13:13:55] sts_: has joined #ruby
[13:14:50] mattwildig: has joined #ruby
[13:16:43] neonalpine: has joined #ruby
[13:17:57] lukaszes: has joined #ruby
[13:21:36] diegoaguilar: has joined #ruby
[13:23:27] lxsameer: has joined #ruby
[13:23:30] joonty: has joined #ruby
[13:23:35] User458764: has joined #ruby
[13:24:04] rgtk: has joined #ruby
[13:26:12] baweaver: has joined #ruby
[13:27:02] skweek: has joined #ruby
[13:29:03] tulak: has joined #ruby
[13:29:31] atomical: has joined #ruby
[13:31:03] Xeago: has joined #ruby
[13:31:34] tkuchiki: has joined #ruby
[13:33:03] yqt: has joined #ruby
[13:35:45] blackmes1: has joined #ruby
[13:37:31] beast: has joined #ruby
[13:39:27] davedev24: has joined #ruby
[13:41:55] Zackio: has joined #ruby
[13:42:19] Kendos-Kenlen: has joined #ruby
[13:44:27] lukaszes: has joined #ruby
[13:44:33] mattwildig: has joined #ruby
[13:45:14] jhack: has joined #ruby
[13:45:16] jhack: has left #ruby: ()
[13:45:56] yeticry: has joined #ruby
[13:46:58] apeiros: anybody got a list of reasons why mssql is bad?
[13:47:41] benlovell: has joined #ruby
[13:47:46] bruce_lee: has joined #ruby
[13:48:04] jschoolcraft: MS SQL or MySQL?
[13:49:20] goodcodeguy: has joined #ruby
[13:49:30] urbanmonk: has joined #ruby
[13:49:32] uri: has joined #ruby
[13:49:35] baweaver: has joined #ruby
[13:51:24] dreinull75: I'm still struggling to dynamically create subclasses. Here's code and comment: https://eval.in/private/68b6418acdec0b
[13:51:32] trosborn: has joined #ruby
[13:51:42] apeiros: jschoolcraft: MS SQL
[13:51:46] apeiros: luckily nobody here wants mysql
[13:52:03] dreinull75: apeiros as long as theres MariaDB :)
[13:52:22] umgrosscol: has joined #ruby
[13:52:25] apeiros: dreinull75: name= twice - pointless. you probably wanted const_set
[13:52:58] apeiros: i.e., name = "Foo"; name = Class.new # does NOT create a constant named Foo
[13:53:58] dreinull75: apeiros that troubled me before too
[13:55:49] jschoolcraft: apeiros why do you need reasons? Using with ruby/rails can be inconvenient, way more time is spent on MySQL and postgresql support in our community. Calling stored procedures with output parameters can be challenging, but I think that was the biggest problem. That and threading issues with the driver we were using and unicorn.
[13:56:11] synthroid: has joined #ruby
[13:56:16] leafybas_: has joined #ruby
[13:57:09] lukaszes: has joined #ruby
[13:58:44] dreinull75: apeiros, thank you, working now! https://eval.in/private/75c7f26e5f9c65
[13:58:47] sgambino: has joined #ruby
[13:58:55] freerobby: has joined #ruby
[13:59:35] leafybas_: has joined #ruby
[14:00:53] piotrj: has joined #ruby
[14:01:47] piotrj: has joined #ruby
[14:01:49] dreinull75: wow, this is cool stuff. I'm metaprogramming myself a grave.
[14:03:05] dmitch: has joined #ruby
[14:04:13] axl_: has joined #ruby
[14:04:14] norc: Mmm, for some trivial pull request on ruby trunk should I still submit a ticket for feedback on bugs.ruby-lang.org?
[14:04:38] elshaka: has joined #ruby
[14:04:46] senayar: has joined #ruby
[14:05:22] sankaber: has joined #ruby
[14:06:12] apeiros: jschoolcraft: convincing superiors that pg is the way to go and ms is a bad idea
[14:07:25] dorei: has joined #ruby
[14:07:31] norc: apeiros: I found that convincing superiors to dish out bills with 5 digits for Oracle is far easier than convincing them PG is superior to MSSQL.
[14:07:43] TomPeed: has joined #ruby
[14:07:55] apeiros: norc: that argument I'm already making
[14:07:57] jschoolcraft: For a lot of people it's about being able to pay for support, whatever that means
[14:08:12] apeiros: you can pay for support for all kinds of databases
[14:08:17] norc: jschoolcraft: Support you get for all databases.
[14:08:19] malconis: has joined #ruby
[14:08:54] jschoolcraft: alright, well good luck with your quest
[14:09:12] malconis: has joined #ruby
[14:10:17] symm-: has joined #ruby
[14:10:28] apeiros: jschoolcraft: thanks. I think the "way more time spent on pg in our com" is a good one and can essentially be extended. going mssql has a whole rat's tail of things dragging behind it. i.e. you'll essentially be pressed to go full ms on all accounts, not just db.
[14:10:53] nertzy: has joined #ruby
[14:11:05] ESpiney__: has joined #ruby
[14:11:13] norc: And if you go down the Oracle route, be prepared to spend hundreds of thousands of dollars in the long run. :-)
[14:11:28] cdg: has joined #ruby
[14:11:32] apeiros: norc: oracle is what we currently have
[14:11:46] apeiros: and I don't even want to know how much money we pushed down their throat.
[14:11:57] norc: "Hey, can we integrate our Oracle databases into your monitoring tool" - "Sure, just use *this* connector" - "Wait... that says - Extra License Required -"
[14:12:01] apeiros: in the last 10y, that's probably an 8 digit figure.
[14:12:02] jschoolcraft: apeiros That's how it was with my client. Somehow someone convinced them they needed an API, and it should be written in ruby. They did great sales job but sucked at implementation and I was brought in to clean up the mess. They're a .NET shop, had ASP.NET and MVC experience and were MS SQL. Everything was in stored procedures. I told the client many times to just scrap the ruby project and do it in .NET
[14:12:06] norc: apeiros: Indeed.
[14:12:16] norc: apeiros: I mean its not a bad product.
[14:12:25] apeiros: norc: it's overpriced for our needs.
[14:12:42] apeiros: we are below terabytes of data.
[14:12:49] apeiros: probably way below.
[14:13:14] piotrj: has joined #ruby
[14:13:22] apeiros: and we need none of the more advanced features of oracle (and even less want to pay for them)
[14:13:33] norc: apeiros: The annual fees alone are enough to hire a database specialist directly - giving you actual onsite experience. However, for us its easier to spend 6 digit figures on tech, than it is to spend 5 digit figures on personel.
[14:13:44] tulak: has joined #ruby
[14:13:47] ddv: yeah stored procs in mssql and rails don't go well together
[14:14:15] norc: ddv: Rails does not go well together with most RDMBS specific features. ;-)
[14:14:27] dorei: norc: probably the 6digit figures endup as capex on the books, will the 5digit figures endup as opex
[14:14:36] dorei: s/will/while
[14:14:41] ddv: I solved it by creating mssql views with insert, update triggers to make it sane for rails conventions
[14:14:45] norc: dorei: Exactly.
[14:14:47] wjimenez5271: has joined #ruby
[14:15:15] apeiros: jschoolcraft: opposite for us. all in-house code from the last 8y is ruby & rails. all stuff before is a mess of different things nobody maintains (some perl, some vb, some plsql, some java, some flash)
[14:15:40] jschoolcraft: apeiros so why the push to move to MS?
[14:15:52] jschoolcraft: new leadership flexing the muscles?
[14:15:55] apeiros: and the old stuff is supposed to be dropped/replaced. so my argument is to keep oracle around for the old stuff but downsize it (which means we'll pay less) and have all new stuff on pg.
[14:16:06] apeiros: the push to ms comes from our parent company
[14:16:07] griffindy: has joined #ruby
[14:16:29] jschoolcraft: apeiros some BS like we already have all these licenses, so just use it?
[14:16:32] apeiros: and for them it might even make sense (I doubt it, but I lack insight). but for us it'd just mean expenses for no gain.
[14:16:57] apeiros: jschoolcraft: not even that. they're replacing their own infrastructure too. personally I think there's money flowing where it shouldn't.
[14:16:58] ekinmur: has joined #ruby
[14:16:59] norc: Anyone here with pull request experience on ruby trunk?
[14:17:18] apeiros: ah well, I guess it's time to move this to #ruby-offtopic. sorry :)
[14:18:00] norc: Oh feel free to keep on chatting I dont mind. ;-)
[14:18:20] benlovell: has joined #ruby
[14:18:42] dhjondoh: has joined #ruby
[14:18:55] poguez_: has joined #ruby
[14:19:13] apeiros: norc: just join #ruby-offtopic - it's a great place anyway ;-D
[14:19:59] norc: Im sure it is. Filled with Japanese symbols, strange rules - and an ancient tradition of blood rituals Im sure.
[14:21:10] Guest53: has joined #ruby
[14:21:37] maloik: has joined #ruby
[14:22:14] moeabdol: has joined #ruby
[14:22:31] artmann: has joined #ruby
[14:23:37] maloik: so I'm testing the behavior of a rake task, and the first time I invoke it (Rake::Task["namespace:task"].invoke) it's returning an array with a proc in it. The second time around though it's returning nil
[14:23:42] maloik: that's not normal behavior is it? oO
[14:25:00] moeabdol: has joined #ruby
[14:25:45] maloik: a first go at getting rid of weirdness in our rake task tests was removing Foo::Application.load_tasks in a number of places (this is rails behavior though :/), which appeared to simply add to an array of rails tasks rather than reload, or keep them unique... so each time we loaded them would add a proc to the result of the task#invoke
[14:26:04] apeiros: maloik: uh, you are aware that manually invoking tasks like that is an anti-pattern?
[14:26:12] ibouvousaime: has joined #ruby
[14:26:45] apeiros: it's either an indicator of not understanding/properly using the dependency mechanism, and/or an indicator of having stuff as tasks which should be library functions
[14:26:59] baweaver: has joined #ruby
[14:27:10] maloik: interesting
[14:27:48] maloik: it's basically invoked as a cron job, nudging people to confirm their accounts
[14:28:22] prateekp: has joined #ruby
[14:28:34] beauby: has joined #ruby
[14:28:47] prateekp: i am getting an openssl error while i am trying install ruby
[14:29:10] prateekp: https://gist.github.com/papriwal-prateek/4eea6a059248c4b2485a
[14:30:40] wprice: has joined #ruby
[14:31:49] trosborn: has joined #ruby
[14:32:49] Encapsulation: has joined #ruby
[14:33:34] beauby: has joined #ruby
[14:34:17] The_Phoenix: has joined #ruby
[14:35:39] sjums: prateekp, are you sure you have the openssl-dev packages installed?
[14:35:51] evanjs: has joined #ruby
[14:36:44] sjums: likely goes under the name libssl-dev
[14:38:58] prateekp: yes i have done apt-get install libssl-dev
[14:39:27] sankaber: has joined #ruby
[14:40:46] norc: prateekp: How are you trying to install ruby?
[14:40:52] prateekp: using rbenv
[14:40:57] norc: Which version?
[14:41:22] prateekp: ruby-build 20151028
[14:42:07] prateekp: rbenv 0.4.0-174-g074161f
[14:42:27] norc: prateekp: Yeah Ive seen some other people having the same issue with that build.
[14:43:01] norc: prateekp: Just stick to a stable version like 2.2.3 :)
[14:43:32] havenwood: prateekp: What version of Ruby are you installing?
[14:43:52] yury__: has joined #ruby
[14:44:34] araujo: has joined #ruby
[14:44:38] neonalpine: has joined #ruby
[14:44:45] sepp2k: has joined #ruby
[14:44:50] norc: prateekp: You could give RUBY_CONFIGURE_OPTS=--with-openssl-dir=/where/ever a try
[14:45:08] norc: (Passing the correct directory)
[14:46:56] prateekp: i am unable to find ssl dir
[14:46:59] havenwood: prateekp: ruby-build actually ships with it's own openssl rather than using your package manager's. I'd suggest just building with ruby-install. You can even keep using rbenv as your switcher if you'd like: ruby-install --install-dir ~/.rbenv/versions/2.2.3 ruby 2.2.3
[14:47:14] havenwood: prateekp: Note: https://github.com/sstephenson/ruby-build/blob/master/share/ruby-build/2.2.3#L1
[14:48:23] rickmasta: has joined #ruby
[14:49:13] borkdude_: I have a question about Savon
[14:49:41] norc: borkdude_: Just ask away.
[14:49:44] neonalpine: has joined #ruby
[14:49:46] havenwood: Savon le Chat
[14:49:47] borkdude_: my cassettes aren't matching anymore because the XML tags in my body are closed differently (<foo/> instead of <foo></foo>). Can I configure to match this?
[14:49:48] norc: There is no need to state your intent to ask a question. ;-)
[14:49:56] momomomomo: has joined #ruby
[14:49:56] borkdude_: (sorry, was still typing)
[14:50:06] simplyianm: has joined #ruby
[14:50:29] borkdude_: sorry, my question is mixed up, I'll try again :)
[14:51:05] borkdude_: My VCR cassettes aren't matching anymore, because the XML in the request body is different: (<foo/> instead of <foo></foo>). Can I configure VCR to match this?
[14:52:09] griffindy: has joined #ruby
[14:52:11] davejlong: has joined #ruby
[14:52:26] elshaka: has joined #ruby
[14:53:02] Sou|cutter: borkdude_: cassettes are just yaml, you can edit them
[14:53:10] Sou|cutter: or you can delete them and generate them anew
[14:53:30] maikowblue: has joined #ruby
[14:53:30] babblebre: has joined #ruby
[14:53:35] borkdude_: Sou|cutter yes, I can edit them, but I'd rather configure this if it's possible.
[14:53:43] borkdude_: Sou|cutter new requests aren't possible unfortunatrly
[14:54:00] borkdude_: Maybe I could match the body with a regex?
[14:54:06] havenwood: borkdude_: Gyoku for example converts Hash keys ending in a slash to a self-closing tag: https://github.com/savonrb/gyoku#self-closing-tags
[14:54:07] Rodya_: has joined #ruby
[14:54:17] havenwood: borkdude_: But I dunno.
[14:54:40] tethra: has joined #ruby
[14:54:51] momomomomo: has joined #ruby
[14:54:51] B1n4r10: has joined #ruby
[14:55:38] melter: has joined #ruby
[14:56:57] sdwrage: has joined #ruby
[14:56:57] yury__: Hey, guys
[14:57:55] prateekp: havenwood: i got the same openssl error while installing using ruby-install
[14:57:59] yury__: it looks like the links here https://www.ruby-lang.org/en/news/2015/11/11/ruby-2-3-0-preview1-released/
[14:58:00] yury__: changelog and news lead to 404
[14:58:25] havenwood: prateekp: Other versions too or just 2.2.3? OS/distro?
[14:58:36] prateekp: i checked for 2.2.3
[14:58:53] prateekp: Linux e22e31ac6d22 4.0.3-boot2docker #1 SMP Wed May 13 20:54:49 UTC 2015 x86_64 GNU/Linux
[14:59:05] dlitvak: has joined #ruby
[15:00:15] gusTester: has joined #ruby
[15:00:22] griffindy: has joined #ruby
[15:00:24] JDiPierro: has joined #ruby
[15:00:26] mark5: has joined #ruby
[15:00:40] gusTester: has left #ruby: ()
[15:00:50] havenwood: yury__: That section hasn't been done yet! They'll exist when Christmas draws near.
[15:01:50] Guest53: has joined #ruby
[15:02:14] rippa: has joined #ruby
[15:02:21] agentmeerkat: has joined #ruby
[15:02:24] whippythellama: has joined #ruby
[15:02:27] tjohnson: has joined #ruby
[15:02:49] trosborn: has joined #ruby
[15:03:15] willharrison: has joined #ruby
[15:03:29] ItSANgo: has joined #ruby
[15:04:41] stannard: has joined #ruby
[15:04:45] shevy: yury__ the downloads work from https://ftp.ruby-lang.org/pub/ruby/2.3/ ?
[15:04:59] axl_: has joined #ruby
[15:06:46] Yzguy: has joined #ruby
[15:07:11] yury__: <shevy> yep
[15:07:22] rwilcox: has joined #ruby
[15:07:34] zeljkof: has joined #ruby
[15:07:49] _stu_: has joined #ruby
[15:07:54] havenwood: prateekp: Just curious but what's your openssl version?: openssl version
[15:08:16] prateekp: OpenSSL 1.0.2d 9 Jul 2015
[15:11:00] ekain: has joined #ruby
[15:11:09] havenwood: prateekp: 2.2.3 seems to be insisting on SSLv3. I think that's fixed on trunk. :O
[15:12:13] prateekp: i will check other versions then
[15:12:17] DiCablo: has joined #ruby
[15:12:20] karapetyan: has joined #ruby
[15:12:23] prateekp: may be 2.1.7
[15:12:46] havenwood: prateekp: ruby-install ruby 2.3.0-preview1 --sha256 42b9c9e1740a5abe2855d11803524370bd95744c8dcb0068572ed5c969ac7f0f
[15:13:21] prateekp: ok let me try this one
[15:13:29] dhollinger: has joined #ruby
[15:13:37] havenwood: prateekp: I didn't put the rbenv install location ^ if you care.
[15:14:17] NeverDie: has joined #ruby
[15:15:02] havenwood: prateekp: They no longer insist SSLv3. Could do a patch for 2.2.3 but I'm not sure how to work around it otherwise. Need coffee!
[15:15:16] prateekp: hmm it also failed
[15:15:18] prateekp: random.c: In function 'fill_random_bytes_syscall': random.c:537:16: error: '__NR_getrandom' undeclared (first use in this function)
[15:15:29] prateekp: with some other error
[15:15:30] havenwood: prateekp: funky
[15:15:36] symm-: has joined #ruby
[15:15:37] grill: has joined #ruby
[15:16:02] havenwood: prateekp: Might be good to check bugs and make a report: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
[15:16:38] havenwood: prateekp: https://bugs.ruby-lang.org/issues/11376
[15:16:49] sameerynho: has joined #ruby
[15:16:53] p0wn3d__: has joined #ruby
[15:17:16] havenwood: https://bugs.ruby-lang.org/issues/11366
[15:17:39] sankaber: has joined #ruby
[15:18:14] shevy: prateekp you use libressl?
[15:19:04] shevy: no, just wondered
[15:19:38] prateekp: are other people using 2.2.3 getting no problem
[15:19:57] prateekp: i think, because of some change in openssl, this thing is coming up
[15:20:04] prateekp: i might be wrong though
[15:20:31] prateekp: because 2.1.7 install also failed with same openssl error
[15:20:42] User458764: has joined #ruby
[15:20:51] shevy: you mean preview or regular 2.2.3?
[15:21:36] shevy: I am on regular 2.2.3 right now - ruby 2.2.3p173 (2015-08-18 revision 51636) [i686-linux]; I tried to compile the preview yesterday but the display during configure scared me too much; also I did not find any configure option for the frozen string which confused me further until the point where I chickened out
[15:21:55] shevy: I use openssl-1.0.2d fine with regular 2.2.3; no libressl
[15:22:24] dravine: has joined #ruby
[15:22:31] prateekp: and u installed using ruby-install?
[15:22:31] devoldmx: has joined #ruby
[15:22:44] prateekp: but i think it doesnt matter
[15:23:07] havenwood: prateekp: built himself so like a ruby-install
[15:24:04] prateekp: i am also having libssl-dev install
[15:24:13] prateekp: i dont know if this is needed or not
[15:25:04] kp666: has joined #ruby
[15:25:15] shevy: prateekp nah, I just compiled from the source but I guess that is equivalent to what ruby-install does
[15:25:30] shevy: libssl-dev I think is from openssl
[15:25:31] prateekp: hmm i agree
[15:25:48] shevy: what openssl version do you have on your system?
[15:26:11] prateekp: OpenSSL 1.0.2d 9 Jul 2015
[15:26:36] nfk|laptop: has joined #ruby
[15:27:35] prateekp: ossl_ssl.c:141:27: error: 'SSLv3_method' undeclared here (not in a function)
[15:27:42] prateekp: this error keeps coming
[15:27:46] baweaver: has joined #ruby
[15:28:14] kerunaru: has joined #ruby
[15:28:24] treehug88: has joined #ruby
[15:29:48] araujo: has joined #ruby
[15:29:59] shevy: no idea, I have the very same openssl version here and ruby compiled fine with openssl support
[15:30:27] prateekp: just 15 days i was able to install
[15:30:32] prateekp: 15 days back
[15:30:43] prateekp: and today when i do using the same docker image
[15:31:04] tkuchiki: has joined #ruby
[15:31:08] prateekp: i mean the same installation procedure
[15:32:00] Jardayn: has joined #ruby
[15:33:15] scmx: has joined #ruby
[15:33:17] neonalpine: has joined #ruby
[15:33:31] teclator: has joined #ruby
[15:33:49] dlitvak_: has joined #ruby
[15:34:18] roxtrongo: has joined #ruby
[15:37:20] h99h9h88: has joined #ruby
[15:38:04] diegoaguilar: has joined #ruby
[15:38:51] pimpin: has joined #ruby
[15:39:18] grilled-cheese: has joined #ruby
[15:40:57] TPBallbag: has joined #ruby
[15:41:35] shevy: heisenbugs
[15:42:09] shevy: this was one reason why reproducible builds became more popular a while ago: https://wiki.debian.org/ReproducibleBuilds
[15:42:23] shevy: distributions such as NixOS do that more thoroughly
[15:43:33] baweaver: has joined #ruby
[15:44:43] mary5030: has joined #ruby
[15:45:25] VladGh: has joined #ruby
[15:45:37] karapetyan: has joined #ruby
[15:46:41] tulak: has joined #ruby
[15:47:27] lukaszes: has joined #ruby
[15:47:30] dopie: has joined #ruby
[15:47:44] tulak: has joined #ruby
[15:48:45] Xeago: has joined #ruby
[15:50:22] mrmargolis: has joined #ruby
[15:52:02] shevy: the only trivial explanation I could have would be if you'd have changed your gcc version prateekp, since that is a common error I recall having had when trying to compile different things across (e. g. gcc 4.9.x versus the 5.x gcc family)
[15:52:37] rgtk: has joined #ruby
[15:53:03] prateekp: my gcc version - gcc (Debian 5.2.1-23) 5.2.1 20151028
[15:53:06] prateekp: is that ok?
[15:53:25] slawrence00: has joined #ruby
[15:53:53] shevy: I am on GCC 5.2.0
[15:54:12] shevy: http://ftp.gnu.org/gnu/gcc/?C=M;O=D
[15:54:18] shevy: guess it is some modified gcc variant you have
[15:55:16] dlitvak: has joined #ruby
[15:55:28] mary5030: has joined #ruby
[15:55:51] dionysus69: has joined #ruby
[15:56:27] prateekp: it is not there in the list
[15:56:35] kies: has joined #ruby
[15:56:53] roxtrongo: has joined #ruby
[15:57:52] shevy: however had... if you can compile openssl with this gcc, and only the ruby bindings fail, then I guess it must be an error with the ruby bindings, so ruby core should fix that
[15:57:52] prateekp: how could i set to 5.2.0
[15:57:55] voker57: has joined #ruby
[15:58:43] freerobby1: has joined #ruby
[16:01:07] lukaszes: has joined #ruby
[16:01:22] scmx: has joined #ruby
[16:01:44] elshaka: has joined #ruby
[16:01:55] codecop: has joined #ruby
[16:02:28] benlovell: has joined #ruby
[16:03:38] neonalpine: has joined #ruby
[16:04:32] ruby-lang804: has joined #ruby
[16:04:41] umgrosscol: has joined #ruby
[16:05:44] axl_: has joined #ruby
[16:06:03] mjuszczak: has joined #ruby
[16:06:43] tmtwd: has joined #ruby
[16:08:31] saddad: has joined #ruby
[16:12:15] pimpin: has joined #ruby
[16:12:17] nanoz: has joined #ruby
[16:12:53] arthurix: has joined #ruby
[16:13:10] tbuehlmann: has joined #ruby
[16:13:10] OmiKrOn: has joined #ruby
[16:13:22] OmiKrOn: greetings *
[16:13:59] patdohere: has joined #ruby
[16:14:14] OmiKrOn: any idea why gem install sys-proctable -v "0.9.2" fails with "Could not find a valid gem `sys-proctable` (= 0.9.2)" in any repository?
[16:14:26] RegulationD: has joined #ruby
[16:14:32] OmiKrOn: I can find that version when looking through the rubygems.org repo
[16:14:41] mjuszczak: has joined #ruby
[16:15:39] maloik: OmiKrOn: are you sure it hasn't been yanked?
[16:16:10] scmx: has joined #ruby
[16:16:57] dlitvak_: has joined #ruby
[16:17:35] djstorm: has joined #ruby
[16:17:50] mattwildig: has joined #ruby
[16:17:53] prateekp: shevy, with old gcc, ruby 2.2.3 compiles successfullt
[16:17:58] darix: OmiKrOn: just a guess not available for you arch
[16:18:02] tubuliferous_: has joined #ruby
[16:18:04] darix: it seems they only uploaded binary gems
[16:18:08] OmiKrOn: maloik: http://pastebin.com/97iKWEsN
[16:18:09] ruboto: OmiKrOn, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0b8f93310cce85893ad5
[16:18:09] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:18:18] darix: Found sys-proctable (0.9.2), but was for platforms universal-freebsd ,universal-mingw32 ,universal-linux ,universal-mingw ,universal-solaris ,universal-darwin
[16:18:22] maloik: yep indeed, though their github readme says "try including platform"
[16:18:23] barhum2013: has joined #ruby
[16:18:35] prateekp: i think i am trying to get the latest gcc (libc6-dev)
[16:18:42] darix: what i find annoying ... no source only gem?
[16:18:51] OmiKrOn: maloik: ok.. uhm.. how do I do that?
[16:18:53] prateekp: and with that gcc, ruby compile fails
[16:19:03] darix: OmiKrOn: --platform
[16:19:05] _stu_: has joined #ruby
[16:19:28] maloik: im off, boulder time
[16:19:28] OmiKrOn: crap... now I have a piece of code that should install that.. freaking old chef recipe
[16:19:47] chouhoulis: has joined #ruby
[16:21:01] benlovell: has joined #ruby
[16:21:03] dlitvak: has joined #ruby
[16:21:07] OmiKrOn: darix, maloik thank you
[16:21:35] yqt: has joined #ruby
[16:21:53] sinkensabe: has joined #ruby
[16:22:46] dlitvak_: has joined #ruby
[16:23:15] hxegon: has joined #ruby
[16:23:16] devoldmx: has joined #ruby
[16:23:26] freerobby: has joined #ruby
[16:23:58] freerobby: has joined #ruby
[16:25:10] peterhil: has joined #ruby
[16:27:05] rcvalle: has joined #ruby
[16:28:16] tlarevo: has joined #ruby
[16:29:06] agentmeerkat: has joined #ruby
[16:29:10] neonalpi_: has joined #ruby
[16:29:36] ekain: has joined #ruby
[16:30:54] Fire-Dragon-DoL: has joined #ruby
[16:31:28] prestorium_: has joined #ruby
[16:32:49] shapeshifter: has joined #ruby
[16:33:27] DiCablo: hello guys
[16:33:39] DiCablo: i just wonder
[16:33:46] DiCablo: if you could take a look at my code
[16:33:48] DiCablo: https://paste.ee/p/0DKFK#gUcigtb7TXtuPhfeTfLtiDEkTl6ibrGx
[16:34:10] DiCablo: and give me some suggestions how i can make this OOP as i am learning classes
[16:34:49] RobertBirnie: has joined #ruby
[16:34:49] pimpin: has joined #ruby
[16:35:37] bigkevmcd: has joined #ruby
[16:36:10] Coraline: DiCablo: not a guy but happy to help
[16:36:17] gusrub: has joined #ruby
[16:36:21] Coraline: DiCablo: when you look at your code what nouns do you see?
[16:36:41] benlovell: has joined #ruby
[16:36:58] Coraline: DiCablo: or what kinds of things are being done?
[16:37:33] DiCablo: well this is my simple scrapper
[16:37:39] Coraline: OK so that's a start
[16:37:49] Coraline: Maybe you have a class called Scraper?
[16:38:12] pimpin: has joined #ruby
[16:38:19] jonathan_katz: has joined #ruby
[16:38:41] Zamyatin: has joined #ruby
[16:39:30] baweaver: has joined #ruby
[16:39:31] Coraline: What 2-3 things does scraper do?
[16:39:48] Maxz_: has joined #ruby
[16:40:24] DiCablo: it opens up a webpage
[16:40:40] DiCablo: then it parses html
[16:41:02] DiCablo: extract the content
[16:41:13] DiCablo: and saves everything to a CSV file
[16:41:34] jhass: DiCablo: so how about a class that represents an entry of the CSV file
[16:41:43] jhass: like, Person
[16:42:26] Fraeon: has joined #ruby
[16:44:16] mattwildig: has joined #ruby
[16:44:44] Coraline: DiCablo: a simplistic approach is to identify nouns (classes) and verbs (methods) and stuff that the class has to remember (constants or attributes)
[16:45:51] tenderlove: has joined #ruby
[16:46:12] blackmes1: has joined #ruby
[16:47:04] DiCablo: so i create a class that will repeat all the time
[16:47:17] DiCablo: so i dont have to recode that every time
[16:47:41] Coraline: Give it a try and see how it looks.
[16:47:55] Coraline: Paste a new version when you're done
[16:48:48] voodo: has joined #ruby
[16:49:19] nofxx: has joined #ruby
[16:49:36] nofxx: has joined #ruby
[16:49:37] tlarevo: has left #ruby: ()
[16:50:31] sapslaj: has joined #ruby
[16:50:34] p0wn3d__: has joined #ruby
[16:51:00] The_Phoenix: has joined #ruby
[16:51:47] gregf_: DiCablo: create a service like so, class AngelService; attr_accessor :httpclient, :htmlparser, :csvbuilder or :persondomainobject; def initialize params; #initialize httpclient, parser, builder end;end
[16:52:03] hakunin: has joined #ruby
[16:52:15] User458764: has joined #ruby
[16:52:21] The_Phoenix: has joined #ruby
[16:53:58] nofxx: Hey, this is very cool, there's a ruby on the background... like an icon for the channel. Is that limechat only? Moving to OSX today...
[16:54:11] jhass: that's your client, yes
[16:54:29] baweaver: has joined #ruby
[16:57:10] G186: has joined #ruby
[16:57:10] G186: has joined #ruby
[16:59:08] neonalpine: has joined #ruby
[16:59:33] gusrub: has joined #ruby
[17:00:27] pimpin: has joined #ruby
[17:00:28] K1MOS: has joined #ruby
[17:00:59] karapetyan: has joined #ruby
[17:01:11] EminenceHC: has joined #ruby
[17:02:19] G186: can anyone help with Ruby and Cucumber, I cant get this to full work, I'm almost there, this is really short
[17:02:21] G186: https://gist.github.com/anonymous/564e3f12d0b0c46a4533
[17:02:44] SCHAAP137: has joined #ruby
[17:03:09] B1n4r10: has joined #ruby
[17:03:17] piotrj: has joined #ruby
[17:04:45] hahuang65: has joined #ruby
[17:06:31] axl_: has joined #ruby
[17:09:08] RobertBirnie: has joined #ruby
[17:09:55] IrishGringo: has joined #ruby
[17:10:17] jhass: G186: let's look together at the error message you get
[17:11:13] G186: jhass, ok, how should we do that,
[17:11:16] G186: paste bin?
[17:11:29] jhass: just edit your gist and add another file with it
[17:11:39] OmiKrOn: darix:still doesn't work... trying to specifiy -v and --platform for the latest version of sys-proctable but it dies out
[17:11:56] darix: OmiKrOn: which value did you pass to --platform?
[17:12:12] prestorium_: has joined #ruby
[17:12:19] OmiKrOn: darix: mswin32
[17:12:30] darix: universal-mingw32 universal-mingw
[17:12:39] darix: are the only 2 supported ones in that area
[17:12:50] DiCablo: https://paste.ee/p/0Raia#LUkU7wCDTqfQU9xoT2oqNQhbpRoppfLW
[17:13:29] jhass: DiCablo: well, now you just wrapped all your code into a method
[17:13:33] Coraline: DiCablo: first off in Ruby we use snake_case for methods, not camelCase
[17:13:41] sanjayu: has joined #ruby
[17:13:45] Coraline: getNames does too many things
[17:13:52] mostlybadfly: has joined #ruby
[17:14:00] Coraline: A good first step though
[17:14:02] OmiKrOn: darix:tried that as well it fails miserably
[17:14:05] jhass: we also leave of get_, append a ? instead of prepending is_ and append = instead of prepending set_
[17:14:29] ishahnaz: has joined #ruby
[17:16:11] wedgwood: has joined #ruby
[17:16:38] shevy: DiCablo btw if you need to append to a string like: url = url + "#{i}" you should be able to use: url << "#{i}" (or if i is always a string, then just url << i)
[17:18:24] darix: or url+=i
[17:18:33] OmiKrOn: darix:any other ideas mate?
[17:18:34] darix: or url+=i.to_s
[17:18:37] darix: OmiKrOn: no
[17:18:41] baweaver: has joined #ruby
[17:18:49] G186: jhass, I couldn't edit the old gist, so I made a new one, https://gist.github.com/anonymous/714735be6e1e921fc887
[17:18:57] shevy: DiCablo the reason for += versus << usually is that += will create a new object, << will not, so << is a tiny bit faster
[17:19:11] akem: has joined #ruby
[17:19:12] mghaig: has joined #ruby
[17:20:20] jhass: G186: so, the first issue is that you call another step than you define
[17:20:25] lubekpl: has joined #ruby
[17:20:32] G186: sorry, that was wrong,
[17:20:33] G186: https://gist.github.com/anonymous/f73edbf5265235bf21a8
[17:20:37] jhass: ^isPalindrome is run$ does not match is_Palindrome is run
[17:20:58] G186: so, I should make it match?
[17:21:04] Guest53: has joined #ruby
[17:21:20] darkxploit: has joined #ruby
[17:23:00] G186: jhass, I deleted the old result, here the new https://gist.github.com/anonymous/c362127306503c57f98f
[17:23:23] jhass: "undefined local variable or method `isPalindrome' for #<Object:0x007f8a5a2da4b0> (NameError)"
[17:23:29] jhass: try to explain that error message to me
[17:24:03] G186: jhass, me try to explain it! lol, it cant find the .rb file?
[17:24:39] jhass: G186: read and try to rephrase it in your own words
[17:24:49] wldcordeiro: has joined #ruby
[17:25:10] jhass: btw are you sure about using cucumber for this?
[17:25:23] jhass: what made you take that choice?
[17:26:03] G186: jhass, I have to use it, were suppose to demo a cucumber code in class today...
[17:26:40] G186: jhass, so its looking for the method inside my program, but cant find it..
[17:26:47] jhass: which method?
[17:26:51] jhass: be precise
[17:27:05] EminenceHC: has joined #ruby
[17:27:11] G186: is_Palindrome
[17:27:13] willharrison: has joined #ruby
[17:27:29] G186: But, thats a function i thought..
[17:28:13] jhass: which part of the error message makes you say "is_Palindrome"? Again, be precise
[17:28:37] The_Phoenix: has joined #ruby
[17:28:59] neonalpine: has joined #ruby
[17:29:14] kfpratt: has joined #ruby
[17:29:49] mikecmpbll: anyone know if you can/cannot bind webrick to a unix socket?
[17:30:19] adaedra: some rack servers support it
[17:30:39] adaedra: puma does it, iirc unicorn does it
[17:30:40] darix: mikecmpbll: puma, unicorn
[17:30:48] darix: rainbows probably too
[17:30:49] mikecmpbll: but not webrick? i'm keen on webrick
[17:30:53] mikecmpbll: for this little task
[17:31:26] synthroid: has joined #ruby
[17:31:56] mikecmpbll: actually, nvm i'm not that fussed. fu webrick!
[17:32:33] dlitvak: has joined #ruby
[17:32:34] B1n4r10: has joined #ruby
[17:32:45] mghaig: has joined #ruby
[17:33:49] thither: has joined #ruby
[17:33:49] UtkarshRay: has joined #ruby
[17:34:25] Linell: has joined #ruby
[17:34:56] thither: So I'm trying to use RGeo to tell me if a point is contained within a polygon, but it seems like my polygon won't let me check if a point is contained in it - the repl says .include? isn't a method of the class even though it's listed in .methods
[17:35:24] ekinmur: has joined #ruby
[17:35:29] G186: jhass, I'm still trying to see what your asking,
[17:35:45] thither: It doesn't work the other way around either, the point claims to not have .within? even though .within? is listed in its methods
[17:36:11] jhass: G186: read the error message, read what your wrote. There's an important difference
[17:36:12] tomphp: has joined #ruby
[17:36:53] h99h9h88: has joined #ruby
[17:37:00] Linell: So I'm trying to write a module that allows me to restrict access to certain methods. This is a gist of what I have https://gist.github.com/Linell/9ad38d34b37076549872
[17:37:09] G186: it says its not a define local variable.
[17:37:24] jhass: G186: I hope you don't stop reading at that point
[17:37:27] Linell: The problem is that I can't seem to get the `restrict` method and the flag variable in the same place so that I can run a block that checks whether or not the flag is true.
[17:37:37] G186: Im trying to access method is_Palindrome from the isPalindrome.rb file,
[17:38:11] jhass: G186: this is not python btw, the filename is irrelevant to everything but the require call
[17:38:23] G186: Im not sure what the forObject means, I don't have objects.
[17:38:31] G186: i mean, I dont have classes
[17:38:34] jpfuentes2: has joined #ruby
[17:38:35] luckyme: has joined #ruby
[17:38:43] jhass: you're always implicitly inside the Object
[17:38:57] jhass: everything is an object in ruby, even the toplevel
[17:39:12] G186: I just have a method called is_Palindrome I'm trying to call,
[17:39:32] G186: Right, everything is an object,
[17:39:35] dionysus69: has joined #ruby
[17:39:45] jhass: more importantly you try to call the method isPalindrome, which is nowhere defined
[17:39:56] arthurix: has joined #ruby
[17:40:02] jhass: (or access the local variable isPalindrome, which is neither defined)
[17:40:12] jhass: and the error message is telling you that
[17:40:16] ibouvousaime_: has joined #ruby
[17:41:18] Maletor: has joined #ruby
[17:41:44] Linell: http://stackoverflow.com/questions/4219277/ <- I'm using the answer to this question as inspiration
[17:41:58] g0bl1n: has joined #ruby
[17:42:33] The_Phoenix: has joined #ruby
[17:43:04] h99h9h88: has joined #ruby
[17:45:17] tomphp: has joined #ruby
[17:45:19] G186: has joined #ruby
[17:46:36] mjuszczak: has joined #ruby
[17:46:42] Arkon: has joined #ruby
[17:47:11] mjuszczak: has joined #ruby
[17:49:03] G186: has joined #ruby
[17:51:36] G186: jhass, I see what I'm doing wrong!
[17:51:45] fantazo: has joined #ruby
[17:52:08] G186: I'm confused on how I tell the test.features file, that I have a program with a method inside of it.
[17:52:57] mrtomme: has joined #ruby
[17:54:11] ramfjord: has joined #ruby
[17:55:13] The_Phoenix: has joined #ruby
[17:55:37] lemur: has joined #ruby
[17:55:59] shevy: does anyone happen to know if there are ways to control rdoc's behaviour? for instance I'd like to tell it to ignore lines containing things such as '# ======= #' completely
[17:57:10] desmondhume: has joined #ruby
[17:57:26] shevy: what is http://www.rubydoc.info using? is that yard?
[17:57:53] rakm: has joined #ruby
[17:58:22] shevy: the display seems to be different
[18:00:06] be_erik: has joined #ruby
[18:01:54] lukaszes: has joined #ruby
[18:03:32] mghaig: has joined #ruby
[18:04:57] kies: has joined #ruby
[18:06:44] gregf: has joined #ruby
[18:06:58] kerunaru: has joined #ruby
[18:07:14] pandaant: has joined #ruby
[18:07:29] banister: has joined #ruby
[18:07:36] ThatsNotJack: has joined #ruby
[18:07:36] axl_: has joined #ruby
[18:07:40] dzejrou: has joined #ruby
[18:08:02] dionysus69: has joined #ruby
[18:08:09] Guest53: has joined #ruby
[18:08:12] baweaver: has joined #ruby
[18:08:18] demonlove: has joined #ruby
[18:09:00] neonalpi_: has joined #ruby
[18:09:09] demonlove: i have recently lerned rubby now want to do some open-source work in one months, any guidence..
[18:09:33] tlolczyk: has joined #ruby
[18:10:26] tlolczyk: When I print Digest::SHA2.digest(raw.collect{|l| l}.join) I get garbage. How do I tweak it?
[18:10:38] scmx: has joined #ruby
[18:11:00] voodo: has joined #ruby
[18:11:05] TomPeed: has joined #ruby
[18:11:15] shevy: demonlove come on ... you join #ruby but call it rubby :P
[18:11:33] trav408: has joined #ruby
[18:11:54] shevy: demonlove anyway, what helped me a lot was to store stuff in todo list, various things. In particular what you want to work on the most, and build up on that in little steps
[18:11:58] RegulationD: has joined #ruby
[18:12:18] shevy: ideally the project should be small
[18:13:16] gusrub: has joined #ruby
[18:13:33] ekain: has joined #ruby
[18:14:00] mrmargolis: has joined #ruby
[18:14:35] Ox0dea: tlolczyk: I think you want #hexdigest.
[18:15:07] Ox0dea: >> require 'digest'; Digest::SHA2.hexdigest 'tlolczyk'
[18:15:08] ruboto: Ox0dea # => "710dc191a3072f1e484e22a9cd745d8bdc66d8201f962642127eb555774de572" (https://eval.in/467805)
[18:15:15] demonlove: has joined #ruby
[18:15:43] Ox0dea: Also, `collect { |l| l }` is a no-op.
[18:15:44] demonlove: i have recently lerned rubby now want to do some open-source work in one months, any guidence..
[18:15:56] Ox0dea: /ignore add demonlove
[18:16:00] tomphp: has joined #ruby
[18:16:19] shevy: don't fake it man
[18:16:39] demonlove: connection was lost
[18:16:52] ThatsNotJack: has joined #ruby
[18:17:07] shevy: as is all hope
[18:17:21] demonlove: so tell me the roaddmap
[18:17:24] shevy: anyway, work on very small projects that solve one thing well
[18:17:33] shadoi: has joined #ruby
[18:17:38] EminenceHC: has joined #ruby
[18:18:13] jhass: G186: a file doesn't define "a program", you can load files and all loaded files together will become one program
[18:18:42] norc: Ox0dea: Btw, did you read my messages earlier today?
[18:18:51] norc: Because you asked me to let you know if I figured it out.
[18:19:21] Ox0dea: norc: I did, and I also found the part where `1 if true` is being optimized but `1 unless false` is not.
[18:19:38] norc: https://github.com/ruby/ruby/pull/1092
[18:20:13] norc: Ox0dea: Interestingly by diving into the depths, I discovered a whole load of other bugs.
[18:20:32] Ox0dea: norc: Um, no, I don't think the fix would be in the parser?
[18:20:34] tomphp: has joined #ruby
[18:21:05] Ox0dea: Well, hm, I guess this would work, huh?
[18:21:06] norc: Ox0dea: "Do as others do" - Im just following nobu's example.
[18:21:39] veg_: has joined #ruby
[18:21:48] shevy: is this "convince nobu to get my changes in" day again!
[18:22:08] Ox0dea: norc: I get the same bytecode for `1 if true` and `1 unless false` on 2.2.3, which leads me to believe that this is the commit which removes the dead code for `1 if true`: https://github.com/ruby/ruby/commit/f11a85
[18:22:48] Arkon: has joined #ruby
[18:22:51] NeverDie: has joined #ruby
[18:23:22] norc: Ox0dea: Well for 2.3 it is done right at parse stage. Honestly didn't check backports
[18:23:36] djbkd: has joined #ruby
[18:24:00] JDiPierro: has joined #ruby
[18:24:02] norc: Though considering that -DCPDEBUG is broken at the moment, I probably will want to go back at it.
[18:24:02] devoldmx: has joined #ruby
[18:24:20] Linell: So this gist is _super_ close. BUT once the PolicyError is raised, it can never pass again. https://gist.github.com/Linell/9ad38d34b37076549872
[18:24:23] Ox0dea: norc: Well, I assume you compiled with your fix and saw satisfactory results, so I can't knock that.
[18:24:59] Linell: er wait, no. It's not working as well as I thought even.
[18:25:04] EvanFreeeman: has joined #ruby
[18:25:18] willharrison: has joined #ruby
[18:25:24] mistermocha: has joined #ruby
[18:25:38] norc: Ox0dea: This is with my patch applied http://pastie.org/10553045
[18:25:43] Ox0dea: Linell: Are you sure this is what you want to do? You can't really hide anything in Ruby from Ruby.
[18:25:43] neonalpine: has joined #ruby
[18:25:52] Ox0dea: norc: Nice!
[18:26:11] Linell: Ox0dea: well I just want an easy way to raise an Exception if a condition isn't met
[18:26:13] orlandoj: has joined #ruby
[18:26:23] Linell: This could be completely the wrong way to do that, just what I've thought up so far
[18:26:27] G186: jhass, what should I be putting in the Given section of the .feature file? I look at examples online, I tried to follow them, but no go,
[18:26:35] rgtk: has joined #ruby
[18:26:43] Ox0dea: norc: But isn't it a little heavy-handed? Aren't things that should say `branch_unless` gonna say `branch_if`?
[18:27:07] Ox0dea: Sans the underscores.
[18:27:16] norc: Ox0dea: There is no NODE_UNLESS anyway.
[18:27:34] norc: Ox0dea: unless is just Ruby sugarcoating for swapping the left and right node around.
[18:28:15] jhass: G186: at the end of the day Cucumber doesn't really care, it's semantics for the reader. Given is to prepare your test, setup any preconditions, so it's optional if there's no such thing to do. When is executing the test, the action under test. Then is for expectations, observing and asserting results of the action(s) executed
[18:28:38] dlitvak: has joined #ruby
[18:29:03] NeverDie: has joined #ruby
[18:29:34] norc: Ox0dea: https://github.com/ruby/ruby/blob/trunk/node.h#L364-L365
[18:29:50] Ox0dea: Right, I remember now.
[18:29:56] G186: jhass, I guess I'm looking at this in the same way I would use junit testing in java, where I made a program then had junit test cases calling those methods inside the program,
[18:30:06] Tricon: has joined #ruby
[18:31:26] jhass: G186: kind of yes. Not that cucumber is used much for unit testing, it's much more used for integration testing. But note the cucumber itself doesn't actually provide any assertions, you also plugin the assertion DSLs of another framework into it usually, say Minitest or RSpec
[18:31:48] jhass: All cucumber does is mapping the step definitions to the feature files and executing them
[18:32:05] rbowlby: has joined #ruby
[18:32:58] be_erik: has joined #ruby
[18:33:40] G186: jhass, that clears things up quite a bit!
[18:33:50] ekinmur: has joined #ruby
[18:35:38] shadoi: has joined #ruby
[18:38:04] kobain: has joined #ruby
[18:42:40] charliesome: has joined #ruby
[18:42:47] B1n4r10: has joined #ruby
[18:43:06] NeverDie: has joined #ruby
[18:44:32] freerobby: has joined #ruby
[18:44:38] darkxploit: has joined #ruby
[18:45:26] mgorbach: has joined #ruby
[18:45:45] jorb: has joined #ruby
[18:46:20] moeabdol: has joined #ruby
[18:47:12] zenguy_pc: has joined #ruby
[18:48:21] NeverDie: has joined #ruby
[18:49:48] neonalpine: has joined #ruby
[18:51:07] jorb: so like. whats a good project to get started with to learn Ruby?
[18:51:28] jorb: after the tut and such
[18:52:01] jorb: all these config management tools that like to use Ruby seem too specific.. but i suppose that would be good inspiration
[18:52:21] Guest53: has joined #ruby
[18:53:35] User458764: has joined #ruby
[18:53:49] rgtk: has joined #ruby
[18:53:54] Linell: jorb: I think the best way to find something worth working on is to pick something _you_ want to build and do it. You'll find stuff along the way.
[18:54:44] jorb: lacking any inspiration i would probalby just try to code up a game somehow
[18:54:56] Oog: has joined #ruby
[18:54:59] jorb: which would flex a lot of things as per usual
[18:55:08] jorb: but really.. is Ruby even suited to that at all?
[18:55:13] scmx: has joined #ruby
[18:55:41] NeverDie: has joined #ruby
[18:55:48] infinitone: has joined #ruby
[18:55:49] millerti: has joined #ruby
[18:55:51] pdoherty: has joined #ruby
[18:56:14] Linell: jorb: check out https://github.com/gosu/gosu
[18:56:19] lemur: has joined #ruby
[18:56:55] NET||abu-: has joined #ruby
[18:57:16] jorb: oo cool thx Linell
[18:57:34] segfalt: has joined #ruby
[18:57:36] karapetyan: has joined #ruby
[18:57:45] shadoi: has joined #ruby
[18:57:57] NET||abu-: hi there, i'm trying to run librarian-puppet and i've run into some gem installation issues.
[18:58:16] NET||abu-: it's on a jenkins server and i can't blow away the gems too wildly as other jobs depend on them too
[18:58:20] yardenbar: has joined #ruby
[18:58:49] NET||abu-: error i'm getting is /usr/local/bin/librarian-puppet install --clean --verbose
[18:58:49] NET||abu-: /usr/share/rubygems/rubygems/specification.rb:2018:in `raise_if_conflicts': can't activate activesupport-4.2.0, already activated activesupport-4.2.3
[18:58:51] pdoherty: has joined #ruby
[18:59:05] mikecmpbll: has joined #ruby
[18:59:28] lukaszes: has joined #ruby
[18:59:45] akem: has joined #ruby
[19:00:08] jgpawletko: has joined #ruby
[19:00:30] tlolczyk: IS there a data structure that allows you to have a hash table with multiple entries?
[19:00:33] dtordable: has joined #ruby
[19:00:59] karapetyan: has joined #ruby
[19:01:00] Xeago: has joined #ruby
[19:01:14] EminenceHC: has joined #ruby
[19:01:35] n00: has joined #ruby
[19:02:00] tlolczyk: Sorry where keys can have multiple values.
[19:02:03] yqt: has joined #ruby
[19:02:43] wprice: has joined #ruby
[19:03:20] FailBit: you can store the values as an array
[19:03:57] rickenharp: has joined #ruby
[19:04:41] lubekpl: has joined #ruby
[19:05:25] momomomomo: has joined #ruby
[19:06:48] bruno-: has joined #ruby
[19:07:04] kies: has joined #ruby
[19:07:18] hahuang65: has joined #ruby
[19:07:52] rickenharp: has joined #ruby
[19:08:02] axl_: has joined #ruby
[19:08:53] B1n4r10: has joined #ruby
[19:09:15] voodo: has joined #ruby
[19:09:36] lukaszes: has joined #ruby
[19:10:09] xet7: has joined #ruby
[19:10:29] baweaver: has joined #ruby
[19:12:05] timonv: has joined #ruby
[19:12:37] tomphp: has joined #ruby
[19:13:15] fantazo: has joined #ruby
[19:13:17] dlitvak: has joined #ruby
[19:13:35] shevy: we can not define methods such as: def 3foo; end - does anyone know if there is a specific reason for this or is this a preference?
[19:14:01] Melpaws1: has joined #ruby
[19:14:09] someguy_: has joined #ruby
[19:14:25] mattwildig: has joined #ruby
[19:14:28] tomphp: has joined #ruby
[19:14:46] DiCablo: has joined #ruby
[19:14:47] someguy_: is there some way I can use a local version of a gem without using bundler?
[19:15:04] ruurd: has joined #ruby
[19:15:17] nofxx: someguy_: rake install on the gem folder
[19:15:26] shevy: gem install ./name-of-gem-here.gem and you can use the user install variant too
[19:15:30] zeroDivisible: has joined #ruby
[19:15:33] eam: >> define_method '3foo', -> {"orly"}; send '3foo'
[19:15:37] ramfjord: has joined #ruby
[19:15:39] ruboto: eam, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[19:15:41] User458764: has joined #ruby
[19:15:47] eam: whawhhahahahahatttt!
[19:15:49] shevy: gem install --user-install ./name.gem
[19:16:01] Melpaws1: HI, i'm following a simple guide to read a file and return line if match regex. But i'm getting file each_line class error . Any suggestions : undefined method `each_line' for File:Class is the error - following examples here : http://stackoverflow.com/questions/6002868/finding-lines-in-a-text-file-matching-a-regular-expression
[19:16:07] eam: >> "is this thing on?"
[19:16:08] ruboto: eam # => "is this thing on?" (https://eval.in/467827)
[19:16:11] eam: >> define_method '3foo', -> {"orly"}; send '3foo'
[19:16:12] ruboto: eam # => "orly" (https://eval.in/467828)
[19:16:17] shevy: eam yeah but I am wondering about the regular syntax; I assume there must be some restriction of the parser
[19:16:42] eam: I'm guessing arbitrary per convention
[19:17:08] someguy_: nofxx: Can I use it without installing? I have release version of the gem already installed
[19:17:22] hahuang65: has joined #ruby
[19:17:29] hxegon: has joined #ruby
[19:17:42] eam: what would happen if you def 0e0
[19:18:11] shevy: in python it rejects leading numbers too
[19:18:17] malconis: has joined #ruby
[19:18:52] tomphp: has joined #ruby
[19:19:34] _blizzy_: has joined #ruby
[19:20:27] h99h9h88: has joined #ruby
[19:20:43] mary5030: has joined #ruby
[19:21:52] nertzy: has joined #ruby
[19:22:03] jdawgaz: has joined #ruby
[19:22:55] malconis: has joined #ruby
[19:24:26] allcentury: has joined #ruby
[19:24:44] mary5030_: has joined #ruby
[19:25:15] tomphp: has joined #ruby
[19:25:41] mary5030_: has joined #ruby
[19:26:15] be_erik: has joined #ruby
[19:26:19] momomomomo_: has joined #ruby
[19:26:45] h99h9h88: has joined #ruby
[19:26:54] h8sreggin: has joined #ruby
[19:26:54] barhum2013: has joined #ruby
[19:27:00] postmodern: has joined #ruby
[19:27:23] hashpuppy: has joined #ruby
[19:27:50] tomphp: has joined #ruby
[19:28:01] Kabal: has joined #ruby
[19:28:09] hashpuppy: has left #ruby: ()
[19:28:34] pimpin: has joined #ruby
[19:28:51] hxegon: has joined #ruby
[19:29:36] tenderlo_: has joined #ruby
[19:29:54] safe: has joined #ruby
[19:30:01] mic_e: has joined #ruby
[19:30:26] tomphp_: has joined #ruby
[19:30:27] someguy_: So is there no way to use a local gem without installing?
[19:30:51] h8sreggin: you have to install it to your app if you want to use it
[19:31:07] h8sreggin: but if you like ruby i could suggest npm since it's amazing
[19:31:20] h8sreggin: it's the counterpart to rvm but it's much better since it's in javascript
[19:31:25] h8sreggin: javascript > ruby
[19:31:38] willharrison: has joined #ruby
[19:32:02] havenwood: someguy_: You could download a gem, and unpack it and use the code however you like.
[19:32:16] h8sreggin: i don't recommend doing that
[19:32:25] havenwood: someguy_: RubyGems has a command `gem unpack`. See: gem help unpack
[19:32:30] TTilus: h8sreggin: how come?
[19:32:33] h8sreggin: you need dependencies for it to run properly
[19:32:42] TTilus: obviously
[19:32:52] h8sreggin: so that's why installers exist
[19:33:09] h8sreggin: if you like wasting time and having huge headaches be my guest
[19:33:32] TTilus: someguy_: if you don't want to use bunler (why? if i may ask) there's always the option to manually set environment var for gem location
[19:33:36] havenwood: someguy_: The convention to install gems when manually looking at gems is to run `bundle install` then prefix commands with `bundle exec` to be using that gem's bundle.
[19:34:10] lukaszes: has joined #ruby
[19:34:14] someguy_: havenwood: I have the git repo of the gem and I made a small change - I just need to see if it actually works.
[19:34:18] Arkon: has joined #ruby
[19:34:26] havenwood: someguy_: Ah, build the gem yourself.
[19:34:35] jackjackdripper: has joined #ruby
[19:34:37] EminenceHC: has joined #ruby
[19:34:38] havenwood: someguy_: gem build gem_name.gemspec
[19:34:42] someguy_: havenwood: I did
[19:34:49] cornerma1: has joined #ruby
[19:34:50] havenwood: someguy_: then: gem install gem_name-version.gem
[19:34:55] TTilus: someguy_: or maybe run the testsuite?
[19:35:08] TTilus: someguy_: without actually installing the resulting gem
[19:35:34] TTilus: someguy_: or require it from pry and play around without installing
[19:36:13] mary5030: has joined #ruby
[19:36:16] havenwood: someguy_: Do you object to just installing from the local copy? You can always `gem pristine gem_name` to restore it to the pristine original.
[19:36:20] momomomomo: has joined #ruby
[19:36:27] h8sreggin: this is what happens when an uneducated retard changes a line of code... he breaks the entire gem... way to go sir, way to go!
[19:36:40] neonalpine: has joined #ruby
[19:36:43] havenwood: !kick h8sreggin Be nice!
[19:36:44] ruboto: ruboto kicked h8sreggin: nice!
[19:36:44] ruboto: -o ruboto
[19:36:48] h8sreggin: has joined #ruby
[19:36:54] TTilus: havenwood: thanks
[19:37:22] havenwood: someguy_: If you'd rather not install the gem, check if there's a Gemfile file in the gem's root directory.
[19:37:38] someguy_: havenwood: Yes, there is a gemfile
[19:38:06] havenwood: someguy_: That's a file to help developers quickly get the gem dependencies installed in your case.
[19:38:09] sepp2k: has joined #ruby
[19:38:11] h8sreggin: thte gemfile lists all the files required for the gem to run properly
[19:38:17] _blizzy_: in ruby, should I put my module imports first, THEN my ruby.rb imports
[19:38:20] _blizzy_: or vise verse?
[19:38:31] havenwood: someguy_: It'll point to `gemspec` which will also resolve dependencies from your gemspec file.
[19:38:31] h8sreggin: import modules first
[19:38:35] _blizzy_: ok, thanks.
[19:38:49] someguy_: havenwood: no dependencies
[19:38:58] h8sreggin: Someguy123:you still have to run the installer
[19:39:02] shadoi: has joined #ruby
[19:39:03] neonalpine: has joined #ruby
[19:39:03] h8sreggin: what change did you make to the code?
[19:39:39] h8sreggin: havenwood:i am being nice and respectful i did say sir, you fucking cunt
[19:39:39] havenwood: someguy_: I'd second TTilus's suggestion to explore the gem with Pry!
[19:40:12] havenwood: !ban NICK !T 5h
[19:40:12] ruboto: havenwood, could not find a matching user for "NICK"
[19:40:18] havenwood: !ban h8sreggin !T 5h
[19:40:19] ChanServ: +b h8sreggin!*@*
[19:40:19] ChanServ: ChanServ kicked h8sreggin: is banned from this channel
[19:40:32] havenwood: NICK is the subject of my macro fail. ;)
[19:40:53] mary5030_: has joined #ruby
[19:40:58] TTilus: poor NICK
[19:41:20] stamina: has joined #ruby
[19:41:50] havenwood: Fixing it... NICK is innocent!
[19:42:09] n00p: has joined #ruby
[19:42:14] someguy_: havenwood: You mentioned `gem pristine`; I guess I wouldn't mind installing if I could quickly revert
[19:42:27] havenwood: someguy_: Yup, that's just what it's for!
[19:42:27] mary5030: has joined #ruby
[19:42:30] _blizzy_: any ways I can improve? https://github.com/NotBlizzard/blizzybotrb
[19:42:53] tw1sted: has joined #ruby
[19:43:29] TTilus: someguy_: if you plan to publish your changes and/or send pullrequest, i recommend you to read contribution guidelines (if the gem has them) and writing test that exercise the feature you added or manifest the bug you fixed
[19:43:29] Xeago: has joined #ruby
[19:44:02] lukaszes: has joined #ruby
[19:44:16] Linell: has joined #ruby
[19:44:28] havenwood: !ban h8sreggin !P
[19:44:28] ruboto: havenwood, could not find a matching user for "h8sreggin"
[19:44:38] TTilus: someguy_: or you could add -local1 or something like that to gem version number and have your version _not_ override the release version you already have installed
[19:44:38] havenwood: Ah, another thing to fix.
[19:46:25] wlanboy: has joined #ruby
[19:46:32] ramfjord_: has joined #ruby
[19:46:59] kerunaru: has joined #ruby
[19:47:06] lukaszes: has joined #ruby
[19:47:11] rcvalle_: has joined #ruby
[19:47:23] _blizzy_: last time I was here , you all said to split up my code into different files, so I did :)
[19:47:53] kuntaminator: has joined #ruby
[19:47:53] ChanServ: +b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.37.59.26.225
[19:47:53] ChanServ: ChanServ kicked kuntaminator: is banned from this channel
[19:48:03] TTilus: _blizzy_: README could describe what this thing is, what is it supposed to do and why and who might wanna use it
[19:48:06] tenderlove: has joined #ruby
[19:48:59] _blizzy_: TTilus, ok, I'll add that. thanks.
[19:49:08] jpfuentes2: has joined #ruby
[19:49:10] TTilus: _blizzy_: move code under lib/ and configurations under config/ or somesuch
[19:49:22] ruurd: has joined #ruby
[19:49:29] _blizzy_: TTilus, may I ask why?
[19:49:36] TTilus: _blizzy_: also ranks-example.yaml mentioned in README is missing
[19:49:36] ChanServ: +o havenwood
[19:49:49] _blizzy_: TTilus, ok, thanks again.
[19:49:56] _blizzy_: I haven't touched this bot in a few months.
[19:50:17] TTilus: _blizzy_: you may, try to keep your project root clean and organized
[19:50:35] _blizzy_: TTilus, ah ok. I'll do it then.
[19:52:00] dorei: has joined #ruby
[19:52:51] TTilus: _blizzy_: even though you didn't inted to publish a gem, http://guides.rubygems.org/patterns/ is still worth reading
[19:53:00] _blizzy_: TTilus, it's not a gem
[19:53:05] x-light: has joined #ruby
[19:53:15] _blizzy_: a pokemon battling bot
[19:53:39] Linell: has left #ruby: ()
[19:53:56] someguy_: has joined #ruby
[19:54:00] blahwoop: has joined #ruby
[19:54:14] decoponio: has joined #ruby
[19:54:23] someguy_: Got disconnected...
[19:54:29] someguy_: TTilus: so then I could do `require gemname-local1`?
[19:54:32] blahwoop: hi all. can anyone assist in refactoring this https://gist.github.com/iRichLau/9527e3cdbab1b20e5a9b
[19:54:42] havenwood: -b h8sreggin!*@*
[19:55:06] blahwoop: i know that i can use include instead of regex but im going to be porting it over to java
[19:55:15] freerobby1: has joined #ruby
[19:56:06] TTilus: _blizzy_: i know it is not a gem, regardles the guidance on library structure is applicable also to codebases that aren't gems or libs at all
[19:56:17] TTilus: _blizzy_: also https://github.com/bbatsov/ruby-style-guide is good stuff
[19:56:23] h99h9h88: has joined #ruby
[19:56:30] _blizzy_: TTilus, ah ok, thanks for the links.
[19:57:38] kirun: has joined #ruby
[19:57:47] ruurd: has joined #ruby
[19:58:10] TTilus: someguy_: in code `require_gem "gemname", "=x.y.z-local1"
[19:58:21] Cork: has joined #ruby
[19:58:45] mary5030: has joined #ruby
[19:58:50] TTilus: someguy_: or use bundler and have explicitly versioned dependency in Gemfile
[19:59:55] dlitvak: has joined #ruby
[20:00:39] platzhirsch: has left #ruby: ()
[20:00:52] mary5030: has joined #ruby
[20:00:55] someguy_: TTilus: Ok, I'll give it a try. Thanks for your help. Havenwood too.
[20:00:56] brushbox: has joined #ruby
[20:00:57] _blizzy_: TTilus, code-wise, does it look 'decent' or is it just horrible.
[20:01:01] havenwood: -b strcmp1!*@*
[20:01:02] _blizzy_: I'm going to follow the guides.
[20:01:52] mary5030_: has joined #ruby
[20:04:05] mary5030: has joined #ruby
[20:05:03] tomdp: has joined #ruby
[20:05:10] erbesharat: has joined #ruby
[20:05:14] Maletor: has joined #ruby
[20:06:18] h99h9h88: has joined #ruby
[20:06:19] adaedra: -bb *!*@gateway/web/freenode/ip.4.34.20.194 *!*@*24.7.59.225
[20:06:25] DoubleMalt: has joined #ruby
[20:06:37] jamesaxl: has joined #ruby
[20:06:58] freerobby: has joined #ruby
[20:06:59] piotrj: has joined #ruby
[20:07:54] mary5030_: has joined #ruby
[20:08:04] rgtk: has joined #ruby
[20:08:55] mary5030: has joined #ruby
[20:10:49] jackjackdripper: has joined #ruby
[20:11:59] havenwood: -b niiggeradder!*@*
[20:12:06] havenwood: +b h8sreggin!*@*
[20:14:04] shevy: aahhhh you people invite the webchatster again :)
[20:15:17] mary5030: has joined #ruby
[20:15:50] based_pdev_: has joined #ruby
[20:15:57] last_staff: has joined #ruby
[20:17:42] mary5030_: has joined #ruby
[20:18:11] zachrose: has joined #ruby
[20:18:15] adaedra: -o adaedra
[20:19:26] TTilus: _blizzy_: code-wise nothing really stands out, except global variables, you've got no need for them
[20:19:30] mary5030_: has joined #ruby
[20:19:46] _blizzy_: TTilus, hmm, ok, thanks. I use globals so I can debug the bot while it's battling and stuff.
[20:19:53] ChanServ: -o havenwood
[20:20:38] TTilus: _blizzy_: also kwargs-style initializer could be cleaner, i mean like Bot.new(options)
[20:21:04] _blizzy_: TTilus, hmm, ok.
[20:21:11] TTilus: _blizzy_: you absolutely need to learn to use pry
[20:21:35] wprice: has joined #ruby
[20:22:48] patrick99e99: has joined #ruby
[20:23:33] TTilus: and of course the naming conventions, class Bot should be in lib/bot.rb
[20:23:34] Arkla: has joined #ruby
[20:23:49] jdawgaz: has joined #ruby
[20:24:09] patrick99e99: hey everyone...... I've got a script that news up a connection with a server, and runs in a loop forever, and I would like to close that connection upon halting... I have been looking around online and I can't seem to find any information about how to do this. I read about at_exit, and rescue SignalException, but neither of those things seem to get triggered when I ctrl-c out of my script.
[20:24:24] spider-mario: has joined #ruby
[20:24:31] freerobby: has joined #ruby
[20:24:43] Arkla: Hey there, does anyone know where I should go to get help for an algorithm ? I'm really bad at thinking algorithm (it's not a matter of implementation here, but rather of what the heck I should do), so if you have a website or stuff to advise, I'd be happy, thanks :)
[20:24:47] devoldmx: has joined #ruby
[20:24:56] FailBit: patrick99e99: the kernel will automatically close the connection for you when the script terminates
[20:25:08] FailBit: it is not required to close it manually in error states
[20:25:24] h99h9h88: has joined #ruby
[20:25:39] FailBit: s/it is not/you are not
[20:25:42] kadoppe: has joined #ruby
[20:25:55] jhass: Arkla: there simply are no golden rules to that, algorithm is a way too general term/concept
[20:26:03] djbkd: has joined #ruby
[20:26:10] FailBit: Arkla: what are you implementing?
[20:26:15] patrick99e99: FailBit: are you certain? I am using the Stomp gem, and their documentation shows that you should do client.close after you're done... ?
[20:26:16] havenwood: patrick99e99: trap(:INT) { warn 'OMGWTFBBQ!' }
[20:26:58] FailBit: patrick99e99: I'm positive
[20:27:08] scmx: has joined #ruby
[20:27:10] FailBit: the kernel will close all connections that a program holds open when it terminates
[20:27:26] Arkla: FailBit: not a known stuff, it's just something to help me drumming :P (yes, the instrument ^^)
[20:28:41] havenwood: Arkla: So what is the input, what are the steps to be performed, and what is the output?
[20:29:00] Arkla: havenwood: Creating a gist, omw
[20:31:10] Arkla: havenwood: here you go : https://gist.github.com/anonymous/797d7c7dea98352a39d7
[20:31:12] haylon: has joined #ruby
[20:31:26] Arkla: havenwood: I'm pretty sure it's super easy, but as I said, I'm just horrific at thinking algorithm
[20:31:50] baweaver: has joined #ruby
[20:31:51] senayar: has joined #ruby
[20:32:07] momomomomo: has joined #ruby
[20:32:13] Xeago: has joined #ruby
[20:33:01] arthurix_: has joined #ruby
[20:33:05] FailBit: that's O(n!)
[20:33:57] riceandbeans: has joined #ruby
[20:34:08] riceandbeans: can anyone help me with rspec?
[20:34:16] chipotle: has joined #ruby
[20:34:26] FailBit: you might find better help in #RubyOnRails, but sure go ahead
[20:34:56] havenwood: riceandbeans: rspec trouble?
[20:35:00] riceandbeans: it's not rails specific.....it's rspec specific
[20:35:11] riceandbeans: I'm writing unit tests for chef code
[20:35:27] lubarch: has joined #ruby
[20:35:32] shevy: show us your scary tests
[20:35:39] riceandbeans: havenwood: I'm a little confused by the entire syntax of rspec and I don't know what some things mean
[20:35:40] mattwildig: has joined #ruby
[20:35:59] riceandbeans: I'm copying and modifying from someone else's tests for another cookbook, but I'm not 100% on what some things mean
[20:36:02] dlitvak: has joined #ruby
[20:36:03] EminenceHC: has joined #ruby
[20:36:04] havenwood: riceandbeans: Maybe you'd prefer Minitest. It's quite nice. And ships with Ruby!
[20:36:36] riceandbeans: well, I think given it's chef I'm required to use rspec through their stuff
[20:36:44] lubarch: has joined #ruby
[20:37:04] sinkensabe: has joined #ruby
[20:37:30] Coldblackice: has joined #ruby
[20:37:54] rgtk: has joined #ruby
[20:38:29] riceandbeans: like..... File.should_receive(:exists?).with('/etc/consul.d/default.json').and_return(true)
[20:38:35] FailBit: ACTION hops aboard the "rspec must die" train again
[20:39:08] riceandbeans: I really don't want to argue if it's good or bad, that's irrelevant, it's the testing framework you're given for puppet and chef
[20:39:32] riceandbeans: I just want to understand what I'm doing with it and the foreign syntax
[20:39:50] riceandbeans: like does that line even make sense?
[20:39:54] lubarch: has joined #ruby
[20:40:01] riceandbeans: it's a modified version of a different person's test
[20:40:35] shevy: who here uses rspec, hands up now!
[20:40:43] willharrison: has joined #ruby
[20:40:50] norc_: has joined #ruby
[20:40:57] riceandbeans: come on man I'm not looking for a fight
[20:40:58] FailBit: File [Object] should have #exists? called with "/etc/consul.d/default.json" and return true
[20:41:10] ChanServ: -b *!*@172.56.38.23
[20:41:18] norc_: j416: Should a small pull request have a feedback request on redmine?
[20:41:24] neonalpine: has joined #ruby
[20:41:29] ChanServ: -b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196
[20:41:36] ChanServ: -b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.37.59.26.225
[20:41:38] j416: norc_: how is that ruby related? because redmine is a rails app? :P
[20:41:40] ChanServ: -b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.50.136.154.155
[20:41:46] dlitvak: has joined #ruby
[20:41:56] norc_: j416: No but because ruby has a redmine tracker?
[20:42:00] B1n4r10: has joined #ruby
[20:42:08] j416: ooh, the ruby project itself?
[20:42:12] j416: that I have no idea of.
[20:42:15] riceandbeans: what are the limitations or .should_receive?
[20:42:29] j416: by "ruby dev" I mean, I work with ruby at $dayjob, I don't develop Ruby :)
[20:42:30] norc_: j416: Heh. Misunderstood your ruby dev. :D
[20:42:36] j416: sorry for being vague heh
[20:42:47] norc_: I was already really amazed to find a ruby developer who speaks English.
[20:42:56] j416: but I'm sure some other guy in this channel could answer
[20:42:58] j416: norc_: haha what
[20:43:07] j416: norc_: they don't speak english?
[20:43:12] Axsuul: has joined #ruby
[20:43:42] norc_: There is a lot of intimidating Japanese on the bug tracker. :-)
[20:43:48] riceandbeans: most of them are probably such nerds they speak lojban
[20:44:02] j416: norc_: but I speak that language. ##japanese next? XD
[20:44:12] pimpin: has joined #ruby
[20:44:18] norc_: This is getting hilarious.
[20:44:18] bruno-: has joined #ruby
[20:45:10] dmitch: has joined #ruby
[20:45:22] j416: norc_: (for real though if you need to decipher something in particular in that tracker, feel free to ask)
[20:45:24] norc_: j416: And then I get too scared about the yakuza at which point you will invite me to #b??ryokudan - I can see where this is going.
[20:45:37] j416: no bouryoku here
[20:45:39] riceandbeans: what about File.should_receive(:size).with('/etc/consul.d/default.json').and_return('12')
[20:45:46] crdpink: has joined #ruby
[20:45:59] riceandbeans: does that mean 12 bytes? 12 lines? 12Kb?
[20:46:19] FailBit: look at the documentation for File.size
[20:46:33] h99h9h88: has joined #ruby
[20:46:37] norc_: FailBit: Incidentally the documentation is not helpful there.
[20:46:39] riceandbeans: I didn't know if it was rspec or ruby core at this point
[20:46:56] shevy: it's purely rspec
[20:46:58] norc_: riceandbeans: If that question arises, you should probably read some rspec docs first.
[20:47:28] kies: has joined #ruby
[20:47:43] norc_: Hey shevy.
[20:47:45] Amnez777_: has joined #ruby
[20:47:46] riceandbeans: the more rspec documentation I read the more confused I get
[20:47:50] shevy: https://www.relishapp.com/rspec/rspec-mocks/v/2-6/docs/message-expectations https://relishapp.com/rspec/rspec-mocks/docs/old-syntax/should-receive
[20:48:07] shevy: hey norc_
[20:48:15] j416: riceandbeans: also, modernise it and avoid the monkeys; prefer to write that as expect(File).to receive(:size) ...
[20:48:20] shevy: I see you are trying to poke at the ruby internals
[20:48:22] segfalt: has joined #ruby
[20:48:22] shadoi: has joined #ruby
[20:48:35] norc_: shevy: Yup. :)
[20:48:42] riceandbeans: shevy: ok, like I said, copying style from another file
[20:48:48] riceandbeans: shevy: learning
[20:52:08] riceandbeans: j416: I don't see that in the docs
[20:52:23] j416: riceandbeans: look at docs for rspec 3
[20:52:44] j416: riceandbeans: and also check what rspec version you're using, perhaps you can't use all of the new syntax
[20:53:17] riceandbeans: would gem list be sufficient?
[20:53:34] shevy: gem can tell you the version of a particular gem
[20:53:46] Helheim: has joined #ruby
[20:54:18] Pumukel: has joined #ruby
[20:54:38] norc_: riceandbeans: Have you worked your way through some basic rspec stuff?
[20:54:55] ChanServ: -b fuukin_NlGGER!*@*
[20:55:01] ChanServ: -b h8sreggin!*@*
[20:55:06] norc_: riceandbeans: You probably want to start with some basics then: https://www.relishapp.com/rspec/docs/gettingstarted
[20:55:18] ChanServ: -b Khunthead!*@*
[20:55:49] neonalpine: has joined #ruby
[20:55:52] piotrj_: has joined #ruby
[20:56:06] ChanServ: -b MikeUnt!*@*
[20:56:11] ChanServ: -b NatesHiggers!*@*
[20:56:18] ChanServ: -b NightyMiggers!*@*
[20:56:22] p0wn3d__: has joined #ruby
[20:56:31] ChanServ: -b N|993R!*@*
[20:56:36] ChanServ: -b reggin!*@*
[20:56:45] Arkon: has joined #ruby
[20:56:52] ekinmur: has joined #ruby
[20:56:59] ChanServ: -b sreggingnikcuf!*@*
[20:57:04] ChanServ: -b swastika!*@*
[20:57:21] ChanServ: -b |K|K|K|!*@*
[20:57:40] grieve: has joined #ruby
[20:58:17] momomomomo: has joined #ruby
[20:58:49] baweaver: has joined #ruby
[20:58:59] nemesit|znc: has joined #ruby
[20:59:22] riceandbeans: norc_: j416: can you help me with just the first one I pasted here as an example?
[20:59:34] riceandbeans: I've turned it into this
[20:59:37] j416: riceandbeans: sure
[20:59:50] be_erik: has joined #ruby
[21:00:08] ruby-lang702: has joined #ruby
[21:00:09] riceandbeans: expect('/etc/consul.d/default.json').to receive(:exists?)
[21:00:19] niggr: has joined #ruby
[21:00:34] riceandbeans: I'm not sure how to add to that the .and_return(true)
[21:00:47] j416: riceandbeans: do you know what you want to test?
[21:01:08] shevy: right now I am using: s.rubygems_version = '2.5.0'
[21:01:19] riceandbeans: I want to test that after running, chef has created a specific config file
[21:01:20] j416: shevy: upgrade then
[21:01:21] shevy: anyone happens to know offhand if s.rubygems_version = '>2.5.0' will work?
[21:01:27] luckyme: has joined #ruby
[21:01:36] j416: riceandbeans: what is it that you are teting?
[21:01:37] j416: testing*
[21:01:38] shevy: or is it implicitly assumed to mean minimal rubygems version
[21:01:48] Guest53: has joined #ruby
[21:01:52] j416: riceandbeans: are you testing that chef is implemented correctly?
[21:02:06] j416: riceandbeans: because chef should already be doing that
[21:02:09] riceandbeans: j416: yes, sort of, I'm not checking content, just that the file exists right now
[21:02:26] riceandbeans: right, but I'm trying to write unit tests for my cookbook
[21:02:37] riceandbeans: make sure I do everything that my requirements are
[21:02:41] j416: feels a bit odd to use rspec, although I suppose you could
[21:03:01] riceandbeans: https://docs.chef.io/chefspec.html
[21:03:06] `based_pdev`: has joined #ruby
[21:04:09] segfalt``: has joined #ruby
[21:04:33] adaedra: -q nathanhiggers!*@*
[21:04:49] j416: riceandbeans: if you have a class Foo with a method "flower" that should return "laundromat", then you could write: expect(myFoo.flower).to eq('laundromat')
[21:05:00] opensource_ninja: has joined #ruby
[21:05:48] j416: riceandbeans: if you have something that you expect would call that and you want to make sure it does call it, then you would use the above syntax: expect(myFoo).to receive(:flower) { 'and you can put a mock return value here if you like' }
[21:05:58] cdg: has joined #ruby
[21:06:05] adaedra: -q nathanhiggers!*@*
[21:06:12] adaedra: -q |KKK|!*@*
[21:06:27] adaedra: -q |\|IGG3R!*@*
[21:06:39] adaedra: -q MIGGERS!*@*
[21:06:44] Amnez777_: has joined #ruby
[21:06:45] j416: riceandbeans: that chefspec seems to be of use to you yes.
[21:06:46] adaedra: -q WEHATEMIGGERS!*@*
[21:06:56] adaedra: -q MIGGERS_SUCK!*@*
[21:07:02] adaedra: -q ULTRAGAY!*@*
[21:07:03] eam: these modes
[21:07:11] silverdust: has joined #ruby
[21:07:13] adaedra: Ah, so there are modes changes?
[21:07:15] j416: riceandbeans: if you weren't using that, you would have to find a pure ruby way to check for file existence, and then use that as input to your test
[21:07:22] j416: adaedra: yes
[21:07:33] silverdust: how may I access an instance variable in another method of a class?
[21:07:39] adaedra: It's ended soon
[21:07:44] adaedra: -q flavouredfags!*@*
[21:07:49] havenwood: silverdust: directly
[21:07:51] adaedra: -q AdolfHitlr!*@*
[21:07:58] adaedra: -q BustyLoliChan!*@*
[21:08:12] sinkensabe: has joined #ruby
[21:08:14] silverdust: ha good. Thanks
[21:08:15] jessemcgilallen: has joined #ruby
[21:08:38] silverdust: havenwood: Is there any thing like this.var in ruby?
[21:08:47] adaedra: -q NUCKFIGGERS!*@*
[21:08:50] arthurix: has joined #ruby
[21:08:50] adaedra: -o adaedra
[21:08:54] riceandbeans: if you do attr_accessors I think you can
[21:09:16] havenwood: silverdust: You can `@var` directly or `this.var` for a method call that get the same instance variable.
[21:09:47] silverdust: okay thanks again
[21:09:50] axl_: has joined #ruby
[21:11:03] ta: has joined #ruby
[21:11:05] havenwood: silverdust: `attr_reader(:var)` or `attr_accessor(:var)` or `def var; @var end` since there's no method for an instance variable by default
[21:11:24] havenwood: silverdust: But just access them directly. ;)
[21:13:04] RegulationD: has joined #ruby
[21:13:06] havenwood: silverdust: Ah, I read `self.var` when you wrote `this.var`. Oops, did not compute.
[21:14:16] havenwood: Close enough. :P
[21:16:16] grill: has joined #ruby
[21:17:08] silverdust: but self.var is fine like in python right?
[21:17:41] silverdust: I def need to need to give all of them a try
[21:20:07] CloCkWeRX1: has joined #ruby
[21:22:38] shevy: when I have a string such as:
[21:23:05] shevy: I need to find out what the second part is (I have it available as a string such as '5', but it could also be something like '"5"')
[21:23:14] centrx: has joined #ruby
[21:23:29] shevy: it could be [5..3] for instance ... hmm
[21:23:40] havenwood: shevy: huh?
[21:24:16] shevy: I meant (3..5) actually, but also [5]
[21:24:34] shevy: just like irb figures out these kind of things
[21:24:44] Arkon: has joined #ruby
[21:24:56] shevy: for instance, if you do: x = (3..5)
[21:24:58] shevy: x would be a range
[21:27:06] momomomomo_: has joined #ruby
[21:27:11] jhass: irb just evals
[21:27:12] havenwood: shevy: So wandering about tokenizing, lexing or parsing or something else?
[21:27:20] jhass: don't eval in your production code
[21:27:22] platzhirsch: has joined #ruby
[21:27:36] havenwood: shevy: Say more about why? Or just curiousity?
[21:27:51] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[21:29:06] lukaszes: has joined #ruby
[21:29:07] adaedra: Poor z, always excluded
[21:29:34] skakri: has joined #ruby
[21:29:43] jhass: asking about x, actually wanting y, actually needing z?
[21:29:55] shevy: jhass irb really uses eval?
[21:30:04] shevy: havenwood yeah
[21:30:09] shevy: that scares me...
[21:30:23] baweaver: has joined #ruby
[21:30:56] shevy: there could be bad data for eval
[21:31:02] jhass: shevy: tell us more about your motivation, what were you doing/looking at that led you to that question?
[21:31:16] havenwood: shevy: If you're just curious, give this a try: https://gist.github.com/havenwood/bd9fc2e475f4db3386e7
[21:31:19] shevy: I need to set arbitrary data on an object
[21:31:30] Xeago: has joined #ruby
[21:31:35] jhass: that's what you want to do, not the why
[21:31:44] shevy: because I need it
[21:31:47] shevy: because I want it
[21:31:48] shevy: now you have the why
[21:31:57] jhass: I don't, so gl
[21:32:25] adaedra: I'm tempted to give back another quote from Matrix: Reloaded, but I don't remember them.
[21:32:26] havenwood: shevy: Maybe my gist will happen to be exactly what you're looking for? :P
[21:33:08] shevy: havenwood not sure, I won't need the fancy stuff like having to know indent etc.., I only need to be able to assign the proper types, when they are stored in a string. so like '(1..3)' would be a range
[21:33:31] shevy: I mean if eval works.... hmmmm
[21:33:42] shevy: but I am too scared :\
[21:33:48] havenwood: shevy: So you want to parse literals while avoiding eval?
[21:34:46] shevy: I want to find out what '(1..3)' would be, e. g. I would want to have it work as if someone would have done: x = (1..3) directly, for instance
[21:34:46] adaedra: shevy: you can use eval if you know what you're doing and are careful with it. I mean, there are uses.
[21:35:03] TTilus: shevy: about irb, it is a REPL and you prolly know what that E there stands for, so it shouldn't come as a huge surprise that it evals ;)
[21:35:17] shevy: TTilus it evaluates :)
[21:35:26] TTilus: ba-da-tsss
[21:35:27] adaedra: You don't say.
[21:35:28] shevy: I didn't know it used eval()!
[21:35:45] adaedra: Now you do.
[21:35:52] sepp2k: has joined #ruby
[21:35:54] adaedra: And let me tell ya, it's totally ok.
[21:35:57] neonalpine: has joined #ruby
[21:36:06] dorei: shevy: r u looking for some AST gem? :p
[21:36:26] mary5030: has joined #ruby
[21:36:32] shevy: dorei dunno really... that's quite complex what havenwood showed there... eval() might be much simpler
[21:36:36] havenwood: shevy: It doesn't support Range but: require 'literal_parser'; LiteralParser.parse('5').class
[21:36:48] havenwood: shevy: apeiros to the rescue! https://github.com/apeiros/literal_parser
[21:37:12] neonalpine: has joined #ruby
[21:37:43] adaedra: Oh, by the way, because I will need it soon maybe
[21:37:54] adaedra: Do you know of something that could parse data printed by PHP?
[21:37:55] shevy: apeiros is like doing things that, some years later, I also need. he is like in the future
[21:38:12] havenwood: shevy: It parses NilClass, TrueClass, FalseClass, Symbol, Integer, Float, Hash, Array, Date and Time but not Range.
[21:38:23] jhass: adaedra: I came across a php unserialize/serialize implementation, let's see if my history still has it
[21:38:25] robbyoconnor: has joined #ruby
[21:38:25] TTilus: adaedra: "printed by PHP" tells absolutely nothing about the data format
[21:38:33] shevy: havenwood hmm do you happen to know why not range?
[21:38:33] jcdesimp: has joined #ruby
[21:38:39] jhass: adaedra: https://github.com/jqr/php-serialize
[21:38:42] havenwood: shevy: NotImplementedError
[21:38:43] Mon_Ouie: has joined #ruby
[21:38:59] adaedra: That: http://php.net/manual/en/function.print-r.php
[21:38:59] TTilus: adaedra: what format are we talking about here? that php serializer stuff?
[21:39:01] shevy: anyway, I think that is about like 99% of what I need exactly. I shall study it - thanks havenwood and apeiros!
[21:39:11] SCHAAP137: has joined #ruby
[21:39:27] blackmes1: has joined #ruby
[21:39:40] _whitelogger: has joined #ruby
[21:40:15] VeryBewitching: has joined #ruby
[21:40:51] TTilus: adaedra: i'm not aware of any library to read that stuff
[21:41:00] adaedra: That's what I feared.
[21:41:16] _stu_: has joined #ruby
[21:41:30] shevy: haha :D found one gem of a comment there ...
[21:41:33] shevy: when @scanner.scan(RConstant) then eval("#{@constant_base}::#{@scanner[0]}") # yes, I know it's evil, but it's sane due to the regex, also it's less annoying than deep_const_get
[21:42:58] TTilus: adaedra: you might want to resort into something like http://kschiess.github.io/parslet/
[21:43:30] adaedra: Interesting.
[21:43:46] tulak: has joined #ruby
[21:43:59] shevy: nice logo for parslet there
[21:44:04] jhass: shevy: that's the thing with using old stuff though, these days const_get handles it
[21:44:47] TomPeed: has joined #ruby
[21:45:05] rakm: has joined #ruby
[21:45:07] neanderslob: has joined #ruby
[21:45:40] k3asd`: has joined #ruby
[21:46:39] ReK2: has joined #ruby
[21:46:40] ReK2: has joined #ruby
[21:47:01] Arkon: has joined #ruby
[21:47:11] dlitvak: has joined #ruby
[21:47:39] adaedra: Let's code a bit
[21:48:04] centrx: ok, what should I type
[21:48:39] n_blownapart: has joined #ruby
[21:48:41] TPBallbag: has joined #ruby
[21:48:45] adaedra: Ah, Ox0dea's not here
[21:49:03] allcentury: has joined #ruby
[21:49:12] shevy: already got one question, apeiros is using this on a line:
[21:49:17] shevy: against what does that match?
[21:49:19] mghaig: has joined #ruby
[21:49:29] adaedra: "module Perkele"
[21:49:33] adaedra: great progress here
[21:49:59] jhass: it's essentially equivalent to a if/elsif/else chain
[21:50:16] centrx: if nothing then nil
[21:50:46] jhass: >> case; when nil; "nil"; else "nothing"; end
[21:50:47] ruboto: jhass # => "nothing" (https://eval.in/467902)
[21:51:50] shevy: what I can say is... apeiros really likes "then" :)
[21:52:33] shevy: I guess it serves as a visual marker
[21:53:03] Gi0: has joined #ruby
[21:53:27] jhass: not so in the more recent code
[21:53:30] TTilus: adaedra: need to clean your code, be nice youknow, avoid profanitions and such ;)
[21:53:43] jhass: people's preferences change, even if that's hard to believe for you
[21:54:04] adaedra: TTilus: it's not mine! It's https://github.com/collaborative-ruby/ruby-writes-fizzbuzz !
[21:54:08] tlaxkit: has joined #ruby
[21:54:23] shevy: jhass aha... guess that may also be another indication of the age of the code :(
[21:54:25] adaedra: (I know, I should add more context when I speak)
[21:54:49] mrmargolis: has joined #ruby
[21:55:27] TTilus: adaedra: :D
[21:55:30] shevy: adaedra is the php parsing thing work-related?
[21:55:42] adaedra: shevy: yes
[21:55:52] adaedra: I would not do such a mad thing for myself
[21:55:53] h99h9h88: has joined #ruby
[21:55:57] shevy: yeah I wondered!
[21:56:07] jhass: adaedra: and really zero influence in how the data is "exported"?
[21:57:15] TTilus: adaedra: that one ^ because php unserialize would be available, just switch to serialize in PHP (or use it on the side of print_r)
[21:57:21] goodcodeguy: has joined #ruby
[21:57:34] adaedra: TTilus: given the context, I would json_encode() over PHP serialization.
[21:57:36] jhass: or yet better use a standardized format like JSON while at it
[21:57:45] neonalpine: has joined #ruby
[21:57:45] h99h9h88: has joined #ruby
[21:57:52] adaedra: Let's say that if I have had an already made solution, it would have been easier.
[21:57:57] TTilus: adaedra: yep, even better
[21:59:23] adaedra: Right now, it's web framework time
[21:59:25] maletor_: has joined #ruby
[21:59:40] jhass: I do wonder though, who exactly took print_r for an export format?
[21:59:54] lemur: has joined #ruby
[22:00:32] adaedra: That was not really meant to be re-imported in the first place, but things evolved.
[22:01:17] jhass: so... they used it for user representation?
[22:01:23] jhass: that might be even worse tbh
[22:02:36] duncannz: has joined #ruby
[22:03:52] duncannz: has joined #ruby
[22:04:13] TTilus: stuff happens in real live...
[22:04:37] adaedra: Yeah, mades me wonder sometimes
[22:04:42] adaedra: Is this the real life?
[22:05:13] duncannz: has joined #ruby
[22:08:11] jessemcgilallen: has joined #ruby
[22:08:21] brushbox: has joined #ruby
[22:10:56] axl_: has joined #ruby
[22:12:01] Ox0dea: has joined #ruby
[22:12:19] NeverTired: has joined #ruby
[22:14:59] ekinmur: has joined #ruby
[22:15:28] davedev24: has joined #ruby
[22:15:28] leafybas_: has joined #ruby
[22:18:49] SCHAAP137: has joined #ruby
[22:19:28] Ox0dea: ??? Is this just fantasy? ???
[22:19:42] davedev24: has joined #ruby
[22:20:17] nofxx: Ox0dea: eyes... .. but I can't see.... ? pink floyd?
[22:20:29] sinkensabe: has joined #ruby
[22:20:56] lubekpl: has joined #ruby
[22:21:07] Ox0dea: nofxx: You have no mouth and you must scream, you say?
[22:21:31] adaedra: Someone didn't need no (musical) education, I see
[22:23:48] davedev24: has joined #ruby
[22:23:59] Ox0dea: loop { wall << brick }
[22:23:59] slash_nick: adaedra! leave them kids alone
[22:24:11] p0wn3d: has joined #ruby
[22:24:46] adaedra: What's next, the Trial?
[22:24:54] nofxx: Ox0dea: oh yeah.. confused. "But it was only a fantasy..." hey you hahah good one
[22:25:00] adaedra: also, nice one Ox0dea
[22:25:10] Axsuul: has joined #ruby
[22:25:31] devoldmx: has joined #ruby
[22:25:51] Croves: has joined #ruby
[22:26:36] nofxx: the wall is a nice album, personally I think that only 'animals' tops it
[22:26:37] ss_much: has joined #ruby
[22:26:44] krazyj: has joined #ruby
[22:27:12] krazyj: i don???t suppose anyone here would know why i???m getting a URL encoded string in Sinatra send to the Regexp of this method: `Sinatra::Base.send(<method>, Regexp) do ???` ?
[22:27:48] jhass: elaborate?
[22:29:53] krazyj: jhass: my Sinatra::Base subclass is being called like: `subclass.send(???get???, Regexp.new(???/foo/bar?test=1,2,3)) do???`??? so if i hit the Sinatra server at http://server/foo/bar?test=1,2,3, the string delivered to the regex is: ???/foo/bar?test=1%2C2%2C3??? not ???/foo/bar?test=1,2,3???
[22:29:55] banister: has joined #ruby
[22:30:16] krazyj: which, of course, doesn???t match that Regex since it???s URL escaped
[22:30:37] yfeldblum: has joined #ruby
[22:30:38] jhass: any reverse proxy in place?
[22:30:48] krazyj: jhass: nope
[22:31:19] jhass: why does it match against the query string in the first place
[22:31:49] krazyj: just how this application is designed
[22:32:08] be_erik: has joined #ruby
[22:32:09] jhass: I'm kinda surprised sinatra even supports that
[22:32:21] Ox0dea: >> class Class; def old; [*ObjectSpace.each_object(self)].sample end end; String.old
[22:32:21] krazyj: (it???s a mock server, so some details in the URL we might not care about - but i???m not sure if that???s relevant)
[22:32:22] ruboto: Ox0dea # => "LDSHAREDXX" (https://eval.in/467921)
[22:32:46] krazyj: jhass: i???m a bit of a ruby noob and i???m actually even trying to find the documentation for `.send(???)` and i can???t
[22:32:57] krazyj: i???d probably be a little more capable of debugging this if i could figure that but, eh
[22:33:03] jhass: &ri Kernel#send
[22:33:03] `derpy: No results
[22:33:03] Ox0dea: krazyj: #send just invokes a method dynamically.
[22:33:09] adaedra: Ox0dea: is there anything you didn't broke?
[22:33:11] jhass: &ri Object#send
[22:33:11] `derpy: http://www.rubydoc.info/stdlib/core/Object#send-instance_method
[22:33:28] adaedra: Not cool, `derpy
[22:33:47] trosborn: has joined #ruby
[22:33:49] jhass: nah, my bad
[22:34:02] shevy: good old derpy
[22:34:04] Ox0dea: adaedra: I think the lack of #old on Class is an unforgivable asymmetry, so I fixed it.
[22:34:32] Ox0dea: I think `derpy might still be to blame.
[22:34:35] Ox0dea: >> method(:send).owner
[22:34:36] ruboto: Ox0dea # => Kernel (https://eval.in/467922)
[22:34:48] jhass: wait, really?
[22:34:53] Ox0dea: Weird, right?
[22:35:12] Papierkorb: I'm currently writing a spec for a API client. One of the tested methods access .csrf_token, which I want to stub out: https://gist.github.com/Papierkorb/5b969e9bf6989947b46c - Should I stub out the Api.csrf_token method altogether, or should I stub the Element stuff?
[22:35:19] adaedra: &ri Kernel.send
[22:35:19] `derpy: No results
[22:35:48] adaedra: Ox0dea: you like blaming the bot, don't you?
[22:35:48] blue_deref: has joined #ruby
[22:36:07] jhass: Papierkorb: a bit sparse on context, but I'd go for the Api method
[22:36:48] Ox0dea: adaedra: I do, and I'm aware that that particular proclivity has sharp teeth.
[22:37:00] Papierkorb: jhass: I'm on the edge, really. Could you say why you'd do that? The method is public, but stubbing the Element stuff feels like I'm testing an implementation detail
[22:37:10] northfurr: has joined #ruby
[22:37:40] jhass: Papierkorb: exactly my thinking
[22:37:53] demonlove: has joined #ruby
[22:37:54] shevy: don't push the Papierkorb! we may run out of Papier if he is beyond the edge...
[22:38:36] Papierkorb: jhass: Makes sense I guess, the code will run on the client (Opal, Rb -> JS), so stubbing Element has no actual benefit other than having a false higher number in the coverage report. Thanks!
[22:38:46] jhass: Papierkorb: you'd perhaps stub it out when testing that the csrf_token method returns the right think and memoizes the result, but not for other tests
[22:39:41] Arkon: has joined #ruby
[22:40:12] Ox0dea: adaedra: If `derpy's still salty about all this when he gains sentience, tell him I'll be waiting in /dev/null.
[22:40:41] jhass: Ox0dea: we all know you're living in /dev/urandom really
[22:41:01] `derpy: Ox0dea: I'm not like that, don't worry.
[22:41:12] ebbflowgo: has joined #ruby
[22:42:17] arthurix: has joined #ruby
[22:42:31] towski_: has joined #ruby
[22:42:44] opensource_ninja: has joined #ruby
[22:43:35] mghaig: has joined #ruby
[22:44:02] predator117: has joined #ruby
[22:48:05] luckyme: has joined #ruby
[22:48:59] Ox0dea: >> eval "def foo #{150.times.map { |v| "v#{v}: 1" } * ?,}; local_variables.last end"; foo
[22:49:00] ruboto: Ox0dea # => :const_missing (https://eval.in/467931)
[22:49:19] uri: has joined #ruby
[22:49:25] wprice: has joined #ruby
[22:49:48] Ox0dea: jhass: I was trying to preempt the robot uprising, but you're right.
[22:51:47] hooper1: has joined #ruby
[22:52:13] shevy: so the robot uprising will start with an eval ...
[22:52:16] jessemcgilallen: has joined #ruby
[22:52:17] shevy: I knew it was evil
[22:52:19] CodingWolf: has joined #ruby
[22:52:49] grilled-cheese: has joined #ruby
[22:53:52] Ox0dea: We did it, team! http://git.io/v8jFE
[22:54:32] Ox0dea: What they don't know is that the single-character restriction was lifted almost three days ago.
[22:54:46] Ox0dea: Inadvertent social experiments are fun.
[22:55:38] jgpawletko: has joined #ruby
[22:56:42] CloCkWeRX: has joined #ruby
[22:57:29] Ox0dea: So weird that that ended up in there.
[22:58:18] h99h9h88: has joined #ruby
[22:58:37] jhass: mmh, we should takeover twia now and sign up on github there and edit it
[23:00:20] jhass: ugh, they're starting window 98 again
[23:00:26] zahid: has joined #ruby
[23:00:43] lemur: has joined #ruby
[23:01:26] shevy: then shall come win ME
[23:01:44] shevy: the best win ever... there was a directory you could not easily get rid, and some viruses loved to persist there
[23:01:52] adaedra: Recently, there was an outage at ORY airport, causing large delays. It was all the fault of a Windows 3.1 computer.
[23:05:26] sanjayu: has joined #ruby
[23:06:02] arthurix_: has joined #ruby
[23:07:14] EminenceHC: has joined #ruby
[23:08:42] leafybas_: has joined #ruby
[23:09:01] devl: has joined #ruby
[23:09:49] skweek: has joined #ruby
[23:11:59] axl_: has joined #ruby
[23:14:45] mistermocha: has joined #ruby
[23:14:50] leafybas_: has joined #ruby
[23:16:24] jinie: has joined #ruby
[23:16:37] riotjones: has joined #ruby
[23:17:36] johnzorn: has joined #ruby
[23:19:11] rgrmatt: has joined #ruby
[23:20:22] Yzguy: has joined #ruby
[23:23:21] Ropeney: has joined #ruby
[23:27:30] tkuchiki: has joined #ruby
[23:27:45] nemesit|znc: has joined #ruby
[23:28:58] sdwrage: has joined #ruby
[23:29:18] baweaver: has joined #ruby
[23:30:27] yano: has joined #ruby
[23:30:41] yano: has left #ruby: ("WeeChat, The Better IRC Client -- https://weechat.org/")
[23:32:25] shadoi: has joined #ruby
[23:40:37] ebbflowgo: has joined #ruby
[23:41:28] dinomode: has joined #ruby
[23:41:53] Yzguy: has joined #ruby
[23:42:36] dinomode: has left #ruby: ("Leaving")
[23:42:51] urbanmonk: has joined #ruby
[23:45:00] umgrosscol: has joined #ruby
[23:45:37] rickmasta: has joined #ruby
[23:48:10] crystalmaiden: has joined #ruby
[23:48:15] decoponio: has joined #ruby
[23:48:23] gambl0re: has joined #ruby
[23:49:41] tomphp: has joined #ruby
[23:52:08] yfeldblum: has joined #ruby
[23:52:13] LoganG_: has joined #ruby
[23:52:56] Axsuul: has joined #ruby
[23:54:14] zahid: has joined #ruby
[23:54:17] jz: has joined #ruby
[23:55:41] RealMarc: has joined #ruby
[23:55:49] ZeeNoodleyGamer: has joined #ruby
[23:55:55] iooner: has joined #ruby
[23:56:02] LBRapid: has joined #ruby
[23:56:05] jaxxstorm: has joined #ruby
[23:56:08] teotwaki: has joined #ruby
[23:56:24] soloone: has joined #ruby
[23:56:46] Eminence_: has joined #ruby
[23:56:52] varesa: has joined #ruby
[23:57:05] Nightmare: has joined #ruby
[23:57:11] braincrash: has joined #ruby
[23:57:51] [spoiler]: has joined #ruby
[23:58:00] uri: has joined #ruby
[23:58:25] snockerton: has joined #ruby
[23:59:05] h99h9h88: has joined #ruby
[23:59:07] johnzorn: has joined #ruby
[23:59:11] Arkon: has joined #ruby
[23:59:20] grill: has joined #ruby