« Back to channel list

#ruby - 21 May 2016

« Back 1 day Forward 1 day »
[00:01:44] n_blownapart: has joined #ruby
[00:07:42] youch: has joined #ruby
[00:09:13] sfmk: has joined #ruby
[00:12:13] chrisseaton: If I'm using semantic versioning for a gem, then writing "~> 0.1" in an application using that gem is wrong isn't it? Because it would allow 0.2 and I can't guarantee the interface for that. Or does RubyGems already know about that?
[00:12:52] rickmasta: has joined #ruby
[00:15:13] jhass: minor is said to be backwards compatible but 0. says anything goes anywhere, not sure which you're referring to
[00:15:34] jhass: ~> 1.0 is good, ~> 0.1 is depends on the author
[00:16:00] chrisseaton: Right so if I say ~> 0.1, does RubyGems knows that since anything goes, it can't use 0.2 for that dependency?
[00:17:47] jhass: would be a bit counterproductive anyway, given there are authors that make the normal promises for 0. versions already
[00:18:27] pawnbox: has joined #ruby
[00:19:49] rbennacer: has joined #ruby
[00:20:24] sdothum: has joined #ruby
[00:20:56] matp_: has joined #ruby
[00:24:53] quazimodo: has joined #ruby
[00:25:05] rbennacer: has joined #ruby
[00:28:22] skolman: has joined #ruby
[00:30:32] skolman_: has joined #ruby
[00:31:55] axl_: has joined #ruby
[00:36:52] benlieb: has joined #ruby
[00:38:35] ramfjord: has joined #ruby
[00:50:10] Eiam_: has joined #ruby
[00:53:27] ruurd: has joined #ruby
[00:55:14] nankyokusei: has joined #ruby
[00:58:46] youch: has joined #ruby
[01:00:45] beauby: has joined #ruby
[01:00:52] curses: has joined #ruby
[01:02:34] mistermocha: has joined #ruby
[01:02:44] Mr0rris0: has joined #ruby
[01:03:00] ledestin: has joined #ruby
[01:04:11] jaguarmagenta: has joined #ruby
[01:06:04] der-landgraf: has joined #ruby
[01:08:31] beauby: has joined #ruby
[01:08:35] Kus: has joined #ruby
[01:09:17] elifoster: has joined #ruby
[01:13:24] nettoweb: has joined #ruby
[01:14:35] CROOKED^HILLARY^: has joined #ruby
[01:14:56] jenrzzz: has joined #ruby
[01:17:24] sdwrage: has joined #ruby
[01:22:05] shevy: https://github.com/andlabs/libui
[01:22:07] shevy: I like this guy
[01:22:16] shevy: "Documentation Needs to be written."
[01:25:01] tungd: has joined #ruby
[01:27:26] Elvin: has joined #ruby
[01:33:05] jancel: has joined #ruby
[01:35:41] Ropeney: shevy, but how nice is that library looking
[01:37:51] stannard: has joined #ruby
[01:39:04] ur5us: has joined #ruby
[01:40:51] curses: has joined #ruby
[01:41:32] beauby: has joined #ruby
[01:41:50] arescorpio: has joined #ruby
[01:46:20] centrx: has joined #ruby
[01:47:04] postmodern: has joined #ruby
[01:47:26] Dimik: has joined #ruby
[01:48:18] n1xnz: has joined #ruby
[01:51:59] tmtwd: has joined #ruby
[01:58:06] krobzaur: has joined #ruby
[01:58:15] swills: has joined #ruby
[01:59:16] curses: has joined #ruby
[02:03:07] mozzarella: has joined #ruby
[02:07:02] aghalarp: has joined #ruby
[02:08:18] nadir: has joined #ruby
[02:08:51] pawnbox: has joined #ruby
[02:09:33] m_antis: has joined #ruby
[02:10:30] CROOKED^HILLARY^: has joined #ruby
[02:11:22] sneakerhax: has joined #ruby
[02:11:30] sdothum: has joined #ruby
[02:11:56] blackmesa: has joined #ruby
[02:12:23] moeabdol: has joined #ruby
[02:13:33] gtsai: has joined #ruby
[02:15:12] eljimador: has joined #ruby
[02:15:19] tomatotux: has joined #ruby
[02:15:30] tomatotux: Anybody in here?
[02:15:35] mistermocha: has joined #ruby
[02:15:43] centrx: has joined #ruby
[02:17:07] shevy: tomatotux you!
[02:17:28] tomatotux: Lol, I was beginning to think I was all alone in the world
[02:20:24] insanedreamer: has joined #ruby
[02:29:18] curses: has joined #ruby
[02:32:44] elwyn: has joined #ruby
[02:33:38] coffeecupp: has joined #ruby
[02:36:40] _Stimp1: has joined #ruby
[02:38:14] _Stimp1: has joined #ruby
[02:39:36] _Stimpy: has joined #ruby
[02:40:00] rbennacer: has joined #ruby
[02:40:06] pawnbox: has joined #ruby
[02:40:30] coffeecupp: has joined #ruby
[02:40:42] centrx: has joined #ruby
[02:40:48] sfmk: has joined #ruby
[02:40:53] _Stimpy: has joined #ruby
[02:42:25] _Stimpy: has joined #ruby
[02:43:10] blackmesa: has joined #ruby
[02:43:58] _Stimpy: has joined #ruby
[02:45:03] _Stimpy: has joined #ruby
[02:47:33] curses: has joined #ruby
[02:48:13] sumobob: has joined #ruby
[02:49:44] opus_: has joined #ruby
[02:56:05] nankyokusei: has joined #ruby
[02:56:27] colegatron: has joined #ruby
[03:00:58] pawnbox: has joined #ruby
[03:03:21] aharlan: has joined #ruby
[03:04:56] jaguarmagenta: has joined #ruby
[03:07:53] blink`: has joined #ruby
[03:09:40] mistermocha: has joined #ruby
[03:12:01] gix: has joined #ruby
[03:12:09] rbennacer: has joined #ruby
[03:13:05] moeabdol: has joined #ruby
[03:19:06] braincrash: has joined #ruby
[03:20:56] k3rn31: has joined #ruby
[03:23:13] w0rms: has joined #ruby
[03:23:22] jancel: has joined #ruby
[03:24:25] [ohjn]: has joined #ruby
[03:26:40] chipotle: has joined #ruby
[03:28:01] stannard: has joined #ruby
[03:35:03] Devalo: has joined #ruby
[03:36:42] pawnbox: has joined #ruby
[03:36:57] krobzaur: has joined #ruby
[03:37:27] tildes: has joined #ruby
[03:39:52] rbennacer: has joined #ruby
[03:41:42] mesamoo: has joined #ruby
[03:45:31] bronson: has joined #ruby
[03:45:32] blackmesa: has joined #ruby
[03:45:37] wldcordeiro: has joined #ruby
[03:47:43] imperator: has joined #ruby
[03:49:01] rbennacer: has joined #ruby
[03:51:19] k3rn31: has joined #ruby
[03:53:46] nando293921: has joined #ruby
[03:54:05] jgpawletko: has joined #ruby
[03:54:54] jwren: has joined #ruby
[03:55:07] lxsameer: has joined #ruby
[03:56:48] tatsuo_: has joined #ruby
[03:58:01] hk238: has joined #ruby
[03:58:11] rbennacer: has joined #ruby
[04:02:14] CROOKED^HILLARY^: has joined #ruby
[04:07:20] rickmasta: has joined #ruby
[04:08:01] ramfjord: has joined #ruby
[04:11:58] rbennacer: has joined #ruby
[04:13:39] mic_e: has joined #ruby
[04:13:44] benlieb: has joined #ruby
[04:20:30] bluOxigen: has joined #ruby
[04:22:31] tax: has joined #ruby
[04:22:48] zast: has joined #ruby
[04:24:37] djbkd: has joined #ruby
[04:25:43] rbennacer: has joined #ruby
[04:25:51] ur5us: has joined #ruby
[04:26:58] Coldblackice: has joined #ruby
[04:27:13] cpup: has joined #ruby
[04:28:22] pawnbox: has joined #ruby
[04:33:37] aries_liuxueyang: has joined #ruby
[04:34:55] rbennacer: has joined #ruby
[04:36:03] roamingdog: has joined #ruby
[04:36:13] cpup: has joined #ruby
[04:37:27] roamingdog: has joined #ruby
[04:42:58] krobzaur: has joined #ruby
[04:46:33] blackmesa: has joined #ruby
[04:47:19] kareeoleez: has joined #ruby
[04:48:39] rbennacer: has joined #ruby
[04:50:35] roamingdog: has joined #ruby
[04:51:57] kareeoleez: has joined #ruby
[04:53:15] blink`: has joined #ruby
[04:53:27] ReK2: has joined #ruby
[04:53:27] ReK2: has joined #ruby
[04:54:49] kareeoleez: has joined #ruby
[04:57:00] nankyokusei: has joined #ruby
[04:57:48] Peteykun: has joined #ruby
[04:57:50] rbennacer: has joined #ruby
[04:58:51] moeabdol: has joined #ruby
[05:00:05] sesquipedalian: has joined #ruby
[05:05:46] jaguarmagenta: has joined #ruby
[05:05:56] rickmasta: has joined #ruby
[05:06:23] pawnbox: has joined #ruby
[05:07:03] rbennacer: has joined #ruby
[05:08:38] tatsuo_: has joined #ruby
[05:11:14] tmtwd: has joined #ruby
[05:14:51] hightower2: has joined #ruby
[05:20:47] rbennacer: has joined #ruby
[05:21:39] mistermocha: has joined #ruby
[05:22:40] djbkd: has joined #ruby
[05:24:00] wldcordeiro: has joined #ruby
[05:25:25] KantonKid: has joined #ruby
[05:27:58] CJKinni: has joined #ruby
[05:29:11] n1x-nz: has joined #ruby
[05:29:30] stannard: has joined #ruby
[05:29:57] rbennacer: has joined #ruby
[05:32:59] sauvin: has joined #ruby
[05:35:36] cpup: has joined #ruby
[05:35:37] roamingdog: has joined #ruby
[05:35:41] benlieb: has joined #ruby
[05:36:11] shibly: has joined #ruby
[05:36:25] shibly: has left #ruby: ()
[05:36:28] Devalo: has joined #ruby
[05:37:43] PaulCape_: has joined #ruby
[05:38:07] mikeric: has joined #ruby
[05:39:10] rbennacer: has joined #ruby
[05:40:19] janebootydoe: has joined #ruby
[05:41:04] Mia: has joined #ruby
[05:42:04] pawnbox: has joined #ruby
[05:44:17] krobzaur: has joined #ruby
[05:47:20] blackmesa: has joined #ruby
[05:47:26] opus_: has joined #ruby
[05:47:52] aswen: has joined #ruby
[05:48:06] bronson: has joined #ruby
[05:48:36] rbennacer: has joined #ruby
[05:49:51] opus_: has joined #ruby
[05:52:42] craigp: has joined #ruby
[05:55:06] rrichardsr3: has joined #ruby
[05:59:22] aries_liuxueyang: has joined #ruby
[05:59:41] tungd: has joined #ruby
[06:04:03] PaulCapestany: has joined #ruby
[06:09:57] Ishido: has joined #ruby
[06:11:53] Devalo: has joined #ruby
[06:16:55] tAn: has joined #ruby
[06:18:07] pawnbox: has joined #ruby
[06:18:39] rbennacer: has joined #ruby
[06:22:40] tax: has joined #ruby
[06:23:55] rbennacer: has joined #ruby
[06:24:01] Alazoral: has joined #ruby
[06:30:09] PaulCape_: has joined #ruby
[06:33:16] tvw: has joined #ruby
[06:34:12] craigp: has joined #ruby
[06:34:38] A5101: has joined #ruby
[06:35:44] ruskie: has joined #ruby
[06:36:06] nando293921: has joined #ruby
[06:37:02] rbennacer: has joined #ruby
[06:38:23] terlar: has joined #ruby
[06:39:40] tmtwd: has joined #ruby
[06:43:16] pawnbox: has joined #ruby
[06:45:04] krobzaur: has joined #ruby
[06:46:14] rbennacer: has joined #ruby
[06:46:56] moeabdol: has joined #ruby
[06:48:21] blackmesa: has joined #ruby
[06:52:20] zyzioziom: has joined #ruby
[06:53:27] moeabdol: has joined #ruby
[06:54:28] mistermocha: has joined #ruby
[06:55:24] rbennacer: has joined #ruby
[06:56:11] zyzioziom1: has joined #ruby
[06:56:41] PaulCapestany: has joined #ruby
[06:57:48] nankyokusei: has joined #ruby
[06:57:50] LaT0rtue: has joined #ruby
[07:03:15] Alazoral: has joined #ruby
[07:03:17] ur5us: has joined #ruby
[07:03:23] kmckelvin: has joined #ruby
[07:04:58] rbennacer: has joined #ruby
[07:06:29] jaguarmagenta: has joined #ruby
[07:12:34] skolman_: has joined #ruby
[07:13:16] framling: has joined #ruby
[07:14:46] aries_liuxueyang: has joined #ruby
[07:18:41] rbennacer: has joined #ruby
[07:19:03] nobitanobi: has joined #ruby
[07:20:04] Alazoral: has joined #ruby
[07:22:34] rippa: has joined #ruby
[07:22:57] PaulCape_: has joined #ruby
[07:26:12] firstdayonthejob: has joined #ruby
[07:26:36] yfeldblum: has joined #ruby
[07:29:11] webus: has joined #ruby
[07:29:14] glytchbinary: has joined #ruby
[07:31:28] roamingdog: has joined #ruby
[07:31:33] curses: has joined #ruby
[07:32:20] glytchbinary: /SET autolog ON
[07:32:33] rbennacer: has joined #ruby
[07:32:47] glytchbinary: has left #ruby: ()
[07:38:20] tax: has joined #ruby
[07:42:35] mooe: has joined #ruby
[07:44:17] craigp: has joined #ruby
[07:45:55] krobzaur: has joined #ruby
[07:46:35] rbennacer: has joined #ruby
[07:47:20] rbennacer: has joined #ruby
[07:49:17] PaulCapestany: has joined #ruby
[07:49:34] blackmesa: has joined #ruby
[07:49:35] bronson: has joined #ruby
[07:52:55] mikeric: has joined #ruby
[07:54:46] eL_bAmba: has joined #ruby
[07:55:52] aries_liuxueyang: has joined #ruby
[07:56:10] bmac: has joined #ruby
[07:56:36] bmac: has left #ruby: ()
[08:00:50] creat: has joined #ruby
[08:02:50] skade: has joined #ruby
[08:08:46] agent_white: has joined #ruby
[08:08:54] agent_white: has joined #ruby
[08:12:42] opus_: has joined #ruby
[08:13:08] CloCkWeRX: has joined #ruby
[08:13:43] sepp2k: has joined #ruby
[08:15:31] Devalo: has joined #ruby
[08:16:44] PaulCape_: has joined #ruby
[08:18:55] merqlove: has joined #ruby
[08:19:46] mikecmpbll: has joined #ruby
[08:22:44] tomphp: has joined #ruby
[08:27:45] roamingdog: has joined #ruby
[08:32:46] soud: what book/resource do you guys recommend to learn ruby for someone with prior programming knowledge?
[08:33:46] zyzioziom: has joined #ruby
[08:34:28] Zarthus: soud: I learnt it by basically just doing it, it's a bit weird to wrap your head around initially but the docs are, well, *good enough* to get you started. There's also a very basic learn ruby thing on the site
[08:34:58] Zarthus: it'll get you familiar with some of the immediate differences (puts over println, blocks are a thing, symbols)
[08:35:13] tungd: has joined #ruby
[08:36:24] Zarthus: now just to add some irony, I have a question about how I'm having trouble navigating the docs ;) I'm currently navigating the YAML/Store page of the docs, and #initialize supports yaml_opts - I however see no indication of what options are valid. Is there a magic trick I'm missing here, or is it "go dive in the source code"? http://ruby-doc.org/stdlib-2.2.3/libdoc/yaml/rdoc/YAML/Store.html
[08:37:12] glytchbinary: has joined #ruby
[08:37:19] soud: Zarthus: hehe alright, thanks
[08:37:45] Zarthus: soud: if you don't learn by doing, I think !books may be a command, but there's only one way to find out and it might make me look like a fool
[08:37:56] Zarthus: Guess that's a not
[08:38:28] soud: docs and google will do then :)
[08:38:54] Zarthus: definitely stick round, i'm sure other people have good feedback on the matter
[08:39:00] duderonomy: has joined #ruby
[08:39:58] soud: sure, I always like to stick around even to see other people's questions answered
[08:40:46] Zarthus: oh yeah, this channel has done me plenty good too
[08:41:15] glytchbinary: has left #ruby: ()
[08:41:28] glytchbinary: has joined #ruby
[08:41:55] Zarthus: so to answer my own question: YAML aint YAML]
[08:42:01] Zarthus: YAML is mapped to Psych
[08:42:05] Zarthus: I was looking at the wrong docs.
[08:42:34] PaulCapestany: has joined #ruby
[08:42:58] Zarthus: well, partially an answer anyways
[08:43:20] terlar: has joined #ruby
[08:44:01] glytchbinary: has joined #ruby
[08:44:01] duderonomy: has joined #ruby
[08:44:09] craigp: has joined #ruby
[08:45:13] blackmesa: has joined #ruby
[08:46:43] krobzaur: has joined #ruby
[08:50:56] yfeldblum: has joined #ruby
[08:51:40] Zarthus: https://github.com/tenderlove/psych/blob/master/lib/psych/handler.rb#L16 Guess this is the best answer I'm going to get
[08:53:51] aswen: has joined #ruby
[08:57:46] moeabdol: has joined #ruby
[08:58:42] nankyokusei: has joined #ruby
[09:03:58] biberu: has joined #ruby
[09:06:07] spider-mario: has joined #ruby
[09:07:18] jaguarmagenta: has joined #ruby
[09:08:46] PaulCape_: has joined #ruby
[09:08:50] ramfjord: has joined #ruby
[09:12:18] mistermocha: has joined #ruby
[09:13:51] stardiviner: has joined #ruby
[09:16:01] jenrzzz: has joined #ruby
[09:17:04] Devalo: has joined #ruby
[09:17:46] skade: has joined #ruby
[09:19:12] wigust: has joined #ruby
[09:19:55] tomphp: has joined #ruby
[09:25:36] Alazoral: has joined #ruby
[09:29:04] nobitanobi: has joined #ruby
[09:30:55] aswen: has joined #ruby
[09:32:36] curses: has joined #ruby
[09:34:28] Vingador: has joined #ruby
[09:34:30] PaulCapestany: has joined #ruby
[09:34:53] zyzioziom: has joined #ruby
[09:36:13] zyzioziom: has joined #ruby
[09:39:39] crdpink: has joined #ruby
[09:42:54] qasaur: has joined #ruby
[09:47:06] curses: has joined #ruby
[09:47:34] krobzaur: has joined #ruby
[09:49:01] troulouliou_div2: has joined #ruby
[09:50:59] Trieste: has joined #ruby
[09:52:17] bronson: has joined #ruby
[09:54:10] sdwrage: has joined #ruby
[09:54:54] Meow-J: has joined #ruby
[09:57:12] boboc: has joined #ruby
[10:00:54] zyzioziom: has joined #ruby
[10:01:02] PaulCape_: has joined #ruby
[10:11:07] Cohedrin: has joined #ruby
[10:12:49] Cohedrin_: has joined #ruby
[10:13:17] aries_liuxueyang: has joined #ruby
[10:17:14] zyzioziom: has joined #ruby
[10:17:26] kareeoleez: has joined #ruby
[10:22:50] sdothum: has joined #ruby
[10:25:18] blaxter: has joined #ruby
[10:27:11] hk238: has joined #ruby
[10:27:24] yfeldblum: has joined #ruby
[10:27:46] PaulCapestany: has joined #ruby
[10:28:28] veneranda: has joined #ruby
[10:28:34] veneranda: has left #ruby: ()
[10:29:37] zyzioziom: has joined #ruby
[10:30:50] insanedreamer: has joined #ruby
[10:32:53] last_staff: has joined #ruby
[10:33:12] xcesariox: has joined #ruby
[10:35:35] kareeoleez: has joined #ruby
[10:35:50] symm-: has joined #ruby
[10:36:05] edwinvdgraaf: has joined #ruby
[10:36:50] zeroDi: has joined #ruby
[10:42:09] zyzioziom1: has joined #ruby
[10:44:10] insanedreamer: has left #ruby: ()
[10:44:15] insanedreamer: has joined #ruby
[10:44:28] ocbtec: has joined #ruby
[10:44:48] soud: good point
[10:45:19] kareeoleez: has joined #ruby
[10:45:36] krobzaur: has joined #ruby
[10:48:14] csaunders: has joined #ruby
[10:49:58] Cohedrin: has joined #ruby
[10:50:41] Trieste: has joined #ruby
[10:52:15] duoi: has joined #ruby
[10:53:42] d0lph1n98: has joined #ruby
[10:54:19] PaulCape_: has joined #ruby
[10:54:43] skade: has joined #ruby
[10:56:40] davedev24: has joined #ruby
[11:01:00] jgt: has joined #ruby
[11:01:28] skade: has joined #ruby
[11:01:41] shinnya: has joined #ruby
[11:03:37] kareeoleez: has joined #ruby
[11:03:52] UKn0Me: has joined #ruby
[11:08:00] jaguarmagenta: has joined #ruby
[11:08:30] wnd: has joined #ruby
[11:12:18] kareeoleez: has joined #ruby
[11:13:32] banister: has joined #ruby
[11:13:52] elementaru: has joined #ruby
[11:14:28] ixti: has joined #ruby
[11:18:45] k3rn31: has joined #ruby
[11:19:36] Devalo: has joined #ruby
[11:21:25] PaulCapestany: has joined #ruby
[11:24:40] terlar: has joined #ruby
[11:30:30] kareeoleez: has joined #ruby
[11:31:28] Gasher: has joined #ruby
[11:32:40] k3rn31: has joined #ruby
[11:34:55] Vingador: has joined #ruby
[11:42:12] elementaru: has joined #ruby
[11:45:18] CalimeroTeknik: has joined #ruby
[11:46:24] krobzaur: has joined #ruby
[11:46:56] PaulCape_: has joined #ruby
[11:47:02] ur5us: has joined #ruby
[11:48:28] CROOKED^HILLARY^: has joined #ruby
[11:48:36] kareeoleez: has joined #ruby
[11:52:02] eL_bAmba: has joined #ruby
[11:54:00] awer: has joined #ruby
[11:54:38] awer: Hi. im trying to install ruby 2.3.1 on debian jessie by using rbenv method
[11:55:16] awer: ruby 2.3.1 install but when doing ruby -v it says "ruby 2.1.5p273"
[11:55:54] awer: i executed 'rbenv install 2.3.1' and 'rbenv global 2.3.1'
[11:56:19] awer: i ave also removed ruby with apt-get
[11:57:26] moss: awer: what's the output of : ruby-switch --list
[11:57:41] moss: or do you want to change it just for your user
[11:57:52] awer: globally for all users
[11:58:01] moss: give me output of ruby-switch --list
[11:58:15] awer: i dont have ruby-switch
[11:58:37] moss: sudo apt-get install ruby-switch
[11:58:51] awer: E: Package 'ruby-switch' has no installation candidate
[11:59:07] moss: you have rbenv ?
[11:59:34] moss: if 2.3.1 is still installed do: rbenv global 2.3.1-debian
[11:59:40] moss: err wait
[11:59:42] moss: rbenv versions
[11:59:44] awer: i did a git clone https://gorails.com/setup/ubuntu/14.04
[11:59:45] moss: give me the output of that
[11:59:55] moss: that is clearly for ubuntu
[12:00:11] moss: so idk why the hell you did that
[12:00:13] awer: is it that dfferent to debian ?
[12:00:17] moss: yeah... it is
[12:00:23] boboc: has joined #ruby
[12:00:39] Hanmac: has joined #ruby
[12:01:00] awer: i have to run ~/.rbenv/bin/rbenv versions
[12:01:12] awer: 'system'
[12:01:18] awer: * 2.3.1 (set by /root/.rbenv/version)
[12:01:51] moss: i can't help you now, you've installed 2.3.1 using a guide for Trusty Tahr
[12:02:06] moss: undo whatever you did and follow a guide for debian jessie
[12:02:17] awer: so just delete it out right and find somethign specific for debian ?
[12:02:37] awer: which way is easiest rben,rvm or from source?
[12:03:03] awer: ok ill look for another version tutorial then.
[12:03:18] awer: seems that apitutde repos only have upto 1.9.3
[12:03:25] awer: for debian jessie that is
[12:03:31] codecop: has joined #ruby
[12:05:13] moss: awer: here is something https://www.linode.com/docs/websites/ror/ruby-on-rails-apache-debian-8
[12:05:41] davedev24: has joined #ruby
[12:05:41] awer: i dont think i actually need rails just ruby
[12:05:53] shevy: awer source! but only if you have a sane base system "wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.xz"
[12:05:55] awer: not for web design
[12:05:58] aries_liuxueyang: has joined #ruby
[12:06:04] c355E3B: has joined #ruby
[12:06:05] Jackneill: has joined #ruby
[12:06:08] moss: well you were following a rails guide so..
[12:06:30] moss: hence 'gorails.org'
[12:06:34] moss: err .com
[12:06:47] kareeoleez: has joined #ruby
[12:06:49] awer: theres a word press scanning tool im trying to run that complains because the version of ruby im using is too old
[12:07:04] moss: wordpress..
[12:07:08] shevy: it may be easiest to just use one ruby version awer
[12:07:09] awer: its for a pentest...
[12:07:18] awer: yes i agree
[12:07:24] awer: one version is all i want
[12:07:28] moss: detecting wordpress at all should throw flags
[12:07:38] moss: no one should run wordpress
[12:07:40] awer: that is greater then 2.1.9
[12:07:55] awer: im not running wordpress it sucks
[12:08:28] awer: i need to test some vulnerable flags with an application and therfore i have to resolve this ruby issue
[12:08:42] awer: my error is "Ruby >= 2.1.9 required to run wpscan (You have 2.1.5)"
[12:08:57] freerobby: has joined #ruby
[12:09:18] awer: can i simeplyy download from here ? - https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
[12:09:41] awer: then make this the default on the system ?
[12:10:07] moss: sure, why not.
[12:10:33] awer: would it be compatable with debian form this link ?
[12:10:39] moss: yeah thats source
[12:10:42] moss: you will have to compile it
[12:10:56] moss: like some sort of heathen
[12:11:31] shevy: awer you can compile into a specific prefix too, via --prefix=
[12:11:34] PaulCapestany: has joined #ruby
[12:11:48] shevy: problem may be that you have to get some required dev packages first on debian
[12:12:11] awer: are there no definitive guides toinstalling ruby 2.3.1 on debian ?
[12:13:12] shevy: dunno... isn't the usual debian method to do "apt-get install NAME"?
[12:13:38] shevy: hanmac here uses the latest ruby on ubuntu usually, I myself am on slackware
[12:13:47] awer: shevy: yes but the latest version is 1.9.3
[12:14:06] awer: no backports version either
[12:14:40] jhass: awer: https://www.brightbox.com/docs/ruby/ubuntu/
[12:14:55] awer: jhass: im using debian not uduntu
[12:15:56] nofxx: has joined #ruby
[12:15:58] awer: after compiling how do you set the compliled ruby version to be the default globally?
[12:16:24] zyzioziom: has joined #ruby
[12:16:42] jhass: rbenv global is pretty much the way afaik
[12:16:51] jhass: do a dozen rbenv rehash for good measure
[12:17:29] awer: jhass: ok thanks ill try that
[12:20:10] blackmesa: has joined #ruby
[12:24:24] awer: jhass: thanks that worked
[12:24:29] awer: moss: thanks for your help
[12:24:35] awer: shevy: thanks too
[12:24:45] moss: no worries
[12:24:46] shevy: awer just what comes first on $PATH should work fine
[12:24:58] kareeoleez: has joined #ruby
[12:25:13] shevy: does the wordpress scan work too? :D
[12:25:22] awer: imi using zsh so i might need to update my PATH
[12:25:27] moss: that scanner should detect wordpress installs and rm -rf them
[12:26:09] awer: it gets worse....
[12:26:14] awer: they have joomla too!
[12:26:25] awer: and coldfusion :-)
[12:29:44] shevy: as long as it is not drupal
[12:30:01] shevy: they are using that for university structure here - in the bioinformatics department :\
[12:30:48] moss: drupal...
[12:30:55] moss: why did they name a cms after something that sounds like an std
[12:31:17] moss: 'i got drupal from this chick on friday'
[12:32:28] zyzioziom1: has joined #ruby
[12:34:16] kareeoleez: has joined #ruby
[12:34:43] lxsameer: has joined #ruby
[12:35:37] zyzioziom: has joined #ruby
[12:37:52] PaulCape_: has joined #ruby
[12:38:22] aswen: has joined #ruby
[12:38:59] adaedra: <jhass> do a dozen rbenv rehash for good measure — :D
[12:39:43] nankyokusei: has joined #ruby
[12:39:57] xcesariox: has joined #ruby
[12:39:58] zapata: has joined #ruby
[12:40:09] jhass: if I learned anything from religion than that mindless repetition is supposed to be good
[12:40:59] CROOKED^HILLARY^: has joined #ruby
[12:47:11] krobzaur: has joined #ruby
[12:50:33] banister: has joined #ruby
[12:52:34] stannard: has joined #ruby
[12:55:13] allcentury: has joined #ruby
[12:55:41] bronson: has joined #ruby
[13:01:50] flughafen_: has joined #ruby
[13:04:35] PaulCapestany: has joined #ruby
[13:09:01] jaguarmagenta: has joined #ruby
[13:09:53] dmr8: has joined #ruby
[13:10:47] bluOxigen: has joined #ruby
[13:12:04] m_antis: has joined #ruby
[13:13:00] GarethAdams: has joined #ruby
[13:16:50] roamingdog: has joined #ruby
[13:17:30] banister: has joined #ruby
[13:19:40] ruby783: has joined #ruby
[13:19:43] mjuszczak: has joined #ruby
[13:20:28] chouhoulis: has joined #ruby
[13:20:37] craigp: has joined #ruby
[13:21:02] blackmesa: has joined #ruby
[13:21:04] Devalo: has joined #ruby
[13:21:51] ruby783: I have a quick noob question. In "Eloquent Ruby" i read that it is more advisable to write for example >var = var.upcase< as opposed to >var.upcase!<. Can someone explain in laymens terms why that is? Cheers :)
[13:24:01] jhass: ruby783: you do know the difference?
[13:25:13] ruby783: Not really :(
[13:25:51] ruby783: I mean in know the difference between upcase and upcase! in a sense that the one with the bang will alter the variable while the first doesnt
[13:25:52] jhass: ruby783: the difference is that .upcase returns a new string with the changes, while .upcase! modifies the existing string in place
[13:26:00] jhass: cool, I wanted
[13:26:05] jhass: so, say someone gave you the value of var. They still may hold a reference to it themselves, with the latter now you modified the value not only for yourself but also for them.
[13:26:07] chouhoulis: has joined #ruby
[13:26:55] chouhoul_: has joined #ruby
[13:29:03] ruby783: Hmm i think I'm getting closer to understanding it, thank you for your answer. Just to clarify, wouldn't var = var.upcase also alter the assignment of var and thus the value someone else is still holding?
[13:29:22] tknz: has joined #ruby
[13:29:38] pawnbox: has joined #ruby
[13:29:40] elementaru: you mean var=var.upcase will only hold true inside that method, whereas var.upcase! will change var's value outside method as well?
[13:29:48] swills: has joined #ruby
[13:30:22] jhass: ruby783: no, a local variable is a reference to an object, other people can only hand you the object, not the "variable" so to speak
[13:30:32] pawnbox: has joined #ruby
[13:30:49] jhass: you update what the variable points to, not the object you've been given and assigned to it initially
[13:30:57] PaulCape_: has joined #ruby
[13:31:03] crazydiamond: has joined #ruby
[13:31:07] jhass: elementaru: yes, kinda
[13:32:50] jhass: ruby783: you need to separate what a variable and an object is. A variable points to an object, it's not the object itself
[13:34:12] ruby783: Ok, i think i got it :) Thanks a lot. Awesome community
[13:34:25] |2701: has joined #ruby
[13:36:51] imperator: has joined #ruby
[13:37:12] flughafen_: has joined #ruby
[13:43:47] boboc: has joined #ruby
[13:45:41] krobzaur: has joined #ruby
[13:46:09] tomphp: has joined #ruby
[13:47:49] i: has joined #ruby
[13:50:00] platzhirsch: has joined #ruby
[13:52:39] j3r0: has joined #ruby
[13:52:59] noService: has joined #ruby
[13:53:49] nando293921: has joined #ruby
[13:53:51] krobzaur: has joined #ruby
[13:55:27] bollullera: has joined #ruby
[13:55:53] jancel: has joined #ruby
[13:55:57] imperator: does Process.uid= actually do anything on OSX?
[13:56:45] zenlot: has joined #ruby
[13:56:47] bollullera: has left #ruby: ()
[13:56:49] flughafen_: has joined #ruby
[13:57:16] PaulCapestany: has joined #ruby
[13:58:10] jancel: has joined #ruby
[14:04:18] matp: has joined #ruby
[14:05:48] idle_task: has joined #ruby
[14:12:10] griffindy: has joined #ruby
[14:14:08] troulouliou_dev: has joined #ruby
[14:14:15] dangerousdave: has joined #ruby
[14:14:45] dangerousdave: has joined #ruby
[14:15:08] kgrz: has joined #ruby
[14:17:08] hutch34_: has joined #ruby
[14:20:28] chopin: has joined #ruby
[14:22:23] Biopandemic2: has joined #ruby
[14:22:36] nettoweb: has joined #ruby
[14:22:44] k3rn31: has joined #ruby
[14:25:32] PaulCape_: has joined #ruby
[14:25:49] beauby: has joined #ruby
[14:30:27] zyzioziom: has joined #ruby
[14:32:10] zast: has joined #ruby
[14:34:02] gareth_: has joined #ruby
[14:34:23] JakFrist: has joined #ruby
[14:35:07] GarethAdams: has joined #ruby
[14:35:46] Madplatypus: has joined #ruby
[14:37:02] Vingador: has joined #ruby
[14:38:54] lukec: has joined #ruby
[14:39:41] rippa: has joined #ruby
[14:40:10] aswen: has joined #ruby
[14:41:16] Nimonas: has joined #ruby
[14:42:34] tomphp: has joined #ruby
[14:43:57] platzhirsch: has joined #ruby
[14:47:58] cdg: has joined #ruby
[14:48:46] nankyokusei: has joined #ruby
[14:49:30] nettoweb: has joined #ruby
[14:52:05] PaulCapestany: has joined #ruby
[14:53:16] tomphp: has joined #ruby
[14:55:52] jancel: has joined #ruby
[14:57:05] boboc: has joined #ruby
[14:57:40] bronson: has joined #ruby
[15:02:58] kirun: has joined #ruby
[15:04:36] stardiviner: has joined #ruby
[15:05:04] LoneHerm_: has joined #ruby
[15:07:18] pawnbox: has joined #ruby
[15:08:38] aegis3121: has joined #ruby
[15:09:42] jaguarmagenta: has joined #ruby
[15:11:03] sk_0: has joined #ruby
[15:11:37] lxsameer: has joined #ruby
[15:11:37] lxsameer: has joined #ruby
[15:15:09] troulouliou_dev: has joined #ruby
[15:15:09] wigust_: has joined #ruby
[15:16:49] jhack: has joined #ruby
[15:17:48] PaulCape_: has joined #ruby
[15:18:09] jhack_: has joined #ruby
[15:20:58] j3r0: has joined #ruby
[15:22:39] Devalo: has joined #ruby
[15:23:08] nanoz: has joined #ruby
[15:23:13] terlar: has joined #ruby
[15:24:16] Cohedrin: has joined #ruby
[15:25:59] ptx0: has joined #ruby
[15:26:02] dangerousdave: has joined #ruby
[15:26:32] ptx0: has left #ruby: ()
[15:26:36] Es0teric: has joined #ruby
[15:27:19] banister: has joined #ruby
[15:30:02] Alazoral: has joined #ruby
[15:31:05] elementaru: has joined #ruby
[15:32:51] matp: has joined #ruby
[15:33:21] ptx0: has joined #ruby
[15:33:25] matp: has joined #ruby
[15:37:22] CROOKED^HILLARY^: has joined #ruby
[15:38:08] kareeoleez: has joined #ruby
[15:39:15] nettoweb: has joined #ruby
[15:41:56] crystal77: has joined #ruby
[15:43:40] duderonomy: has joined #ruby
[15:44:08] firstdayonthejob: has joined #ruby
[15:45:36] PaulCapestany: has joined #ruby
[15:46:30] sandroqz: has joined #ruby
[15:48:01] djbkd: has joined #ruby
[15:49:51] reaVer: has joined #ruby
[15:51:09] LoneHerm_: has joined #ruby
[15:52:41] Tyrant_: has joined #ruby
[15:52:58] moeabdol: has joined #ruby
[15:56:10] gtsai: has joined #ruby
[15:56:24] m4rCsi_: has joined #ruby
[16:00:19] ruby[bot]: -bb DoubleMan!*@*$#ruby-banned *!*@2.237.171.7$#ruby-banned
[16:02:01] sandroqz: has joined #ruby
[16:02:51] tildes: has joined #ruby
[16:04:08] cjbottaro: has joined #ruby
[16:05:10] dmr8: has left #ruby: ("Leaving")
[16:08:35] pawnbox: has joined #ruby
[16:08:38] chipotle: has joined #ruby
[16:10:38] PaulCape_: has joined #ruby
[16:11:44] cjbottaro: has joined #ruby
[16:12:22] chopin: has joined #ruby
[16:12:26] roamingdog: has joined #ruby
[16:14:15] sandroqz: has joined #ruby
[16:14:36] sandroqz: has joined #ruby
[16:15:22] chopin_: has joined #ruby
[16:15:44] CROOKED^HILLARY^: has joined #ruby
[16:16:23] hutch34: has joined #ruby
[16:16:33] sandroqz: has joined #ruby
[16:16:57] davedev24: has joined #ruby
[16:18:14] LaT0rtue: has joined #ruby
[16:18:24] gtsai: has joined #ruby
[16:19:43] bluOxigen: has joined #ruby
[16:22:01] dangerousdave: has joined #ruby
[16:23:26] nickjj_: has joined #ruby
[16:23:28] rdark: has joined #ruby
[16:23:29] rdark: has joined #ruby
[16:26:32] rbennacer: has joined #ruby
[16:28:00] sepp2k1: has joined #ruby
[16:28:53] kareeoleez: has joined #ruby
[16:30:40] roamingdog: has joined #ruby
[16:35:19] tristanp: has joined #ruby
[16:36:44] roamingdog: has joined #ruby
[16:38:49] PaulCapestany: has joined #ruby
[16:45:15] ctp__: has joined #ruby
[16:45:36] hutch34: has joined #ruby
[16:47:07] kareeoleez: has joined #ruby
[16:49:41] mikeric: has joined #ruby
[16:49:42] nankyokusei: has joined #ruby
[16:50:12] m_antis: has joined #ruby
[16:50:32] JakFrist: has joined #ruby
[16:52:20] benlieb: has joined #ruby
[16:55:57] Oclair_: has joined #ruby
[16:56:04] rubyaw: has joined #ruby
[17:03:41] PaulCape_: has joined #ruby
[17:04:50] Regulati_: has joined #ruby
[17:05:00] sfmk: has joined #ruby
[17:05:32] kareeoleez: has joined #ruby
[17:07:20] zenlot6: has joined #ruby
[17:10:18] jaguarmagenta: has joined #ruby
[17:11:23] antgel: has joined #ruby
[17:14:47] sumobob: has joined #ruby
[17:16:34] jancel: has joined #ruby
[17:17:15] Mia: has joined #ruby
[17:18:11] helpa: has joined #ruby
[17:18:20] Mia: has joined #ruby
[17:18:21] Mia: has joined #ruby
[17:18:36] sean_: has joined #ruby
[17:18:40] staticfox: has joined #ruby
[17:19:34] jancel: has joined #ruby
[17:20:39] sean_: Hello! I have a question. If I am using Array#include? and I have a custom #== implemented on the objects in my array, is my custom #== method supposed to be called?
[17:20:54] firstdayonthejob: has joined #ruby
[17:24:03] Devalo: has joined #ruby
[17:26:25] jaguarmagenta: has joined #ruby
[17:31:20] c355E3B: has joined #ruby
[17:31:26] PaulCapestany: has joined #ruby
[17:36:13] arlek_: has joined #ruby
[17:38:49] ramfjord: has joined #ruby
[17:39:03] KantonKid: has joined #ruby
[17:39:25] sdwrage: has joined #ruby
[17:40:08] habitullence: Hi guys, looking for someone to critique my code https://gist.github.com/habitullence/b416782da630b829e01de28a032c046a
[17:40:18] sean_: @jhass It doesn't seem to do that. I had to reimplement #include?
[17:41:48] kareeoleez: has joined #ruby
[17:41:56] habitullence: I guess there's probably no way of writing that to make it more concise
[17:42:09] gtsai: has joined #ruby
[17:42:29] jhack: has joined #ruby
[17:42:34] skingsbu: has joined #ruby
[17:43:01] jhass: Sean_: https://carc.in/#/r/z4o seems to work fine
[17:43:05] null__: has joined #ruby
[17:44:00] sean_: jhass Interesting. I will dig deeper. Thanks
[17:45:56] zyzioziom: has joined #ruby
[17:46:16] jhass: habitullence: I don't see how, no
[17:46:42] jhass: I think it's a little non-obvious though, I'd make sure it's inside def place_upstream_in_front or so
[17:47:28] jhass: also not sure it still makes semantically sense then?
[17:47:44] habitullence: jhass: thanks. Yeah, it's a snippet from inside a method.
[17:47:50] habitullence: How do you mean?
[17:48:55] jhass: say we start with [a, b, c] a is the client, b received the request, handed it to c which is your upstream, then you'll get [c, a, b], reading backwards a didn't pass the request to c
[17:49:50] nickjj_: has joined #ruby
[17:49:57] jhass: or is this just a list of alternatives?
[17:50:30] davedev24: has joined #ruby
[17:50:34] habitullence: Yes, so there's an lb you don't see here and this is a list of upstream app servers
[17:51:15] jhass: okay then
[17:51:31] habitullence: I guess what I was wondering is if there's a way of magically combining these two lines so I'm not referring to the same variable three times, just define it once.
[17:52:36] jhass: well since you don't care about order you could [response.headers['X-Upstream-Addr'], '10.0.15.20:8484', '10.0.15.21:8484'].uniq, given you trust the header
[17:52:54] habitullence: That would mean having a method like rotate that took the IP header instead
[17:53:08] jhass: I mean order of the rest of the elements given there's more than one
[17:53:36] sdwrage: has joined #ruby
[17:53:46] habitullence: it's proxying round robin though so for the test I'd have to go through in order
[17:54:05] nando293921: has joined #ruby
[17:54:10] habitullence: i.e., I need the current proxy to be at the start
[17:54:33] hutch34: has joined #ruby
[17:55:08] habitullence: jhass: am I explaining properly
[17:55:18] jhass: yeah I think so
[17:55:29] jhass: I'd say put a good name on it and stop worrying
[17:56:30] habitullence: Thanks, I get caught up on the little things a lot.
[17:56:46] PaulCape_: has joined #ruby
[18:00:10] kareeoleez: has joined #ruby
[18:02:32] rkazak: has joined #ruby
[18:02:52] imperator: has joined #ruby
[18:05:21] AnoHito: has joined #ruby
[18:09:01] sdwrage: has joined #ruby
[18:14:43] aswen: has joined #ruby
[18:16:15] chouhoulis: has joined #ruby
[18:18:13] kareeoleez: has joined #ruby
[18:22:17] sdwrage: has joined #ruby
[18:26:05] PaulCapestany: has joined #ruby
[18:26:24] _aeris_: has joined #ruby
[18:28:14] Dimik: has joined #ruby
[18:30:52] kareeoleez: has joined #ruby
[18:30:55] cdg: has joined #ruby
[18:35:41] roamingdog: has joined #ruby
[18:37:06] diegoaguilar: has joined #ruby
[18:38:45] |ifei5good: has joined #ruby
[18:41:23] aries_liuxueyang: has joined #ruby
[18:41:26] LoneHermit: has joined #ruby
[18:49:06] kareeoleez: has joined #ruby
[18:50:32] nankyokusei: has joined #ruby
[18:52:10] PaulCape_: has joined #ruby
[18:55:49] flughafen_: has joined #ruby
[18:58:50] roamingdog: has joined #ruby
[18:58:56] craigp: has joined #ruby
[18:59:22] jbird00: has joined #ruby
[19:00:41] KantonKid: has joined #ruby
[19:00:43] nando293921: has joined #ruby
[19:00:58] zyzioziom: has joined #ruby
[19:01:16] bronson: has joined #ruby
[19:02:53] aswen: has joined #ruby
[19:04:15] roamingdog: has joined #ruby
[19:06:54] RegulationD: has joined #ruby
[19:07:07] kareeoleez: has joined #ruby
[19:07:09] jbird00: I have a person class and a number of lines the person should wait in, but they're not sure which line they're supposed to be in, only the lines know. Is the correct approach to make an array of Line classes and methods like Line::for?(some_person) and just loop until it's true and return that class?
[19:07:19] k3rn31: has joined #ruby
[19:09:23] jaguarmagenta: has joined #ruby
[19:09:58] Azure: has joined #ruby
[19:10:13] roamingdog: has joined #ruby
[19:12:06] idefine: has joined #ruby
[19:12:58] roamingdog: has joined #ruby
[19:14:22] sean_: has joined #ruby
[19:15:05] kgrz: has joined #ruby
[19:16:24] shevy: so convoluted
[19:17:44] Mia: has joined #ruby
[19:19:23] PaulCapestany: has joined #ruby
[19:20:54] blackmesa: has joined #ruby
[19:21:47] stannard: has joined #ruby
[19:23:30] snguyen: has joined #ruby
[19:24:06] vdamewood: has joined #ruby
[19:25:33] kareeoleez: has joined #ruby
[19:25:39] rrichardsr3: has joined #ruby
[19:25:46] Devalo: has joined #ruby
[19:25:55] tomphp: has joined #ruby
[19:32:42] tomphp: has joined #ruby
[19:33:01] blackmesa: has joined #ruby
[19:34:41] Devalo: has joined #ruby
[19:35:05] kareeoleez: has joined #ruby
[19:35:06] vinleod: has joined #ruby
[19:35:20] eL_bAmba: has joined #ruby
[19:36:47] tomphp: has joined #ruby
[19:39:53] workmad3: has joined #ruby
[19:41:04] jbird00: has joined #ruby
[19:41:36] LMity: has joined #ruby
[19:43:21] Coldblackice: has joined #ruby
[19:43:50] kareeoleez: has joined #ruby
[19:44:26] PaulCape_: has joined #ruby
[19:45:18] roamingdog: has joined #ruby
[19:45:56] rrichardsr3: has joined #ruby
[19:46:06] flughafen_: has joined #ruby
[19:48:48] ico: has joined #ruby
[19:51:23] ico_: has joined #ruby
[19:51:27] elifoster: has joined #ruby
[19:51:36] roamingdog: has joined #ruby
[19:51:41] aswen: has joined #ruby
[19:52:24] zyzioziom: has joined #ruby
[19:54:22] tildes: has joined #ruby
[19:57:42] tomphp: has joined #ruby
[19:58:17] mikeric: has joined #ruby
[19:59:43] KnownSyntax: has joined #ruby
[20:02:13] kareeoleez: has joined #ruby
[20:02:42] rrichardsr3: has joined #ruby
[20:03:05] elemenn: has joined #ruby
[20:06:24] |2701: has joined #ruby
[20:06:47] KantonKid: has joined #ruby
[20:08:33] sepp2k: has joined #ruby
[20:09:04] dreinull: uh, whats the preferred way to assign key foo and value bar if h is nil or {}?
[20:09:14] dreinull: in one line
[20:11:14] PaulCapestany: has joined #ruby
[20:12:16] ged_: has joined #ruby
[20:12:53] jhass: (h ||= {})[key] = value but I'd just write it in two lines really
[20:13:22] Es0teric: has joined #ruby
[20:13:40] dreinull: jhass so I'm not missing some basic knowledge, it just doesn't exist. I was wondering.
[20:13:48] jhass: it does, I just showed
[20:14:01] jhass: it's just ugly
[20:14:11] dreinull: yes, but nothing pretty
[20:18:32] postmodern: has joined #ruby
[20:20:28] kareeoleez: has joined #ruby
[20:22:32] henrydangprg: has joined #ruby
[20:23:22] A5101: has joined #ruby
[20:24:57] alxgsv: has joined #ruby
[20:25:51] henrydangprg: I'm a complete beginner at Ruby, and I'm a bit confused. Can anyone help me out a bit?
[20:26:19] ruby[bot]: Just ask your question, if anyone has or can, they will respond.
[20:29:14] elemenn: there has to be some simple way for this, I just can't google it
[20:29:46] elemenn: I have abc, and I have string, and I want to check if every char of string is in the abc
[20:29:53] henrydangprg: So in this code snippet (http://pastebin.com/dAftcr7j), In line 15, the block is called on the ruby_tree instance, but why isn't the entire tree printed out? (because of line 24)
[20:29:54] ruby[bot]: henrydangprg: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/62781fd71f98799a86b1a1dcb271520b
[20:29:54] ruby[bot]: henrydangprg: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[20:31:18] jhass: elemenn: sounds like one of the codewars/excersim puzzles :P
[20:31:46] sphex: has joined #ruby
[20:31:49] zel: has joined #ruby
[20:31:57] jhass: anyway, one way: string.chars.all? {|c| abc.include? c }
[20:32:28] flopsec: has joined #ruby
[20:33:15] jhass: henrydangprg: compare it to visit_all, what's the difference?
[20:33:58] jgpawletko: has joined #ruby
[20:34:02] PaulCape_: has joined #ruby
[20:35:25] jbird00: has joined #ruby
[20:35:56] wldcordeiro: has joined #ruby
[20:37:21] Puffball: has joined #ruby
[20:38:37] kareeoleez: has joined #ruby
[20:39:19] henrydangprg: Oh, I see. I mis-read the initialize. It calls it recursively on the children, (which are Reia and MacRuby).
[20:39:46] elemenn: jhass close enough, I'm doing JS at freecodecamp and convert the puzzles to ruby
[20:40:21] elemenn: thanks, I was playing with .index and .each_char, but your method suggested me where I was making a mistake
[20:40:28] elemenn: should be smooth sailing now
[20:41:00] henrydangprg: jhass: just to be clear, what does "self" refer to in line 15? It refers to the ruby_tree variable, right?
[20:41:27] diegoaguilar: has joined #ruby
[20:41:36] jhass: henrydangprg: it refers to the same object as the ruby_tree_variable refers to
[20:42:05] jhass: important distinction to get right, variables refer to objects, they aren't the objects themselves
[20:42:26] elemenn: should be smooth sailing now
[20:42:40] jhass: more generally self refers to the current instance of the class
[20:42:56] jhass: (instance and object mean the same thing basically)
[20:43:26] Coldblackice: has joined #ruby
[20:46:03] Puffball_: has joined #ruby
[20:46:23] yfeldblum: has joined #ruby
[20:47:02] Weavel: has joined #ruby
[20:47:24] elemenn: ok it is not smooth sailing, I'm not getting some logic behind it
[20:47:37] elemenn: puts str.each_char {|x| abecele.include?(x)} ? 'y' : 'n'
[20:47:52] elemenn: what is wrong here?
[20:48:24] jancel: has joined #ruby
[20:48:24] elemenn: to my understand to the {|x|...} ther should be passed each char of str?
[20:48:38] jhass: the return value of .each_char is not what you think it is
[20:48:59] elemenn: it's a number?
[20:49:10] henrydangprg: Jhass, thanks a lot for your help, after you clarified that, everything just clicked into place.
[20:49:10] jhass: it's the receiver, the original string
[20:49:22] jhass: henrydangprg: great, happy rubying
[20:49:27] kareeoleez: has joined #ruby
[20:50:41] elemenn: yeah I see now, I'm doing my if statement in the wrong place
[20:51:27] nankyokusei: has joined #ruby
[20:53:07] mleung: has joined #ruby
[20:54:08] wnd: has joined #ruby
[20:59:37] jxf: has joined #ruby
[21:03:41] bronson: has joined #ruby
[21:03:53] Puffball: has joined #ruby
[21:04:17] PaulCapestany: has joined #ruby
[21:07:30] kareeoleez: has joined #ruby
[21:08:04] kies: has joined #ruby
[21:08:21] shevy: naughty programming
[21:09:01] zyzioziom: has joined #ruby
[21:09:01] stannard: has joined #ruby
[21:16:35] kareeoleez: has joined #ruby
[21:17:35] AnoHito: has joined #ruby
[21:18:59] Devalo: has joined #ruby
[21:19:00] jaguarmagenta: has joined #ruby
[21:19:34] KantonKid: has joined #ruby
[21:21:30] sp4rrow: has joined #ruby
[21:21:37] GinoMan2440: has joined #ruby
[21:21:56] sdwrage: has joined #ruby
[21:24:00] chipotle: has joined #ruby
[21:24:45] arlek_: has joined #ruby
[21:25:32] roamingdog: has joined #ruby
[21:27:41] blackmesa: has joined #ruby
[21:28:08] Tref: has joined #ruby
[21:28:20] banister: has joined #ruby
[21:31:15] PaulCape_: has joined #ruby
[21:31:19] wldcordeiro: has joined #ruby
[21:32:24] roamingdog: has joined #ruby
[21:33:14] wuyin: has joined #ruby
[21:34:36] kareeoleez: has joined #ruby
[21:34:42] roamingdog: has joined #ruby
[21:35:09] cjbottaro: has joined #ruby
[21:35:44] pawnbox: has joined #ruby
[21:40:19] strat0cat: has joined #ruby
[21:43:50] elemenn: got a question about scope of vars
[21:43:55] kareeoleez: has joined #ruby
[21:43:59] elemenn: for example, http://pastebin.ca/3606729
[21:44:13] elemenn: if I attach $ to every var it works fine
[21:44:26] elemenn: but I understand that global vars should be for extreme cases
[21:44:35] elemenn: so.. what's the best practice in this example?
[21:45:03] elemenn: I mean what confuses me that 'tikrinam' method doesn't recognize vars defined in its parent method
[21:46:32] shevy: global vars can be bad because they leak in and out over everywhere
[21:46:53] adaedra: A good replacements for global vars are class instance variables.
[21:46:55] shevy: I also would not define a method in a method
[21:47:11] shevy: for abecele, you can use @abecele
[21:47:22] shevy: is this spanish? :D
[21:47:46] elemenn: lithuanian
[21:47:47] adaedra: yeah, don't nest methods, I'm not sure it does what you think it does.
[21:48:12] adaedra: for abecele, you can just do ('A'..'Z').to_a
[21:48:19] borodin: has joined #ruby
[21:48:28] shevy: cool, looked like spanish to me on a first glance
[21:48:46] elemenn: ok, so let's say I have those two methods defined seperately
[21:49:04] elemenn: what kind of vars do I use to communicate between them?
[21:49:11] borodin: anybody know anything about nokogiri? I'm trying to read an html document - the docs about noko are very helpful for parent/child relationships, but not for sibling relationships
[21:49:16] shevy: those with a leading @
[21:49:27] adaedra: elemenn: you could pass them as parameters, or, if you're in a class, instance variables
[21:50:08] adaedra: you can also declare tikrinam as a lambda and close other the parent scope
[21:50:38] adaedra: `tikrinam = -> (x)`, the use `tikrinam.call(x)` below
[21:51:11] borodin: like, my document has <dl><dt>...</dt><dd>...<dd><dt>...</dt><dd>...</dd></dl> so I need to associate the first dt.text with the following dd.text, then the next dt.text with the next dd.text
[21:51:20] |ifei5g00d: has joined #ruby
[21:51:21] borodin: unclear how ot do that
[21:52:23] elemenn: ok thanks, I have some reading to do :) interesting stuff tho
[21:53:02] adaedra: borodin: should be rather easy to target through xpath, I think
[21:53:30] borodin: yeah I found it, using next_element... Thanks adaedra
[21:58:05] PaulCapestany: has joined #ruby
[21:58:26] swein: has joined #ruby
[22:00:41] freerobby: has joined #ruby
[22:02:24] kareeoleez: has joined #ruby
[22:02:43] roamingdog: has joined #ruby
[22:03:39] roamingd_: has joined #ruby
[22:04:31] mleung: has joined #ruby
[22:07:05] tristanp: has joined #ruby
[22:11:05] Azure: has joined #ruby
[22:11:44] jancel: has joined #ruby
[22:14:09] Yzguy: has joined #ruby
[22:16:19] chouhoulis: has joined #ruby
[22:17:23] PaulCape_: has joined #ruby
[22:18:39] stannard: has joined #ruby
[22:21:16] symm-: has joined #ruby
[22:21:23] boboc: has joined #ruby
[22:22:33] roamingdog: has joined #ruby
[22:24:06] sfmk: has joined #ruby
[22:24:09] jenrzzz: has joined #ruby
[22:24:56] bobbycvi: has joined #ruby
[22:26:14] tlaxkit: has joined #ruby
[22:26:51] crystal77: has joined #ruby
[22:27:11] kgrz: has joined #ruby
[22:28:27] PaulCapestany: has joined #ruby
[22:32:26] blaxter: has joined #ruby
[22:37:26] zenlot: has joined #ruby
[22:44:48] whiteline: has joined #ruby
[22:46:49] PaulCape_: has joined #ruby
[22:47:36] kareeoleez: has joined #ruby
[22:52:17] nankyokusei: has joined #ruby
[22:52:46] jancel: has joined #ruby
[22:53:26] freerobby: has joined #ruby
[22:54:05] akiTendo: has joined #ruby
[22:54:07] claw: has joined #ruby
[22:54:15] yfeldblum: has joined #ruby
[22:56:54] kareeoleez: has joined #ruby
[22:57:39] roamingdog: has joined #ruby
[22:57:54] zenguy_pc: has joined #ruby
[22:59:38] banister: has joined #ruby
[23:03:58] pawnbox: has joined #ruby
[23:06:08] bronson: has joined #ruby
[23:08:36] kareeoleez: has joined #ruby
[23:12:59] PaulCapestany: has joined #ruby
[23:13:21] pawnbox: has joined #ruby
[23:13:29] Gasher: has joined #ruby
[23:15:53] pawnbox: has joined #ruby
[23:20:00] B4daBing73: has joined #ruby
[23:20:00] B4daBing73: has joined #ruby
[23:20:13] cdg: has joined #ruby
[23:21:05] allcentury: has joined #ruby
[23:23:10] minimalism: has joined #ruby
[23:23:34] banister: has joined #ruby
[23:26:09] blackmesa: has joined #ruby
[23:27:27] pawnbox: has joined #ruby
[23:27:59] m_antis: has joined #ruby
[23:37:21] tristanp: has joined #ruby
[23:40:00] skade: has joined #ruby
[23:42:07] PaulCape_: has joined #ruby
[23:47:34] chopin: has joined #ruby
[23:47:38] bluOxigen: has joined #ruby
[23:54:20] glitch0matick: has joined #ruby
[23:54:44] glitch0matick: has left #ruby: ()
[23:55:27] banister: has joined #ruby
[23:56:54] GarethAdams: has joined #ruby