« Back to channel list

#ruby - 18 February 2016

« Back 1 day Forward 1 day »
[00:00:06] arthurl: has joined #ruby
[00:00:18] arthurl: hi guys- i'm somewhat new to ruby/rvm/gems etc - attempting to deploy our app via capistarno- seeing a failure: 'An error occurred while installing ZenTest (4.9.2), and Bundler cannot continue.'
[00:00:28] arthurl: not sure how to go about debugging this issue- any help or insight would be much appreciated
[00:00:30] al2o3-cr: or lasagne or tandoori chicken or anything really hehe
[00:01:57] shevy: al2o3-cr yeah... because of riceandbeans right?
[00:02:02] DanKnox_: has joined #ruby
[00:02:02] DanKnox: has joined #ruby
[00:02:15] shevy: thankfully I already ate so I have no thoughts for food right now
[00:02:31] shevy: arthurl well that is not a very specific error message
[00:02:42] juanpablo_: has joined #ruby
[00:02:52] hellschreiber: has joined #ruby
[00:03:00] speaking1ode: has joined #ruby
[00:03:12] al2o3-cr: shevy: haha breakfast you will :P
[00:03:48] bb010g: has joined #ruby
[00:04:09] ruurd: has joined #ruby
[00:05:52] intrigueD: has joined #ruby
[00:07:51] weemsledeux: has joined #ruby
[00:12:50] firstdayonthejob: has joined #ruby
[00:13:04] rickmasta: has joined #ruby
[00:13:49] vdamewood: has joined #ruby
[00:14:07] rbennacer: has joined #ruby
[00:15:16] jud: has joined #ruby
[00:16:59] symm-: has joined #ruby
[00:16:59] volty: has joined #ruby
[00:17:29] eregi: has joined #ruby
[00:17:38] aryaching_: has joined #ruby
[00:19:25] aaeron: has joined #ruby
[00:21:54] weaksauce: has joined #ruby
[00:23:44] moeabdol1: has joined #ruby
[00:25:29] shanemcd: has joined #ruby
[00:27:54] moeabdol2: has joined #ruby
[00:28:22] youngmathimus0: has joined #ruby
[00:28:36] baweaver: has joined #ruby
[00:28:50] riceandbeans: you can check out any time you want, but you can never leave
[00:29:00] Ox0dea: Nor can you kill the beast.
[00:31:36] idefine: has joined #ruby
[00:32:11] headius: has joined #ruby
[00:32:36] fullofca_: has joined #ruby
[00:32:37] dlitvak: has joined #ruby
[00:33:21] idefine: has joined #ruby
[00:35:53] aupadhye: has joined #ruby
[00:36:48] welovfree: has joined #ruby
[00:37:09] fullofcaffeine: has joined #ruby
[00:38:25] welovfree: After reading "Eloquent Ruby" do I have what's required to read "The Ruby on Rails Tutorial by M. Hartl"
[00:39:24] jamw: has joined #ruby
[00:39:59] rodfersou: has joined #ruby
[00:41:40] Ox0dea: welovfree: How much of Eloquent Ruby would you say you've internalized?
[00:42:02] DLSteve: has joined #ruby
[00:42:04] fullofca_: has joined #ruby
[00:42:17] welovfree: Ox0dea, it's my first read of the book
[00:43:55] djellemah: has joined #ruby
[00:45:00] dlitvak: has joined #ruby
[00:45:51] godzillaenlacasa: has joined #ruby
[00:47:32] aaeron: has joined #ruby
[00:47:42] devbug: has joined #ruby
[00:48:32] roshanavand: has joined #ruby
[00:50:16] shevy: has joined #ruby
[00:51:46] jottr: has joined #ruby
[00:57:14] croberts: has joined #ruby
[00:57:53] shevy: http.rb:880:in `initialize': execution expired (Net::OpenTimeout)
[00:58:00] shevy: I have so many errors related to net/www stuff :(
[00:58:51] shevy: http://pastie.org/10726608 not all of them are related to net, granted, but I also have had other problems
[00:59:00] shevy: someone warned me about catching too many errors
[00:59:52] volty: rescue yourself from all those rescues :)
[01:00:55] shevy: the script in question scans a remote forum for some activity
[01:01:28] shevy: there are just too many points of failure to think about! I don't think I will micro-rescue every error like that again
[01:03:08] plutonic: has joined #ruby
[01:03:28] juanpablo_: has joined #ruby
[01:03:47] DanKnox: has joined #ruby
[01:03:48] DanKnox_: has joined #ruby
[01:04:44] GriffinHeart: has joined #ruby
[01:04:47] meinside: has joined #ruby
[01:09:47] kies^: has joined #ruby
[01:10:50] shazaum_: has joined #ruby
[01:10:57] fullofcaffeine: has joined #ruby
[01:10:58] kirillzh: has joined #ruby
[01:11:04] Maletor: has joined #ruby
[01:11:43] yenic: welovfree: I like zed shaw's hard way series... i recommend them even if you've been programming for a while
[01:12:43] dopamean1: has joined #ruby
[01:12:48] dlitvak: has joined #ruby
[01:13:13] Ox0dea: They're gone, thankfully.
[01:14:22] ruby-lang087: has joined #ruby
[01:14:36] ruby-lang087: Does anyone use think RubyTogether has their priorities wrong?
[01:14:41] moeabdol2: has joined #ruby
[01:14:47] Ox0dea: Wrong channel.
[01:14:57] ruby-lang087: Which channel should this be on?
[01:15:02] Ox0dea: #ruby-community
[01:15:22] havenwood: ruby-lang087: In what way? I'm curious? Yeah, let's talk in the #ruby-community channel.
[01:15:25] preyalone: has joined #ruby
[01:15:28] kirillzh: has joined #ruby
[01:15:40] GriffinHeart: has joined #ruby
[01:16:35] sami: has joined #ruby
[01:18:18] Damien22: has joined #ruby
[01:22:22] rkazak: has joined #ruby
[01:22:32] fullofcaffeine: has joined #ruby
[01:24:00] Yzguy: has joined #ruby
[01:25:28] shevy: nooooo talk here I wanna know too :(
[01:25:55] Fridtjof: has joined #ruby
[01:26:45] Biohazard: has joined #ruby
[01:27:51] shevy: omg you type upcased
[01:28:26] freerobby: has joined #ruby
[01:28:39] Yzguy: don't tell on me :(
[01:30:28] sucks: has joined #ruby
[01:31:49] fullofca_: has joined #ruby
[01:33:35] floatingpoint: has joined #ruby
[01:34:46] decaff: has joined #ruby
[01:35:52] nofacade: has joined #ruby
[01:37:16] [spoiler]: Speaking of that, I always found it funny how ruby has String#downcase! which is kinda shouting at a string to stop shouting
[01:37:46] [spoiler]: Actually, ignore that… Strings don't shout
[01:37:58] [spoiler]: nor do methods
[01:38:06] [spoiler]: although, programmers might
[01:38:20] [spoiler]: I think it's bedtime
[01:38:33] [spoiler]: Goodnight everyone! ♥
[01:41:01] sondr3: has joined #ruby
[01:47:42] postmodern: has joined #ruby
[01:48:33] bronson: has joined #ruby
[01:48:40] urbanmonk: has joined #ruby
[01:48:46] montyboy: has joined #ruby
[01:49:31] mfb2: has joined #ruby
[01:50:28] UserInneed: has joined #ruby
[01:50:30] shanemcd: has joined #ruby
[01:52:33] UserInneed: has joined #ruby
[01:53:16] UserInneed: has joined #ruby
[01:53:52] goodcodeguy: has joined #ruby
[01:55:58] ta: has joined #ruby
[01:59:17] goodcodeguy: has joined #ruby
[02:00:03] LuckyABA: has joined #ruby
[02:00:05] sucks: has joined #ruby
[02:00:17] mondok: has joined #ruby
[02:01:34] sucks: has joined #ruby
[02:04:13] juanpablo_: has joined #ruby
[02:05:28] Rodya_: has joined #ruby
[02:06:50] mondok: has joined #ruby
[02:08:32] jcdesimp: has joined #ruby
[02:08:52] william3: has joined #ruby
[02:10:37] GriffinHeart: has joined #ruby
[02:10:44] norc-2: has joined #ruby
[02:15:31] iWaffles: has joined #ruby
[02:19:47] pdoherty: has joined #ruby
[02:20:03] sankaber: has joined #ruby
[02:20:54] DLSteve: has joined #ruby
[02:20:55] dlitvak: has joined #ruby
[02:23:25] vifino: has joined #ruby
[02:23:41] chouhoulis: has joined #ruby
[02:24:48] GriffinHeart: has joined #ruby
[02:26:04] ss_much: has joined #ruby
[02:28:01] asprillia: has joined #ruby
[02:28:31] DanKnox_: has joined #ruby
[02:28:31] DanKnox: has joined #ruby
[02:30:20] shazaum_: has joined #ruby
[02:31:27] blackmesa: has joined #ruby
[02:34:57] sole: has joined #ruby
[02:38:45] celly: has joined #ruby
[02:40:29] jamw: has joined #ruby
[02:43:50] Omen: has joined #ruby
[02:44:06] plutonic: has joined #ruby
[02:44:44] idefine: has joined #ruby
[02:45:00] arescorpio: has joined #ruby
[02:46:56] cpup: has joined #ruby
[02:49:42] LuckyABA: has joined #ruby
[02:49:47] hkumar|remote: has joined #ruby
[02:50:39] waka: has joined #ruby
[02:52:43] dima_: has joined #ruby
[02:55:15] freerobby: has joined #ruby
[02:55:21] Maletor: has joined #ruby
[02:56:20] freerobby1: has joined #ruby
[02:57:03] asprillia: has joined #ruby
[03:00:31] idefine: has joined #ruby
[03:02:57] Rodya_: has joined #ruby
[03:03:50] blackgoat: has joined #ruby
[03:04:23] juanfra: has joined #ruby
[03:05:00] juanfra: has joined #ruby
[03:07:21] DanKnox: has joined #ruby
[03:07:22] LoneHermit: has joined #ruby
[03:07:23] DanKnox_: has joined #ruby
[03:10:44] wedgwood: has joined #ruby
[03:10:44] juanfra: has joined #ruby
[03:11:02] vifino: has joined #ruby
[03:12:53] avenj: has joined #ruby
[03:12:53] avenj: has joined #ruby
[03:15:55] juanfra: has joined #ruby
[03:17:54] yenic: has left #ruby: ()
[03:19:49] sucks: has joined #ruby
[03:19:55] devbug: has joined #ruby
[03:19:57] vifino: has joined #ruby
[03:20:48] dexter_: has joined #ruby
[03:21:20] shanemcd: has joined #ruby
[03:22:16] bronson: has joined #ruby
[03:23:03] stevemackinnon: has joined #ruby
[03:24:28] Rodya_: has joined #ruby
[03:24:48] krz: has joined #ruby
[03:27:05] shtirlic: has joined #ruby
[03:28:39] arescorpio: has joined #ruby
[03:28:49] Abrin: has joined #ruby
[03:29:03] robbyoconnor: has joined #ruby
[03:29:10] Brando753: has joined #ruby
[03:30:31] nlsun: has joined #ruby
[03:32:04] p1k: has joined #ruby
[03:32:52] blackmesa: has joined #ruby
[03:33:25] DLSteve: has joined #ruby
[03:36:32] sneakerhax: has joined #ruby
[03:40:59] idefine: has joined #ruby
[03:41:15] arthurl: has joined #ruby
[03:42:26] plutonic: has joined #ruby
[03:43:24] schuc: has joined #ruby
[03:44:27] sondr3: has left #ruby: ("Quit")
[03:44:54] bb010g: has joined #ruby
[03:45:58] Youngmathimus0_: has joined #ruby
[03:48:29] GriffinHeart: has joined #ruby
[03:49:58] wprice: has joined #ruby
[03:50:08] vdamewood: has joined #ruby
[03:52:32] fedexo: has joined #ruby
[03:53:39] adgtl: has joined #ruby
[03:55:23] dima_: has joined #ruby
[03:56:46] mary5030: has joined #ruby
[03:59:30] Abrin: has joined #ruby
[03:59:52] juanpablo_: has joined #ruby
[04:02:02] devbug: has joined #ruby
[04:03:56] Eiam_: has joined #ruby
[04:04:50] baweaver: has joined #ruby
[04:06:26] stardiviner: has joined #ruby
[04:07:03] rkazak: has joined #ruby
[04:07:33] zast: has joined #ruby
[04:08:45] Radar: Looking for a method to get the key(s) for a particular value in a Hash. There probably is one, but I'm being dumb and can't think of it.
[04:09:11] duncannz: has joined #ruby
[04:09:19] Radar: { "a" => 1, "b" => 1, "c" => 2 }.magic_method(1)
[04:09:24] Radar: => ["a", "b"]
[04:10:06] Radar: Looks like Hash#key might be the ticket.
[04:10:42] Ox0dea: Another reason for #invert to support conflict resolution. :/
[04:13:22] Ox0dea: >> h = {a: 1, b: 1, c: 2}; h.select { |_, v| v == 1 }.keys
[04:13:23] ruby[bot]: Ox0dea: # => [:a, :b] (https://eval.in/520664)
[04:13:30] Ox0dea: I can't think of anything cleaner than that.
[04:14:22] braincrash: has joined #ruby
[04:14:48] Ox0dea: I suppose #invert with a block wouldn't be any better unless it collected the conflicting keys into an Array by default.
[04:17:16] ta: has joined #ruby
[04:17:22] Ox0dea: Am I just totally misremembering that refinements can be block-scoped?
[04:22:36] terminalrecluse: has joined #ruby
[04:28:37] gix: has joined #ruby
[04:31:43] shevy: don't say you are becoming forgetful
[04:34:05] hxegon: has joined #ruby
[04:34:15] blackmesa: has joined #ruby
[04:35:07] aaeron: has joined #ruby
[04:35:49] tildes: has joined #ruby
[04:36:37] Ox0dea: shevy: https://www.youtube.com/watch?v=I71cY9Ysy5U
[04:37:45] Ox0dea: More generally: http://i.imgur.com/RBw00ZC.jpg
[04:41:19] floatingpoint: has joined #ruby
[04:41:22] braincra-: has joined #ruby
[04:46:10] GriffinHeart: has joined #ruby
[04:47:35] pawnbox: has joined #ruby
[04:50:44] Yiota: has joined #ruby
[04:51:29] ur5us: has joined #ruby
[04:51:47] rkazak: has joined #ruby
[04:53:45] celly: has joined #ruby
[04:54:33] maxiu: has joined #ruby
[05:00:20] perrier: has joined #ruby
[05:01:17] nofacade: has joined #ruby
[05:07:39] aaeron: has joined #ruby
[05:08:18] Dimik: has joined #ruby
[05:12:29] nisstyre: has joined #ruby
[05:14:01] LoneHerm_: has joined #ruby
[05:16:20] jamw: has joined #ruby
[05:17:09] ayonkhan: has joined #ruby
[05:17:37] betafive: has joined #ruby
[05:21:14] yfeldblum: has joined #ruby
[05:21:51] Don_John: has joined #ruby
[05:22:30] jamil: has joined #ruby
[05:24:59] ur5us: has joined #ruby
[05:26:03] whiteline: has joined #ruby
[05:27:09] mooka: has joined #ruby
[05:29:19] Maletor: has joined #ruby
[05:33:22] mooka: has left #ruby: ()
[05:34:24] krz: has joined #ruby
[05:35:38] blackmesa: has joined #ruby
[05:38:34] agentmeerkat: has joined #ruby
[05:39:25] yonatankoren: has joined #ruby
[05:39:58] Tempesta_: has joined #ruby
[05:40:11] _djbkd: has joined #ruby
[05:43:41] the_drow: has joined #ruby
[05:43:42] aaeron: has joined #ruby
[05:45:15] x77686d: has joined #ruby
[05:45:23] Infra-Red: has joined #ruby
[05:47:31] mattp__: has joined #ruby
[05:47:34] fullofcaffeine: has joined #ruby
[05:48:20] aaeron: has joined #ruby
[05:48:31] fullofcaffeine: has joined #ruby
[05:48:38] GriffinHeart: has joined #ruby
[05:49:49] shanemcd: has joined #ruby
[05:51:30] iamvery: has joined #ruby
[05:51:32] SweetSoulBro: has joined #ruby
[05:51:51] SweetSoulBro: I have returned with more dumb questions.
[05:53:05] mfb2: has joined #ruby
[05:54:04] SweetSoulBro: is it possible, using YAML to have a Feat-like strucuture?
[05:54:20] SweetSoulBro: So that you can pick from a list of feats
[05:54:36] SweetSoulBro: and then select a second one OR choose one from a different feat tree, at random?
[05:55:06] jamw: has joined #ruby
[05:55:54] pawnbox_: has joined #ruby
[05:58:29] UtkarshRay: has joined #ruby
[05:58:33] skade: has joined #ruby
[06:00:08] djellemah: SweetSoulBro: yaml is for defining data structures. ruby is for doing stuff with those structures.
[06:00:29] SweetSoulBro: So Yaml is where the feat trees live
[06:00:36] SweetSoulBro: Ruby is for picking the feats.
[06:01:01] djellemah: >> feats = ["killed the beast", "escaped", "drove fast", "ate a horse"]; feats.sample(2) # SweetSoulBro
[06:01:03] ruby[bot]: djellemah: # => ["ate a horse", "escaped"] (https://eval.in/520702)
[06:01:05] aaeron_: has joined #ruby
[06:01:49] SweetSoulBro: I suppose my question is "If I have 3 feat trees, and I wanted to pick 3 at random, while still staying true to the tree structure"
[06:02:03] SweetSoulBro: Lets say it goes the 1st and the 2nd from the first tree
[06:02:08] SweetSoulBro: and then the 1st from the third tree
[06:02:08] frudo: has joined #ruby
[06:02:15] juanpablo_: has joined #ruby
[06:02:42] Y_Ichiro_: has joined #ruby
[06:03:21] djellemah: SweetSoulBro: what do you mean by "staying true to the tree structure"?
[06:03:42] SweetSoulBro: Not picking the feats literally at random where you'll have just 3 randomly selected trees.
[06:03:59] epochwolf: has joined #ruby
[06:03:59] SweetSoulBro: Feat C requires Feat B, which requires Feat A.
[06:04:49] cschneid: has joined #ruby
[06:04:53] hostess: has joined #ruby
[06:05:31] SweetSoulBro: And you have Feat tree alpha, beta, and Charlie
[06:05:47] SweetSoulBro: I don't want it to pick Charlie C, Alpha C, and Beta C
[06:05:51] GGMethos: has joined #ruby
[06:05:53] SweetSoulBro: I want it to go in order.
[06:07:16] jidar: has joined #ruby
[06:09:18] william3: has joined #ruby
[06:09:28] djellemah: Sounds like you want to pick a Feat C from one tree, then randomly choose a dependency (child) of C to get B, and likewise for A.
[06:10:32] lxsameer: has joined #ruby
[06:10:42] SweetSoulBro: ..that's backwards but yes.
[06:10:55] SweetSoulBro: Let me see if I can explain what I want without sounding dumb
[06:11:30] SweetSoulBro: Bot has a choice of 4 feats total. He has 3 Feat trees; 1,2,and 3
[06:11:43] SweetSoulBro: Of those Trees, he can only take the A of any of them, because he does not have the prerequisties
[06:11:46] SweetSoulBro: so he choses A1.
[06:12:08] SweetSoulBro: Next goround, he has the choice of the following: B1, A2 or A3
[06:12:10] mwlang: has joined #ruby
[06:12:23] SweetSoulBro: So he choses B1
[06:12:36] SweetSoulBro: Next goround, he has the choice of C1, A2 or A3
[06:13:53] SweetSoulBro: So this goround, he choses A3
[06:14:13] SweetSoulBro: The final feat selection leaves him with C1, A2 or B3
[06:14:23] SweetSoulBro: That's what I'm trying to do.
[06:15:19] darkf: has joined #ruby
[06:17:13] darkf_: has joined #ruby
[06:17:30] djellemah: You're just described your algorithm. All you need now is to keep track of how Bot got to eg C1. That thing is called a path eg [:A1, :B1, :C1]
[06:17:41] djellemah: s/You're/You've/
[06:18:59] ta: has joined #ruby
[06:20:00] ruby-lang174: has joined #ruby
[06:21:39] alphaatom: has joined #ruby
[06:22:14] TDJACR: has joined #ruby
[06:22:16] voidDotClass: has joined #ruby
[06:22:25] voidDotClass: I'm getting a cryptic error: " There was an error while trying to load the gem 'acts_as_paranoid'. (Bundler::GemRequireError)"
[06:22:39] voidDotClass: How do I find the trace of this error, or exactly why it didn't work?
[06:22:47] GriffinHeart: has joined #ruby
[06:23:16] bronson: has joined #ruby
[06:24:54] fullofcaffeine: has joined #ruby
[06:26:09] kknight: has joined #ruby
[06:26:50] kirillzh: has joined #ruby
[06:26:53] djellemah: voidDotClass: try loading that gem by itself from irb or pry
[06:27:06] SweetSoulBro: has joined #ruby
[06:27:13] voidDotClass: what's the command for that?
[06:27:15] Macaveli: has joined #ruby
[06:27:39] toretore: has joined #ruby
[06:28:06] djellemah: SweetSoulBro: you can model a path using an Array
[06:28:29] SweetSoulBro: so just << the names of the feats to the array?
[06:28:46] djellemah: >> [:a1, :b1] << :c1 # SweetSoulBro
[06:28:47] ruby[bot]: djellemah: # => [:a1, :b1, :c1] (https://eval.in/520721)
[06:29:06] jazo: has joined #ruby
[06:29:15] SweetSoulBro: Here's another odd question
[06:29:20] SweetSoulBro: Since these are all strings
[06:29:20] jazo: hi, im trying to use logstash ruby to convert timestamp to "2016-02-05T00:32:41.792Z" but its giving me: "2016-02-18T02:04:52+00:00". using Time.at(item.first.to_i).iso8601 can someone here help me with time formatting
[06:29:53] SweetSoulBro: if I push a string with spaces, from a yaml, will it do it properly?
[06:30:13] SweetSoulBro: Like if I push somethign that says "Archaic Weapon Proficiency (Combat Swords)"
[06:30:22] SweetSoulBro: Will I have to break that up?
[06:30:57] djellemah: voidDotClass: irb and pry are commands. require is a method http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-require
[06:30:59] jamil: has joined #ruby
[06:31:29] djellemah: >> [].push "Archaic Weapon Proficiency (Combat Swords)" # SweetSoulBro
[06:31:31] ruby[bot]: djellemah: # => ["Archaic Weapon Proficiency (Combat Swords)"] (https://eval.in/520722)
[06:31:35] RTG`: has joined #ruby
[06:31:45] SweetSoulBro: Well, that answered my question
[06:31:51] voidDotClass: djellemah, i'd have to require a whole rails for that, as it depends on activerecord
[06:31:52] SweetSoulBro: Digital person?
[06:31:52] elifoster: has joined #ruby
[06:33:12] djellemah: voidDotClass: Seems you have a problem. What do you think your next step would be?
[06:33:28] voidDotClass: to google it, which i have done
[06:33:58] djellemah: voidDotClass: so now?
[06:35:06] Coldblackice: has joined #ruby
[06:37:02] blackmesa: has joined #ruby
[06:39:12] dionysus69: has joined #ruby
[06:39:31] DEA7TH: has joined #ruby
[06:40:06] jazo: can someone help me with time string format
[06:41:11] Ox0dea: Pls halp: https://eval.in/520742
[06:41:18] LoneHerm_: has joined #ruby
[06:42:11] Ox0dea: I feel like it's not actually a bug, but what exactly is going on?
[06:43:10] djellemah: Ox0dea: Looks to me String still inherits from the thing that used to be called Class
[06:43:40] Ox0dea: djellemah: String.method(:foo).owner is M, but how can that be if M is no longer in its ancestor chain?
[06:46:23] djellemah: No, I'm wrong. Class is not an ancestor of String.
[06:46:36] Ox0dea: No, but String is certainly a Class.
[06:46:46] SkepBrain: has joined #ruby
[06:46:50] Ox0dea: And that's where it's getting its #foo method.
[06:47:21] Ox0dea: Which is in turn getting it from M, which shouldn't even be looked into at the end there.
[06:47:30] toretore: Ox0dea: you're just changing the Class reference
[06:47:48] toretore: the old Class is still String in String's ancestor chain
[06:48:03] Ox0dea: Ah, yes, I see what's going on.
[06:48:17] djellemah: Yup, what toretore said.
[06:48:27] yardenbar: has joined #ruby
[06:48:43] intrigueD: has joined #ruby
[06:49:37] ruby[bot]: jazo: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[06:49:54] ruby[bot]: Just ask your question, if anyone has or can, they will respond.
[06:50:24] Maletor: has joined #ruby
[06:50:52] jazo: Im trying to convert a timestamp to "2016-02-05T00:32:41.792Z"
[06:51:09] toretore: >> require 'time'; Time.now.iso8601
[06:51:10] ruby[bot]: toretore: # => "2016-02-18T06:51:09+00:00" (https://eval.in/520744)
[06:51:15] jazo: "2016-02-18T02:04:52+00:00" is what I get when doing Time.at(item.first.to_i).iso8601
[06:51:24] toretore: it's the same thing
[06:51:33] toretore: Z == +00:00
[06:51:49] jazo: I understand, but I want it to look like "2016-02-05T00:32:41.792Z"
[06:52:20] jazo: I have a few different sources of time, and in javascript it returns "2016-02-05T00:32:41.792Z"
[06:52:21] sauvin: has joined #ruby
[06:52:30] toretore: >> Time.now.utc.trftime('%Y-%d-%mT%H:%M:%SZ')
[06:52:31] ruby[bot]: toretore: # => undefined method `trftime' for 2016-02-18 06:52:31 UTC:Time ...check link for more (https://eval.in/520745)
[06:52:36] toretore: >> Time.now.utc.strftime('%Y-%d-%mT%H:%M:%SZ')
[06:52:37] ruby[bot]: toretore: # => "2016-18-02T06:52:37Z" (https://eval.in/520746)
[06:53:51] tildes: has joined #ruby
[06:54:02] fedexo: has joined #ruby
[06:54:05] jazo: Time.parse(item.first.to_i).strftime('%Y-%d-%mT%H:%M:%SZ') ?
[06:54:45] ruby[bot]: Why don't you try it and see for yourself?
[06:55:04] jazo: allright ill try thanks
[06:55:48] toretore: check Time#strftime docs for how to add ms
[06:57:18] jazo: i just put in Time.parse(1455778587).strftime('%Y-%d-%mT%H:%M:%SZ') into eval.in, and it threw an error Time.parse(1455778587).strftime('%Y-%d-%mT%H:%M:%SZ')
[06:57:36] Ox0dea: jazo: You want Time.at there, not Time.parse.
[06:57:49] jazo: ah excelent
[06:58:08] jazo: so parse deals with strings?
[06:58:30] jazo: it doesnt like Time.parse("1455778587")
[06:58:45] Ox0dea: Why should it?
[06:58:55] jazo: its a string?
[06:59:10] jazo: im really new to ruby, sorry for asking stupid questions
[06:59:22] Ox0dea: >> Time.at(1455778587) # jazo
[06:59:23] ruby[bot]: Ox0dea: # => 2016-02-18 06:56:27 +0000 (https://eval.in/520757)
[07:01:25] jazo: strftime('%Y-%d-%mT%H:%M:%SZ') is missing the miliseconds
[07:01:47] Infra-Red: has joined #ruby
[07:01:50] Ox0dea: toretore: Thoughts on how to scope a refinement to a block?
[07:02:08] Ox0dea: That's why I'm mucking with "unprepending".
[07:02:25] solars: has joined #ruby
[07:03:33] kies^: has joined #ruby
[07:05:47] SweetSoulBro: I want some input on this traviesty I made.
[07:06:07] SweetSoulBro: https://eval.in/520767
[07:06:09] Youngmathimus0_: has joined #ruby
[07:06:13] SweetSoulBro: This is kinda what I was trying to do
[07:06:17] SweetSoulBro: but I think I cocked it up
[07:07:35] roshanavand: has joined #ruby
[07:10:34] binaryplease: has joined #ruby
[07:11:42] bluOxigen_: has joined #ruby
[07:13:06] asprillia: has joined #ruby
[07:15:34] bruce_lee: has joined #ruby
[07:20:22] ta: has joined #ruby
[07:21:27] DanKnox_: has joined #ruby
[07:21:27] DanKnox: has joined #ruby
[07:21:56] kmckelvi1: has joined #ruby
[07:23:55] jazo: Doing Time.at(1455780052882).strftime('%Y-%d-%mT%H:%M:%S.%LZ') is giving me a huge date, "48101-29-10T18:37:39.000Z", i was just trying to get the milliseconds. That number is obtained from javascript d.getTime();
[07:25:17] Ox0dea: >> Time.at(1455780052.882).strftime('%Y-%d-%mT%H:%M:%S.%LZ') # jazo
[07:25:19] ruby[bot]: Ox0dea: # => "2016-18-02T07:20:52.881Z" (https://eval.in/520796)
[07:26:22] jazo: js doesnt return that value is a dot
[07:26:27] Ox0dea: Divide by 1000.0.
[07:26:44] djellemah: SweetSoulBro: Seems ruby's yaml implementation does not like 1 space indents. Try 2 space indents.
[07:27:01] sandstrom: has joined #ruby
[07:27:07] SweetSoulBro: Well I just want to know I'm on the right path
[07:27:38] SweetSoulBro: Because I do not feel I am on the right path.
[07:28:06] joonty: has joined #ruby
[07:30:53] bluOxigen: has joined #ruby
[07:31:10] Ox0dea: SweetSoulBro: You should probably represent a skill tree as, well, a tree.
[07:31:24] SweetSoulBro: It's a feat tree.
[07:31:30] TheMoonMaster: has joined #ruby
[07:31:49] SweetSoulBro: I was trying to stay true to the feat hiearchy from the book.
[07:32:10] anisha: has joined #ruby
[07:33:21] SweetSoulBro: But I think I fucked that :/
[07:34:41] firstdayonthejob: has joined #ruby
[07:35:01] ur5us: has joined #ruby
[07:38:16] finisherr: has joined #ruby
[07:38:21] shanemcd: has joined #ruby
[07:38:42] havenwood: >> require 'date'; Integer DateTime.now.strftime '%Q'
[07:38:43] ruby[bot]: havenwood: # => 1455781122758 (https://eval.in/520799)
[07:39:44] RTG`: has joined #ruby
[07:40:08] blackmesa: has joined #ruby
[07:41:10] auzty: has joined #ruby
[07:41:10] SweetSoulBro: I'll probably omit this part from the roller
[07:41:32] srenatus: has joined #ruby
[07:41:41] mhoungbo: has joined #ruby
[07:42:25] aganov: has joined #ruby
[07:43:37] Ox0dea: >> Time.now.strftime '%Q'
[07:43:39] ruby[bot]: Ox0dea: # => "%Q" (https://eval.in/520800)
[07:43:44] Ox0dea: Thanks, havenwood. :P
[07:43:58] havenwood: Ox0dea: haha
[07:44:13] einarj: has joined #ruby
[07:44:15] sinkensabe: has joined #ruby
[07:44:32] havenwood: >> Integer Time.now.strftime '%s%3N'
[07:44:33] ruby[bot]: havenwood: # => 1455781473126 (https://eval.in/520804)
[07:44:52] mdw: has joined #ruby
[07:45:45] PaulCapestany: has joined #ruby
[07:46:00] mdw7: has joined #ruby
[07:47:11] bruce_lee: has joined #ruby
[07:48:35] havenwood: Time.now.to_r # what does a little extra precision really hurt?
[07:50:49] bronson: has joined #ruby
[07:50:53] devbug: has joined #ruby
[07:52:14] KnownSyntax: has joined #ruby
[07:52:41] celly: has joined #ruby
[07:53:50] nephos: has joined #ruby
[07:56:16] saaggy18: has joined #ruby
[07:56:34] andikr: has joined #ruby
[07:56:41] saaggy18: hello, i'm getting a 502 bad gateway error with faye.js and nginx
[07:56:59] saaggy18: here is my configuration files of nginx. please have a look.
[07:57:00] saaggy18: http://stackoverflow.com/questions/35475613/ruby-on-rails-faye-js-with-nginx-502-bad-gateway-error
[07:57:58] karapetyan: has joined #ruby
[07:58:29] RTG`: has joined #ruby
[07:58:57] last_staff: has joined #ruby
[07:59:07] sandstrom: has joined #ruby
[08:00:37] TomyLobo: has joined #ruby
[08:02:30] LoneHerm_: has joined #ruby
[08:03:58] JohnBat26: has joined #ruby
[08:05:06] last_staff1: has joined #ruby
[08:06:58] mrfoto: has joined #ruby
[08:07:48] djbkd_: has joined #ruby
[08:07:53] ta: has joined #ruby
[08:09:10] tatsuo: has joined #ruby
[08:09:36] weemsledeux: has joined #ruby
[08:09:47] djellemah: havenwood: Noice.
[08:09:48] lsmola: has joined #ruby
[08:09:53] djellemah: >>20.times.map{rand 1/2r .. 5/2r}
[08:09:54] ruby[bot]: djellemah: # => [(3/2), (1/2), (5/2), (1/2), (1/2), (3/2), (5/2), (1/2), (3/2), (1/2), (1/2), (5/2), (3/2), (1/2), ( ...check link for more (https://eval.in/520818)
[08:10:33] djellemah: which is not exactly how I thought it would work.
[08:11:35] Ox0dea: djellemah: Hm?
[08:11:48] Ox0dea: That it simplifies?
[08:11:57] djellemah: >>20.times.map{rand 0.5 .. 2.5}
[08:11:58] ruby[bot]: djellemah: # => [1.82320194576102, 2.0133054990597827, 2.1830855355838343, 1.7108183808144806, 0.8909010316295789, 1 ...check link for more (https://eval.in/520819)
[08:12:48] the_drow: has joined #ruby
[08:13:07] steffkes: has joined #ruby
[08:14:06] Oog: has joined #ruby
[08:14:26] pizzaops: I can't seem to get .to_yaml to do quite what I want: https://gist.github.com/pizzaops/d43d73cd78ccf631f880
[08:14:43] pizzaops: Specifically, I want to end up with the quotes actually part of the value, as per the final example of desired result.
[08:14:44] djellemah: Also 2/2 and 4/2 are missing. Hm. Interesting.
[08:15:13] steffkes: hey guys, giving it another try since the conversation yesterday stalled a bit :)
[08:16:23] SCHAAP137: has joined #ruby
[08:16:58] steffkes: i'm looking for something and i'm not sure how it's called in the ruby world nor where i could find something like it. i'd like execute a test multiple times with a different context. currently using minitest, i'm doing a hack where i'm defining a array as class variable, iterating over the array using define_method to get what i want
[08:17:20] pizzaops: Ah apparently it's not doable. Never mind hah.
[08:17:32] apeiros: steffkes: if you can't get a satisfying answer here, the ML and stackoverflow are good places to escalate.
[08:18:06] Ox0dea: djellemah: It's not doing the right thing.
[08:18:23] Ox0dea: There's nothing in rand_range() about Rationals, anyway.
[08:18:35] steffkes: thanks apeiros, should have known that ;) will give the list a try if needed. don't even have a SO account :D
[08:18:41] apeiros: pizzaops: `:foo: "bar"` would be {foo: "bar"}, not {foo: '"bar"'}
[08:18:55] djellemah: I'm not even sure what the right thing here is.
[08:19:16] skade: has joined #ruby
[08:19:38] pizzaops: >> puts ({foo: "bar"}.to_yaml)
[08:19:39] ruby[bot]: pizzaops: # => undefined method `to_yaml' for {:foo=>"bar"}:Hash ...check link for more (https://eval.in/520822)
[08:19:50] pizzaops: >> ({foo: "bar"}.to_yaml)
[08:19:52] ruby[bot]: pizzaops: # => undefined method `to_yaml' for {:foo=>"bar"}:Hash ...check link for more (https://eval.in/520823)
[08:19:57] pizzaops: ah... i need to require yaml hah
[08:20:23] Ox0dea: djellemah: Right. :P The only sensible last resort is to add 1 between the beginning and the end, and that's what MRI does.
[08:20:33] pizzaops: >> require 'yaml'; ({foo: "bar"}.to_yaml)
[08:20:35] ruby[bot]: pizzaops: # => "---\n:foo: bar\n" (https://eval.in/520824)
[08:20:43] saush: has joined #ruby
[08:20:48] pizzaops: @apeiros note the lack of quotes around `bar` in the output.
[08:21:12] apeiros: pizzaops: yes. I noticed. that doesn't mean that it's different from bar with quotes around it.
[08:21:16] pizzaops: I realize in YAML-land that `foo: bar` and `foo: "bar"` are equivalent, but not in hiera-land.
[08:21:21] saush: I have installed ruby version 2.2.4 from source. Now I need to reinstall ruby, what should I do?
[08:21:23] pizzaops: I'm asking the question for a reason.
[08:21:40] apeiros: pizzaops: then maybe start with the reason, otherwise you do bad old xy questions.
[08:21:49] pizzaops: Hiera uses YAML but treats quoted strings as a special case for interpolating variables that come from puppet.
[08:22:01] pizzaops: So I need to output certain parts of my generated yaml file with quotes around them
[08:22:02] apeiros: then you probably need a Hiera specific gem
[08:23:21] saush: I have installed ruby version 2.2.4 from source. Now I need to reinstall ruby, what should I do?
[08:23:29] huyderman: has joined #ruby
[08:23:45] pizzaops: saush: used rbenv/rvm :)
[08:23:53] pizzaops: Eh, I'm sorry I said that unhelpful thing.
[08:24:25] saush: pizzaops: I did not use rvm initially while installing ruby
[08:24:29] djellemah: Ox0dea: So it defaults to using 1 as the step between possible values? Maybe the step could be the gcd (or one of those, I can never remember which is which) of the divisors of the two endpoints. That kinda makes sense in my head.
[08:24:34] pizzaops: Yeah, that's why I apologized for that comment.
[08:26:10] havenwood: saush: from the ruby src dir you installed from, maybe something along the lines of: make clean && make distclean && make clean-platform
[08:26:13] solars: quick question: why does system "bash", "-c", "ls -Frt /var/log/apache2/access-export*" output /var/log/apache2/access-export.log* (with a trailing star)?
[08:26:40] apeiros: solars: because it doesn't go via the shell
[08:26:54] apeiros: so no expansion
[08:27:01] Ox0dea: >> (1/2r..5/2r).size # djellemah
[08:27:02] ruby[bot]: Ox0dea: # => 3 (https://eval.in/520827)
[08:27:08] Ox0dea: I'd be totally unsurprised by 5 there.
[08:27:09] solars: apeiros, as you can see it expands it
[08:27:19] Ox0dea: But I'm not sure it makes sense for Rationals to be iterable.
[08:27:24] aufi: has joined #ruby
[08:27:24] solars: apeiros, I think it's normal behavior, apparently I only get it with the cmd in bash directly
[08:27:42] Ox0dea: There's Float#next_float because IEEE 754 gives them what amounts to an ordering.
[08:27:53] apeiros: oh, it gets a .log added? weird
[08:27:57] pizzaops: For now, apeiros, I'm going to be a very bad rubyist and write out a heredoc...because I don't plan to make this configurable anywya.
[08:28:22] ruurd: has joined #ruby
[08:28:53] apeiros: solars: you sure you don't have a file with a * in the end of the name?
[08:29:07] urtokk: has joined #ruby
[08:29:11] apeiros: i.e. sure you don't have an actual file named 'access-export.log*'?
[08:29:58] kmckelvi1: has joined #ruby
[08:30:12] lukebyrne_: has joined #ruby
[08:30:47] solars: apeiros, yes, I think it's expanded normally because I'm specifying bash -c
[08:31:02] solars: apeiros, I noticed it returns true, how can I capture the output?
[08:31:21] apeiros: use something else than system. Kernel#spawn or #popen
[08:32:07] solars: apeiros, hm or backticks?
[08:32:19] apeiros: that has different semantics
[08:32:33] apeiros: backticks goes via a subshell
[08:33:33] sandstrom: has joined #ruby
[08:33:39] solars: what does that mean in the script?
[08:33:50] solars: I've got it in a cronjob
[08:33:55] flughafen: no flughafen jokes?
[08:34:22] apeiros: that shell expansion happens before it reaches bash
[08:35:13] solars: apeiros, it still seemed to work
[08:35:17] solars: the expansion
[08:35:23] jaiks: has joined #ruby
[08:35:55] alphaatom: has joined #ruby
[08:36:10] skade: has joined #ruby
[08:36:45] apeiros: solars: why do you shell out to ls at all?
[08:37:24] apeiros: btw., from `man ls`: "Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable"
[08:37:35] apeiros: so sounds like your access-export.log has its x flag set
[08:37:35] solars: apeiros, thanks, I've found that already
[08:37:55] Ox0dea: apeiros: Why reinvent the -F, -r, and -t flags' behavior?
[08:37:58] solars: apeiros, the actual command is much longer, the above war only for demonstration, I need to grep and do some awk'ing
[08:38:11] joonty: has joined #ruby
[08:38:37] apeiros: Ox0dea: why write ruby at all? you can write bash too.
[08:39:21] Ox0dea: You're usually so reasonable...
[08:39:34] apeiros: that's the response you get for unreasonable questions.
[08:40:42] Ox0dea: You seem to be insinuating that it's never appropriate to shell out from Ruby.
[08:40:57] apeiros: Ox0dea: I don't.
[08:41:06] Ox0dea: You don't... what?
[08:41:14] apeiros: seriously?
[08:41:30] apeiros: I don't insinuate that it's never appropriate to shell out.
[08:41:35] blackmesa: has joined #ruby
[08:41:38] Ox0dea: Then you wanted "I'm not.".
[08:41:48] apeiros: Ox0dea: I asked why they shell out. the question "why not" is pointless.
[08:42:02] Ox0dea: Nobody asked that question.
[08:42:03] bluOxigen: has joined #ruby
[08:42:21] pizzaops: #hashtag #ircfight
[08:42:49] PedramT: has joined #ruby
[08:44:52] mondok: has joined #ruby
[08:46:00] adaedra: ACTION waves
[08:46:24] DeaDSouL: has joined #ruby
[08:46:27] apeiros: Ox0dea: I guess next time I talk to you it'll be in german and I'll willfully not understand you unless you write it perfectly. welcome on my mental ignore until then.
[08:48:23] Ox0dea: apeiros: It was perfectly reasonable for me to assume that by "I don't.", you meant that you don't shell out from Ruby.
[08:48:41] Ox0dea: You chose the wrong tense and it made your response unambiguous; I simply asked for clarification.
[08:49:05] apeiros: Ox0dea: I don't understand your english. you can talk german in #ruby-ch with me.
[08:49:06] DanKnox: has joined #ruby
[08:49:17] Ox0dea: This is really weird.
[08:50:14] raldu: hello. I have a quick and easy question. native extensions can be compiled with `gem` just fine. however, the extensions do not compile when I try to install them with bundler. I have tried switching some bundler config variables with no success. PATHs are also fine. any ideas?
[08:50:25] johnmilton: has joined #ruby
[08:50:39] snowy: has joined #ruby
[08:50:48] pizzaops: raldu: share the errors, probably :)
[08:51:28] Ox0dea: apeiros: You've been nothing shy of a paragon of levelheadedness in virtually every other interaction I've had with you. I'm just going to chalk this debacle up to having caught you at a bad time. :/
[08:51:47] fontain: has joined #ruby
[08:51:56] pizzaops: Ox0dea: your comment reminded me that I work at a company founded entirely on the premise of shelling out from ruby :D
[08:51:59] adgtl: has joined #ruby
[08:52:13] Ox0dea: pizzaops: It's a perfectly reasonable thing to do, of course.
[08:52:14] pizzaops: (Puppet Labs)
[08:52:34] pizzaops: Right, but in my case it's almost the entire premise of our software, which lolz
[08:52:36] DanKnox_: has joined #ruby
[08:52:41] Ox0dea: A little. :P
[08:52:48] pizzaops: Of course in reality we use APIs and all that whenever possible.
[08:52:59] pizzaops: But we definitely shell out a *ton*
[08:53:18] crowell: has joined #ruby
[08:53:23] Ox0dea: I can think of no better scaffold language than Ruby.
[08:53:29] pizzaops: Largely because we want managing something with Puppet to not behave differently than managing it with the tools you're used to.
[08:54:01] mlehrer: has joined #ruby
[08:54:19] raldu: pizzaops: the errors are of typical failures with building native extensions with mkmf.log showing nothing but compiler flags and a few lines of C code. again, I can build native extensions for the very same package by using `gem`, but fail with `bundle.`
[08:54:30] sandstrom: has joined #ruby
[08:54:54] PedramT: has joined #ruby
[08:55:36] devbug: has joined #ruby
[08:55:46] pizzaops: Where does your Ruby come from, out of curiosity?
[08:58:26] codecop: has joined #ruby
[09:00:17] adgtl: has joined #ruby
[09:02:30] Xeago: has joined #ruby
[09:02:58] Xeago: has joined #ruby
[09:03:56] mark4: has joined #ruby
[09:04:10] raldu: pizzaops: it is the default Ruby installed in my system with version 2.1.the point of my question is that, wouldn't there be a way to make use of the native extensions that I have "already" built with `gem` within the context of the project I am working on with bundler?
[09:04:12] last_staff: has joined #ruby
[09:04:20] djellemah: Ox0dea: (1/2r .. 5/2r).size == 5 makes sense.
[09:04:26] pizzaops: Yup, raldu, it normally would do that.
[09:04:28] PedramT: has joined #ruby
[09:04:33] djellemah: Ox0dea: when I think about it, a range of Rationals with integer divisors is finite. So why not iterable?
[09:04:54] pizzaops: The fact that it's trying to reinstall them at all means that, at a minimum, the project's gemfile specifies a different version of those gems, but possibly that it's using a different directory to store them entirely, also
[09:05:14] pizzaops: normally the different version is the usual culprit, but your compilation failure makes me think differnetly
[09:05:34] Ox0dea: djellemah: Well, but, how do you define Rational#succ?
[09:06:55] djellemah: Ox0dea: 1/2r.succ => 2/2r; 2/2r.succ => 3/2 etc
[09:07:24] pizzaops: raldu: do you see any difference between `gem env` and `bundle exec gem env`?
[09:07:39] jds: has joined #ruby
[09:07:55] Ox0dea: djellemah: Oh, you meant if both ends of the Range have the same denominator.
[09:08:16] raldu: pizzaops: still thinking and tinkering on your reply. let me check that difference also.
[09:08:27] Ox0dea: djellemah: That could certainly be made to do The Right Thing, for some subjective definition thereof.
[09:09:09] GriffinHeart: has joined #ruby
[09:09:13] djellemah: Ox0dea: That would work. But if they're different denominators, succ would have to take them both into account. gcd or lcd or one of those.
[09:09:25] william3: has joined #ruby
[09:09:42] Ox0dea: djellemah: Then we'd have to have (0.1..0.9).size == 9, no?
[09:09:58] Ox0dea: This particular slope is a little slippery.
[09:10:27] pizzaops: raldu: another thing to try - open up irb, `require 'bundler/cli' and then `Bundler.rubygems.find_name('some_gem_you_installed').first.full_gem_path`
[09:10:39] djellemah: Ox0dea: 0.1 and 0.9 don't have a clear definition of what their step size is. Except for IEEE 754.
[09:10:48] djellemah: Ox0dea: But 1/10r and 9/10r do.
[09:11:06] Ox0dea: djellemah: I suppose that's fair, but the asymmetry squicks a little.
[09:11:08] raldu: pizzaops: first, `bundle exec gem env` does not show environment information. it just reports missing gems.
[09:11:08] pizzaops: raldu: if it's not the same as the install path from gem env you're in troule
[09:11:15] pizzaops: raldu: yeah I figured that might happen
[09:11:35] djellemah: Ox0dea: which asymmetry?
[09:12:02] Ox0dea: djellemah: Well, that Rationals would "magically" work in Ranges while Floats wouldn't.
[09:12:20] karapetyan: has joined #ruby
[09:12:40] Ox0dea: Every other iterable simply relies on a suitable definition of #succ, but Rational would have to take the end of the Range into account in order to do so.
[09:12:40] patchedmonkey: has joined #ruby
[09:12:46] blaxter: has joined #ruby
[09:13:16] karapetyan: has joined #ruby
[09:13:21] pizzaops: raldu: so note the correlation here: https://gist.github.com/pizzaops/e845ad40838bf196fb11
[09:13:23] bronson: has joined #ruby
[09:13:35] pizzaops: I would do that test for a gem you are able to succesfully install via both `gem install` and bundler
[09:13:41] nej: has joined #ruby
[09:14:28] pizzaops: I'm guessing that somehow, you'll get two different install dirs
[09:14:33] raldu: pizzaops: full_gem_path showd "/var/..."
[09:14:53] pizzaops: literally "/var/..."?
[09:14:55] djellemah: Ox0dea: I can't disagree with that. Although integers are rationals with divisor 1. Which is the assumption succ for integers is founded on.
[09:15:18] raldu: no, like '/var/lib/gems...' etc
[09:15:19] Ox0dea: djellemah: Certainly, but it still admits a unary definition of successor.
[09:15:30] pizzaops: raldu: can I see the actual value?
[09:15:34] pizzaops: and the output of the grep
[09:15:39] Ox0dea: Rational#succ would be the only binary one, and that would be surprising.
[09:15:53] raldu: /var/lib/gems/2.1.0
[09:16:21] pizzaops: and the complete full_gem_path output from irb?
[09:16:34] niko: has joined #ruby
[09:16:52] djellemah: Ox0dea: Igzakly. succ works fine for elements of ranges, provided it can have a unary definition.
[09:17:02] Ox0dea: Well, there it is. :P
[09:17:44] dn5: has joined #ruby
[09:17:44] Ox0dea: djellemah: My immediate response was to read that as a citation.
[09:17:45] raldu: /var/lib/gems/2.1.0/gems/unf_ext...
[09:17:58] pizzaops: Ah, so much for my theory.
[09:18:06] Ox0dea: "Igzakly et. al. 1973"
[09:18:15] raldu: so everything is installed in the right place?
[09:18:17] slackbotgz: has joined #ruby
[09:18:25] jottr: has joined #ruby
[09:18:28] raldu: it was a quite plausible theory to admit.
[09:18:29] djellemah: Ox0dea: My American isn't good enough to understand that ;-)
[09:18:49] baweaver: has joined #ruby
[09:18:53] pizzaops: Yeah, Iwas thinking that maybe bundler was somehow using a different parent installation_directory, causing it to reinstall gems you already installed
[09:18:53] dn5: Could someone check my gsub method
[09:18:54] dn5: https://gist.github.com/anonymous/66d6e8eafdfc5c0ce388
[09:19:19] dn5: for some reason, it always returns english days
[09:19:22] djellemah: Ox0dea: IOW what's a citation?
[09:20:01] pizzaops: dn5: because gsub doesn't change day
[09:20:05] pizzaops: gsub! will change it
[09:20:17] pizzaops: gsub just returns the new value, but it's not the return value for the *method)
[09:20:20] pizzaops: gsub just returns the new value, but it's not the return value for the *method*
[09:20:21] Ox0dea: djellemah: Like, I thought you were referencing some white paper that explained how Rational might have a successor function or something.
[09:20:22] raldu: back to the previous point, perhaps I need to install native extensions for "all" the versions of the gem in question
[09:21:20] pizzaops: >> foo = 'bar'; foo.gsub(/bar/,'baz'); foo;
[09:21:21] ruby[bot]: pizzaops: # => "bar" (https://eval.in/520878)
[09:21:29] pizzaops: >> foo = 'bar'; foo.gsub!(/bar/,'baz'); foo;
[09:21:30] ruby[bot]: pizzaops: # => "baz" (https://eval.in/520879)
[09:21:38] Ox0dea: djellemah: "Igzakly" struck me as a foreign name before I properly interpreted it.
[09:21:59] pizzaops: note the use of !
[09:22:00] Xeago: has joined #ruby
[09:22:26] raldu: pizzaops: thanks for following along and the very useful gist. see you around.
[09:22:39] djellemah: Ox0dea: Ah, ok. No, I was just thinking about it. Igzakly is the guy who agrees with stuff. Apparently he's called Genow in german. :-D
[09:22:43] dn5: pizzaops: ah, that make sense. Is ! for other methods too to return value for the method?
[09:22:45] pizzaops: In ruby, dn5, by convention, .method returns the new value but leaves the original alone, and .method! actually modifies the original, but be careful because typically it will return nil if it doesn't make a modification.
[09:23:12] pizzaops: raldu: sorry I couldn't be of more help. I'm definitely no expert on ruby environment setup
[09:23:13] FooMunki: has joined #ruby
[09:23:29] dn5: pizzaops: Great explanation, appreciated it.
[09:23:45] pizzaops: dn5: and not all methods have !. ! isn't something you just add to any method. .method! is totally its own method
[09:24:00] raldu: You have been very helpful. I'll try to hack something together.
[09:24:04] pizzaops: I typically avoid ! though, and return the changed value when necessary
[09:24:27] Ox0dea: dn5: https://eval.in/520887
[09:24:41] Ox0dea: pizzaops covered it quite well, but there's the visual complement.
[09:25:20] pizzaops: >> foo = 'bar'; baz = foo.gsub(/bar/,'yourdaddy'); baz
[09:25:21] ruby[bot]: pizzaops: # => "yourdaddy" (https://eval.in/520888)
[09:25:43] dn5: Ox0dea: Quite interesting
[09:25:46] pizzaops: That's my preferred implementation over using ! in most cases, because updating an existing variable can make things more confusing.
[09:25:51] william3: has joined #ruby
[09:26:11] dn5: So, is there equivalent fallback incase nil on !
[09:26:21] Ox0dea: How do you mean?
[09:26:24] dn5: like to use old value that we compare
[09:26:37] blackmesa: has joined #ruby
[09:26:46] Ox0dea: Oh, well, you can use `tap(&:bang!)`, if you're really keen.
[09:26:49] dn5: Ox0dea: if value not equal, the gsub! returns nil, right?
[09:26:58] marr: has joined #ruby
[09:27:00] Ox0dea: dn5: No, it returns `nil` if it didn't make any change.
[09:27:12] dn5: Ox0dea: Oupps, yes.
[09:27:28] pizzaops: dn5: yeah it returns nil but the original variable is untouched so you can still just return day like you're doing now
[09:28:08] dn5: Gotcha.
[09:28:13] pizzaops: E.g. take `puts 'foo'` - it will print out foo, but the *return value* is nil
[09:28:31] pizzaops: e.g. myvar = puts 'foo' results in myvar == nil
[09:28:38] Ox0dea: dn5: `nil` is arguably a more useful return value if a bang method didn't make any change, since hey, you've obviously got a reference to the object in question.
[09:28:50] pizzaops: right and if you're using bang you plan to reuse the original variable anyway
[09:29:00] pizzaops: so the return value can be nil, just as a way to know if ti did anything
[09:29:19] dn5: Awesome
[09:30:01] woo: has joined #ruby
[09:31:08] raldu: pizzaops: well, it turns out that the project had an alternative `BUNDLE_PATH` defined in `.bundle/config`, causing everything to go inside that path. probably to make the project more "portable" perhaps...
[09:31:56] pizzaops: raldu: that doesn't explain why they failed to compile though, only while they were being reinstalled.
[09:32:02] pizzaops: s/while/why
[09:32:09] PedramT: has joined #ruby
[09:32:22] kmckelvi1: has joined #ruby
[09:32:34] pizzaops: I hope you figure it out!
[09:32:49] pizzaops: Bed time for me. Goodnight, dirty non-functional-programming-language users <3
[09:33:10] raldu: have a nice sleep
[09:33:53] skade: has joined #ruby
[09:36:56] frudo: has joined #ruby
[09:37:02] blur3d: has joined #ruby
[09:37:09] karapetyan: has joined #ruby
[09:37:41] skade: has joined #ruby
[09:41:31] blaxter: has joined #ruby
[09:42:13] Spami: has joined #ruby
[09:42:32] shanemcd: has joined #ruby
[09:46:25] Liam`: has joined #ruby
[09:47:31] evidex: has joined #ruby
[09:49:20] zapata: has joined #ruby
[09:50:18] roshanavand: has joined #ruby
[09:50:32] riotjones: has joined #ruby
[09:51:00] jackjackdripper: has joined #ruby
[09:51:03] LoneHermit: has joined #ruby
[09:51:08] bahar: has joined #ruby
[09:53:04] vasilakisFiL: has joined #ruby
[09:53:33] celly: has joined #ruby
[09:53:41] bruce__lee: has joined #ruby
[09:53:59] slackbotgz: has joined #ruby
[09:54:41] Prira: has joined #ruby
[09:55:52] mfb2: has joined #ruby
[09:55:55] hayden_: has joined #ruby
[09:56:27] dmolina: has joined #ruby
[09:57:09] asprillia: has joined #ruby
[09:57:10] G: has joined #ruby
[09:57:27] PedramT: has joined #ruby
[09:59:38] dtordable: has joined #ruby
[10:00:48] rodfersou: has joined #ruby
[10:00:52] atmosx: has joined #ruby
[10:02:17] woo: has joined #ruby
[10:03:25] hamed_r: has joined #ruby
[10:03:32] pandaant: has joined #ruby
[10:03:59] nettoweb: has joined #ruby
[10:04:02] andrewvos: has joined #ruby
[10:04:14] lurch_: has joined #ruby
[10:05:05] trinaldi: has joined #ruby
[10:08:20] lukebyrne_: has joined #ruby
[10:08:24] shredding: has joined #ruby
[10:09:06] DeaDSouL: has joined #ruby
[10:14:23] alphaatom: has joined #ruby
[10:15:44] UtkarshRay: has joined #ruby
[10:16:19] DanKnox_: has joined #ruby
[10:16:19] DanKnox: has joined #ruby
[10:16:29] Xeago: has joined #ruby
[10:19:36] kknight: has joined #ruby
[10:20:24] jottr: has joined #ruby
[10:20:45] woo: has joined #ruby
[10:21:48] patchedmonkey: has joined #ruby
[10:28:10] irick: has joined #ruby
[10:28:31] PedramT: has joined #ruby
[10:31:09] vasilakisFiL: has joined #ruby
[10:33:30] kmckelvi1: has joined #ruby
[10:35:44] karapetyan: has joined #ruby
[10:35:50] ldnunes: has joined #ruby
[10:36:11] mikecmpbll: has joined #ruby
[10:36:24] tatsuo: has joined #ruby
[10:38:27] andrewvos: has joined #ruby
[10:38:28] blackmesa: has joined #ruby
[10:38:40] sepp2k: has joined #ruby
[10:41:09] stannard: has joined #ruby
[10:41:44] ocbtec: has joined #ruby
[10:43:13] vdamewood: has joined #ruby
[10:45:32] DoubleMalt: has joined #ruby
[10:45:33] baweaver: has joined #ruby
[10:48:26] dlitvak: has joined #ruby
[10:48:46] timmyBsd: has joined #ruby
[10:50:21] jottr: has joined #ruby
[10:51:24] timmyBsd: Heyho, i have a question related to ruby pipes. I tried to spawn a pty by using ruby PTY. Therefore i tried to use the sample from ruby-doc page. It works as expected after correcting the typo in begin section
[10:51:54] timmyBsd: so my proble is, that i want to read until gets returns nil
[10:52:24] timmyBsd: but this works only if the writer is closed
[10:53:26] LoneHerm_: has joined #ruby
[10:53:59] last_staff1: has joined #ruby
[10:53:59] toretore: has joined #ruby
[10:54:39] rikkipitt: has joined #ruby
[10:54:56] timmyBsd: unless the writer is closed it hangs
[10:56:46] dtordable: has joined #ruby
[10:57:11] timmyBsd: in short, i want spawn a process and stream commands into
[10:57:16] lurch_: has left #ruby: ()
[10:58:34] htmldrum: has joined #ruby
[11:01:58] Tempesta: has joined #ruby
[11:02:32] lubekpl: has joined #ruby
[11:05:31] myntcake: has joined #ruby
[11:06:06] FernandoBasso: has joined #ruby
[11:07:07] woo: has joined #ruby
[11:07:59] djellemah: timmyBsd: maybe you need non-blocking reads, or threads?
[11:10:29] hays_: has joined #ruby
[11:11:00] andrewvos: has joined #ruby
[11:12:10] Xat`: has left #ruby: ()
[11:13:34] alphaatom: has joined #ruby
[11:14:27] sepp2k: has joined #ruby
[11:15:16] shanemcd: has joined #ruby
[11:15:45] charlemagne: has joined #ruby
[11:16:22] blackgoat: has joined #ruby
[11:16:40] mikecmpbll: probably a silly question, but why can't i insert at the front of a Queue?
[11:18:08] j416: mikecmpbll: it's a queue so its order is defined
[11:18:20] j416: mikecmpbll: FIFO
[11:19:20] j416: mikecmpbll: can't go before someone in a queue, that is against the concept of the queue. :)
[11:19:59] gerjomarty: has joined #ruby
[11:21:01] CloCkWeRX: has joined #ruby
[11:22:58] djellemah_: has joined #ruby
[11:23:30] Ox0dea: mikecmpbll: Sounds like you want a deque?
[11:24:22] mikecmpbll: Ox0dea: ah—perhaps.
[11:25:24] Ox0dea: timmyBsd: Something like this might do if your use case is sufficiently simple: https://eval.in/520960
[11:25:51] askhat: has joined #ruby
[11:27:41] patchedmonkey: has joined #ruby
[11:27:54] juanpablo__: has joined #ruby
[11:33:19] msosa: has joined #ruby
[11:33:39] siaW: has joined #ruby
[11:35:54] siaW: hello, i want to be able to pass an argument from the command line to this method, so that i can write something like what i’ve writting in the comment https://gist.github.com/siaw23/6634f530a29c8002f22e
[11:36:03] siaW: thinking of making use of ARGV
[11:36:09] siaW: how can i do that?
[11:36:43] gerjomarty: has left #ruby: ()
[11:37:08] apeiros: mikecmpbll: priority-queue might be another concept of interest to you
[11:37:09] sgambino: has joined #ruby
[11:37:24] apeiros: not quite the same as "inserting at the front", but somewhat similar
[11:37:55] apeiros: siaw: yes, you'd have to use ARGV
[11:38:05] siaW: apeiros: i know. but how?
[11:38:08] apeiros: with `ruby script.rb 4000`, ARGV would be == ["4000"]
[11:38:23] siaW: apeiros: where do i put ARGV?
[11:38:39] apeiros: where should the 4000 go?
[11:39:11] siaW: yes, i was thinking of putting it like this: fib_up_to(ARGV)
[11:39:20] apeiros: it's the right place
[11:39:25] apeiros: but remember, ARGV is an array of strings
[11:39:29] apeiros: and you want a single integer
[11:40:20] siaW: apeiros: so i could do ARGV.first
[11:40:23] siaW: apeiros: maybe?
[11:40:37] apeiros: yes. now you have a single string. last step would be to convert that string to an integer.
[11:40:48] siaW: apeiros: ARGV.first.to_i
[11:41:02] siaW: apeiros: ok me trye
[11:41:03] apeiros: alternatively: Integer(ARGV.first)
[11:41:11] siaW: apeiros: ok
[11:41:16] Tempesta: has joined #ruby
[11:41:25] apeiros: that one will raise an exception if ARGV.first is not really an integer
[11:41:31] apeiros: >> "hello".to_i
[11:41:32] ruby[bot]: apeiros: # => 0 (https://eval.in/520968)
[11:41:36] apeiros: >> Integer("hello")
[11:41:38] ruby[bot]: apeiros: # => invalid value for Integer(): "hello" (ArgumentError) ...check link for more (https://eval.in/520969)
[11:42:37] jottr: has joined #ruby
[11:43:13] siaW: apeiros: thanks. both methods work :)
[11:43:23] andrewvos: has joined #ruby
[11:43:41] Ox0dea: siaw: Some food for exploration: https://eval.in/520971
[11:44:48] djellemah_: has joined #ruby
[11:45:02] siaW: Ox0dea: cool! :D
[11:45:44] moeabdol2: has joined #ruby
[11:46:45] Ox0dea: siaw: Even cooler! https://eval.in/520973
[11:47:16] siaW: Ox0dea: now that makes me go crazy
[11:47:18] siaW: Ox0dea: hahahahaa
[11:47:41] siaW: Ox0dea: but i’m only interested in fibonacci here
[11:47:48] siaW: so the first one makes more sense to what i’m after
[11:48:15] siaW: Ox0dea: new methods to me “lazy” and “force”
[11:48:17] Ox0dea: siaw: Sure, I was just showing you some nifty tricks.
[11:48:19] rikkipitt: has joined #ruby
[11:48:21] PedramT: has joined #ruby
[11:49:18] Ox0dea: I mean, they're more than "nifty", of course, in that they have practical uses, but this time was mostly just demonstration.
[11:49:24] Ox0dea: Ruby lets us be like Haskell. :P
[11:49:46] djellemah_: has joined #ruby
[11:50:18] siaW: Ox0dea: hahahha i’m happy to know these :)
[11:50:25] siaW: Ox0dea: you do Haskell?
[11:50:41] devbug: has joined #ruby
[11:50:43] Ox0dea: siaw: I know the basics, if there are even such things.
[11:50:44] Shaboum: has joined #ruby
[11:51:06] regex101-1168: has joined #ruby
[11:51:19] karapetyan: has joined #ruby
[11:51:25] siaW: Ox0dea: and elixir? :D :D
[11:51:50] DanKnox: has joined #ruby
[11:51:51] djellemah_: fib = Hash.new{ |h,k| h[k] = k < 2 ? k : h[k-1] + h[k-2] } # not mine, I found it somewhere
[11:51:55] Ox0dea: siaw: Not Elixir, but I've heard only good things.
[11:51:59] DEA7TH: has joined #ruby
[11:52:17] Ox0dea: djellemah_: That one overflows the stack, though.
[11:52:22] siaW: Ox0dea: exactly
[11:52:27] siaW: Ox0dea: i was about to say that
[11:52:28] skade: has joined #ruby
[11:52:44] Ox0dea: We can get around that, mind. MRI does support tail recursion, but it's finicky.
[11:52:52] gnufied: has joined #ruby
[11:53:19] fontain: has joined #ruby
[11:54:03] blackmesa: has joined #ruby
[11:54:22] kmckelvi1: has joined #ruby
[11:54:23] celly: has joined #ruby
[11:54:24] dlitvak: has joined #ruby
[11:55:18] DanKnox_: has joined #ruby
[11:57:14] Vingador: has joined #ruby
[12:01:43] jottr: has joined #ruby
[12:02:55] speaking1ode: has joined #ruby
[12:04:24] TvL: has joined #ruby
[12:06:36] AlexRussia: has joined #ruby
[12:09:33] Xeago: has joined #ruby
[12:12:53] Timberwo|f: has joined #ruby
[12:14:24] dlitvak: has joined #ruby
[12:14:45] bronson: has joined #ruby
[12:15:38] graffix: has joined #ruby
[12:16:02] shanemcd: has joined #ruby
[12:16:30] Timberwo|f: has joined #ruby
[12:16:58] xrlabs: has joined #ruby
[12:17:37] woo: has joined #ruby
[12:18:46] PedramT: has joined #ruby
[12:21:11] Flakes: has joined #ruby
[12:23:03] timmyBsd: djellemah_: the nonblocking read will always raise a 'Errno::EAGAIN: Resource temporarily unavailable - read would block'
[12:23:56] PedramT: has joined #ruby
[12:23:56] zeroDivisible: has joined #ruby
[12:24:21] timmyBsd: djellemah_: https://bpaste.net/show/387caea3971e
[12:24:36] hamed_r: has joined #ruby
[12:24:40] timmyBsd: thats my latest tries
[12:27:11] jottr: has joined #ruby
[12:27:53] kmckelvi1: has joined #ruby
[12:31:57] _sky: has joined #ruby
[12:32:02] casadei: has joined #ruby
[12:33:36] _sky: Hello, guys! I have very strange problem, auditd is unable to capture files created by Carrierwave.
[12:34:21] _sky: Maybe someone is willing to help? I would appreciate it alot
[12:34:32] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[12:35:37] _sky: Well, I'm not sure it has anything to do with rails, but thanks anyway, I'll check it out
[12:35:59] siaW: what am i doing srong with my palindrom method here https://gist.github.com/siaw23/047e093678813ff37aea
[12:36:14] siaW: Ox0dea: that sentence is actually a palindrom but i’m getting false
[12:36:20] lurch_: has joined #ruby
[12:36:54] adaedra: siaw: inspect str between l.2 and 3 and you'll see.
[12:38:16] lukebyrne: has joined #ruby
[12:39:26] duckpupp1: has joined #ruby
[12:40:34] blackmesa: has joined #ruby
[12:40:59] JammyHammy: has joined #ruby
[12:42:11] pdoherty: has joined #ruby
[12:43:41] johnmilton: has joined #ruby
[12:44:22] hxegon: has joined #ruby
[12:46:00] idefine: has joined #ruby
[12:52:23] jottr_: has joined #ruby
[12:53:26] tulak: has joined #ruby
[12:53:53] Ropeney: has joined #ruby
[12:54:37] sgambino: has joined #ruby
[12:55:10] Ox0dea: siaw: Did you get it sorted?
[12:55:28] Ox0dea: You're throwing away the computation you perform on Line 2.
[12:55:31] SShrike: has joined #ruby
[12:55:39] shanemcd: has joined #ruby
[12:55:46] joonty: has joined #ruby
[12:55:47] Ox0dea: You're not modifying `str` in-place, and you're not storing the result in a new variable, so it just goes into the ether.
[12:55:54] duckpupp1: has joined #ruby
[12:56:04] PedramT_: has joined #ruby
[12:56:35] CoderPuppy: has joined #ruby
[12:57:55] siaW: Ox0dea: is this close? https://gist.github.com/siaw23/047e093678813ff37aea
[12:58:15] Ox0dea: siaw: I think you nailed it. :)
[12:58:20] siaW: Ox0dea: nope
[12:58:30] siaW: Ox0dea: it’s not working
[12:58:32] berserk_ren: has joined #ruby
[12:58:39] godzillaenlacasa: has joined #ruby
[12:58:48] last_staff1: has joined #ruby
[12:58:55] adaedra: siaw: because you're not comparing the right elements.
[12:58:55] htmldrum: has joined #ruby
[12:59:33] siaW: adaedra: aaaaa now i see it!
[12:59:49] chipotle: has joined #ruby
[13:00:03] cfjk: has joined #ruby
[13:00:28] siaW: adaedra: this is what i was supposed to be doing! :D https://gist.github.com/siaw23/047e093678813ff37aea
[13:00:28] dlitvak: has joined #ruby
[13:00:35] siaW: Ox0dea: this is what i was supposed to be doing! :D https://gist.github.com/siaw23/047e093678813ff37aea
[13:00:48] Ox0dea: siaw: That'll do it.
[13:00:54] adaedra: Ugh, tabs.
[13:01:05] Ox0dea: siaw: In general, feel free to stick a `p foo` anywhere at any time to check your assumptions.
[13:01:05] freerobby: has joined #ruby
[13:01:27] adaedra: Or a binding.pry if you need advanced inspections.
[13:01:37] siaW: Ox0dea: yeap. that’s good
[13:01:41] andrewvos: has joined #ruby
[13:01:52] siaW: adaedra: i never got to understood pry
[13:01:59] Ox0dea: It's just irb with love.
[13:02:01] rickmasta: has joined #ruby
[13:02:05] adaedra: That would be good to. It's an amazing tool.
[13:02:08] siaW: what do do with it?
[13:02:16] Ox0dea: Explore your programs.
[13:02:25] siaW: yeah ok but how?
[13:02:32] siaW: for instance in this case how could it help?
[13:02:35] bahar: has joined #ruby
[13:02:51] Ox0dea: This one was a fine case for "puts debugging".
[13:03:04] adaedra: siaw: you could have put `binding.pry` between your two lines; this would have put you in a pry console where you could have printed str and see it wasn't modified.
[13:03:16] adaedra: Agreed, on this one, it'd have been overkill.
[13:03:40] graffix: has joined #ruby
[13:04:04] Zai00: has joined #ruby
[13:04:20] twintail: has joined #ruby
[13:08:29] JDiPierro: has joined #ruby
[13:09:52] sandstrom: has joined #ruby
[13:11:00] plsk: has left #ruby: ()
[13:11:38] Macaveli: has joined #ruby
[13:11:56] sandstrom: has joined #ruby
[13:12:24] JakFrist: has joined #ruby
[13:12:29] DanKnox: has joined #ruby
[13:14:31] DanKnox_: has joined #ruby
[13:14:36] jamw: has joined #ruby
[13:14:55] vdamewood: has joined #ruby
[13:20:41] Ox0dea: siaw: Uh-oh. https://eval.in/521079
[13:22:06] siaW: Ox0dea: :(
[13:22:30] siaW: Ox0dea: why?
[13:22:37] Ox0dea: siaw: \w means "word" in the identifier sense.
[13:22:47] Ox0dea: foo_bar is a perfectly valid identifier/"word".
[13:23:01] siaW: Ox0dea: and so is evil_is_a_deed_as_i_live
[13:23:11] skade: has joined #ruby
[13:23:13] siaW: Ox0dea: probably not
[13:23:17] Ox0dea: siaw: The problem is that those underscores are ending up in `sentence`.
[13:23:49] siaW: Ox0dea: or maybe i could remove the underscores?
[13:24:02] siaW: Ox0dea: in the first instance of `sentence`
[13:24:16] siaW: Ox0dea: say replace them with a space?
[13:24:33] krz: has joined #ruby
[13:24:36] Ox0dea: &ri String#delete @siaw
[13:24:36] `derpy: siaw: http://ruby-doc.org/core-2.3.0/String.html#method-i-delete
[13:25:55] siaW: `derpy: you’re suggesting something like sentence = str.downcase.scan(/\w/).delete(“_”)
[13:26:37] xrlabs: has joined #ruby
[13:26:46] Ox0dea: siaw: I'd do away with the #scan altogether and just say `delete('^a-z')`.
[13:27:21] siaW: Ox0dea: but then `delete('^a-z')` will beremove all letters!!
[13:27:36] adaedra: Did you try it?
[13:27:50] siaW: adaedra: nope
[13:28:13] adaedra: Also, `derpy is a bot, no need to address it.
[13:28:33] petrichorx: has joined #ruby
[13:28:46] siaW: adaedra: i know i just pressed TAB fast :p
[13:28:51] Ox0dea: Good morning, `derpy.
[13:29:04] last_staff1: has joined #ruby
[13:30:54] siaW: adaedra: works https://gist.github.com/siaw23/047e093678813ff37aea
[13:31:02] siaW: Ox0dea: works https://gist.github.com/siaw23/047e093678813ff37aea
[13:31:17] siaW: but what’s the meaning of this: (^a-z)?
[13:31:22] adaedra: you know, you don't have to mention us everytime.
[13:31:30] siaW: no i don’t :p
[13:31:32] siaW: but now i do
[13:32:04] fmcgeough: has joined #ruby
[13:32:46] Ox0dea: > Uses the same rules for building the set of characters as String#count.
[13:33:12] Ox0dea: siaw: That's from the documentation I linked, and the docs for #count are just a few flicks of your scroll wheel away. :)
[13:33:26] siaW: yeah i see it
[13:33:45] Xeago: has joined #ruby
[13:34:25] siaW: no but you confused me
[13:34:26] arlek: has joined #ruby
[13:34:45] goodcodeguy: has joined #ruby
[13:35:08] siaW: String#delete days this: Returns a copy of str with all characters in the intersection of its arguments deleted.
[13:35:25] Ox0dea: Aye, that's a little heavy.
[13:35:30] siaW: here it’s clear we’re REMOVING characters
[13:35:35] Ox0dea: Absolutely.
[13:35:41] Ox0dea: From a copy, though.
[13:35:56] siaW: it returns a copy yeah
[13:36:04] siaW: but i don’t need that copy
[13:36:33] idefine: has joined #ruby
[13:37:21] Ox0dea: Well, not necessarily, but bad things can happen if you mutate your inputs.
[13:38:57] siaW: i get it
[13:39:01] DeaDSouL_: has joined #ruby
[13:39:07] Ox0dea: siaw: https://eval.in/521099
[13:39:18] Ox0dea: Everything looks like it went swimmingly, but it totally didn't.
[13:39:28] Ox0dea: The next user of one of those strings is in for a surprise. :P
[13:40:55] siaW: Ox0dea: when you use #delete does it keep the deleted characters?
[13:42:16] zotherstupidguy: has joined #ruby
[13:43:32] xrlabs: has joined #ruby
[13:43:38] LuckyABA: has joined #ruby
[13:45:45] shevy: yo flughafen
[13:47:15] shevy: siaw it returns the string with the given chars deleted, after applying the delete operation
[13:49:12] livcd: has joined #ruby
[13:49:25] juanpablo__: has joined #ruby
[13:50:11] siaW: in that case, Ox0dea’s method i don’t understand
[13:50:23] siaW: Ox0dea: can you please help me undestand yuor method?
[13:50:29] aryaching: has joined #ruby
[13:50:32] Ox0dea: siaw: #upcase and #upcase! are different methods.
[13:50:40] siaW: i’m not on that
[13:50:51] siaW: i want explanation on your use for #delete
[13:50:57] Ox0dea: I didn't use #delete.
[13:51:23] jottr: has joined #ruby
[13:51:51] cdg: has joined #ruby
[13:51:57] siaW: Ox0dea: this is your method https://gist.github.com/siaw23/047e093678813ff37aea
[13:52:00] Ropeney: has joined #ruby
[13:52:04] siaW: there’s delete on line 2
[13:52:14] Ox0dea: siaw: That's not my method.
[13:52:24] siaW: but it works
[13:52:24] bluOxigen: has joined #ruby
[13:52:27] siaW: and i don’t understand it
[13:53:23] Ox0dea: >> 'i am going to be all vowels'.delete('^aeiou') # siaw
[13:53:24] ruby[bot]: Ox0dea: # => "iaoioeaoe" (https://eval.in/521106)
[13:54:06] siaW: Ox0dea: it’s returning the deleted characters!!
[13:54:09] PedramT: has joined #ruby
[13:54:38] Ox0dea: siaw: ^ is special there.
[13:54:56] siaW: what does it mean?
[13:55:07] Ox0dea: ¯\_(ツ)_/¯
[13:56:45] CloCkWeRX: has joined #ruby
[13:58:48] ziyadb: has joined #ruby
[13:59:11] sankaber: has joined #ruby
[13:59:52] ramortegui: has joined #ruby
[14:01:23] mlehrer: has joined #ruby
[14:02:46] haylon: has joined #ruby
[14:04:53] LuckyABA: has joined #ruby
[14:05:18] sankaber: has joined #ruby
[14:05:33] roshanavand: has joined #ruby
[14:07:04] BSaboia: has joined #ruby
[14:07:07] malconis: has joined #ruby
[14:07:40] sdothum: has joined #ruby
[14:08:11] malconis: has joined #ruby
[14:10:27] juanpablo__: has joined #ruby
[14:12:42] DanKnox: has joined #ruby
[14:12:44] DanKnox_: has joined #ruby
[14:15:54] sgambino: has joined #ruby
[14:17:05] bronson: has joined #ruby
[14:17:34] xrlabs: has joined #ruby
[14:20:01] JDiPierro: has joined #ruby
[14:20:03] sdothum: has joined #ruby
[14:20:37] jtnegrotto: has joined #ruby
[14:20:40] blackmesa: has joined #ruby
[14:21:28] umdstu: has joined #ruby
[14:21:55] roshanavand: has joined #ruby
[14:22:12] sergey_makagon: has joined #ruby
[14:22:16] umdstu: what's the best way to install ruby on centos without rbenv/rvm/etc
[14:22:23] roshanavand: has joined #ruby
[14:22:26] umdstu: to replace the sytem ruby (1.8.6)
[14:23:39] alphaatom: has joined #ruby
[14:23:49] Hanmac: umdstu: i think the best way is to replace centos itself XD ... imo the most easy way ARE rbenv or rvm .... otherwise try this: https://github.com/postmodern/ruby-install
[14:23:52] adaedra: you have the software collection system
[14:24:24] cpup: has joined #ruby
[14:25:05] adaedra: umdstu: https://www.softwarecollections.org/en/scls/?search=ruby (no 2.3 tho)
[14:25:08] Ishido: has joined #ruby
[14:25:23] umdstu: hanmac: i agree they are super easy, i use them for dev. but its not easy to put it on a non networked machine
[14:25:51] adaedra: Maybe if you start by telling us that we would be able to find you a better solution.
[14:26:02] umdstu: adaedra: thanks, i saw that domain pop up in an earlier search but hadn't clicked it yet
[14:26:17] Hanmac: ... trying to install something on a non-network system is always funky because you might not know all dependencies you might need
[14:26:29] umdstu: adaedra: well i already said I wasn't interested in a ruby manager, sorry
[14:26:47] adaedra: "put it on a non networked machine" was the missing piece.
[14:27:17] umdstu: that's true
[14:27:43] adaedra: There's also a COPR thing for 2.3, but it's CentOS 7 only
[14:27:58] adaedra: Also, what hanmac said.
[14:28:33] lipoqil: has joined #ruby
[14:28:41] Hanmac: umdstu: also when you install your stuff for ruby, you might consider C/C++ stuff too (dev tools) because they might needed when you want to install ruby gems later
[14:29:28] umdstu: dev stuff is installed already, dependencies are still handled through yum, with an internal mirror i guess. not up to date but its there
[14:31:31] fullofcaffeine: has joined #ruby
[14:32:06] Rodya_: has joined #ruby
[14:32:12] umdstu: https://github.com/feedforce/ruby-rpm/releases looks promising
[14:33:41] adaedra: You'll have a problem of trust, too
[14:34:54] andrewvos: has joined #ruby
[14:34:59] nettoweb: has joined #ruby
[14:35:13] dajobat: has joined #ruby
[14:35:17] shevy: nobody trusts anyone anymore!
[14:35:22] dajobat: Afternoon everyone.
[14:36:05] Ropeney: has joined #ruby
[14:40:51] xrlabs: has joined #ruby
[14:43:25] Mia: has joined #ruby
[14:43:25] Mia: has joined #ruby
[14:43:49] idefine: has joined #ruby
[14:44:45] PedramT: has joined #ruby
[14:44:55] Axy: has joined #ruby
[14:44:55] Axy: has joined #ruby
[14:45:15] umdstu: adaedra: good point
[14:45:23] babblebre: has joined #ruby
[14:46:00] DanKnox_: has joined #ruby
[14:46:01] DanKnox: has joined #ruby
[14:46:19] aaeron: has joined #ruby
[14:48:01] AlexJakeGreen: has joined #ruby
[14:48:38] myntcake: has joined #ruby
[14:50:22] JDiPierro: has joined #ruby
[14:51:17] weemsledeux: has joined #ruby
[14:52:41] TomPeed: has joined #ruby
[14:53:02] sdothum: has joined #ruby
[14:53:54] shanemcd: has joined #ruby
[14:54:14] herminiotorres: has joined #ruby
[14:55:49] floatingpoint: has joined #ruby
[14:56:09] rippa: has joined #ruby
[14:59:37] Chau: has joined #ruby
[15:02:11] flaguy48: has joined #ruby
[15:02:27] beanHolez: has joined #ruby
[15:02:39] diego2: has joined #ruby
[15:05:09] TheHodge: has joined #ruby
[15:05:12] nofacade: has joined #ruby
[15:06:11] coyo: has joined #ruby
[15:07:07] BaroMeter: has joined #ruby
[15:08:05] arthurl: has joined #ruby
[15:08:11] DanKnox_: has joined #ruby
[15:08:12] DanKnox: has joined #ruby
[15:11:14] chouhoulis: has joined #ruby
[15:12:50] celly: has joined #ruby
[15:13:15] stannard: has joined #ruby
[15:13:34] mfb2: has joined #ruby
[15:14:04] DmitryBochkarev: has joined #ruby
[15:14:12] tvon: has joined #ruby
[15:14:35] polishdub: has joined #ruby
[15:15:21] jamw: has joined #ruby
[15:16:43] rdark: has joined #ruby
[15:16:58] rdark: has joined #ruby
[15:17:22] tulak: has joined #ruby
[15:17:37] schuc: has joined #ruby
[15:17:48] pdoherty: has joined #ruby
[15:18:49] x77686d: has joined #ruby
[15:21:07] hamed_r: has joined #ruby
[15:23:27] sgambino: has joined #ruby
[15:24:49] Zai00_: has joined #ruby
[15:25:25] herminiotorres: has joined #ruby
[15:25:29] Hanmac: hey shevy i got something for you: check this out: https://github.com/Hanmac/rpg_gamedata (readme, testcases and other stuff will be added later)
[15:25:54] sucks: has joined #ruby
[15:26:33] shevy: no readme!
[15:27:14] yatish27: has joined #ruby
[15:27:23] Hanmac: shevy that was the first commit, readme and other stuff will be added later (today)
[15:28:09] mary5030: has joined #ruby
[15:29:25] godzillaenlacasa: has joined #ruby
[15:30:07] allcentury: has joined #ruby
[15:30:25] bruce__lee: has joined #ruby
[15:30:39] Macaveli: has joined #ruby
[15:30:44] johnnyt: has joined #ruby
[15:31:11] wprice: has joined #ruby
[15:33:00] zast: has joined #ruby
[15:33:07] zackzorman: has joined #ruby
[15:38:03] mdw: has joined #ruby
[15:38:24] dopamean1: has joined #ruby
[15:39:36] cdg: has joined #ruby
[15:40:07] failshell: has joined #ruby
[15:40:20] shevy: my projects sucked so much time away, I feel dead :(
[15:41:41] decoponio: has joined #ruby
[15:41:53] consolejazz: has joined #ruby
[15:42:04] consolejazz: has left #ruby: ()
[15:42:51] platzhirsch: has joined #ruby
[15:45:10] dopamean1: has joined #ruby
[15:45:21] FooMunki: has joined #ruby
[15:47:46] cout: has joined #ruby
[15:48:47] frudo: has joined #ruby
[15:50:32] yardenbar: has joined #ruby
[15:51:43] Infra-Red: has joined #ruby
[15:51:57] dlitvak_: has joined #ruby
[15:54:56] bweston92: has joined #ruby
[15:55:54] malconis_: has joined #ruby
[15:57:09] krobzaur: has joined #ruby
[15:57:43] crowell: has joined #ruby
[15:57:43] crowell: has joined #ruby
[15:58:54] malconis: has joined #ruby
[15:59:29] TheBrayn: hanmac: https://github.com/bbatsov/rubocop
[16:00:14] tjohnson: has joined #ruby
[16:00:19] Hanmac: TheBrayn: i know rubocop, but most of the problems are stupid and are wrong setted ... or what exaclty is your problem ?
[16:01:16] DanKnox_: has joined #ruby
[16:01:16] DanKnox: has joined #ruby
[16:02:45] darix: has joined #ruby
[16:03:33] BrunoSaboia: has joined #ruby
[16:06:29] nogic: has joined #ruby
[16:07:29] _deezCodez: has joined #ruby
[16:07:55] PlasmaStar: has joined #ruby
[16:08:17] _deezCodez: Does anyone know why people always overcomplicate simple things to teach more indepth concepts? It just makes it more confusing for me.
[16:08:34] Abrin: has joined #ruby
[16:08:54] Rodya_: has joined #ruby
[16:09:55] mfb2: has joined #ruby
[16:10:27] Hanmac: _deezCodez: i dont know, maybe because they have no other problems?
[16:10:43] dajobat: _deezCodez: Example?
[16:12:08] nofacade: has joined #ruby
[16:14:27] ruurd: has joined #ruby
[16:15:27] ss_much: has joined #ruby
[16:18:45] Jardayn: has joined #ruby
[16:19:15] kmckelvin: has joined #ruby
[16:19:58] xrlabs: has joined #ruby
[16:20:02] Guest38: has joined #ruby
[16:20:08] skade: has joined #ruby
[16:23:13] rkazak: has joined #ruby
[16:24:34] xapak: has joined #ruby
[16:25:55] graffix: has joined #ruby
[16:26:27] ping-pong: has joined #ruby
[16:26:50] krobzaur: has joined #ruby
[16:27:01] casadei: has joined #ruby
[16:27:34] shredding: has joined #ruby
[16:27:47] nopolitica: has joined #ruby
[16:28:23] vod: has joined #ruby
[16:28:31] rickmasta: has joined #ruby
[16:29:34] rickmasta: has joined #ruby
[16:30:30] siaW: has joined #ruby
[16:32:17] aegis3121: has joined #ruby
[16:33:42] _deezCodez: Sorry, I got distracted. I was thinking about people talking about blocks. I diving down the rabbit hole and a lot of people to teach blocks are forcing in blocks where I feel blocks wouldn't normally be used.
[16:34:52] zacstewart: has joined #ruby
[16:35:35] krobzaur: has joined #ruby
[16:36:12] karapetyan: has joined #ruby
[16:39:53] blandflakes: has joined #ruby
[16:42:34] frudo: has joined #ruby
[16:43:04] tildes: has joined #ruby
[16:45:46] chouhoulis: has joined #ruby
[16:46:11] PhoenixBird: has joined #ruby
[16:46:19] rakm: has joined #ruby
[16:46:28] Infra-Red: has joined #ruby
[16:47:22] sandstrom: has joined #ruby
[16:48:01] PhoenixBird: has left #ruby: ()
[16:48:18] rcvalle: has joined #ruby
[16:49:08] siaW: has joined #ruby
[16:49:11] sucks: has joined #ruby
[16:49:22] Rodya_: has joined #ruby
[16:51:38] maikowblue: has joined #ruby
[16:51:52] sandstrom: has joined #ruby
[16:52:59] Maletor: has joined #ruby
[16:53:58] symm-: has joined #ruby
[16:55:43] blackmesa: has joined #ruby
[16:56:44] ljames: has joined #ruby
[16:57:16] haylon: with Gem, can I do an install command like gem install gem -v ~> 2.2 ?
[17:00:05] apeiros: seems like. but you have to quote the version spec. otherwise it's 2 args instead of 1
[17:00:32] amclain: has joined #ruby
[17:00:36] haylon: gem install gem -v "~> 2.2"
[17:00:41] haylon: I'll give it a whack
[17:00:51] TomPeed: has joined #ruby
[17:01:05] darix: maybe put the gemname after the version
[17:01:35] Jardayn: has joined #ruby
[17:01:40] haylon: That did work, I just need not the newest gem version.
[17:02:34] arthropododo: has joined #ruby
[17:04:27] fedexo: has joined #ruby
[17:04:37] karapetyan: has joined #ruby
[17:04:45] Rodya_: has joined #ruby
[17:04:51] msosa: has joined #ruby
[17:05:22] karapetyan: has joined #ruby
[17:05:45] havenwood: hanmac: How didn't it work? Error?
[17:05:51] havenwood: hanmac: oops, but hi!
[17:06:34] mfb2: has joined #ruby
[17:06:36] Macaveli: has joined #ruby
[17:06:42] haylon: havenwood, it worked, but I wanted one of the 2.2.* versions of Zabbix API, supposedly version 2.4* won't work with Zabbix 2.2
[17:06:57] haylon: its a weird versioning/tagging system he's got going on
[17:07:00] xrlabs: has joined #ruby
[17:07:07] zacstewart: has joined #ruby
[17:09:29] Xeago: has joined #ruby
[17:09:38] amoeba: has joined #ruby
[17:10:34] rakm: has joined #ruby
[17:10:57] karapetyan: has joined #ruby
[17:11:46] Don_John: has joined #ruby
[17:11:59] woo: has joined #ruby
[17:13:00] dionysus69: has joined #ruby
[17:13:32] B1n4r10: has joined #ruby
[17:14:19] apeiros: haylon: don't know how rubygems handles it, but usually flags/options come before arguments
[17:14:30] apeiros: i.e. gem install -v '~> 2.2' gemname
[17:16:07] jamw: has joined #ruby
[17:16:17] apeiros: ok, just tried it. position of the option doesn't matter. but rubygems definitively accepts ~> there.
[17:18:35] stannard_: has joined #ruby
[17:18:36] haylon: coolios, thanks apeiros
[17:23:00] rht: has joined #ruby
[17:23:23] mlehrer: has joined #ruby
[17:23:46] BSab: has joined #ruby
[17:23:59] jottr: has joined #ruby
[17:25:02] rakm: has joined #ruby
[17:25:08] sneakerhax: has joined #ruby
[17:25:25] timwis: has joined #ruby
[17:26:47] timwis: Hey guys, I'm trying to write a jekyll plugin and I have an array of "jekyll documents". I'm trying to group them by a particular attribute (category), but it's breaking when a document doesn't have a "category" attribute. So I figured I'd run a .reject() on them first. But I can't figure out how to test whether the "jekyll document" object has an attribute. .has_key, has_attribute, .category? .category.nil? all throw errors. Any ideas?
[17:27:19] xrlabs: has joined #ruby
[17:27:55] kirillzh: has joined #ruby
[17:28:21] arthurl: hi guys- quick question- how do i install bundler to a specific ruby env, for example i see bundle and bundler is NOT currently in '/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin'
[17:28:31] arthurl: and i'd like it to be
[17:28:37] arthurl: them* to be
[17:29:14] Maletor: has joined #ruby
[17:30:49] RegulationD: has joined #ruby
[17:30:54] haylon: grrr. Now I'm running into a type casing issue. ZabbixApi thinks I'm sending it a string when I put a .to_i after the value.
[17:31:11] haylon: keeps complaining about Conversion from string to Integer, and the string is a number
[17:31:22] Maletor: has joined #ruby
[17:32:47] haylon: nvm. gotta convert it into a hash.
[17:33:04] DanKnox: has joined #ruby
[17:33:04] aryaching: has joined #ruby
[17:33:05] DanKnox_: has joined #ruby
[17:33:33] babblebre: has joined #ruby
[17:34:19] dhollinger: has joined #ruby
[17:35:21] lubekpl: has joined #ruby
[17:36:53] baweaver: has joined #ruby
[17:38:45] xapak: Do you know what does $LOAD_PATH read in the the paths? All .rb files or what?
[17:38:58] xapak: Is it recursive with children paths?
[17:39:19] ohaibbq: has joined #ruby
[17:39:40] stannard: has joined #ruby
[17:40:06] arlek: has joined #ruby
[17:40:41] Rodya_: has joined #ruby
[17:40:49] bb010g: has joined #ruby
[17:41:19] eam: xapak: it's the search path for require()
[17:41:21] RegulationD: has joined #ruby
[17:41:36] eam: require 'foo/bar' will look for foo/bar.rb in each $LOAD_PATH
[17:41:47] eam: very similar to $PATH
[17:41:54] VeryBewitching: has joined #ruby
[17:42:05] eam: note: rubygems has a different load mechanism
[17:42:11] xapak: Hmm, got it. That’s why it’s not working for my use case. :p
[17:42:37] xapak: eam, thamks.
[17:42:41] xapak: thanks, rather
[17:44:57] karapetyan: has joined #ruby
[17:46:02] davedev24: has joined #ruby
[17:46:22] vod: hello everyone
[17:46:51] kmckelvin: has joined #ruby
[17:47:11] dravine: has joined #ruby
[17:47:36] goodcodeguy: has joined #ruby
[17:48:22] swills: has joined #ruby
[17:49:22] lubekpl: has joined #ruby
[17:49:32] sdothum: has joined #ruby
[17:49:38] _djbkd: has joined #ruby
[17:52:00] terminalrecluse: has joined #ruby
[17:53:40] voobscout: has joined #ruby
[17:54:05] goodcodeguy: has joined #ruby
[17:54:32] skade: has joined #ruby
[17:54:55] Rodya_: has joined #ruby
[17:55:22] umdstu: whats the difference between using a fixture to create an object, item = items(:item), and using AR, item = Item.new() in a model test?
[17:55:47] blackmesa: has joined #ruby
[17:55:47] umdstu: are fixtures immutable ?
[17:56:52] idefine: has joined #ruby
[17:56:56] mfb2: has joined #ruby
[17:57:12] drale2k: i have a socket and need to send back 1 byte (01). Currently i am trying > client.puts "\x01" but it does not work (the gps device is not responding to this). How else would i send back 1 byte ?
[17:57:58] apeiros: drale2k: puts appends a newline
[17:58:08] apeiros: you should probably use write
[17:58:14] aryaching: has joined #ruby
[17:58:46] apeiros: and potentially flush the data out (ruby usually buffers IOs)
[17:58:50] tvon: has joined #ruby
[17:59:16] drale2k: hm write seems to create a new line too
[17:59:36] firstdayonthejob: has joined #ruby
[17:59:48] kmckelvi1: has joined #ruby
[18:00:26] freerobby: has joined #ruby
[18:01:04] benlieb: has joined #ruby
[18:01:21] Eiam_: has joined #ruby
[18:03:37] mhoungbo: has joined #ruby
[18:03:42] marxarelli: has joined #ruby
[18:04:11] codecop: has joined #ruby
[18:04:43] charlemagne: has joined #ruby
[18:04:56] zacstewart: has joined #ruby
[18:05:07] justbleed: has joined #ruby
[18:07:28] eregi: has joined #ruby
[18:08:43] pawnbox: has joined #ruby
[18:09:28] SCHAAP137: has joined #ruby
[18:10:13] sucks: has joined #ruby
[18:12:33] kmckelvi1: has joined #ruby
[18:13:14] voobscout: has joined #ruby
[18:13:34] Silox|: has joined #ruby
[18:14:10] sepp2k: has joined #ruby
[18:14:34] aegis3121: has joined #ruby
[18:15:35] diegoviola: has joined #ruby
[18:15:51] diegoviola: has joined #ruby
[18:17:04] Xeago: has joined #ruby
[18:18:06] kies^: has joined #ruby
[18:18:21] dmolina1: has joined #ruby
[18:18:39] bronson: has joined #ruby
[18:18:50] hays: has joined #ruby
[18:18:57] JDiPierro: has joined #ruby
[18:19:16] _djbkd: has joined #ruby
[18:20:44] mwlang: has joined #ruby
[18:21:42] youngmathimus0: has joined #ruby
[18:24:02] sucks: has joined #ruby
[18:25:34] Rodya_: has joined #ruby
[18:27:07] skweek: has joined #ruby
[18:27:16] PhoenixBird_: has joined #ruby
[18:30:03] jottr_: has joined #ruby
[18:30:54] x77686d: has joined #ruby
[18:31:06] B1n4r10: has joined #ruby
[18:32:45] last_staff: has joined #ruby
[18:36:52] stannard_: has joined #ruby
[18:38:19] conrfrmn: Im on osx and cant get rbenv to change my ruby version. I do $ rbenv install 2.3.0, $ rbenv global 2.3.0, $ rbenv rehash, but it doensn't work am I missing something?
[18:38:22] elcontrastador: has joined #ruby
[18:38:26] BSaboia: has joined #ruby
[18:39:10] bronson: has joined #ruby
[18:40:30] kirillzh: has joined #ruby
[18:41:56] xapak: conrfrmn, you sure rbenv is loaded to the PATH? Do: echo $PATH
[18:42:10] B3rg3lm1r: has joined #ruby
[18:42:14] xapak: ~HOME/.rbenv/shims should be one of the most to the left.
[18:43:10] ruby-lang272: has joined #ruby
[18:43:38] gizmore: has joined #ruby
[18:44:19] platzhirsch: has left #ruby: ()
[18:44:59] B3rg3lm1r: has joined #ruby
[18:45:27] karapetyan: has joined #ruby
[18:46:22] chipotle: has joined #ruby
[18:48:12] baweaver: has joined #ruby
[18:49:32] kirillzh: has joined #ruby
[18:50:04] PhoenixBird_: conrfrmn , I use following entry in .bashrc on kubuntu # Added for rbenv
[18:50:04] PhoenixBird_: export RBENV_ROOT="$HOME/Ruby/rbenv"
[18:50:04] PhoenixBird_: export PATH="$RBENV_ROOT/bin:$PATH"
[18:50:04] PhoenixBird_: export RBENV_VERSION=2.2.3
[18:50:04] PhoenixBird_: eval "$(rbenv init -)"
[18:50:33] freerobby: has joined #ruby
[18:51:07] codecop: has joined #ruby
[18:52:19] PhoenixBird_: has left #ruby: ()
[18:52:59] william3: has joined #ruby
[18:53:38] chouhoulis: has joined #ruby
[18:53:39] dajobat: has joined #ruby
[18:56:00] robbyoconnor: has joined #ruby
[18:56:27] pdoherty: has joined #ruby
[18:56:43] jottr: has joined #ruby
[18:58:11] openstruct: has joined #ruby
[18:58:11] openstruct: has joined #ruby
[18:59:23] robbyoconnor: has joined #ruby
[18:59:38] youngmathimus0: has joined #ruby
[19:01:04] DanKnox: has joined #ruby
[19:01:06] DanKnox_: has joined #ruby
[19:01:26] yardenbar: has joined #ruby
[19:02:44] joast: has joined #ruby
[19:03:51] william3: has joined #ruby
[19:05:29] roshanavand: has joined #ruby
[19:05:34] william3: has joined #ruby
[19:06:12] dmolina: has joined #ruby
[19:06:46] timwis: has joined #ruby
[19:07:17] jackjackdripper: has joined #ruby
[19:09:23] siaW: has joined #ruby
[19:09:35] x77686d: after doing 'irb -r ./x' I'd like to be able to edit x.rb and then reload inside irb. I see that __FILE__ is "(irb)". Is there a way to get the name of the file specified with -r so I could load it again?
[19:10:09] roshanavand: has joined #ruby
[19:10:37] ironcamel: p seems to print to stdout. is there an easy way to get it to go to stderr?
[19:11:08] drbrain: ironcamel: $stderr = $stdout
[19:11:11] charlemagne: has joined #ruby
[19:11:17] drbrain: x77686d: it will be in $LOADED_FEATURES
[19:11:33] ironcamel: oh i guess i can STDERR.puts foo.inspect
[19:12:01] drbrain: x77686d: there's code in active_support that does this kind of thing, but I'm not sure where it is or how easy it is to extract
[19:12:06] havenwood: ironcamel: Or if you want to respect warning level optinos: warn {}.inspect
[19:12:09] x77686d: drbrain: thanks!
[19:12:20] azure32: has joined #ruby
[19:12:26] drbrain: x77686d: I think pry might have this as a feature (an irb alternative)
[19:12:42] drbrain: I think someone else here will be able to correct me/confirm that ↑
[19:13:10] kirun: has joined #ruby
[19:15:04] JDiPierro: has joined #ruby
[19:15:11] zackzorman: has joined #ruby
[19:16:46] baweaver: has joined #ruby
[19:16:48] jamw: has joined #ruby
[19:17:00] bluethundr: has joined #ruby
[19:17:17] bluethundr: I'm trying to install the ruby-debug gem but I'm running into an error
[19:17:18] bluethundr: http://pastebin.ca/3376433
[19:17:27] bluethundr: anyone know a way to get out of this hole? thanks
[19:19:26] rakm_: has joined #ruby
[19:22:20] gigetoo: has joined #ruby
[19:23:28] Hanmac: havenwood: did you checkout https://github.com/Hanmac/rpg_gamedata yet? i try again to make rpg scripting stuff
[19:23:36] timwis: has joined #ruby
[19:23:49] havenwood: hanmac: nope, i hadn't - will do!
[19:24:05] yardenbar: has joined #ruby
[19:24:16] Hanmac: it has no readme or test-cases yet, but it did a fresh start
[19:24:18] askhat: has joined #ruby
[19:25:18] dlitvak: has joined #ruby
[19:25:55] Jokkk: has joined #ruby
[19:26:22] Dimik: has joined #ruby
[19:26:27] pizzaops: Why doesn't this return something wrapped in double-braces? https://gist.github.com/
[19:26:33] pizzaops: Erm, https://gist.github.com/pizzaops/9da9b02d4390e0d55967 haha
[19:26:49] pizzaops: Since I'm wrapping the intiial memo in [], and that happens with each "iteration" shouldn't i end up with wierdness
[19:27:03] xapak: has left #ruby: ()
[19:27:34] ruby[bot]: 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
[19:27:38] FooMunki: has joined #ruby
[19:27:45] pizzaops: I know that.
[19:27:50] pizzaops: I'm just curious, syntactically.
[19:27:54] rakm: has joined #ruby
[19:28:01] ur5us: has joined #ruby
[19:28:04] pizzaops: I actually already have a solution to my "real" problem.
[19:28:08] baweaver: because you're returning an array
[19:28:13] tildes: has joined #ruby
[19:28:37] drbrain: bluethundr: gem install ruby-debug:0.10.4
[19:28:57] drbrain: bluethundr: and report a bug to ruby-debug with your `gem install` and `gem env` output
[19:29:11] baweaver: http://ruby-doc.org/core-2.3.0/Array.html#method-i-2B
[19:29:36] perlgod: has joined #ruby
[19:29:40] pizzaops: baweaver: I know I'm doing that, but if I'm wrapping each memo in [] for each iteration shouldnt i end up with arrays inside arrays
[19:29:40] sts: has joined #ruby
[19:29:42] idefine: has joined #ruby
[19:30:07] baweaver: put a few puts to show you what the memo and iterator are
[19:31:44] pizzaops: mm fair enough, thanks
[19:32:14] baweaver: the initial memo is the first element unless you provide one
[19:32:18] tAn: has joined #ruby
[19:32:27] baweaver: so you have two hashes
[19:32:29] anisha: has joined #ruby
[19:32:49] tAn: has joined #ruby
[19:34:43] JohnBat26: has joined #ruby
[19:36:00] pizzaops: Yeah, but on the second iteration I would expect it to be [[firstmemo]] + [nexthash]
[19:36:19] baweaver: except there is none
[19:36:22] baweaver: add a third element
[19:36:34] treehug88: has joined #ruby
[19:36:35] baweaver: with two elements it executes once
[19:36:39] devbug: has joined #ruby
[19:36:48] baweaver: the first element being the memo and the second being the iterator
[19:37:03] raddazong: has joined #ruby
[19:38:55] arup_r1: has joined #ruby
[19:38:56] mdw: has joined #ruby
[19:38:59] musl: has joined #ruby
[19:40:03] dfockler: has joined #ruby
[19:42:59] tvsutton: Perhaps someone can help me figure out if I'm using this invoking this method correctly:
[19:43:00] tvsutton: Gem.install('xcode-install', options: { :user_install => true })
[19:43:29] tvsutton: Gem.install('xcode-install') does what I'd expect and attempts to install the Gem to the default site dir
[19:43:56] tvsutton: I'm trying to set an option that's the equivalent of `gem install --user-install` but directly from Ruby
[19:44:51] arup_r1: say I have "D" now, from this I want to print by 2 letters behind the `D` as "A".. What is neat way ?
[19:45:16] arup_r1: sorry, `B`, not `A`
[19:45:47] chipotle: has joined #ruby
[19:45:50] idefine: has joined #ruby
[19:45:52] yardenbar: has joined #ruby
[19:45:59] drbrain: tvsutton: I think you want Gem.install 'xcode-install', user_install: true
[19:46:45] zeroDivisible: has joined #ruby
[19:46:47] tvsutton: I tried that as well, no luck.
[19:46:49] karapetyan: has joined #ruby
[19:47:14] ironcamel: i'm trying to find the index of the first occurrence of an item in an array, starting after a given index. what is the best way to do this? should i take a slice and call .first_index on that?
[19:47:28] ironcamel: foo[3..].first_index('bar')
[19:47:39] drbrain: tvsutton: maybe Gem.install 'xcode-install', '>= 0', user_install: true ?
[19:47:42] tvsutton: drbrain: ah, got it. I'm on 2.0.0, which doesn't support an options hash at all :(
[19:47:53] tvsutton: I was looking at docs with Dash, which has 2.3.0
[19:47:54] dlitvak: has joined #ruby
[19:48:05] drbrain: 2.5.2(?) is latest
[19:48:25] ironcamel: related question, how can i take a slice of an array from a given starting point all the way to the end, f[3..]
[19:48:27] tvsutton: What I'm actually looking to do is programatically ensure within a Rakefile that a specific gem version is installed in the user's gems dir
[19:48:46] sandstrom: has joined #ruby
[19:48:57] baweaver: >> [1,2,3,4,5][3..-1]
[19:48:58] ruby[bot]: baweaver: # => [4, 5] (https://eval.in/521267)
[19:49:04] baweaver: >> [1,2,3,4,5][2..-2]
[19:49:05] ruby[bot]: baweaver: # => [3, 4] (https://eval.in/521268)
[19:49:07] tvsutton: I can do this with shell code, just hoped that I could do it a bit more efficiently directly using Gem in Ruby
[19:49:54] musl: has joined #ruby
[19:51:10] FernandoBasso: has joined #ruby
[19:51:41] voobscout: has joined #ruby
[19:51:48] Cohedrin: has joined #ruby
[19:54:00] ironcamel: thanks baweaver
[19:54:43] rakm_: has joined #ruby
[19:56:56] roshanavand: has joined #ruby
[19:58:09] idefine: has joined #ruby
[20:00:39] zeroDivisible: has joined #ruby
[20:01:13] graudify: has joined #ruby
[20:01:38] graudify: is there any way to imitate `--data-binary` with net/http?
[20:03:03] flughafen_: has joined #ruby
[20:03:33] rakm: has joined #ruby
[20:03:56] sgambino: has joined #ruby
[20:04:09] idefine: has joined #ruby
[20:04:41] marxarelli: has joined #ruby
[20:04:51] drbrain: graudify: just put the binary data in the post body
[20:05:29] drbrain: you might need to set the appropriate content-type too
[20:05:30] jackjackdripper: has joined #ruby
[20:05:43] rakm: has joined #ruby
[20:05:46] voobscout: has joined #ruby
[20:05:48] graudify: nice, thanks drbrain
[20:10:53] helpa-bot: has joined #ruby
[20:10:58] xrlabs: has joined #ruby
[20:11:12] janno_: has joined #ruby
[20:11:33] kiki_lam1: has joined #ruby
[20:11:36] Raboo_: has joined #ruby
[20:11:40] adeponte: has joined #ruby
[20:11:41] ^raz^: has joined #ruby
[20:11:49] jtoy_: has joined #ruby
[20:11:54] eam_: has joined #ruby
[20:11:56] codyc: has joined #ruby
[20:11:58] rfi_: has joined #ruby
[20:11:58] janelleb_: has joined #ruby
[20:11:58] ereslibre_laptop: has joined #ruby
[20:11:59] ereslibre_laptop: has joined #ruby
[20:12:12] joeyjones: has joined #ruby
[20:12:14] papercode: has joined #ruby
[20:12:28] raz: has joined #ruby
[20:12:28] Dfoolz: has joined #ruby
[20:12:43] WebDawg: has joined #ruby
[20:12:47] EdwardIII: has joined #ruby
[20:12:51] quarcu: has joined #ruby
[20:12:54] platzhirsch: has joined #ruby
[20:12:54] whiteline: has joined #ruby
[20:12:56] Shaboum: has joined #ruby
[20:12:57] adam_: has joined #ruby
[20:12:58] Edulix: has joined #ruby
[20:13:09] jzigmund: has joined #ruby
[20:13:11] jazzonmymind: has joined #ruby
[20:13:11] isomorphismes: has joined #ruby
[20:13:15] Guest6991: has joined #ruby
[20:13:20] akkad: has joined #ruby
[20:13:20] symm-: has joined #ruby
[20:13:24] ping-pong: has joined #ruby
[20:13:25] Platini: has joined #ruby
[20:13:39] Rush: has joined #ruby
[20:14:02] nogic: has joined #ruby
[20:15:08] ohaibbq: has joined #ruby
[20:15:39] yfeldblum: has joined #ruby
[20:15:55] angiebadillo: has joined #ruby
[20:16:23] william3: has joined #ruby
[20:16:28] im0b: has joined #ruby
[20:16:32] jlyndon: has joined #ruby
[20:16:32] jimeh: has joined #ruby
[20:16:38] joast: has joined #ruby
[20:17:33] avdi: has joined #ruby
[20:18:22] adambeynon: has joined #ruby
[20:18:45] spider-mario: has joined #ruby
[20:18:53] tejasmanohar: has joined #ruby
[20:18:54] yo61: has joined #ruby
[20:18:59] deepak: has joined #ruby
[20:19:35] wprice: has joined #ruby
[20:21:44] yqt: has joined #ruby
[20:22:34] dlitvak: has joined #ruby
[20:22:39] yardenbar: has joined #ruby
[20:22:40] Deck`: has joined #ruby
[20:23:33] DanKnox: has joined #ruby
[20:23:34] DanKnox_: has joined #ruby
[20:23:50] andrewvos: has joined #ruby
[20:23:57] ixti: has joined #ruby
[20:25:24] idefine: has joined #ruby
[20:26:13] mhoungbo: has joined #ruby
[20:26:58] tvsutton: going a little further down the rabbit hole: OS X (still) ships with RubyGems 2.0.14. If I don't first update it to the latest with `gem update --system`, I can't do `Gem::Installer.new`, even though the Gem::Installer class seems to be present in the System's Ruby 2.0.0 dir within the rubygems lib.
[20:27:47] drbrain: tvsutton: can't do = ? did you require it?
[20:28:07] tvsutton: I get "uninitialized constant Gem::Installer (NameError)"
[20:28:10] drbrain: tvsutton: also, you should use Gem::DependencyInstaller (which also installs dependencies)
[20:28:18] drbrain: require 'rubygems/dependency_installer' to bring it in
[20:28:35] tvsutton: I'll try that one
[20:28:48] drbrain: it isn't loaded by default because it pulls in features that you don't need most of the time
[20:29:35] SenpaiSilver: has joined #ruby
[20:29:45] tvsutton: I see, ok. But it seems I don't need to explicitly require 'rubygems/installer' for the latest rubygems version
[20:29:47] eregi_: has joined #ruby
[20:29:53] xrlabs: has joined #ruby
[20:31:28] aegis3121: has joined #ruby
[20:31:29] SenpaiSilver: has joined #ruby
[20:32:07] goodcodeguy: has joined #ruby
[20:32:22] tvsutton: Thanks for the tip - I totally didn't realize I'd need to import the sub-components
[20:33:06] voobscout: has joined #ruby
[20:35:47] Channel6: has joined #ruby
[20:36:05] idefine: has joined #ruby
[20:37:12] arup_r1: has left #ruby: ()
[20:37:14] idefine: has joined #ruby
[20:37:34] stannard: has joined #ruby
[20:37:36] baweaver: has joined #ruby
[20:37:45] BSaboia: has joined #ruby
[20:38:42] chouhoul_: has joined #ruby
[20:39:47] raddazong: has joined #ruby
[20:41:09] chouhoul_: has joined #ruby
[20:43:05] graudify: drbrain: req.body worked perfectly. thanks
[20:45:17] x77686d: has joined #ruby
[20:46:17] yardenbar: has joined #ruby
[20:47:03] charlemagne: has joined #ruby
[20:47:29] loveablelobster: has joined #ruby
[20:47:44] blackgoat: has joined #ruby
[20:48:04] casadei: has joined #ruby
[20:50:41] BrunoSaboia: has joined #ruby
[20:51:48] kent\n: has joined #ruby
[20:52:00] mhoungbo: has joined #ruby
[20:52:11] tyil: has left #ruby: ("system has died")
[20:53:25] pawnbox: has joined #ruby
[20:53:26] Infra-Red: has joined #ruby
[20:53:55] sandstrom: has joined #ruby
[20:55:37] clamstar: has joined #ruby
[20:57:09] idefine: has joined #ruby
[20:57:13] voobscout: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[20:57:45] freerobby: has joined #ruby
[20:58:24] potsmoker: has joined #ruby
[20:58:26] baweaver: has joined #ruby
[20:59:45] william3: has joined #ruby
[21:02:16] GinoManWorks: has joined #ruby
[21:03:00] FooMunki: has joined #ruby
[21:03:14] Guest38: has joined #ruby
[21:04:42] youngmathimus0: has joined #ruby
[21:05:00] konr: has joined #ruby
[21:05:32] idefine: has joined #ruby
[21:07:29] Jokkk: has joined #ruby
[21:08:05] jackjackdripper: has joined #ruby
[21:08:13] ohaibbq: has joined #ruby
[21:08:21] firstdayonthejob: has joined #ruby
[21:08:22] patchedmonkey: has joined #ruby
[21:09:04] idefine: has joined #ruby
[21:12:31] crowell: has joined #ruby
[21:13:12] rehat_: has joined #ruby
[21:17:31] idefine: has joined #ruby
[21:17:35] jamw: has joined #ruby
[21:17:51] theery: has joined #ruby
[21:18:14] karapetyan: has joined #ruby
[21:18:45] patchedmonkey: has joined #ruby
[21:19:57] _djbkd: has joined #ruby
[21:22:00] cdg: has joined #ruby
[21:22:49] azure32: has joined #ruby
[21:23:21] pawnbox: has joined #ruby
[21:23:37] chouhoul_: has joined #ruby
[21:24:59] TomyLobo: has joined #ruby
[21:25:13] idefine: has joined #ruby
[21:25:58] charlemagne: has joined #ruby
[21:26:32] tomaz_b: has joined #ruby
[21:26:40] PedramT: has joined #ruby
[21:26:46] doublemalt_: has joined #ruby
[21:28:36] Rodya_: has joined #ruby
[21:28:46] s00pcan: has joined #ruby
[21:30:42] patchedmonkey: has joined #ruby
[21:30:56] mhoungbo: has joined #ruby
[21:31:42] helpa: has joined #ruby
[21:32:04] s00pcan: has joined #ruby
[21:33:13] platzhirsch: has left #ruby: ()
[21:33:20] idefine: has joined #ruby
[21:33:20] fullofcaffeine: has joined #ruby
[21:35:36] s00pcan: has joined #ruby
[21:36:10] tvw: has joined #ruby
[21:36:20] patchedmonkey: has joined #ruby
[21:36:21] daxroc: Should you test for attribute URI being an http or https ? not sure the best approach for this
[21:36:46] daxroc: of type URI::HTTP||HTTPS
[21:38:32] Rodya_: has joined #ruby
[21:38:45] maxiu: has joined #ruby
[21:39:00] n00bDev: has joined #ruby
[21:39:47] idefine: has joined #ruby
[21:41:11] theery_: has joined #ruby
[21:42:30] sgambino: has joined #ruby
[21:43:01] gustavohmsilva: has joined #ruby
[21:45:06] Pumukel: has joined #ruby
[21:45:19] patchedmonkey: has joined #ruby
[21:46:31] devbug: has joined #ruby
[21:46:36] bronson: has joined #ruby
[21:46:39] idefine: has joined #ruby
[21:47:04] Rodya_: has joined #ruby
[21:47:22] rickmasta: has joined #ruby
[21:47:42] skade: has joined #ruby
[21:47:56] Infra-Red: has joined #ruby
[21:47:57] dlitvak: has joined #ruby
[21:49:09] devbug: has joined #ruby
[21:49:17] darkf: has joined #ruby
[21:49:30] stevemackinnon: has joined #ruby
[21:49:41] zackzorman: has joined #ruby
[21:51:46] duckpuppy: has joined #ruby
[21:51:53] marxarelli: has joined #ruby
[21:53:38] trinaldi: has joined #ruby
[21:53:44] pawnbox: has joined #ruby
[21:53:56] rbennacer: has joined #ruby
[21:54:08] nfk: has joined #ruby
[21:54:41] tubulife-: has joined #ruby
[21:55:05] drbrain: daxroc: I check uri.scheme.downcase
[21:55:52] idefine: has joined #ruby
[21:56:23] sideshowcoder: has joined #ruby
[21:56:47] charlemagne: has joined #ruby
[21:57:36] htmldrum: has joined #ruby
[21:58:25] ebertx: has joined #ruby
[21:58:34] karapetyan: has joined #ruby
[22:00:24] karapetyan: has joined #ruby
[22:00:43] swills: has joined #ruby
[22:00:53] wwwbukolaycom: has joined #ruby
[22:01:16] william3: has joined #ruby
[22:01:34] haylon: Is it possible to do a #{} substitution with single quotes?
[22:02:31] haylon: GAR!! because this gem freaks out when I use double quotes with my password and the characters in it.
[22:03:22] bnagy: sounds like an escaping problem
[22:03:52] bnagy: >> "\n".bytesize # for example
[22:03:53] ruby[bot]: bnagy: # => 1 (https://eval.in/521331)
[22:04:55] drbrain: >> %Q(some string #{with_interpolation} and "double" quotes)
[22:04:56] ruby[bot]: drbrain: # => undefined local variable or method `with_interpolation' for main:Object (NameError) ...check link for more (https://eval.in/521332)
[22:04:59] haylon: bnagy, I'm sure there's an issue with the RubyGem itself as well.
[22:05:03] drbrain: haylon: ↑
[22:05:19] haylon: drbrain, I like that, I'll look into that.
[22:05:21] drbrain: … use %Q(string goes "here")
[22:05:21] haylon: thank you
[22:05:50] bnagy: you'll still have to escape backslashes though
[22:06:21] haylon: That's fine, I think I can work with that
[22:06:31] smeagol: has joined #ruby
[22:06:55] yardenbar: has joined #ruby
[22:06:56] swills: has joined #ruby
[22:07:09] haylon: lol, I did that yesterday
[22:07:14] haylon: using a command line client eh?
[22:07:27] idefine: has joined #ruby
[22:07:37] mary5030: has joined #ruby
[22:08:11] rbennacer: has joined #ruby
[22:10:45] nemesit|znc: has joined #ruby
[22:11:09] idefine: has joined #ruby
[22:12:40] Cohedrin: has joined #ruby
[22:12:56] roshanavand: has joined #ruby
[22:13:39] karapetyan: has joined #ruby
[22:14:12] haylon: has left #ruby: ("WeeChat 1.4")
[22:16:24] einarj: has joined #ruby
[22:17:18] mondok: has joined #ruby
[22:17:52] myntcake: has joined #ruby
[22:19:28] Xeago: has joined #ruby
[22:19:55] strongcode: what is the ruby on rails freenode channel?
[22:20:49] podman: has joined #ruby
[22:21:42] idefine: has joined #ruby
[22:23:01] PedramT: has joined #ruby
[22:23:55] pawnbox: has joined #ruby
[22:23:56] idefine: has joined #ruby
[22:24:48] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[22:25:13] strongcode: grat, thank you
[22:26:16] elifoster: has joined #ruby
[22:29:59] CloCkWeRX: has joined #ruby
[22:31:30] sgambino: has joined #ruby
[22:31:55] smeagol: has joined #ruby
[22:32:04] rcvalle: has joined #ruby
[22:32:19] solocshaw: has joined #ruby
[22:32:20] volty: has joined #ruby
[22:33:09] yfeldblum: has joined #ruby
[22:35:31] dfockler: has joined #ruby
[22:35:35] ferr: has joined #ruby
[22:35:59] chipotle: has joined #ruby
[22:37:59] einarj: has joined #ruby
[22:38:14] pibby: has joined #ruby
[22:40:29] postmodern: has joined #ruby
[22:41:54] postmodern: what is the defacto naming convention for API clients? Foo::API? Foo::Client? Foo::API::Client?
[22:44:42] zenlot1: has joined #ruby
[22:44:51] einarj_: has joined #ruby
[22:46:34] siaW: has joined #ruby
[22:48:41] norc_: has joined #ruby
[22:49:45] Radar: postmodern: Foo::API
[22:51:07] Coldblackice: has joined #ruby
[22:51:48] postmodern: Radar, and should i name the gem foo-api, or squat "foo"?
[22:52:15] Rodya_: has joined #ruby
[22:52:25] Radar: postmodern: hm, tough. I have an argument for each.
[22:52:36] Radar: is it for a third party?
[22:53:01] goodcodeguy: has joined #ruby
[22:53:19] x77686d: has joined #ruby
[22:53:24] postmodern: Radar, yep 3rd party service, no ruby client currently exists
[22:54:15] pawnbox: has joined #ruby
[22:55:03] pizzaops: So when I require this code from somwhere — https://gist.github.com/pizzaops/f1c5eb2728e5124c2716 — e.g. require 'wilhelm/project/list', prior to trying to create an instance of the class inside, the error "Project is not a module" is returned. And that's true. There's a Wilhelm::Project class. But I still want to refer to this class here as
[22:55:03] pizzaops: Wilhelm::Project::List for organization/namespacing purposes. Is there some way to do that?
[22:55:48] Radar: postmodern: I think squatting the name is fine.
[22:57:09] postmodern: pizzaops, change `module Project` to `class Project`?
[22:57:18] pizzaops: postmodern: for some reason I just didn't think I could do that.
[22:57:24] pizzaops: snce i already haev a class project
[22:59:19] rakm: has joined #ruby
[23:01:17] einarj: has joined #ruby
[23:03:43] william3: has joined #ruby
[23:09:30] PedramT_: has joined #ruby
[23:09:53] kirillzh: has joined #ruby
[23:10:18] vdamewood: has joined #ruby
[23:11:13] duckpuppy: has joined #ruby
[23:11:53] PedramT: has joined #ruby
[23:13:03] loc22: has joined #ruby
[23:15:13] blur3d: has joined #ruby
[23:16:38] baweaver: has joined #ruby
[23:17:04] Rodya_: has joined #ruby
[23:17:59] DanKnox_: has joined #ruby
[23:17:59] DanKnox: has joined #ruby
[23:18:22] jamw: has joined #ruby
[23:23:54] robbyoconnor: has joined #ruby
[23:24:03] rdark: has joined #ruby
[23:24:03] rdark: has joined #ruby
[23:24:05] pawnbox: has joined #ruby
[23:26:57] Ropeney: has joined #ruby
[23:28:12] floatingpoint: has joined #ruby
[23:28:16] PedramT_: has joined #ruby
[23:29:04] Radar: [-__-]: Can we help you with something?
[23:29:07] allcentury: has joined #ruby
[23:29:23] [-__-]: that was a nick that i wanted to group
[23:31:26] p0p0pr37: has joined #ruby
[23:32:11] pizzaops: postmodern: that did work btw. Thanks! I don't know why that wasn't obvious. Appreciate the help!
[23:34:43] intrigueD: has joined #ruby
[23:36:56] fmcgeough: has joined #ruby
[23:39:56] toretore: has joined #ruby
[23:40:07] goodcodeguy: has joined #ruby
[23:43:57] Deck`: has joined #ruby
[23:46:26] idefine: has joined #ruby
[23:46:27] Tharbakim: has joined #ruby
[23:48:42] aegis3121: has joined #ruby
[23:49:58] aegis3121: has joined #ruby
[23:50:37] blackmesa: has joined #ruby
[23:51:23] avenj: has joined #ruby
[23:51:44] AndyBotwin: has joined #ruby
[23:54:51] nej: has joined #ruby
[23:58:10] baweaver: has joined #ruby