« Back to channel list

#ruby - 23 December 2015

« Back 1 day Forward 1 day »
[00:00:41] hxegon: what's the best / simplest way to encode http params? I'm having issues with URI.encode_www_form because my data is nested hashes :(
[00:00:58] z3uS: has joined #ruby
[00:01:51] darix: hxegon: maybe flatten it before?
[00:02:08] hxegon: darix can't flatten it. It needs to be nested hashes
[00:02:23] darix: or if you dont need to put it into a query string but can use post/put ... json/yaml
[00:02:35] solocshaw: has joined #ruby
[00:03:13] nateberkopec: has joined #ruby
[00:03:37] hxegon: darix good idea. I'll look into that
[00:03:41] dopie: has joined #ruby
[00:05:51] jbrhbr: yea that would be awkward in a query string, much better as a body
[00:11:54] cassioscabral: has joined #ruby
[00:12:18] ur5us: has joined #ruby
[00:13:35] ElFerna: has joined #ruby
[00:14:53] dr3w: has joined #ruby
[00:15:18] mary5030: has joined #ruby
[00:15:28] CloCkWeRX: has joined #ruby
[00:15:37] djbkd: has joined #ruby
[00:17:15] bubbys: has joined #ruby
[00:19:23] aibot: has joined #ruby
[00:20:52] skcin7: has joined #ruby
[00:22:56] DLSteve: has joined #ruby
[00:26:34] jcdesimp: has joined #ruby
[00:28:38] Yzguy: has joined #ruby
[00:30:20] eytanfb: has joined #ruby
[00:32:35] ohaibbq: has joined #ruby
[00:33:22] skcin7: has joined #ruby
[00:34:23] domgetter: has joined #ruby
[00:34:34] ElFerna: has joined #ruby
[00:37:52] djbkd: has joined #ruby
[00:42:44] shazaum__: has joined #ruby
[00:45:32] grassdog_: has joined #ruby
[00:46:06] jbrhbr: do you guys have issues when pressing ctrl+Z from within pry?
[00:46:14] skcin7: has joined #ruby
[00:46:20] duckpuppy: has joined #ruby
[00:47:01] jbrhbr: actually that doesn't seem to cause the problem 100% of the time. whatever it is, my repl get pretty trashed on a regular basis
[00:47:28] Ox0dea: has joined #ruby
[00:48:44] gambl0re: has joined #ruby
[00:49:11] jbrhbr: ah it's not raw pry, it's 'rails c'. off topic i guess
[00:51:23] h99h9h88: has joined #ruby
[00:53:44] akem: has joined #ruby
[00:53:56] gizless: has joined #ruby
[00:56:01] dr3w: has joined #ruby
[00:56:05] ElFerna: has joined #ruby
[00:56:08] gizmore|2: has joined #ruby
[00:58:55] fullofcaffeine: has joined #ruby
[00:59:14] houhoulis: has joined #ruby
[00:59:27] gizmore: has joined #ruby
[01:00:28] gizless: has joined #ruby
[01:00:49] ta: has joined #ruby
[01:01:26] Dimik: has joined #ruby
[01:02:37] ico: has joined #ruby
[01:03:58] allcentury: has joined #ruby
[01:04:04] gizmore|2: has joined #ruby
[01:05:13] maletor_: has joined #ruby
[01:05:31] pwnd_nsfw: has joined #ruby
[01:06:13] gizmore: has joined #ruby
[01:07:22] certainty: has joined #ruby
[01:07:28] gizless: has joined #ruby
[01:09:40] gizmore|2: has joined #ruby
[01:10:30] Spami: has joined #ruby
[01:11:38] gizmore: has joined #ruby
[01:12:09] fly5566: has joined #ruby
[01:12:30] gizmore|3: has joined #ruby
[01:13:30] gizless: has joined #ruby
[01:13:35] dlitvak: has joined #ruby
[01:13:55] radgeRayden: has joined #ruby
[01:14:48] gizmore|2: has joined #ruby
[01:17:43] Spami_: has joined #ruby
[01:19:29] paradisaeidae: has joined #ruby
[01:19:56] yqt: has joined #ruby
[01:20:05] Fezzler: has joined #ruby
[01:22:02] devbug: has joined #ruby
[01:22:30] threh: has joined #ruby
[01:22:52] Spami: has joined #ruby
[01:23:30] h99h9h88: has joined #ruby
[01:23:34] dr3w: has joined #ruby
[01:27:36] run_kmc: has joined #ruby
[01:27:40] colegatron: has joined #ruby
[01:28:00] katxic: has joined #ruby
[01:28:08] karapetyan: has joined #ruby
[01:28:48] lessless: has joined #ruby
[01:30:54] scottschecter: has joined #ruby
[01:31:40] ElFerna: has joined #ruby
[01:34:07] katxic: has left #ruby: ()
[01:34:44] ohaibbq: has joined #ruby
[01:36:23] mistermocha: has joined #ruby
[01:38:17] run_kmc: has joined #ruby
[01:41:03] dlitvak_: has joined #ruby
[01:41:26] Trynemjoel: has joined #ruby
[01:43:59] devoldmx_: has joined #ruby
[01:47:04] duckpuppy: has joined #ruby
[01:49:32] jackjackdripper1: has joined #ruby
[01:49:51] mistermocha: has joined #ruby
[01:52:10] djbkd: has joined #ruby
[01:53:48] bkxd: has joined #ruby
[01:56:30] atomical: has joined #ruby
[01:58:43] pontiki: has joined #ruby
[01:59:19] dlitvak: has joined #ruby
[01:59:51] Trynemjoel: has joined #ruby
[02:00:57] mistermocha: has joined #ruby
[02:03:42] RegulationD: has joined #ruby
[02:05:03] cbednarski: has joined #ruby
[02:05:09] jmccartie: has joined #ruby
[02:05:25] mjc_: has joined #ruby
[02:06:03] benlieb: has joined #ruby
[02:06:43] ta: has joined #ruby
[02:15:33] Trynemjoel: has joined #ruby
[02:15:48] jcdesimp: has joined #ruby
[02:16:10] ElFerna: has joined #ruby
[02:19:29] dextertzu: has joined #ruby
[02:21:55] cassioscabral: has joined #ruby
[02:22:53] shibly: has joined #ruby
[02:23:04] shibly: What's the command to list system wise gems?
[02:23:45] B1n4r10: has joined #ruby
[02:25:15] bithon: gem list ?
[02:25:55] havenwood: shibly: sudo gem list
[02:26:12] arescorpio: has joined #ruby
[02:26:39] devoldmx: has joined #ruby
[02:27:32] shibly: has left #ruby: ()
[02:30:26] krobzaur: has joined #ruby
[02:30:26] Trynemjoel: has joined #ruby
[02:32:33] Harazzy: has joined #ruby
[02:37:35] Bloomer: has joined #ruby
[02:38:24] B1n4r10: has joined #ruby
[02:38:30] charliesome: has joined #ruby
[02:39:50] certainty: has joined #ruby
[02:42:10] mostlybadfly: has joined #ruby
[02:44:10] ramfjord: has joined #ruby
[02:45:58] nateberkopec: has joined #ruby
[02:47:53] duckpuppy: has joined #ruby
[02:49:25] ledestin: has joined #ruby
[02:49:28] knite: has joined #ruby
[02:52:25] crunk_bear: has joined #ruby
[02:52:36] ElFerna: has joined #ruby
[02:54:30] bkxd: has joined #ruby
[02:54:55] thejamespinto: has joined #ruby
[03:03:56] sneakerhax: has joined #ruby
[03:04:40] tubulife-: has joined #ruby
[03:07:29] wolffles: has joined #ruby
[03:10:19] pl1ght: has joined #ruby
[03:10:53] ascarter: has joined #ruby
[03:13:17] dlitvak_: has joined #ruby
[03:13:59] paulf__: has joined #ruby
[03:14:43] Rodya_: has joined #ruby
[03:15:17] dylanjhoulihan: has joined #ruby
[03:15:26] ta: has joined #ruby
[03:16:41] dylanjhoulihan: has joined #ruby
[03:17:05] houhoulis: has joined #ruby
[03:17:37] dlitvak: has joined #ruby
[03:22:58] adingman: Google isn't helping with this because "+" means something to Google, but I'm sure it's simple.
[03:23:08] adingman: I want to override += for a class.
[03:23:14] Ox0dea: adingman: You can't.
[03:23:32] adingman: I can do concat and <<, but not +=
[03:23:37] Ox0dea: `foo += bar` is literally just `foo = foo + bar`, and you can't change Ruby's assignment semantics.
[03:23:39] adingman: It's my own derived class.
[03:23:55] adingman: Oh, so if I override + I'll be OK?
[03:24:24] DLSteve: has joined #ruby
[03:24:27] Ox0dea: `+` and `+=` are hardly the same operation.
[03:25:36] atomical: has joined #ruby
[03:25:42] adingman: And sure they're the same. "a += b" == "a = a + b"
[03:25:52] adingman: At least for anything where I've ever seen +=
[03:26:15] adingman: Perhaps, however, there is a better way and someone in here can save me a lot of tedium.
[03:26:21] idefine: has joined #ruby
[03:26:27] adingman: I'm subclassing String to define ^
[03:26:39] adingman: and a couple other operations
[03:26:50] charliesome: has joined #ruby
[03:27:01] Ox0dea: adingman: http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
[03:27:09] shevy: ruby let's you do all crazies
[03:27:51] adingman: The only reason I care about redefining existing operations is that using the ones defined on string returns an object of class string rather than my subclass.
[03:28:11] Ox0dea: adingman: The link addresses that concern.
[03:28:30] Ox0dea: Near the bottom, if you're in a hurry.
[03:29:24] adingman: hurry and learning to do things "right" in this language are warring with each other.
[03:30:13] shevy: just use a hack then
[03:30:28] Ox0dea: Use three hacks for maximum efficaciousness.
[03:30:32] ESpiney: has joined #ruby
[03:31:47] domgetter: has joined #ruby
[03:33:12] n0vo: has joined #ruby
[03:33:12] n0vo: has joined #ruby
[03:33:28] dlitvak: has joined #ruby
[03:33:32] adingman: I'm utterly befuddled by the "solutions".
[03:33:46] annomander: has joined #ruby
[03:33:58] Ox0dea: Delegate is pretty "magical", but it's just what you want.
[03:34:10] Ox0dea: Ergo, consider taking the time to figure out what's going on. :P
[03:34:24] Ox0dea: But preferably *not* by using the source, Luke, in this case.
[03:34:47] adingman: If I inherit from SimpleDelegator, where am I telling it what class to delegate to?
[03:35:22] shevy: "A concrete implementation of Delegator, this class provides the means to delegate all supported method calls to the object passed into the constructor and even to change the object being delegated to at a later time with #__setobj__."
[03:35:24] krz: has joined #ruby
[03:35:50] shevy: http://ruby-doc.org/stdlib-2.1.0/libdoc/delegate/rdoc/SimpleDelegator.html
[03:35:57] Ox0dea: adingman: The object passed in the call to `super`.
[03:36:34] adingman: shevy, thanks. I was about to search for that, though probably the 2.2 edition.
[03:36:45] Ox0dea: Did you mean 2.3? ^_^
[03:37:14] adingman: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[03:37:26] chouhoulis: has joined #ruby
[03:38:55] ElFerna: has joined #ruby
[03:38:59] Ox0dea: Hi, dopie.
[03:39:28] shevy: adingman, yeah normally this is a redirect, try without any version at all: like this http://ruby-doc.org/stdlib/libdoc/delegate/rdoc/SimpleDelegator.html
[03:39:34] blub: hi dopie
[03:39:40] shevy: I just snatched the first google result
[03:39:42] blub: hi ox0dea
[03:39:57] dlitvak: has joined #ruby
[03:41:27] Ox0dea: adingman: Are you writing String#^ for encipherment porpoises?
[03:41:42] symm-: has joined #ruby
[03:41:51] jcdesimp: has joined #ruby
[03:42:32] domgetter: brb, gonna go make a hyperdimensional string
[03:42:34] ^CrYpto^: has joined #ruby
[03:43:00] Ox0dea: domgetter: That'd be String#**, surely?
[03:43:25] domgetter: k I'll do that instead
[03:43:29] domgetter: either way, this is happening
[03:45:37] cassioscabral: has joined #ruby
[03:46:27] domgetter: Well I can square strings now, but I'd have to make assumptions on presentation after that: https://gist.github.com/domgetter/8fd3f67808d88dec4861
[03:48:00] domgetter: And it doesn't work well when the string has a newline in it
[03:48:34] duckpuppy: has joined #ruby
[03:49:17] ^CrYpto^: im going to start trying to learn ruby
[03:49:25] ^CrYpto^: i really have no idea where to to start
[03:49:57] domgetter: There are a few good resources. Do you know how you learn best? Watching vids? Reading? Doing it yourself?
[03:50:00] Ox0dea: domgetter: Here's my take: https://eval.in/489456
[03:50:12] Ox0dea: I think that's what it should mean to exponentiate a string?
[03:51:17] ^CrYpto^: a combo of all three
[03:51:17] ^CrYpto^: a lil adhd going on over here
[03:51:25] Ox0dea: /part #therapy
[03:52:04] ohaibbq_: has joined #ruby
[03:52:06] bronson: has joined #ruby
[03:52:28] StephenOTT: has joined #ruby
[03:52:51] StephenOTT: Anyone know of a web app that allows users to create documents in a noSQL db?
[03:53:22] Ox0dea: stephenott: https://devnull-as-a-service.com/
[03:53:39] domgetter: ^CrYpto^: for a book, check out Programming Ruby. Also known as The Pickaxe Book.
[03:54:02] domgetter: For video, I found the tutorial videos at Lynda.com to be very good. But they charge for watching
[03:54:02] jcdesimp: has joined #ruby
[03:54:19] domgetter: for doing it, try out rubymonk.com
[03:54:53] domgetter: ^CrYpto^: in the "Gettings Started" section of rubydocs: http://ruby-doc.org/
[03:55:13] domgetter: you can find links to all kinds of resources, including the aforementioned Programming Ruby book
[03:55:44] varunwachaspati: has joined #ruby
[03:55:45] domgetter: Oh here's a bunch: http://ruby-doc.org/whyruby/
[03:55:50] domgetter: They have a link to RubyMonk there too
[03:55:59] atomical: has joined #ruby
[03:57:07] domgetter: If you are into asceticism, you can try http://learnrubythehardway.org/
[03:57:23] p1k: has joined #ruby
[03:57:49] Ox0dea: domgetter: Did you mean masochism?
[03:58:01] domgetter: same thing :)
[03:58:05] Ox0dea: I disagree.
[03:58:11] p1k: does anyone have any experience streaming into zlib? according to the documentation you can pass an io object but it doesn't seem to work: http://ruby-doc.org/stdlib-2.1.1/libdoc/zlib/rdoc/Zlib/GzipReader.html
[03:58:25] Ox0dea: p1k: Post code?
[03:58:51] annomander: is the hardway method actually any good? I did it with python a long time ago and it was just a ton of repition
[03:59:03] Ox0dea: It's shit.
[03:59:36] domgetter: annomander: I'm not a fan. but everyone's different. It might appeal to some people
[03:59:39] p1k: Zlib::GzipReader.open(response.body) {|gz| gz} # raises an error
[03:59:49] p1k: where response.body is a StringIO class
[04:01:01] domgetter: p1k GzipReader#open takes a filepath, and you're giving it an IO
[04:01:12] domgetter: You probably want #new http://ruby-doc.org/stdlib-2.1.1/libdoc/zlib/rdoc/Zlib/GzipReader.html
[04:01:19] p1k: yeah I just noticed =/
[04:01:47] annomander: also, I've got an object that I'm trying to pass as an argument to a function. that object has an attribute 'attr'. For that function to access 'attr' I absolutely need something like 'attr_reader attr' as part of my class, right?
[04:02:04] p1k: the example at the top of the docs I assumed applied to both, but I guess I didn't look further down
[04:02:20] domgetter: annomander: either that or an explicit method named attr that returns the value of @attr
[04:02:37] domgetter: annomander: and it would be attr_reader :attr
[04:02:41] Ox0dea: annomander: You could also use #instance_variable_get, but you probably shouldn't just yet.
[04:02:44] domgetter: You need the colon before the attribute name
[04:03:11] domgetter: yea don't use #instance_variable_get except for educational reasons
[04:03:50] domgetter: oooorrr, you're making some weird new framework and you need to access things in a weird way
[04:05:10] Axy: has joined #ruby
[04:05:11] Axy: has joined #ruby
[04:05:34] nkwsy: has joined #ruby
[04:08:30] adingman: Ox0dea, sortof. Anyone who uses this code to secure data would have to be an idiot.
[04:08:47] Ox0dea: adingman: You're doing character-wise XOR, though, yeah?
[04:08:49] adingman: It's part of a padding oracle demonstration.
[04:08:56] wldcordeiro: has joined #ruby
[04:09:57] sankaber: has joined #ruby
[04:10:22] braincrash: has joined #ruby
[04:11:31] kp666: has joined #ruby
[04:12:32] certainty: has joined #ruby
[04:15:43] ascarter: has joined #ruby
[04:16:03] adingman: Ox0dea, So, SimpleDelegator is giving me the same problem.
[04:16:04] dlitvak: has joined #ruby
[04:16:34] adingman: m = CryptoString("message")
[04:17:06] adingman: irb(main):125:0> (m + m).class
[04:17:51] charliesome: has joined #ruby
[04:19:32] adingman: For the time being, looks like I'll just have to have a bunch of stub methods where I need to have the type come out right :-/
[04:19:35] adingman: def concat(s)
[04:19:35] adingman: CryptoString.new(super(s))
[04:19:38] ta: has joined #ruby
[04:19:38] howdoi: has joined #ruby
[04:19:38] adingman: and similar
[04:20:52] grassdog_: has joined #ruby
[04:21:13] dionysus69: has joined #ruby
[04:22:40] Bloomer: has joined #ruby
[04:23:30] grassdog_: has joined #ruby
[04:24:07] tectonic: has joined #ruby
[04:25:03] idefine: has joined #ruby
[04:26:37] kfpratt: has joined #ruby
[04:27:21] andywojo: has joined #ruby
[04:29:34] ^CrYpto^: has joined #ruby
[04:31:05] hxegon: has joined #ruby
[04:31:43] Dimik: has joined #ruby
[04:32:53] qiukun: has joined #ruby
[04:33:09] abronca: has joined #ruby
[04:33:31] ChanServ: -b TotenSieDieJuden!*@*
[04:33:48] zast: has joined #ruby
[04:36:00] solenoids: has joined #ruby
[04:38:20] dylanjhoulihan: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:38:41] ^CrYpto^: has joined #ruby
[04:39:52] skcin7: has joined #ruby
[04:43:35] chouhoulis: has joined #ruby
[04:44:44] sorbo_: has joined #ruby
[04:44:46] idefine: has joined #ruby
[04:46:03] codecop: has joined #ruby
[04:48:01] sorbo_: has left #ruby: ()
[04:49:09] yeshacker: has joined #ruby
[04:49:23] duckpuppy: has joined #ruby
[04:49:54] Bloomer: has joined #ruby
[04:50:38] shinnya: has joined #ruby
[04:51:26] ramfjord: has joined #ruby
[04:52:14] Ox0dea: adingman: How do you feel about this madness? https://eval.in/489457
[04:52:51] adingman: Well, that's one way to do it.
[04:53:04] adingman: Interestingly, I seem to have gotten what I want with this:
[04:53:05] Ox0dea: Shame about String#+ not observing coercion. :<
[04:53:16] adingman: class CryptoString < String
[04:53:16] adingman: def initialize(s="",block_size=0)
[04:53:16] adingman: if s.is_a? CryptoString and block_size == 0
[04:53:16] adingman: block_size = s.bs
[04:53:16] adingman: elsif block_size == 0
[04:53:18] adingman: block_size = 16
[04:53:22] adingman: self.bs=(block_size)
[04:53:24] adingman: return self
[04:53:33] ramortegui: has joined #ruby
[04:53:45] adingman: Got rid of all the places where I had overridden a function and I'm still getting my types preserved across invocations.
[04:55:21] bkxd: has joined #ruby
[04:55:40] Ox0dea: adingman: https://eval.in/489458
[04:55:49] Ox0dea: Somebody needs some tests. :P
[04:57:17] adingman: Ox0dea, as in I'm missing a case?
[04:57:42] Ox0dea: adingman: CryptoString + CryptoString = String; that's not good?
[04:58:26] Ox0dea: That's the example that got us started, no?
[04:58:46] devoldmx_: has joined #ruby
[04:59:07] adingman: Fug, it was working before.
[04:59:16] treaki__: has joined #ruby
[04:59:22] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[04:59:27] the_nick_me: has joined #ruby
[04:59:29] adingman: but I quit irb and re-ran the require and it doesn't now.
[04:59:38] Ox0dea: Use mine.
[04:59:44] Ox0dea: It's just crazy enough to work. ^_^
[05:01:34] adingman: Added back in my override of concat and it works in a fresh process for all the other methods.
[05:01:52] adingman: At least, all the other crypto ones.
[05:02:15] wolffles: has joined #ruby
[05:02:24] adingman: and some others.
[05:02:35] adingman: irb(main):005:0> m[0..5].class
[05:02:35] adingman: => CryptoString
[05:02:40] adingman: For example.
[05:03:49] Ox0dea: adingman: How come this is okay? https://eval.in/489458
[05:04:31] plonk: has joined #ruby
[05:04:32] plonk: has joined #ruby
[05:04:40] KennethSteel: has joined #ruby
[05:04:49] dlitvak: has joined #ruby
[05:05:08] djbkd_: has joined #ruby
[05:05:46] n0vo: has joined #ruby
[05:05:47] n0vo: has joined #ruby
[05:05:51] adingman: https://eval.in/489460
[05:06:29] adingman: concat just seems to cover enough other cases that the type fix propagates all over.
[05:12:08] tvw: has joined #ruby
[05:12:18] Ox0dea: >> s = 'foo'; s.concat 'bar'; s # adingman
[05:12:19] ruboto: Ox0dea # => "foobar" (https://eval.in/489467)
[05:12:25] Ox0dea: #concat != #+
[05:15:56] adingman: Ox0dea, Hmm. What's the difference?
[05:17:05] Ox0dea: adingman: #concat modifies the receiver in-place.
[05:17:18] Ox0dea: Mutation has a way of biting very hard at particularly inopportune moments.
[05:17:23] vikas027: has joined #ruby
[05:17:43] qiukun: has joined #ruby
[05:17:45] domgetter: Yea, String#<< mutates as well
[05:18:15] doni: has joined #ruby
[05:20:48] wsewolod: has joined #ruby
[05:20:56] tubulife-: has joined #ruby
[05:21:00] bithon: has left #ruby: ("WeeChat 1.3")
[05:21:18] Ox0dea: adingman: My metaprogramming one looks pretty crazy, but it's actually pretty straightforward.
[05:21:46] adingman: The only thing really crazy about it for me is that I don't know how to use introspection well in any language, much less this one.
[05:21:57] adingman: The basic idea is clearly sound.
[05:22:13] Ox0dea: adingman: Ruby makes introspection ridiculously easy.
[05:22:18] bronson: has joined #ruby
[05:22:32] wsewolod: Is there anything it makes difficult?
[05:23:04] Ox0dea: Wsewolod: http://i.imgur.com/94jou4v.png
[05:23:29] Ox0dea: That's valid Ruby code. Draw what conclusions you will. :P
[05:23:32] dextertzu: has joined #ruby
[05:23:55] domgetter: That it has a bit of Perl in it? ;)
[05:24:14] grassdog_: has joined #ruby
[05:24:29] doni: Hello guys, I am new here, I want to know that is there any guide for how to develop ruby-core, what I am doing is adding a feature the ruby-core/lib/csv.rb, but I have no idea to test the feature, So I want a guide for this.
[05:25:02] domgetter: doni: here's a place to start: https://blog.engineyard.com/2014/contribute-to-ruby
[05:26:01] s00pcan: has joined #ruby
[05:27:18] doni: domgetter: Thanks, I will take a look.
[05:27:37] domgetter: doni: I just tweeted Aaron Patterson if he knows any good guides to set up a testing environment for contributing to Ruby. If he responds, you can see it here: https://twitter.com/domgetter/status/679533532411133952
[05:27:44] dr3w: has joined #ruby
[05:28:06] domgetter: He is (or at least was) on the Ruby core team
[05:32:13] shevy: he even is here on #ruby
[05:32:47] tlarevo: has joined #ruby
[05:32:52] Fezzler: has joined #ruby
[05:33:34] ta: has joined #ruby
[05:37:44] emilkarl: has joined #ruby
[05:38:22] dopie: has joined #ruby
[05:44:42] chouhoulis: has joined #ruby
[05:44:47] dwfait: has joined #ruby
[05:45:14] certainty: has joined #ruby
[05:46:52] tlarevo: has joined #ruby
[05:48:02] dopie: has joined #ruby
[05:48:33] h99h9h88: has joined #ruby
[05:49:30] fullofcaffeine: has joined #ruby
[05:49:59] devoldmx: has joined #ruby
[05:50:03] duckpuppy: has joined #ruby
[05:51:10] qiukun: has joined #ruby
[05:51:27] dopie: has joined #ruby
[05:51:33] PedramT: has joined #ruby
[05:53:23] edj_: has joined #ruby
[05:57:15] camus: Hello, I have a list of my customer emails and I'm querying an API that will let me know which are the most active on social media. The API returns JSON, I made a mistake and forgot to cache the email address associated w/ each result.
[05:57:26] camus: Here's a link to the code: https://gist.github.com/anonymous/8efa00ac01a184bd8238
[05:59:05] lxsameer: has joined #ruby
[05:59:11] camus: Could someone please help me figure out how I store the email address I'm interpolating with the corresponding JSON result I'm writing locally?
[06:01:06] framling: has joined #ruby
[06:05:28] adgtl: has joined #ruby
[06:07:04] PedramT: has joined #ruby
[06:09:42] p1k: has joined #ruby
[06:11:32] cwong_on_irc: has joined #ruby
[06:13:40] idefine: has joined #ruby
[06:14:04] moeabdol: has joined #ruby
[06:20:11] PedramT: has joined #ruby
[06:21:47] dr3w: has joined #ruby
[06:23:33] n0vo: How come when I check out TCPSocket on rubydocs it only shows two methods yet when I see other peoples code examples I seed things like .accept and .read and stuff
[06:24:48] vdamewood: has joined #ruby
[06:29:25] nbdy: has joined #ruby
[06:29:30] krz: has joined #ruby
[06:30:38] bkxd: has joined #ruby
[06:30:50] darkf: has joined #ruby
[06:30:58] shevy: n0vo it may subclass another class that offers these methods perhaps
[06:31:49] shevy: here is the ancestor chain [TCPSocket, IPSocket, BasicSocket, IO, File::Constants, Enumerable, Object, Kernel, BasicObject]
[06:32:27] grassdog_: has joined #ruby
[06:32:43] michaeldeol: has joined #ruby
[06:33:17] certainty: has joined #ruby
[06:33:23] idefine: has joined #ruby
[06:35:43] bronson: has joined #ruby
[06:36:59] ta: has joined #ruby
[06:38:14] tagrudev: has joined #ruby
[06:42:21] PedramT: has joined #ruby
[06:43:09] lessless: has joined #ruby
[06:43:36] bronson: has joined #ruby
[06:44:45] qiukun: has joined #ruby
[06:45:26] chouhoulis: has joined #ruby
[06:45:28] baweaver: has joined #ruby
[06:45:34] s00pcan: has joined #ruby
[06:45:46] emilkarl: has joined #ruby
[06:47:17] lemur: has joined #ruby
[06:47:37] lacuna_: has joined #ruby
[06:48:18] pawnbox: has joined #ruby
[06:49:40] solars: has joined #ruby
[06:50:49] duckpuppy: has joined #ruby
[06:56:30] anisha: has joined #ruby
[06:57:12] Foad_NH: has joined #ruby
[06:57:54] lkba: has joined #ruby
[06:58:15] Foad_NH: Hi, I have a problem with event-machine, it says: Encryption not available on this event-machine.
[06:58:25] blub: has joined #ruby
[06:58:27] h99h9h88: has joined #ruby
[06:58:49] emilkarl: has joined #ruby
[06:58:53] shanemcd: has joined #ruby
[06:58:54] Foad_NH: I'm on CentOS and openssl-dev is installed. I uninstalled and installed eventmachine, but nothing changed. Can you help me?
[06:59:07] scepticulous: has joined #ruby
[06:59:42] h99h9h88_: has joined #ruby
[07:00:39] duckpuppy: has joined #ruby
[07:00:44] Kn|t3: has joined #ruby
[07:01:36] h99h9h88_: has joined #ruby
[07:01:56] dlitvak: has joined #ruby
[07:03:02] idefine: has joined #ruby
[07:04:54] claw: has joined #ruby
[07:11:23] p1k: has joined #ruby
[07:13:35] PedramT: has joined #ruby
[07:15:58] yardenbar: has joined #ruby
[07:16:00] dr3w: has joined #ruby
[07:19:31] mary5030: has joined #ruby
[07:20:02] treaki: has joined #ruby
[07:22:59] idefine: has joined #ruby
[07:24:04] edwinvdgraaf: has joined #ruby
[07:24:17] dextertzu: has joined #ruby
[07:24:53] sigurding: has joined #ruby
[07:25:01] PedramT: has joined #ruby
[07:28:45] colegatron: has joined #ruby
[07:29:45] Phage-: has joined #ruby
[07:30:00] kies^: has joined #ruby
[07:36:40] crazydiamond: has joined #ruby
[07:37:42] tvon: has joined #ruby
[07:39:53] ta: has joined #ruby
[07:41:13] yfeldblum: has joined #ruby
[07:42:29] idefine: has joined #ruby
[07:44:52] mozzarella: has joined #ruby
[07:46:10] chouhoulis: has joined #ruby
[07:47:18] djbkd: has joined #ruby
[07:47:28] lessless: has joined #ruby
[07:51:33] DoubleMalt: has joined #ruby
[07:55:21] hxegon: has joined #ruby
[07:56:28] pawnbox: has joined #ruby
[07:57:26] relix: has joined #ruby
[07:58:33] dwfait: has joined #ruby
[07:59:27] Kn|t3: has joined #ruby
[08:00:02] n0vo: has joined #ruby
[08:00:02] n0vo: has joined #ruby
[08:01:14] dlitvak: has joined #ruby
[08:02:22] duckpuppy: has joined #ruby
[08:03:15] Mon_Ouie: has joined #ruby
[08:03:50] Trynemjoel: has joined #ruby
[08:06:06] tyrbo: has joined #ruby
[08:10:09] dr3w: has joined #ruby
[08:11:30] Anderson69s: has joined #ruby
[08:17:27] dnewkerk: has joined #ruby
[08:18:14] sgambino: has joined #ruby
[08:18:16] agit0: has joined #ruby
[08:19:02] fly5566: has joined #ruby
[08:19:52] chihhsin: has joined #ruby
[08:20:10] smactive: has joined #ruby
[08:20:13] karapetyan: has joined #ruby
[08:22:03] idefine: has joined #ruby
[08:22:30] qiukun: has joined #ruby
[08:23:02] ibouvousaime: has joined #ruby
[08:24:15] grassdog_: has joined #ruby
[08:24:37] devoldmx: has joined #ruby
[08:25:05] Kn|t3: has joined #ruby
[08:27:25] lkba: has joined #ruby
[08:30:35] andywojo: has joined #ruby
[08:30:49] dlitvak: has joined #ruby
[08:34:28] dotix: has joined #ruby
[08:37:01] agent_white: has joined #ruby
[08:37:05] agent_white: has left #ruby: ()
[08:37:59] Kn|t3: has joined #ruby
[08:40:11] ibouvousaime: has joined #ruby
[08:40:11] ledestin: has joined #ruby
[08:41:19] karapetyan: has joined #ruby
[08:41:46] karapetyan: has joined #ruby
[08:41:55] ta: has joined #ruby
[08:43:16] adgtl: has joined #ruby
[08:43:29] mary5030: has joined #ruby
[08:43:38] h99h9h88: has joined #ruby
[08:45:42] karapetyan: has joined #ruby
[08:46:03] blackmesa: has joined #ruby
[08:46:05] tvw: has joined #ruby
[08:46:54] chouhoulis: has joined #ruby
[08:47:43] Kn|t3: has joined #ruby
[08:49:08] IdanM: has joined #ruby
[08:51:02] firstdayonthejob: has joined #ruby
[08:52:05] edwinvdgraaf: has joined #ruby
[08:53:58] h99h9h88: has joined #ruby
[08:55:41] relix: has joined #ruby
[08:57:06] skade: has joined #ruby
[08:57:21] Hounddog: has joined #ruby
[08:58:45] dlitvak_: has joined #ruby
[09:00:20] doni: has joined #ruby
[09:00:34] doni: has left #ruby: ()
[09:01:27] rippa: has joined #ruby
[09:02:43] ibouvousaime: has joined #ruby
[09:03:01] duckpuppy: has joined #ruby
[09:06:43] ta: has joined #ruby
[09:06:50] LetItSnow-y: has joined #ruby
[09:07:47] thejamespinto: has joined #ruby
[09:08:14] hectortrope: has joined #ruby
[09:08:57] h99h9h88: has joined #ruby
[09:09:03] PedramT: has joined #ruby
[09:10:11] emilkarl_: has joined #ruby
[09:11:26] jbrhbr: has joined #ruby
[09:12:22] jbrhbr: has joined #ruby
[09:13:26] jbrhbr1: has joined #ruby
[09:16:55] senayar: has joined #ruby
[09:16:55] senayar: has joined #ruby
[09:18:05] setient: has joined #ruby
[09:19:46] dlitvak: has joined #ruby
[09:20:01] BSaboia: has joined #ruby
[09:22:35] pandaant: has joined #ruby
[09:24:11] emilkarl_: has joined #ruby
[09:25:02] dextertzu: has joined #ruby
[09:25:27] ur5us: has joined #ruby
[09:28:22] dnewkerk: has joined #ruby
[09:28:33] Kn|t3: has joined #ruby
[09:29:21] waka: has joined #ruby
[09:30:06] DoubleMalt: has joined #ruby
[09:32:16] jcdesimp: has joined #ruby
[09:34:13] alphaatom: has joined #ruby
[09:34:53] marr: has joined #ruby
[09:35:45] emilkarl: has left #ruby: ()
[09:41:17] Jackneill: has joined #ruby
[09:41:34] Kn|t3: has joined #ruby
[09:43:28] chussenot: has joined #ruby
[09:44:19] bronson: has joined #ruby
[09:45:54] htmldrum: has joined #ruby
[09:46:28] dlitvak: has joined #ruby
[09:47:39] chouhoulis: has joined #ruby
[09:50:37] last_staff: has joined #ruby
[09:50:55] idefine: has joined #ruby
[09:51:58] blackmesa: has joined #ruby
[09:52:06] ElFerna: has joined #ruby
[09:52:21] radgeRayden: has joined #ruby
[09:54:48] MikeSanchez: has joined #ruby
[09:55:03] MikeSanchez: has anyone heard of steve harvey?
[09:56:46] bkxd: what's a good way to find a project to contribute to?
[09:56:57] bkxd: also, can you contribute to projects other than by coding?
[09:58:00] chussenot: has joined #ruby
[09:58:07] darix: bkxd: writing documentation
[09:58:35] bkxd: darix: i was thinking more like project management, marketing, strategy, etc. or am i off the reservation?
[09:59:33] krz: has joined #ruby
[09:59:54] darix: sure. but you get that split up to multiple people only on the bigger projects
[10:00:26] bkxd: darix: interesting
[10:01:42] krz: has joined #ruby
[10:03:44] duckpuppy: has joined #ruby
[10:04:03] krz: has joined #ruby
[10:06:16] Kn|t3: has joined #ruby
[10:07:58] krz: has joined #ruby
[10:10:22] blaxter: has joined #ruby
[10:10:32] pawnbox: has joined #ruby
[10:11:52] ElFerna: has joined #ruby
[10:13:06] ibouvousaime: has joined #ruby
[10:13:17] p1k: has joined #ruby
[10:13:21] emilkarl: has joined #ruby
[10:15:07] emilkarl_: has joined #ruby
[10:15:19] dlitvak_: has joined #ruby
[10:18:01] dextertzu: has joined #ruby
[10:18:41] ramfjord: has joined #ruby
[10:19:12] Ishido: has joined #ruby
[10:19:49] adgtl: has joined #ruby
[10:20:37] idefine: has joined #ruby
[10:21:24] rodfersou: has joined #ruby
[10:21:28] Kn|t3: has joined #ruby
[10:23:21] shanemcd: has joined #ruby
[10:23:33] Ishido: has joined #ruby
[10:23:36] karapetyan: has joined #ruby
[10:24:16] ElFerna: has joined #ruby
[10:25:19] the_nick_me: has joined #ruby
[10:25:21] devoldmx: has joined #ruby
[10:28:14] sdothum: has joined #ruby
[10:29:37] lubekpl: has joined #ruby
[10:31:07] andywojo: has joined #ruby
[10:33:32] ElFerna: has joined #ruby
[10:35:22] aibot: has joined #ruby
[10:36:33] ruu_: has joined #ruby
[10:37:00] bnizzle1: has left #ruby: ()
[10:37:44] Kn|t3: has joined #ruby
[10:38:19] nfk|laptop: has joined #ruby
[10:40:22] idefine: has joined #ruby
[10:41:24] symm-: has joined #ruby
[10:41:40] pawnbox: has joined #ruby
[10:42:34] rgtk: has joined #ruby
[10:44:33] dlitvak: has joined #ruby
[10:47:59] moeabdol: has joined #ruby
[10:48:22] chouhoulis: has joined #ruby
[10:48:29] tubuliferous_: has joined #ruby
[10:48:35] mlangenberg: has joined #ruby
[10:50:03] Mia: has joined #ruby
[10:50:04] Mia: has joined #ruby
[10:51:33] mlangenberg: Is this the best way to initialize an anonymous struct multiple times? `People = %w(Amy Bob Charles).map { |n| Struct.new(:name).new(n) }`
[10:52:33] mlangenberg: I noticed the syntax for this in Go is really elegant. Wondering about a Ruby version.
[10:53:30] BSaboia: has joined #ruby
[10:54:42] zamerick_: has joined #ruby
[10:55:23] chussenot: has joined #ruby
[10:56:26] moeabdol: has joined #ruby
[10:57:18] adgtl: has joined #ruby
[10:57:47] radgeRayden: has joined #ruby
[10:59:07] TheHodge: has joined #ruby
[11:00:34] adgtl_: has joined #ruby
[11:01:14] rgtk: has joined #ruby
[11:04:33] duckpuppy: has joined #ruby
[11:05:26] solenoids: has joined #ruby
[11:06:52] blackmesa: has joined #ruby
[11:07:02] themsay: has joined #ruby
[11:07:47] pawnbox: has joined #ruby
[11:08:49] FooMunki: has joined #ruby
[11:09:34] jschmid: has joined #ruby
[11:10:40] adgtl: has joined #ruby
[11:11:16] pawnbox: has joined #ruby
[11:11:20] mlangenberg: has joined #ruby
[11:11:34] pawnbox: has joined #ruby
[11:13:07] soahccc: mlangenberg: personally I very rarely see the use of Struct/OpenStruct in ruby... Generally you have your own classes so that you can add, whenever you like, more methods, attributes, etc.
[11:14:20] ElFerna: has joined #ruby
[11:14:20] htmldrum: has joined #ruby
[11:14:57] dlitvak_: has joined #ruby
[11:17:04] mlangenberg: Okay, I use Struct quite often. OpenStruct not so much.
[11:17:15] BrunoSaboia: has joined #ruby
[11:18:02] p1k: has joined #ruby
[11:18:02] mlangenberg: a Struct can be used for grouping related arguments or attributes in a hash.
[11:18:15] andikr: has joined #ruby
[11:18:34] last_staff: has joined #ruby
[11:19:14] mlangenberg: In Go initializing anonymous structs has a nice syntax: https://github.com/golang/go/wiki/TableDrivenTests
[11:19:42] sandstrom: has joined #ruby
[11:19:58] nfk|laptop: has joined #ruby
[11:20:19] rickmasta: has joined #ruby
[11:21:48] lkba: has joined #ruby
[11:23:11] AccordLTN: has joined #ruby
[11:25:12] FooMunki: has joined #ruby
[11:28:03] mdw: has joined #ruby
[11:31:14] PedramT: has joined #ruby
[11:32:51] TomyLobo: has joined #ruby
[11:33:20] dlitvak: has joined #ruby
[11:35:12] adgtl: has joined #ruby
[11:35:50] certainty: has joined #ruby
[11:36:02] emilkarl: has joined #ruby
[11:36:22] adgtl_: has joined #ruby
[11:44:30] c355E3B: has joined #ruby
[11:46:52] dr3w: has joined #ruby
[11:47:04] PedramT: has joined #ruby
[11:48:38] grn: has joined #ruby
[11:49:05] chouhoulis: has joined #ruby
[11:51:05] pawnbox: has joined #ruby
[11:52:25] sigurding: has joined #ruby
[11:54:58] slackbotgz: has joined #ruby
[11:56:58] pawnbox: has joined #ruby
[11:57:59] smactive: has joined #ruby
[11:59:23] PedramT: has joined #ruby
[12:00:57] steffkes: has joined #ruby
[12:00:58] steffkes: has joined #ruby
[12:01:52] blackmesa: has joined #ruby
[12:03:50] PedramT: has joined #ruby
[12:04:18] pawnbox: has joined #ruby
[12:04:58] prestorium: has joined #ruby
[12:05:19] duckpuppy: has joined #ruby
[12:09:16] idefine: has joined #ruby
[12:10:28] andywojo: has joined #ruby
[12:11:11] pawnbox: has joined #ruby
[12:13:04] johnzorn: has joined #ruby
[12:14:17] ramfjord: has joined #ruby
[12:17:24] ElFerna: has joined #ruby
[12:17:57] mlangenberg: has joined #ruby
[12:17:59] pawnbox: has joined #ruby
[12:19:37] mistermocha: has joined #ruby
[12:23:06] blt: has joined #ruby
[12:26:05] devoldmx: has joined #ruby
[12:26:55] bithon: has joined #ruby
[12:29:06] idefine: has joined #ruby
[12:29:11] slackbotgz: has joined #ruby
[12:33:38] alphaatom: has joined #ruby
[12:34:16] bkxd_: has joined #ruby
[12:34:37] sandstrom: has joined #ruby
[12:36:24] charliesome: has joined #ruby
[12:38:55] senayar: has joined #ruby
[12:40:20] ruid: has joined #ruby
[12:40:21] ruid: has joined #ruby
[12:42:40] duoi: has joined #ruby
[12:44:18] cassioscabral: has joined #ruby
[12:47:14] bronson: has joined #ruby
[12:49:53] chouhoulis: has joined #ruby
[12:50:16] PedramT: has joined #ruby
[12:51:01] icbm: has joined #ruby
[12:52:01] FooMunki: has joined #ruby
[12:52:42] dlitvak: has joined #ruby
[12:52:44] jcdesimp: has joined #ruby
[12:54:33] pawnbox: has joined #ruby
[12:55:09] senayar: has joined #ruby
[12:55:09] senayar: has joined #ruby
[12:56:25] pawnbox: has joined #ruby
[12:57:05] jmonreal: has joined #ruby
[12:58:47] idefine: has joined #ruby
[12:59:31] Spami: has joined #ruby
[12:59:37] emilkarl: has joined #ruby
[13:00:38] jcdesimp: has joined #ruby
[13:00:50] sigurding: has joined #ruby
[13:03:54] blackmesa: has joined #ruby
[13:04:09] karapetyan: has joined #ruby
[13:04:57] conta: has joined #ruby
[13:05:13] PlasmaStar: has joined #ruby
[13:05:39] conta: guys, where can I find docs about '~>' in gemfile? trying to google it for 10 minutes but no success
[13:06:06] duckpuppy: has joined #ruby
[13:06:15] synthroid: has joined #ruby
[13:06:52] symbol: has joined #ruby
[13:07:57] nocd: has joined #ruby
[13:09:09] charliesome: has joined #ruby
[13:09:29] crunk_bear: has joined #ruby
[13:09:51] yardenbar: has joined #ruby
[13:09:52] flori: has joined #ruby
[13:11:23] scepticulous: has joined #ruby
[13:12:03] abronca: has joined #ruby
[13:13:08] scepticulous: has joined #ruby
[13:13:11] duckpuppy: has joined #ruby
[13:14:14] davedev24: has joined #ruby
[13:16:04] dstarh: has joined #ruby
[13:18:17] d0nn1e: has joined #ruby
[13:18:31] idefine: has joined #ruby
[13:18:42] lubekpl: ACTION conta: 
[13:18:49] lubekpl: There are seven operators you can use when specifying your gems.
[13:18:49] lubekpl: = Equal To "=1.0"
[13:18:50] lubekpl: != Not Equal To "!=1.0"
[13:18:50] lubekpl: > Greater Than ">1.0"
[13:18:52] lubekpl: < Less Than "<1.0"
[13:18:52] lubekpl: >= Greater Than or Equal To ">=1.0"
[13:18:54] lubekpl: <= Less Than or Equal To "<=1.0"
[13:18:54] lubekpl: ~> Pessimistically Greater Than or Equal To "~>1.0"
[13:18:56] lubekpl: as in: http://tosbourn.com/what-is-the-gemfile/
[13:20:12] dotix: has joined #ruby
[13:20:27] conta: lubekpl I have trouble with one gem where dependency is ~> 3.3 and I have error with v 4
[13:22:23] Kn|t3: has joined #ruby
[13:23:44] atomical: has joined #ruby
[13:24:42] Encapsulation: has joined #ruby
[13:24:55] InvGhost: has joined #ruby
[13:27:12] conta: it's in gemspec
[13:27:15] chussenot: has joined #ruby
[13:27:28] conta: was s.add_runtime_dependency("middleman-core", ["~> 3.3"])
[13:27:29] p0wn3d_: has joined #ruby
[13:27:38] colegatron: has joined #ruby
[13:27:45] conta: so I changed to s.add_runtime_dependency("middleman-core", [">= 3.3"]) to make it work with v4
[13:28:00] conta: but wasn't sure what I am doing
[13:28:21] lubekpl: well, you shouldn't be changing dependencies
[13:28:33] lubekpl: why not use middleman 3.3?
[13:29:36] the_nick_me: has joined #ruby
[13:30:10] conta: well, I am on middleman 4. the gem I talk about is plugin (middleman-discuss)
[13:30:24] conta: so I wanna stay on Middleman 4
[13:31:04] kobain: has joined #ruby
[13:31:10] lubekpl: don't really know anything about middleman, but maybe it changed significantlly
[13:31:15] vikas027: has joined #ruby
[13:31:20] lubekpl: between versions 3 and 4
[13:32:19] conta: well, I guess might be some changes. the gem works for me fine after change. I filed issue with gem author so I will see
[13:34:50] mlangenberg: has joined #ruby
[13:36:58] bithon: has joined #ruby
[13:37:13] mdw7: has joined #ruby
[13:37:34] bithon: has joined #ruby
[13:37:56] ruid: has joined #ruby
[13:37:57] ruid: has joined #ruby
[13:39:42] rickmasta: has joined #ruby
[13:39:52] kobain: has joined #ruby
[13:43:56] mlangenberg: has joined #ruby
[13:46:06] devbug: has joined #ruby
[13:48:11] idefine: has joined #ruby
[13:49:13] ramortegui: has joined #ruby
[13:50:38] chouhoulis: has joined #ruby
[13:51:41] andywojo: has joined #ruby
[13:53:08] Guest32: has joined #ruby
[13:53:28] sandstrom: has joined #ruby
[13:54:45] shanemcd: has joined #ruby
[13:56:48] dlitvak: has joined #ruby
[13:57:49] cassioscabral: has joined #ruby
[13:59:11] dlitvak: has joined #ruby
[13:59:56] Jardayn: has joined #ruby
[14:02:03] blandflakes: has joined #ruby
[14:02:39] snowy: has joined #ruby
[14:04:01] rodfersou|lunch: has joined #ruby
[14:05:02] krobzaur: has joined #ruby
[14:05:32] karapetyan: has joined #ruby
[14:06:08] karapetyan: has joined #ruby
[14:07:54] idefine: has joined #ruby
[14:10:30] Kn|t3: has joined #ruby
[14:11:23] slackbotgz: has joined #ruby
[14:11:52] Phage: has joined #ruby
[14:14:01] dorei: has joined #ruby
[14:17:17] PedramT: has joined #ruby
[14:20:43] jmignault: has joined #ruby
[14:22:52] InvGhost: has joined #ruby
[14:24:39] skcin7: has joined #ruby
[14:24:46] shevy: will we have a new ruby tomorrow
[14:25:09] andywojo: has joined #ruby
[14:26:50] devoldmx: has joined #ruby
[14:27:10] moeabdol: has joined #ruby
[14:27:49] pawnbox: has joined #ruby
[14:29:17] RealLinuX: has joined #ruby
[14:29:57] the_nick_me: has joined #ruby
[14:31:06] ESpiney: has joined #ruby
[14:32:25] joneshf-laptop: has joined #ruby
[14:34:33] rodfersou: has joined #ruby
[14:35:39] the_nick_me: has joined #ruby
[14:36:01] pawnbox: has joined #ruby
[14:36:55] babblebre: has joined #ruby
[14:41:12] crunk_bear: has joined #ruby
[14:41:21] conta: has joined #ruby
[14:43:40] dotix: has joined #ruby
[14:49:35] duckpuppy: has joined #ruby
[14:50:08] shanemcd: has joined #ruby
[14:50:42] bronson: has joined #ruby
[14:51:21] FernandoBasso: has joined #ruby
[14:51:22] chouhoulis: has joined #ruby
[14:51:57] madhatter: has joined #ruby
[14:52:54] dhollinger: has joined #ruby
[14:54:08] dlitvak: has joined #ruby
[14:54:44] krz: has joined #ruby
[14:54:48] rippa: has joined #ruby
[14:55:10] cdg: has joined #ruby
[14:56:47] hxegon: has joined #ruby
[14:56:56] atomical_: has joined #ruby
[14:59:05] InvGhost: has joined #ruby
[15:02:57] cornerman: has joined #ruby
[15:04:47] dlitvak: has joined #ruby
[15:06:51] shanemcd: has joined #ruby
[15:06:52] beast: has joined #ruby
[15:09:59] dlitvak: has joined #ruby
[15:10:17] ibouvousaime: has joined #ruby
[15:10:21] adgtl: has joined #ruby
[15:10:27] atomical: has joined #ruby
[15:13:00] yokel: has joined #ruby
[15:13:06] mistermocha: has joined #ruby
[15:13:18] whippythellama: has joined #ruby
[15:17:26] axl_: has joined #ruby
[15:18:39] yokel: has joined #ruby
[15:19:25] InvGhost: has joined #ruby
[15:20:08] c0ncealed: has joined #ruby
[15:21:16] greenhat: has joined #ruby
[15:24:57] steffkes: has joined #ruby
[15:24:57] steffkes: has joined #ruby
[15:25:15] karapetyan: has joined #ruby
[15:25:49] StevenXL: has joined #ruby
[15:25:49] StevenXL: has joined #ruby
[15:26:06] stannard: has joined #ruby
[15:27:15] B1n4r10: has joined #ruby
[15:27:34] ibouvousaime_: has joined #ruby
[15:29:47] skade: has joined #ruby
[15:31:30] symm-: has joined #ruby
[15:31:45] mrtomme: has joined #ruby
[15:34:06] sandstrom: has joined #ruby
[15:34:37] InvGhost: has joined #ruby
[15:35:47] cassioscabral: has joined #ruby
[15:36:03] the_nick_me: has joined #ruby
[15:36:50] JakFrist: has joined #ruby
[15:36:52] idefine: has joined #ruby
[15:37:24] shevy: https://github.com/JuanitoFatas/fast-ruby
[15:40:03] shevy: damn openstruct is slow
[15:40:15] shevy: https://github.com/JuanitoFatas/fast-ruby#hash-vs-openstruct-creation-code
[15:41:58] Kn|t3: has joined #ruby
[15:42:37] InvGhost: has joined #ruby
[15:43:24] conta: has joined #ruby
[15:43:36] InvGhost: has joined #ruby
[15:44:41] idefine: has joined #ruby
[15:46:50] Tricon: has joined #ruby
[15:48:37] yardenbar: has joined #ruby
[15:49:18] Bloomer: has joined #ruby
[15:49:55] shevy: cool ... I did not know about .cover?
[15:49:56] shevy: https://github.com/JuanitoFatas/fast-ruby#cover-vs-include-code
[15:52:08] chouhoulis: has joined #ruby
[15:53:32] norm: has joined #ruby
[15:55:44] djbkd: has joined #ruby
[15:56:01] DefV: I don't get how the #include? on a range of date isn't fixed yet
[15:56:18] yxhuvud: defv: use cover?
[15:56:38] yxhuvud: because it works.
[15:56:48] DefV: what's the use case anyone would want to use include? over cover? ?
[15:57:01] conta: has joined #ruby
[15:59:06] gregf: has joined #ruby
[15:59:43] shevy: I remember that lots of blog entries have shown examples via .include? but I haven't seen one showing .cover? yet
[16:01:05] shanemcd_: has joined #ruby
[16:01:32] ramfjord: has joined #ruby
[16:02:44] agit0: has joined #ruby
[16:03:52] PedramT: has joined #ruby
[16:04:19] Abhijit: has joined #ruby
[16:04:44] dlitvak: has joined #ruby
[16:05:02] Abhijit: i am trying to install this gem for my rails project. https://github.com/edgarjs/ajaxful-rating i tried manually with gem install and also by including it in my projects gemfile and bundle. but it do not create any scripts folder and there is no generate scripts on scripts folder of !/.rsm
[16:06:09] lacuna: has joined #ruby
[16:06:09] lacuna: has joined #ruby
[16:06:27] xet7: has joined #ruby
[16:06:37] cpup: has joined #ruby
[16:11:44] hxegon: has joined #ruby
[16:11:47] shanemcd: has joined #ruby
[16:12:24] ElFerna: has joined #ruby
[16:12:36] agit0: has joined #ruby
[16:14:09] dlitvak: has joined #ruby
[16:15:20] chussenot: has joined #ruby
[16:16:52] duckpuppy: has joined #ruby
[16:17:26] Fezzler: has joined #ruby
[16:19:05] BSaboia: has joined #ruby
[16:21:03] kies^: has joined #ruby
[16:21:39] renderful: has joined #ruby
[16:22:12] timonv: has joined #ruby
[16:23:40] hectortrope: has joined #ruby
[16:23:44] arup_r: has joined #ruby
[16:27:37] devoldmx: has joined #ruby
[16:27:40] atomical_: has joined #ruby
[16:28:35] lacuna: has joined #ruby
[16:28:35] lacuna: has joined #ruby
[16:29:03] zdman135: has joined #ruby
[16:29:29] renderful: has joined #ruby
[16:29:30] thoraxe: https://gist.github.com/thoraxe/e8884a1b1fb7a1a4ed18 - given an array of objects like these, I'm trying to find any object in the array that has a particular list id **and** a particular card label with a particular id
[16:30:17] thoraxe: so in essence I'm trying to find objects in somearray where :list_id=>"565c88490972e1a33c359a6d" and :card_labels has an element with "id"=>"54d4de9c74d650d5671cb3c7"
[16:30:25] thoraxe: i can do this with iteration, but I'm sure there's a more sexy ruby way to do it
[16:30:57] polishdub: has joined #ruby
[16:32:36] chouhoulis: has joined #ruby
[16:33:41] chouhoulis: has joined #ruby
[16:35:18] Ishido: has joined #ruby
[16:36:44] nfk|laptop: has joined #ruby
[16:38:14] fullofcaffeine: has joined #ruby
[16:38:50] tvon: has joined #ruby
[16:40:18] skade: has joined #ruby
[16:40:25] dlitvak: has joined #ruby
[16:40:42] Contigi: has joined #ruby
[16:40:52] jbrhbr: has joined #ruby
[16:43:48] bradleyprice: has joined #ruby
[16:44:39] thoraxe: looks like enumerable/select
[16:44:43] thoraxe: just trying to figure out the combination
[16:44:48] Rodya_: has joined #ruby
[16:45:28] aegis3121: has joined #ruby
[16:45:28] tvon: has joined #ruby
[16:47:10] synthroid: has joined #ruby
[16:47:16] baroquebobcat: has joined #ruby
[16:47:43] solocshaw: has joined #ruby
[16:50:12] rgtk: has joined #ruby
[16:50:50] Kn|t3: has joined #ruby
[16:51:14] davejlong: has joined #ruby
[16:52:08] ascarter: has joined #ruby
[16:54:02] atomical: has joined #ruby
[16:54:53] ramfjord: has joined #ruby
[16:55:35] thoraxe: sprint_lists[1].cards[1].card_labels.include? ("id"=>"54d4de9c74d650d5671cb3c7") hmm this doesn't work
[16:56:45] the_nick_me: has joined #ruby
[16:57:38] conta: has joined #ruby
[16:58:34] skade: has joined #ruby
[16:58:39] paradoja: has joined #ruby
[17:00:52] shevy: thoraxe .include? is too simplistic
[17:01:04] thoraxe: yeah i think i need some weird find nested with something else
[17:01:27] hectortrope: has joined #ruby
[17:01:34] thoraxe: sprint_lists[1].cards.find { |card| card.card_labels.any? { |label| label["id"] == "54d4de9c74d650d5671cb3c7" } }
[17:01:57] apeiros: thoraxe: proper classes help with that.
[17:02:21] thoraxe: apeiros: well this is all using the trello gem
[17:02:26] thoraxe: which has proper classes, i think
[17:02:41] apeiros: doesn't seem like
[17:02:47] thoraxe: eg https://github.com/jeremytregunna/ruby-trello/blob/master/lib/trello/card.rb
[17:02:59] thoraxe: well, depends on what you mean by "proper"
[17:03:01] apeiros: after all, you're poking around in arrays of hashes of arrays of whatever
[17:03:05] jmdade: has joined #ruby
[17:03:39] apeiros: "using X" btw. isn't an excuse to come up with classes yourself :-p
[17:03:41] thoraxe: not sure what you know about trello, but basically a card can have labels. those labels themselves are a bunch of key/value info
[17:04:01] thoraxe: so, with this particular gem, the card's object has a card_labels attribute that is an array of hashes
[17:04:02] apeiros: I know of trello that it's similar to pivotal
[17:04:21] apeiros: and I'd assume that "id" is a standard attribute. and finding a card by id would probably be a standard operation.
[17:04:22] thoraxe: i am trying to find all cards (given an array of card objects) who have a particular label
[17:04:31] thoraxe: yes, but i am not trying to find a card by id.
[17:04:39] apeiros: so I'd expect cards.find(id) or similar to be present.
[17:04:40] thoraxe: i am trying to find cards who have a particular label
[17:04:49] thoraxe: and that LABEL has an id
[17:04:54] thoraxe: card.find(id) works fien.
[17:05:02] apeiros: almost the same thing then.
[17:05:05] thoraxe: i want card.find_by_label_id which...
[17:05:09] apeiros: card.where(label: label_id)
[17:05:12] apeiros: or somesuch
[17:05:25] apeiros: which behind the scenes may very well do what you just wrote.
[17:05:37] thoraxe: except there's an added constraint in my case that the card has to be on a particular list
[17:05:44] apeiros: (unless you tell me that label is nonstandard)
[17:05:53] apeiros: thoraxe: so?
[17:05:57] thoraxe: no label itself appears to be a class too
[17:06:20] nertzy: has joined #ruby
[17:06:21] thoraxe: i guess i need to look at .where
[17:06:24] jaequery: has joined #ruby
[17:06:33] apeiros: I made `where` up
[17:06:47] apeiros: it was an example for how I'd expect a potential API to look like
[17:07:05] amclain: has joined #ruby
[17:07:34] blackmesa: has joined #ruby
[17:07:37] cassioscabral: has joined #ruby
[17:08:29] thoraxe: well, i didn't write the gem or the classes, so i'm just trying to make do with what is here, and given a list of card objects the ugly find/select/whatever I was trying to do seemed like the quickest resolution
[17:08:46] thoraxe: i'm not even sure how to go about extending the card class to support finding cards by list and card id
[17:08:53] thoraxe: err label id
[17:09:05] thoraxe: because behind the scenes i would expect to end up writing the same exact ugly function
[17:09:11] mdw: has joined #ruby
[17:10:33] thoraxe: i guess i don't really understand what you're suggesting, apeiros
[17:10:37] thoraxe: i'm not really a programmer
[17:10:56] apeiros: I say dealing with nested hashes and arrays is stupid.
[17:11:16] thoraxe: so given what i'm working with, what do you suggest?
[17:11:19] apeiros: use (or write, if necessary) proper classes which provide sane interfaces, instead of poking around in those nested structures.
[17:11:40] fullofcaffeine: has joined #ruby
[17:11:44] thoraxe: so instead of an ugly command or two, i should rewrite all the things?
[17:13:03] thoraxe: sprint_lists[1].cards.find { |card| card.card_labels.any? { |label| label["id"] == "54d4de9c74d650d5671cb3c7" } } <- this seems to be close to what I want, but it's only returning the first card
[17:15:21] RegulationD: has joined #ruby
[17:16:36] karapetyan: has joined #ruby
[17:20:34] dlitvak: has joined #ruby
[17:21:16] ruu_: has joined #ruby
[17:24:24] sandstrom: has joined #ruby
[17:24:33] smactive: has joined #ruby
[17:25:22] fullofcaffeine: has joined #ruby
[17:25:23] InvGhost: has joined #ruby
[17:25:28] wsewolod: has joined #ruby
[17:26:15] dlitvak: has joined #ruby
[17:26:32] blt: has joined #ruby
[17:27:22] konsolebox: has joined #ruby
[17:28:12] benlieb: has joined #ruby
[17:28:24] lacuna: has joined #ruby
[17:29:31] davedev24: has joined #ruby
[17:29:40] cassioscabral: has joined #ruby
[17:30:04] konsolebox: has joined #ruby
[17:31:24] beast: has joined #ruby
[17:31:33] dr3w: has joined #ruby
[17:31:41] ascarter: has joined #ruby
[17:31:47] Polysics: has joined #ruby
[17:32:03] bronson: has joined #ruby
[17:32:38] atomical_: has joined #ruby
[17:32:42] jaequery: has joined #ruby
[17:33:00] diegoviola: has joined #ruby
[17:33:45] mark06: has joined #ruby
[17:34:21] Darin_: has joined #ruby
[17:35:14] Darin_: Anyone know how I would start to program a farkle game?
[17:37:36] apeiros: thoraxe: context matters of course. if it's half a dozen lines of ugly code which you'll never touch again - well, then use the ugly code.
[17:37:48] apeiros: Darin_: what's a farkle game?
[17:38:25] Darin_: It's the Dice game where certain rolls and combinations of numbers get certain points.
[17:39:15] thoraxe: apeiros: it's basically one line of code if i can figure out the right incantation of enum methods
[17:39:41] thoraxe: apeiros: otherwise it's a small loop over a small list of objects and reject any that don't have some stuff, which is slow, but works and this can be super low performance
[17:39:43] Darin_: I understand what I would have to do (I think) in psudocode. But I am at a place in my programming where I know the basics and know what things are, but not exactly what to do with what I know.
[17:39:56] marsjaninzmarsa: has joined #ruby
[17:40:41] rickmasta: has joined #ruby
[17:42:53] tubulife-: has joined #ruby
[17:44:50] Darin_: It's frustrating not knowing where to go from here.
[17:44:53] marr: has joined #ruby
[17:44:54] atomical: has joined #ruby
[17:46:27] nettoweb: has joined #ruby
[17:46:36] adgtl: has joined #ruby
[17:46:53] karapetyan: has joined #ruby
[17:48:19] nickjj: has joined #ruby
[17:48:45] dlitvak_: has joined #ruby
[17:50:22] wolffles: has joined #ruby
[17:51:01] davedev24: has joined #ruby
[17:54:10] dlitvak: has joined #ruby
[17:54:40] the_nic__: has joined #ruby
[17:56:00] gheegh: has joined #ruby
[17:57:42] conta: has joined #ruby
[17:58:14] agit0: has joined #ruby
[17:58:19] justinweiss: has joined #ruby
[17:58:30] nettoweb: has joined #ruby
[17:58:42] mary5030: has joined #ruby
[17:59:35] mary5030: has joined #ruby
[18:02:09] BaroMeter: has joined #ruby
[18:03:02] shanemcd: has joined #ruby
[18:06:08] karapetyan: has joined #ruby
[18:06:46] jbrhbr: has joined #ruby
[18:08:05] zdman135: has joined #ruby
[18:08:16] conta: has joined #ruby
[18:08:18] cyfr0n1: has joined #ruby
[18:10:08] timonv: has joined #ruby
[18:10:08] mdw: has joined #ruby
[18:12:02] armyriad: has joined #ruby
[18:13:15] jcdesimp: has joined #ruby
[18:13:21] the_nick_me: has joined #ruby
[18:14:45] mlangenberg: has joined #ruby
[18:17:42] CloCkWeRX: has joined #ruby
[18:18:37] mark06: has left #ruby: ("http://pidgin.renatosilva.me - Pidgin++")
[18:18:42] zdman135: has joined #ruby
[18:18:54] ibouvousaime_: has joined #ruby
[18:19:25] krobzaur: has joined #ruby
[18:20:22] ruu_: has joined #ruby
[18:20:38] andywojo: has joined #ruby
[18:21:47] kirun: has joined #ruby
[18:22:48] dlitvak: has joined #ruby
[18:24:26] atomical: has joined #ruby
[18:27:48] ElFerna: has joined #ruby
[18:28:25] devoldmx: has joined #ruby
[18:29:26] zdman135: has joined #ruby
[18:29:48] wolffles: why does arr[2,3] of arr = [1,2,3,4,5,] return arr[3,4,5] ? shouldnt it return 2 positions?
[18:30:05] ht__: has joined #ruby
[18:31:02] jhass: wolffles: [start, length] and [start..end]
[18:33:20] abronca: has joined #ruby
[18:34:45] dlitvak: has joined #ruby
[18:34:54] Spami: has joined #ruby
[18:37:10] Trynemjoel: has joined #ruby
[18:38:11] jmignault: has joined #ruby
[18:38:36] sneakerhax: has joined #ruby
[18:38:37] nfk|laptop: has joined #ruby
[18:39:55] wolffles: how would i do arr = [???a???, ???b???, ???c???, ???d???] with positions = [3, 1, 2, 0] return it as x = dbca? cuz right im doing x[positions] but thats obviously not right. should i just do an iterator like x[positions[i]] then i+=1?
[18:40:52] jackjackdripper: has joined #ruby
[18:41:02] Gnut: has joined #ruby
[18:41:15] p0wn3d_: has joined #ruby
[18:41:26] Jackneill: has joined #ruby
[18:41:44] rigel_: has joined #ruby
[18:42:11] rubynoobie: has joined #ruby
[18:42:32] Gnut: How would I go about converting a hash of {'key1'=>'val1', 'key2'=>'val2'} to the list ['key1=val1', 'key2=val2']
[18:42:54] dotix: has joined #ruby
[18:43:55] rigel_: in learn ruby the hard way exercise 41 a line of code reads
[18:43:57] rigel_: class_names = craft_names(rand_words, snippet, /###/, caps=true)
[18:43:58] rigel_: is it assigning a caps variable or passing a keyword argument like python does. so far ruby's support for keyword argument seems to have a : in some way
[18:45:01] adaedra: wolffles: positions.map { |n| arr[n] }
[18:45:07] jhass: wolffles: .values_at(*positions)
[18:45:18] beast_: has joined #ruby
[18:45:18] hinbody: has joined #ruby
[18:45:32] adaedra: Ruby has too many methods :p
[18:45:50] havenwood: Gnut: map { |k, v| "#{k}=#{v}" }
[18:46:27] adaedra: rigel_: looks like an assignment
[18:47:04] rigel_: so the order is what matters then with multiple optional (non-keyword) arguments?
[18:47:30] Gnut: havenwood: Perfect! Thank you
[18:48:11] bronson: has joined #ruby
[18:48:25] adaedra: rigel_: yes
[18:48:37] rigel_: adaedra: thanks
[18:49:07] azgil: has joined #ruby
[18:49:26] bronson: has joined #ruby
[18:49:34] rickmasta: has joined #ruby
[18:49:51] dotix: has joined #ruby
[18:50:30] wolffles: jhass: that worked perfectly with my little block. i dont understand what the * before positions does
[18:51:07] rgtk: has joined #ruby
[18:51:09] adaedra: wolffles: it's a splat. It takes the array contents and pass them as arguments.
[18:51:35] jbrhbr: has joined #ruby
[18:52:19] solocshaw: has joined #ruby
[18:52:56] bronson: has joined #ruby
[18:54:32] zdman135: has joined #ruby
[18:55:16] tectonic: has joined #ruby
[18:56:12] Yzguy: has joined #ruby
[18:56:30] solocshaw: has joined #ruby
[18:56:52] cdg: has joined #ruby
[18:59:12] wolffles: thanks adaedra
[18:59:26] sp1rs: has joined #ruby
[19:00:00] zdman135: has joined #ruby
[19:00:09] sp1rs: i have installed rspec, but when i tried $rspec on terminal it says that command not found
[19:00:27] sp1rs: gem which rspec
[19:00:27] sp1rs: /Users/local/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-3.4.0/lib/rspec.rb
[19:01:29] adaedra: rbenv rehash
[19:01:50] havenwood: we should have the bot spam `rbenv rehash` if anyone says "rbenv"
[19:02:04] hxegon: havenwood or just an ?rbenv command
[19:02:12] havenwood: or just tell them to tweet to DHH for support
[19:02:24] hxegon: that says something like, have you tried 'rbenv rehash' or checked your path?
[19:02:45] havenwood: have you tended your garden of shims lately?
[19:02:46] ruboto: I don't know anything about rbenv
[19:02:47] agent_white: has joined #ruby
[19:02:51] adaedra: !fact mk rbenv Missing command under rbenv? Did you try `rbenv rehash`?
[19:02:52] ruboto: adaedra, I will remember that rbenv is Missing command under rbenv? Did you try `rbenv rehash`?
[19:03:02] hxegon: thanks adaedra
[19:03:20] hxegon: can anyone do that?
[19:03:33] hxegon: probably a good idea.
[19:03:47] solocshaw: has joined #ruby
[19:03:54] sp1rs: adaedra: rbenv rehash worked but why ?
[19:04:09] DrCode: has joined #ruby
[19:04:20] adaedra: sp1rs: that's how rbenv works: it creates `shims`, small programs which will call the good gem for current version.
[19:04:39] adaedra: When you install a gem that installs a command, you need to rehash to create/update the shims.
[19:04:46] havenwood: sp1rs: Instead of adding the RubyGems bin/ dir to PATH and setting GEM_HOME, GEM_PATH, etc like chruby does, rbenv makes a bunch of shims.
[19:05:34] sp1rs: adaedra, havenwood: cool thx
[19:06:33] eldariof: has joined #ruby
[19:06:56] shanemcd: has joined #ruby
[19:07:00] adaedra: ACTION ponders adding "or use a sensible version manager like chruby" at the end of ?rbenv
[19:07:27] blackmesa: has joined #ruby
[19:07:38] hxegon: I really don't get the reason for rbenv hate
[19:08:08] adaedra: The need for rbenv rehash, mainly, I guess.
[19:08:41] dlitvak: has joined #ruby
[19:08:52] nerium: has joined #ruby
[19:08:59] hxegon: I understand, but its a small wart on an otherwise extremely simple, non-invasive, useful tool
[19:09:21] ht__: has joined #ruby
[19:09:30] adaedra: Well, there's chruby
[19:09:41] hxegon: well, that and the whole 'eval "$(rbenv init - )" thing :)
[19:09:59] jbrhbr: rbenv rehash is at least consistent with shell behavior kinda, and guessable
[19:10:51] jbrhbr: altogether throughout my experience learning ruby stuff so far, i'm continuously pleased by the degree of guessability of most things
[19:10:56] dotix: has joined #ruby
[19:11:19] atomical_: has joined #ruby
[19:12:03] hxegon: >> 'hello'.chars # for example
[19:12:05] ruboto: hxegon # => ["h", "e", "l", "l", "o"] (https://eval.in/489917)
[19:12:22] Coldblackice: has joined #ruby
[19:15:24] lnx: has joined #ruby
[19:15:49] aegis3121: has joined #ruby
[19:17:19] davejlong: has joined #ruby
[19:18:13] infernix: has joined #ruby
[19:20:28] moeabdol1: has joined #ruby
[19:20:36] mostlybadfly: has joined #ruby
[19:21:05] shevy: jbrhbr right, that always made me wonder about these tools then, how you have to fiddle with shell stuff still :)
[19:21:08] ramfjord: has joined #ruby
[19:23:25] Jackneill: has joined #ruby
[19:23:28] jobewan: has joined #ruby
[19:24:08] sandstrom: has joined #ruby
[19:26:05] last_staff: has joined #ruby
[19:26:55] agit0: has joined #ruby
[19:27:06] djbkd: has joined #ruby
[19:27:45] colegatron: has joined #ruby
[19:28:47] shevy: you have a terse, usually elegant syntax ... and then suddenly, bam! shell syntax jumps in
[19:29:39] fexilal: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
[19:29:58] fexilal: sorry, elbow on keyboard
[19:30:09] havenwood: fexilal: SyntaxError: unexpected '.'
[19:30:30] sorbo_: has joined #ruby
[19:30:45] riceandbeans: has joined #ruby
[19:31:00] riceandbeans: what's the proper term for methods than are like foo?
[19:31:05] riceandbeans: boolean returning
[19:31:12] havenwood: riceandbeans: example methods :P
[19:31:22] shevy: curious getters !
[19:31:25] riceandbeans: like, foo.bar? vs foo.bar
[19:31:44] riceandbeans: what do you call the boolean returning ones
[19:31:50] riceandbeans: the correct term
[19:32:14] riceandbeans: I want to write it in documentation for a chef library I wrote, which is ruby, and I don't know the actual correct word
[19:32:25] jbrhbr: predicate is one word
[19:32:26] havenwood: riceandbeans: predicate method
[19:32:47] havenwood: riceandbeans: truthy and falsey returns, not necessarily true and false
[19:33:07] riceandbeans: ...wtf does that mean?
[19:33:21] havenwood: >> 0.nonzero?
[19:33:22] ruboto: havenwood # => nil (https://eval.in/489919)
[19:33:27] havenwood: riceandbeans: nil is falsey
[19:33:39] havenwood: >> 42.nonzero?
[19:33:40] ruboto: havenwood # => 42 (https://eval.in/489920)
[19:33:43] havenwood: riceandbeans: 42 is truthy
[19:34:01] havenwood: >> [!!nil, !!42]
[19:34:02] ruboto: havenwood # => [false, true] (https://eval.in/489921)
[19:34:03] riceandbeans: shouldn't 0 be true and 1 be false?
[19:34:11] havenwood: riceandbeans: 0 is truthy
[19:34:21] jbrhbr: depends on the language
[19:34:24] ruboto: havenwood # => true (https://eval.in/489922)
[19:34:41] jbrhbr: (ignoring the backwardsness there)
[19:34:54] havenwood: riceandbeans: *Everything* but `nil` and `false` are truthy.
[19:35:05] havenwood: riceandbeans: #=> true
[19:35:16] shevy: riceandbeans would you want nil to be true :)
[19:35:20] havenwood: riceandbeans: There's no way to create a falsey value other than `nil` and `false`.
[19:35:48] riceandbeans: this concept of falsiness scares me and I find it uncomfortable
[19:36:16] jbrhbr: riceandbeans: what's your reference point?
[19:36:28] riceandbeans: define 'reference point'
[19:36:40] jbrhbr: past experiences that contrast with what you are learning now
[19:37:16] riceandbeans: I do ruby and perl, some python, but I don't get super deep into any of them, I'm not making masterpieces by myself
[19:37:31] riceandbeans: I'd say I'm most comfortable in perl
[19:37:40] jbrhbr: perl and python both have truthiness and falsiness
[19:37:47] riceandbeans: still, falsey and truthy sound weird
[19:37:48] jbrhbr: both with slightly different rules
[19:37:56] davejlong: has joined #ruby
[19:38:08] Papierkorb: riceandbeans: it's a common concept in scripting languages (at least).
[19:38:28] jbrhbr: those terms are colloquial and used in all languages, but they are more official in ruby than in the others
[19:38:30] aegis3121: has joined #ruby
[19:38:42] rgtk: has joined #ruby
[19:38:44] Trynemjoel: has joined #ruby
[19:39:23] jbrhbr: riceandbeans: in python, [], '', None, and 0 are all falsey, for example, but none of them would satisfy an object quality check against False
[19:39:45] kies^: has joined #ruby
[19:39:45] Papierkorb: uargh, that's PHP-style ugly right there
[19:39:46] rrichardsr3: has joined #ruby
[19:40:06] lannonbr: has joined #ruby
[19:40:09] mdw: has joined #ruby
[19:40:21] jbrhbr: object equality*
[19:40:32] A124: has joined #ruby
[19:41:48] riceandbeans: my education has never been formal with computing
[19:42:25] jbrhbr: i think your state of alarm is reasonable
[19:42:27] riceandbeans: I don't think for my particular case that I need to worry about truthy or falsey for my predicate methods
[19:43:03] riceandbeans: I'm checking for specific things and either doing return true or return false on the methods
[19:43:04] jbrhbr: the fact that languages differ on these semantics is arguably an indication of ambiguity with respect to one's intuition around how they should function
[19:44:20] havenwood: riceandbeans: Just be glad it's not JavaScript where `!![] #=> true` and `!!"" #=> false`... Etc, etc.
[19:44:37] doodleha_: has joined #ruby
[19:44:50] riceandbeans: :( I had been hoping to pick up JS within the next few months...
[19:44:55] riceandbeans: mostly for angular/backbone
[19:45:10] havenwood: cracks me up: https://dorey.github.io/JavaScript-Equality-Table/
[19:45:16] radgeRayden: has joined #ruby
[19:45:54] arup_r: has joined #ruby
[19:48:16] civos: has joined #ruby
[19:49:03] DoubleMalt: has joined #ruby
[19:50:04] karapety_: has joined #ruby
[19:51:12] shevy: riceandbeans note that it is just a regular method, it can return anything including non-truthy/non-falsey
[19:51:26] JakFrist: has joined #ruby
[19:52:14] riceandbeans: if it can return anything then why make it different with the ? ?
[19:52:54] wldcordeiro: has joined #ruby
[19:53:22] shevy: what do you mean with "different"
[19:53:28] jbrhbr: the '?' is a naming convention to indicate how it should be used
[19:53:30] shevy: it's just part of the name of the method
[19:53:46] riceandbeans: I thought it forced the return value to be 0,1
[19:53:49] riceandbeans: http://pragmati.st/2012/03/24/the-elements-of-ruby-style-predicate-methods/
[19:53:54] riceandbeans: my predicate methods look nothing like that
[19:54:06] shevy: nothing is forced, it is a regular method name
[19:54:08] jbrhbr: it's just a name
[19:54:28] riceandbeans: I have stuff like...
[19:54:32] shevy: you can have your method return cats
[19:54:43] bronson: has joined #ruby
[19:54:48] riceandbeans: if result.size == 0
[19:55:02] diegorv: has joined #ruby
[19:55:11] riceandbeans: maybe that's not rubyesque
[19:55:21] jbrhbr: it should just be `def foo?; result.size == 0; end`
[19:55:29] shevy: riceandbeans you can shorten this to one line of code
[19:56:10] jbrhbr: or `def foo?; result.size.zero?; end
[19:56:55] pawnbox: has joined #ruby
[19:57:14] Ox0dea: has joined #ruby
[19:57:19] riceandbeans: how meta, a predicate in a predicate
[19:57:46] conta_: has joined #ruby
[19:58:01] Ox0dea: Is that meta?
[19:58:10] blackjid: has joined #ruby
[19:58:29] riceandbeans: how about this one
[19:58:39] Ox0dea: The predicate's query would have to be about itself for it to be meta, I reckon.
[19:58:59] riceandbeans: I have def foo; return File.exists?('path');end
[19:59:06] riceandbeans: you're saying I could/should take out return?
[19:59:14] Ox0dea: "Do you like this question?" is arguably meta, since it's a question about itself, and it is itself a question.
[19:59:49] jbrhbr: riceandbeans: right, it's not needed there
[20:00:23] scepticulous: has joined #ruby
[20:01:30] snockerton: has joined #ruby
[20:01:45] andywojo: has joined #ruby
[20:01:54] dotix: has joined #ruby
[20:01:56] dotix: has joined #ruby
[20:03:38] mdw: has joined #ruby
[20:04:53] ht__: has joined #ruby
[20:05:33] solocshaw: has joined #ruby
[20:06:54] PlasmaStar: has joined #ruby
[20:06:56] ht__: has joined #ruby
[20:08:03] bronson: has joined #ruby
[20:10:14] nettoweb: has joined #ruby
[20:14:11] ruid: has joined #ruby
[20:15:21] djbkd: has joined #ruby
[20:15:21] marcdel: has joined #ruby
[20:16:51] fexilal: I have a question: if you learnt ruby from a book, which book was it and how long did it take to finish the book?
[20:16:53] ohaibbq: has joined #ruby
[20:17:24] shevy: I never finished it, I think reading it took somewhat a month or so
[20:17:34] shevy: it had like 300 pages or reference or more
[20:18:22] djbkd: has joined #ruby
[20:19:18] Ox0dea: I learned the philosophy of Ruby from the poignant guide. I realized that was all that mattered, so then I stopped learning Ruby.
[20:19:31] atomical: has joined #ruby
[20:20:17] davejlong: has joined #ruby
[20:21:30] codecop: has joined #ruby
[20:23:12] rakm: has joined #ruby
[20:24:47] CR: has joined #ruby
[20:26:56] ht__: has joined #ruby
[20:27:09] last_staff: has joined #ruby
[20:28:22] pawnbox: has joined #ruby
[20:28:55] marcdel: has joined #ruby
[20:29:09] devoldmx: has joined #ruby
[20:29:36] marcdel: has joined #ruby
[20:29:51] dotix: has joined #ruby
[20:29:56] marcdel: has joined #ruby
[20:30:21] nettoweb: has joined #ruby
[20:30:34] jessemcgilallen: has joined #ruby
[20:30:37] marcdel: has joined #ruby
[20:31:18] marcdel: has joined #ruby
[20:32:10] blackgoat: has joined #ruby
[20:33:37] Begi: has joined #ruby
[20:34:53] DoubleMalt: has joined #ruby
[20:36:03] devbug: has joined #ruby
[20:36:07] grn: has joined #ruby
[20:37:41] Begi: Hello #ruby !
[20:38:05] Begi: Is there a ruby bot here ? Can we show one-line code on IRC ?
[20:38:36] wsewolod: has joined #ruby
[20:39:05] nertzy: has joined #ruby
[20:40:03] hxegon: >> true # Begi
[20:40:04] ruboto: hxegon # => true (https://eval.in/489949)
[20:40:27] hxegon: Begi but if it's many lines consider using gist or eval.in
[20:40:35] Begi: >> puts 'Hello World !'
[20:40:37] ruboto: Begi # => Hello World ! ...check link for more (https://eval.in/489950)
[20:41:12] hxegon: much convenience very modern wow
[20:41:24] symm-: has joined #ruby
[20:41:37] htmldrum: has joined #ruby
[20:41:58] fullofcaffeine: has joined #ruby
[20:42:38] Ox0dea: Begi: Do you have a line of code to show us?
[20:42:50] Begi: No, I was just asking to know
[20:43:00] Begi: I'm starting Ruby
[20:43:20] hxegon: ... Shame. Shame... *ring*
[20:43:30] Ox0dea: Cersei kills Snape.
[20:43:34] davejlong: has joined #ruby
[20:43:43] Begi: After Python & Perl (<3), I come for Ruby !
[20:43:59] Begi: I'm curious
[20:43:59] hxegon: Ox0dea spoiler warning, please. I'm not through goblet of fire yet >:|
[20:44:02] threh: has joined #ruby
[20:44:14] Ox0dea: Did you mean A Storm of Swords?
[20:44:26] Begi: and I've heard a lot of good thnigs about Ruby
[20:44:37] hxegon: A storm of secrets. Begi you've heard correct (probably)
[20:44:45] Ox0dea: Begi: What sorts of things?
[20:44:49] yfeldblum: has joined #ruby
[20:44:49] Ox0dea: A Game of Stones.
[20:45:05] PedramT: has joined #ruby
[20:45:06] Begi: Effective, simple
[20:45:07] diegoviola: has joined #ruby
[20:45:13] Ox0dea: Ruby is hardly simple.
[20:45:34] hxegon: Order of the Crows
[20:45:38] Begi: I'd also try Rails so... :)
[20:45:50] Ox0dea: Begi: You meant "easy": http://www.infoq.com/presentations/Simple-Made-Easy
[20:46:08] Ox0dea: A Dream of Hallows.
[20:46:09] ss_much: has joined #ruby
[20:46:22] hxegon: Half blood Kings :D
[20:46:29] dlitvak: has joined #ruby
[20:46:52] Ox0dea: Jon Starkgaryen = Azor Ahai confirmed?
[20:48:28] azgil: has joined #ruby
[20:48:30] hxegon: Joffery == Malfoy?
[20:48:47] Ox0dea: Same actor, even. :P
[20:48:47] Begi: I've a little question.
[20:48:52] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[20:48:53] dopie: has joined #ruby
[20:50:16] hxegon: Joffrey is in Dark knight too. How awesome would GOT be if the king of the north was straight up batman.
[20:50:17] yqt: has joined #ruby
[20:50:26] Begi: In a lot of other languages, we can do for example False + 1 = 1. in Ruby, we can't. I guess it's a matter of definition, but why this choice ?
[20:50:41] Begi: >> false + 1
[20:50:42] ruboto: Begi # => undefined method `+' for false:FalseClass (NoMethodError) ...check link for more (https://eval.in/489954)
[20:51:03] Ox0dea: Begi: That expression *shouldn't* make sense, and in Ruby it doesn't.
[20:51:19] Ox0dea: `false` is not implicitly equal to 0, and that's great.
[20:51:20] hxegon: Begi ... what does False + 1 mean in other languages? that doesn't make sense.
[20:51:48] Ox0dea: $ python -c 'print(False + 1)'
[20:52:02] Begi: With Perl, it works too
[20:52:18] crdpink2: has joined #ruby
[20:52:51] Ox0dea: Wanting to do arithmetic on booleans almost certainly means you don't understand your problem or your data well enough.
[20:52:54] hxegon: *facepalms
[20:53:12] Begi: I like use true and false like int. That was my little question. Sometimes, it's useful
[20:53:30] Begi: (it's not I like, I sometimes use)
[20:53:40] Ox0dea: Could you provide an example?
[20:54:03] Begi: Actually, i've no idea...
[20:54:25] hxegon: I would argue that there is no case where doing that is the best option, but that could be strong language shaping.
[20:54:53] dopie: has joined #ruby
[20:55:08] Ox0dea: I mean, I do use `^= 1` to "flip a switch" that I want to use as an index, but that more clearly conveys intent than `foo = !foo` to do the flip.
[20:56:09] Ox0dea: >> s = 1; 10.times.map { s ^= 1 }
[20:56:10] ruboto: Ox0dea # => [0, 1, 0, 1, 0, 1, 0, 1, 0, 1] (https://eval.in/489955)
[20:58:08] [Butch]: has joined #ruby
[20:58:30] pawnbox: has joined #ruby
[20:58:46] hxegon: Ox0dea I would ask wtfeven is ^=, but I'm getting a burger, so I aint got time fo that ish.
[20:58:51] ht__: has joined #ruby
[20:59:03] Ox0dea: It's in-place XOR.
[20:59:15] nocd: has joined #ruby
[20:59:29] sorbo_: has joined #ruby
[20:59:45] aegis3121: has joined #ruby
[21:00:17] conta__: has joined #ruby
[21:02:24] agit0: has joined #ruby
[21:02:48] bradleyprice: has joined #ruby
[21:03:16] weaksauce: has joined #ruby
[21:05:03] Didac: has joined #ruby
[21:05:26] ghr: has joined #ruby
[21:06:03] Begi: How can I check the incoming type in a function ? https://gist.github.com/Emeric54/ac1b1add3814ff156380
[21:06:05] thomass: has joined #ruby
[21:06:50] xapak: has joined #ruby
[21:08:18] solocshaw: has joined #ruby
[21:08:21] mistermocha: has joined #ruby
[21:08:45] xapak: has left #ruby: ()
[21:08:54] blt: has joined #ruby
[21:08:59] atomical_: has joined #ruby
[21:09:06] nerium: has joined #ruby
[21:11:52] karapetyan: has joined #ruby
[21:12:47] DaniG2k: has joined #ruby
[21:13:02] shevy: Begi for instance: if variable.is_a? Fixnum
[21:13:30] shevy: Begi however it may be easier to either raise if the input is invalid; or convert into the target format that you want to have, before you send to the if/else clause inside of your method
[21:14:24] yokel: has joined #ruby
[21:14:26] Begi: Ok, thanks shevy !
[21:14:33] mistermocha: has joined #ruby
[21:15:05] yashinbasement: has joined #ruby
[21:16:17] solocshaw: has joined #ruby
[21:17:14] mistermocha: has joined #ruby
[21:17:20] fullofcaffeine: has joined #ruby
[21:17:27] conta: has joined #ruby
[21:18:45] mary5030_: has joined #ruby
[21:20:17] bradleyprice: has joined #ruby
[21:20:48] rakm: has joined #ruby
[21:21:42] mdw: has joined #ruby
[21:21:54] xapak: has joined #ruby
[21:23:23] xapak: I compile Ruby through rbenv (ruby-build), but for some reason, for 2.2.4 (2.2.0 installs just fine) last message is this (and the process looks as if it is stuck), do you think it???s actually doing something and I should wait, or it???s really stuck?
[21:23:26] xapak: make[2]: Leaving directory '/tmp/ruby-build.20151223154345.20727/ruby-2.2.4/ext/openssl'
[21:24:14] xapak: CPU usage is definitely not high during that part, which makes me think it stalled.
[21:26:02] fullofcaffeine: has joined #ruby
[21:27:12] yokel: has joined #ruby
[21:27:35] Didac: has joined #ruby
[21:27:42] ta: has joined #ruby
[21:28:21] pawnbox: has joined #ruby
[21:28:57] moei: has joined #ruby
[21:29:56] grn: has joined #ruby
[21:30:39] wolffles: has joined #ruby
[21:30:40] shevy: sounds as if it is stuck trying to compile the openssl bindings
[21:31:25] shevy: you should in principle be able to use ruby without openssl, or compile them lateron if you cd to ext/openssl/ there
[21:31:30] conta: has joined #ruby
[21:31:41] dotix: has joined #ruby
[21:31:54] xapak: shevy, but do you know of a way to truly know if it???s stuck? That???s the thing, make CPU consumption is so low, that I still don???t know what???s really going on.
[21:33:25] fullofcaffeine: has joined #ruby
[21:33:51] shevy: no real idea; I don't think this can happen if you compile directly without rbenv though, at least I never had an infinite loop myself. I don't use rbenv though so you have to ask someone who used rbenv a lot ultimately
[21:35:35] havenwood: xapak: You can install 2.2.4 for rbenv with ruby-install (which will use your system openssl package rather than shipping its own :O): ruby-install --install-dir ~/.rbenv/versions/2.2.4 ruby 2.2.4
[21:35:39] havenwood: ACTION xapak: https://github.com/postmodern/ruby-install
[21:36:24] xapak: havenwood, oh, nice, I???ll definitely try that out. Thanks! :)
[21:36:47] havenwood: xapak: or you could see if building with --verbose shows anything
[21:37:09] jobewan: has joined #ruby
[21:37:27] davejlong: has joined #ruby
[21:38:28] blackmesa: has joined #ruby
[21:38:53] ht__: has joined #ruby
[21:39:35] xapak: havenwood, the line I posted is the last thing I get with --verbose:
[21:39:35] h99h9h88: has joined #ruby
[21:39:41] xapak: make[2]: Leaving directory '/tmp/ruby-build.20151223161758.13467/ruby-2.2.4/ext/openssl'
[21:39:59] havenwood: xapak: Add one or more checksum flags with ruby-install for Ruby 2.2.4 if you'd like since the definition hasn't been synced yet: --sha256 31203696adbfdda6f2874a2de31f7c5a1f3bcb6628f4d1a241de21b158cd5c76
[21:40:16] havenwood: xapak: Eeeek... Yeah, I'd just use ruby-install in any case. :)
[21:40:22] conta_: has joined #ruby
[21:40:55] xapak: Coolio. Thank you all for the comments.
[21:40:59] al2o3-cr: has joined #ruby
[21:41:01] havenwood: xapak: you're welcome
[21:41:27] rgtk: has joined #ruby
[21:41:47] mary5030: has joined #ruby
[21:41:48] dhollinger: has joined #ruby
[21:42:43] mary5030: has joined #ruby
[21:43:23] xapak: has left #ruby: ()
[21:44:00] atomical: has joined #ruby
[21:44:10] htmldrum: has joined #ruby
[21:44:48] moei: has joined #ruby
[21:44:52] shevy: xmas xmas xmas
[21:45:17] Zarthus: Are we there Yeti?
[21:46:28] fullofcaffeine: has joined #ruby
[21:46:44] FastJack: has joined #ruby
[21:46:48] grn: has joined #ruby
[21:46:49] yokel: has joined #ruby
[21:47:19] nkwsy: has joined #ruby
[21:47:56] havenwood: The Elfabet has Noel: [*?a..?z].rotate(11).drop(1).rotate(-11)
[21:48:37] dnewkerk: has joined #ruby
[21:48:56] duckpuppy: has joined #ruby
[21:49:03] lalalaaa: has joined #ruby
[21:50:01] colegatron: has joined #ruby
[21:50:06] DoubleMalt: has joined #ruby
[21:50:32] havenwood: Or as we'll be able to say this Christmas: 'a'.upto('z').grep_v /l/
[21:50:54] ellisTAA: has joined #ruby
[21:51:14] ellisTAA: is there a dif between methods and functions? i???m wondering why in ruby we have methods instead of functions
[21:51:44] camilasan: has joined #ruby
[21:51:47] yos7ph: has joined #ruby
[21:52:34] beast: has joined #ruby
[21:53:39] nkwsy_: has joined #ruby
[21:54:07] pdoherty: has joined #ruby
[21:54:32] doodleha_: has joined #ruby
[21:55:15] beast_: has joined #ruby
[21:55:23] atomical_: has joined #ruby
[21:56:37] skcin7: has joined #ruby
[21:58:33] pawnbox: has joined #ruby
[22:00:44] smactive: has joined #ruby
[22:01:05] Fezzler: has joined #ruby
[22:03:08] shanemcd: has joined #ruby
[22:03:49] kadoppe: has joined #ruby
[22:05:09] lenwood: has joined #ruby
[22:05:20] sorbo_: ellistaa: everything in ruby is an object, so even "free" functions are associated with an object
[22:05:23] adaedra: ellistaa: that's basic POO. The difference between functions and methods is that the latter acts on an object.
[22:05:32] sorbo_: since functions associated with objects are methods, functions and methods are more or less the same thing in ruby
[22:05:51] adaedra: There's technically no functions as such in Ruby :)
[22:06:41] aegis3121: has joined #ruby
[22:06:53] adaedra: But methods are not proper to Ruby. Have objects, have methods. C++ has methods. PHP has methods. And many other languages do.
[22:07:01] ellisTAA: so in other languages like js, functions that belong to prototypes are still called functions ??? why aren???t they called methods?
[22:07:24] faisal: has joined #ruby
[22:07:40] ellisTAA: is this a rule in CS that if a function belongs to an object it becomes a method?
[22:07:56] adaedra: Because JS is a special snowflake which loves to do everything differently /s
[22:08:35] vikas027: has joined #ruby
[22:09:12] KrzaQ: Can I assign-expand an array to a hash? I'd like somethign like h[:foo,:bar,:baz] = [1,2,3] => {foo: 1, bar: 2, baz:3}
[22:09:49] havenwood: &ri Module#module_function
[22:09:49] `derpy: No results
[22:10:00] adaedra: &ri module_function
[22:10:00] `derpy: No results
[22:10:06] havenwood: Anyways, to play devil's advocate: http://ruby-doc.org/core/Module.html#method-i-module_function
[22:10:10] dlitvak: has joined #ruby
[22:10:33] sigurding: has joined #ruby
[22:10:41] al2o3-cr: KrzaQ: %i[foo bar baz].zip([1,2,3]).to_h
[22:11:11] KrzaQ: cool, thanks al2o3-cr
[22:11:22] zenspider: al2o3-cr: racket has some nice built in iterators for things like naturals. I wish we had the same thing
[22:11:25] KrzaQ: So I guess it's possible, just not pretty
[22:11:42] adaedra: "Nothing known about Module#module_function"
[22:12:05] adaedra: havenwood: it works with your ri?
[22:12:49] havenwood: adaedra: yup
[22:12:50] zenspider: >> Hash[%i[foo bar baz].each.with_index.to_a]
[22:12:51] ruboto: zenspider # => {:foo=>0, :bar=>1, :baz=>2} (https://eval.in/490033)
[22:13:01] zenspider: ah. off by one. meh
[22:13:06] adaedra: That's strange, my ri can't find it.
[22:13:18] al2o3-cr: use each.with_index(1)
[22:13:24] zenspider: adaedra: rvm?
[22:13:38] zenspider: al2o3-cr: ah cool. I didn't know that trick
[22:13:44] KrzaQ: I don't want indexes in my array, it was just an example. I guess not the best one
[22:13:57] adaedra: I have a manually generated rubydoc folder I feed to ri. Works with the rest.
[22:14:19] zenspider: adaedra: for the core/stdlib stuff??
[22:14:20] cassioscabral: has joined #ruby
[22:14:53] adaedra: zenspider: yeah
[22:16:16] zenspider: adaedra: why?
[22:16:42] shanemcd: has joined #ruby
[22:17:39] adaedra: because I somehow didn't have the core docs and, for the use I do (feed it to the bot), it seemed ok and I was lazy to fix the real issue, silly me. It seemed to work until now.
[22:17:49] n_blownapart: has joined #ruby
[22:18:28] havenwood: &ri Module.module_function
[22:18:28] `derpy: No results
[22:18:31] wildlander: has joined #ruby
[22:18:37] zenspider: do you install your own rubies? if so, there's a make task to build the rdoc and install it
[22:19:42] adaedra: ".module_function not found, maybe you meant: YARD::CodeObjects::MethodObject#module_function?"
[22:20:06] adaedra: It may be system ruby on the distant machine
[22:20:09] Aasha: has joined #ruby
[22:21:11] adaedra: Lazyness, developper best and worst friend.
[22:21:45] nerium: has joined #ruby
[22:23:30] adaedra: &ri module_function
[22:23:30] `derpy: http://ruby-doc.org/core-2.2.4/Module.html#method-i-module_function
[22:23:33] adaedra: Here you go~
[22:24:02] adaedra: That doesn't explain why my own doc didn't work, tho ??\_(???)_/??
[22:24:12] dlitvak: has joined #ruby
[22:25:51] Fezzler: has joined #ruby
[22:27:03] nkwsy: has joined #ruby
[22:27:25] shanemcd: has joined #ruby
[22:27:42] duncannz: has joined #ruby
[22:28:21] blackgoat: has joined #ruby
[22:28:27] grn: has joined #ruby
[22:29:18] ruby-lang210: has joined #ruby
[22:29:50] devoldmx: has joined #ruby
[22:30:51] themsay: has joined #ruby
[22:32:29] nerium: has joined #ruby
[22:33:17] andywojo: has joined #ruby
[22:33:49] pwnd_nsfw: has joined #ruby
[22:34:14] solars: has joined #ruby
[22:37:24] JACAEK-BB: has joined #ruby
[22:37:34] shanemcd: has joined #ruby
[22:37:36] JACAEK-BB: has left #ruby: ()
[22:38:25] pawnbox: has joined #ruby
[22:39:58] andywojo: has joined #ruby
[22:40:22] Dimik: has joined #ruby
[22:40:28] zly: has joined #ruby
[22:44:06] presidentbeef: has joined #ruby
[22:46:36] zenlot3: has joined #ruby
[22:47:17] alphaatom: has joined #ruby
[22:47:35] shanemcd: has joined #ruby
[22:47:38] akem: has joined #ruby
[22:47:54] shanemcd_: has joined #ruby
[22:48:50] thezanke: has joined #ruby
[22:49:41] houhoulis: has joined #ruby
[22:51:29] dlitvak_: has joined #ruby
[22:52:02] nfk|laptop: has joined #ruby
[22:52:43] alphaatom: has joined #ruby
[22:52:45] blandflakes: has joined #ruby
[22:54:41] FooMunki: has joined #ruby
[22:57:11] zapata: has joined #ruby
[22:59:55] axl_: has left #ruby: ()
[23:01:28] vdamewood: has joined #ruby
[23:05:40] SamGerber: has joined #ruby
[23:06:57] RegulationD: has joined #ruby
[23:07:22] nertzy: has joined #ruby
[23:07:47] symm-_: has joined #ruby
[23:08:42] pawnbox: has joined #ruby
[23:08:53] yokel: has joined #ruby
[23:09:11] Spami: has joined #ruby
[23:09:29] azgil: has left #ruby: ("Leaving")
[23:11:04] ruby-lang872: has joined #ruby
[23:11:17] VeryBewitching: has joined #ruby
[23:11:57] shevy: hi BeryVewitching
[23:12:09] VeryBewitching: How's it goin' shevy?
[23:12:34] agit0: has joined #ruby
[23:13:14] tectonic: has joined #ruby
[23:13:51] dlitvak: has joined #ruby
[23:14:42] shevy: I am waiting for xmas
[23:16:20] VeryBewitching: Tis the season for tolerating odd family members. :D
[23:17:27] SamGerber: If I can't think of any odd family members, does that mean it's me?
[23:18:06] Radar: samgerber: yes
[23:18:24] InvGhost: has joined #ruby
[23:18:25] ruby-lang029: has joined #ruby
[23:18:26] lipoqil: has joined #ruby
[23:19:17] agit0: has joined #ruby
[23:20:05] yokel: has joined #ruby
[23:20:27] shevy: don't worry samgerber we can adopt you
[23:21:58] PaulCapestany: has joined #ruby
[23:22:36] ruby-lang029: has left #ruby: ()
[23:23:07] Emmanuel_Chanel: has joined #ruby
[23:24:00] rikkipitt: has joined #ruby
[23:24:23] Emmanuel_Chanel_: has joined #ruby
[23:25:49] lacuna: has joined #ruby
[23:26:35] azgil: has joined #ruby
[23:27:22] blandflakes: has joined #ruby
[23:29:00] nkwsy: has joined #ruby
[23:29:56] azgil: who used DataGrid from Jetbrains?
[23:30:19] azgil: a new database IDE
[23:30:32] joneshf-laptop: has joined #ruby
[23:30:46] azgil: i tried but didnt like it
[23:32:24] jbrhbr: has joined #ruby
[23:34:39] shevy: hmm in a ruby class I may use: Signal.trap('SIGINT') { exit }
[23:34:44] shevy: so when I hit ctrl-c it will interrupt
[23:34:49] atomical: has joined #ruby
[23:34:55] shevy: but a "^C" also appears on the terminal... is this normal?
[23:35:45] VeryBewitching: azgil: I use RubyMine's integrated database UI, I haven't needed much more than that.
[23:41:29] shanemcd: has joined #ruby
[23:41:53] h99h9h88: has joined #ruby
[23:42:20] rgtk: has joined #ruby
[23:44:57] shanemcd_: has joined #ruby
[23:46:31] PedramT: has joined #ruby
[23:46:45] zenspider: shevy: I believe that is normal and probably a function of your shell or tty setup?
[23:48:33] shevy: zenspider hmm I guess that makes sense
[23:48:54] atomical: has joined #ruby
[23:49:43] duckpuppy: has joined #ruby
[23:49:59] jbrhbr: has joined #ruby
[23:50:10] zenspider: I just did `sleep 5` and ^c'd it. it prints too.
[23:50:14] zenspider: as does: ruby -e 'Signal.trap("SIGINT") { p :woot; exit 1 }; sleep 5'
[23:50:28] zenspider: I'm not sure if it is out of your control, but I think it is outside of ruby
[23:51:58] dotix: has joined #ruby
[23:52:21] themsay: has joined #ruby
[23:53:15] hectortrope: has joined #ruby
[23:53:46] yokel: has joined #ruby
[23:56:28] StevenXL: has joined #ruby
[23:56:28] StevenXL: has joined #ruby
[23:56:49] h99h9h88: has joined #ruby
[23:56:54] bradleyprice: has joined #ruby
[23:57:24] ascarter: has joined #ruby
[23:57:25] al2o3-cr: shevy: You could do Signal.trap(2, proc { $stderr.write("\b\b"); exit })
[23:58:33] devoldmx: has joined #ruby
[23:58:42] al2o3-cr: but it's a bit meh
[23:58:45] InvGhost: has joined #ruby