« Back to channel list

#ruby - 03 April 2016

« Back 1 day Forward 1 day »
[00:00:00] nyandoge: has joined #ruby
[00:03:31] ChiefAlexander: has joined #ruby
[00:04:02] JJM: has joined #ruby
[00:05:55] chagel: has joined #ruby
[00:07:57] zeroDivisible: has joined #ruby
[00:08:01] unsymbol: has joined #ruby
[00:08:14] astrobun_: has joined #ruby
[00:13:58] duckpuppy: has joined #ruby
[00:15:11] jackjackdripper: has joined #ruby
[00:17:08] halfamind: has joined #ruby
[00:17:23] Denis: has joined #ruby
[00:19:51] Devalo: has joined #ruby
[00:20:17] spacemud: has joined #ruby
[00:20:32] unsymbol: has joined #ruby
[00:22:59] _blizzy_: has joined #ruby
[00:23:47] rehat: has joined #ruby
[00:23:49] josephan: has joined #ruby
[00:24:53] baweaver: has joined #ruby
[00:25:33] weemsledeux: has joined #ruby
[00:29:09] s00pcan: has joined #ruby
[00:31:05] moeabdol: has joined #ruby
[00:31:24] yfeldblum: has joined #ruby
[00:32:29] halfamind: has joined #ruby
[00:36:14] shevy: we have finally overcome the first april
[00:42:51] p0p0pr37: has joined #ruby
[00:45:52] xlegoman: has joined #ruby
[00:46:36] Es0teric: has joined #ruby
[00:48:48] nodejunkie: has joined #ruby
[00:49:29] stardiviner: has joined #ruby
[00:50:52] parduse: has joined #ruby
[00:52:45] s00pcan: has joined #ruby
[00:54:51] spacemud: has joined #ruby
[00:56:59] Rubie: has joined #ruby
[00:57:29] Azure|dc: has joined #ruby
[01:04:07] GodFather: has joined #ruby
[01:06:00] Inside: has joined #ruby
[01:06:00] Inside: has joined #ruby
[01:08:43] aspiers_: has joined #ruby
[01:08:53] bearbearbears: has joined #ruby
[01:09:09] bearbearbears: Ruby had succeeded in being one of the most painful languages I've ever had to work with.
[01:09:37] bearbearbears: You would think when installing a gem it would go for the newest compatible version of the gem. Nope! Go for a uncompatible one and fail.
[01:09:46] bearbearbears: Don't even offer to try a older version.
[01:10:18] bearbearbears: I spent the last five minutes to find the newest versions of gems that where compatible with 1.9.3
[01:10:50] shevy: papa bear! you are back
[01:11:14] htmldrum: has joined #ruby
[01:12:18] LoneHermit: has joined #ruby
[01:14:17] pawnbox: has joined #ruby
[01:18:45] GodFather: has joined #ruby
[01:23:32] shevy: you are three the bears
[01:24:25] shevy: typically your use case may be covered via bundler
[01:27:24] spacemud: has joined #ruby
[01:28:19] ekinmur: has joined #ruby
[01:28:22] statelesscode: has joined #ruby
[01:29:26] IrishGringo: has joined #ruby
[01:31:37] Es0teric: has joined #ruby
[01:31:53] benlieb: has joined #ruby
[01:32:49] diegoaguilar: has joined #ruby
[01:32:53] cdg: has joined #ruby
[01:33:01] bearbearbears: shevy, bunlder is shitting the bed
[01:33:17] bearbearbears: So I tried rvm. rvm built ruby 2.0.0-p634
[01:33:27] bearbearbears: it /set/ it as the default version (apparently)
[01:33:51] bearbearbears: and yet bundler shits the bed installing tins because it refues to acknowledge ruby.20
[01:34:08] bearbearbears: 10/10 on the suffering scale so far working with ruby.
[01:34:30] sudoubuntu: has joined #ruby
[01:36:05] bearbearbears: Now rvm shits the bed.
[01:36:51] htmldrum: has joined #ruby
[01:38:13] bearbearbears: >Gem::InstallError: tins requires Ruby version >= 2.0.
[01:38:22] bearbearbears: >ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
[01:40:03] bearbearbears: This is why Ruby will never be a mainstream popular language like Java / Go / Swift (etc) for anyone wanting to do high level development.
[01:40:13] jason^: has joined #ruby
[01:40:28] shevy: bearbearbears you have to do things properly
[01:40:45] bearbearbears: shevy, ruby --version returns 2.0.0-p634
[01:40:50] shevy: yes that is the first problem
[01:40:51] bearbearbears: tins wants 2.0.0+
[01:41:33] bearbearbears: shevy, I'm meeting the requirements and it still fails.
[01:41:43] shevy: the first problem is that you are not doing this: wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.xz
[01:42:02] bearbearbears: shevy, I am / was working with RVM.
[01:42:15] bearbearbears: The packages Lubntu gives me are dated (1.9.3)
[01:42:50] shevy: >> RUBY_VERSION
[01:42:56] jinie: has joined #ruby
[01:43:09] iNs: has joined #ruby
[01:43:11] bearbearbears: Installing tins 1.9.0
[01:43:11] bearbearbears: Gem::InstallError: tins requires Ruby version >= 2.0.
[01:43:11] shevy: hmm the bot is gone
[01:43:23] shevy: yes use ruby 2.3.0
[01:43:25] GodFather: has joined #ruby
[01:43:31] bearbearbears: shevy, Getting ruby 2.0 was painful.
[01:43:51] eljimador: has joined #ruby
[01:44:06] shevy: ftp://ftp.ruby-lang.org/pub/ruby/
[01:44:10] bearbearbears: getting RVM working was painful.
[01:44:30] shevy: yes don't use rvm
[01:44:39] bearbearbears: So do things the even more painful way?
[01:44:55] bearbearbears: update-alternatives doesn't see ruby 2.0
[01:44:58] shevy: there is nothing painful
[01:45:13] shevy: does debian not make it convenient for you to upgrade?
[01:45:16] bearbearbears: so I'm using a kludge and symlinked ruby and ruby1.9.3 to 2.0
[01:45:23] shevy: no that is just awful
[01:46:02] bearbearbears: Tell that to the Ruby developers who thought the idea of forcing the newest version of a package was logical
[01:46:10] shevy: oh but that is
[01:46:25] shevy: you would otherwise require of them to have to use the least common denominator
[01:46:30] bearbearbears: with Java maven will let me specify the correct version off the bat so nothing breaks
[01:47:00] bearbearbears: Ruby chooses for me. Maven makes me specify.
[01:47:08] shevy: a version of?
[01:47:20] bearbearbears: The package / gem I need.
[01:47:31] bearbearbears: Gems jumped to the newest incompatible version.
[01:47:40] shevy: well you can specify the version too
[01:47:44] shevy: like for https://rubygems.org/gems/tins/versions
[01:47:55] bearbearbears: bundle still wanted the latest one.
[01:48:02] shevy: the author of this gem seems to be lazy
[01:48:11] bearbearbears: BeEF requires 1.9.3+
[01:48:16] shevy: like at https://rubygems.org/gems/tins/versions/0.4.1 he has not specified a ruby version
[01:48:23] bearbearbears: there is no reason to need the newest version of tins
[01:48:52] shevy: did you specify a version?
[01:48:56] bearbearbears: At least gems aren't as bad as the NPM situation
[01:49:09] bearbearbears: I then tried bundle install again and it wanted to install the latest version
[01:50:06] shevy: well have a look at the http://bundler.io/ page
[01:50:16] shevy: they use a restriction such as:
[01:50:17] shevy: gem 'rack', '~>1.1'
[01:50:36] bweston92: has joined #ruby
[01:50:56] bearbearbears: reading through Gemfile.lock
[01:50:58] bearbearbears: " term-ansicolor (1.3.2)
[01:51:26] bearbearbears: I installed 1.6.0 successfully.
[01:51:53] shevy: https://rubygems.org/gems/tins/versions/1.6.0
[01:51:56] bearbearbears: gem isn't as bad as aptitude though.
[01:52:03] s00pcan: has joined #ruby
[01:52:05] shevy: indeed he must have changed something
[01:52:11] bearbearbears: aptitude keeps trying to encourage me to do apt-get autoremove
[01:52:11] shevy: the "Required Ruby Version: >= 0"
[01:52:19] bearbearbears: I've had autoremove want to remove x11.
[01:53:32] rehat: has joined #ruby
[01:53:47] bearbearbears: sudo gem install tins '1.7.0'
[01:53:48] bearbearbears: Successfully installed tins-1.9.0
[01:53:48] bearbearbears: Parsing documentation for tins-1.9.0
[01:53:48] bearbearbears: Installing ri documentation for tins-1.9.0
[01:53:48] bearbearbears: ERROR: Could not find a valid gem '1.7.0' (>= 0) in any repository
[01:54:08] bearbearbears: I want 1.7, install 1.9 then bitch you can't find 1.7.
[01:55:10] bearbearbears: Installing tins 1.9.0
[01:55:10] bearbearbears: Gem::InstallError: tins requires Ruby version >= 2.0.
[01:55:17] bearbearbears: It just installed tins 1.9.0
[01:55:34] bearbearbears: now it wont install them.
[01:55:39] bearbearbears: what the living fuck.
[01:55:53] bearbearbears: I've watched crack addicts do better than gem is right now.
[01:57:27] bearbearbears: shevy, can I force gem to install and ignore errors?
[01:58:05] shevy: bearbearbears hmm yeah... let me think
[01:58:12] djbkd: has joined #ruby
[01:58:23] bearbearbears: shevy, I've commented out ansi and term-ansi-colors in gemfile
[01:58:30] bearbearbears: They're already installed.
[01:58:39] User458764: has joined #ruby
[01:58:48] shevy: "gem install -f name" or coupled with version; or "gem install --ignore-dependencies". I actually often use the latter
[01:59:20] bearbearbears: shevy, what I did, not your suggestion but ty for helping
[01:59:25] shevy: 1.7.0 should not have failed
[01:59:52] bearbearbears: IT FUCKING SUCCEDDED>
[01:59:59] bearbearbears: WHAT THE DONALD TRUMP
[02:00:13] shevy: aaaaah look: https://rubygems.org/gems/tins/versions/1.9.0
[02:00:18] shevy: he changed the requirement there too
[02:00:26] shevy: "Required Ruby Version: >= 2.0"
[02:00:39] shevy: from "unspecified" over to "version 0" over to version "2.0 or greater"
[02:00:46] shevy: perhaps he is learning how the ecosystem :P
[02:00:57] sudoubuntu: has joined #ruby
[02:01:11] bearbearbears: from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
[02:01:12] bearbearbears: from /home/bear/Desktop/beef/core/loader.rb:9:in `<top (required)>'
[02:01:12] bearbearbears: from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
[02:01:12] bearbearbears: from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
[02:01:14] bearbearbears: from ./beef:24:in `<main>'
[02:01:16] bearbearbears: shevy, Look at that.
[02:01:40] shevy: this is the full output?
[02:01:43] unsymbol: has joined #ruby
[02:01:57] shevy: I mean the error is not there
[02:03:23] shevy: the gem does not work
[02:03:27] bearbearbears: I'm going to switch Distros
[02:03:34] shevy: gem install beef
[02:03:34] shevy: ERROR: While executing gem ... (NoMethodError)
[02:03:34] shevy: undefined method `join' for ".":String
[02:03:45] jackjackdripper: has joined #ruby
[02:03:45] bearbearbears: Been holding out on trying Fedora because I like Debian / Derivatives
[02:03:54] pawnbox: has joined #ruby
[02:04:09] bearbearbears: The issue is I've had problems like this in the past
[02:04:28] bearbearbears: Finally time to use a more modern distro
[02:05:20] shevy: nah the gem is broken
[02:05:42] bearbearbears: either way I need to use a much more modern distro
[02:05:55] bearbearbears: I might just re-install windows becuase I also like to game...
[02:06:00] bearbearbears: I mostly dev under Linux
[02:06:05] shevy: they are turning into linux anyway
[02:06:14] shevy: now you can use bash on windows
[02:06:33] decoponyo: has joined #ruby
[02:06:59] bearbearbears: All the spying with 10 is not worth it for a hacky port of bash
[02:07:49] bearbearbears: I could always do Debian SID
[02:08:27] rickmasta: has joined #ruby
[02:09:24] noService: has joined #ruby
[02:09:28] baweaver: has joined #ruby
[02:09:54] Ox0dea: bearbearbears: ur should to use Red Star OS
[02:10:10] Ox0dea: is the only state-sponsored distro, use by every1 in Best Korea
[02:10:28] Ox0dea: "Given enough eyeballs, all bugs are shallow."
[02:10:33] Ox0dea: red star have 100% eyeballs
[02:11:16] paultreny: has joined #ruby
[02:14:37] duckpuppy: has joined #ruby
[02:14:59] spacemud: has joined #ruby
[02:15:27] baweaver: ACTION checks logs
[02:16:00] baweaver: Ox0dea: enough
[02:17:11] Guest87551: has joined #ruby
[02:19:18] uod: has joined #ruby
[02:19:38] moeabdol: has joined #ruby
[02:19:48] Polysics_: has joined #ruby
[02:22:38] ericlee: has joined #ruby
[02:23:55] uod: has joined #ruby
[02:26:41] uod: has joined #ruby
[02:28:17] Don_John_: has joined #ruby
[02:28:50] arescorpio: has joined #ruby
[02:29:11] uod: has joined #ruby
[02:31:41] uod: has joined #ruby
[02:32:27] htmldrum: has joined #ruby
[02:33:39] pawnbox: has joined #ruby
[02:33:40] rubie_: has joined #ruby
[02:35:43] swills: has joined #ruby
[02:36:01] RegulationD: has joined #ruby
[02:38:55] tristanp: has joined #ruby
[02:41:02] spacemud: has joined #ruby
[02:46:13] uod: has joined #ruby
[02:48:46] uod: has joined #ruby
[02:56:45] Madplatypus: has joined #ruby
[03:00:11] Suntzu: has joined #ruby
[03:00:36] bearbearbears: has joined #ruby
[03:02:18] PlasmaStar: has joined #ruby
[03:03:31] pawnbox: has joined #ruby
[03:09:47] fedexo: has joined #ruby
[03:16:05] tristanp: has joined #ruby
[03:16:15] amincd: has joined #ruby
[03:16:34] amincd: Hi, I'm creating a Time object settings its local time to "+00:00", like so:
[03:16:51] amincd: >> t = Time.new.localtime("+00:00")
[03:17:11] amincd: but t.utc? returns false
[03:17:22] nhhc: has joined #ruby
[03:17:31] braincrash: has joined #ruby
[03:17:37] amincd: shouldn't "+00:00" be UTC?
[03:17:38] halfamind: has joined #ruby
[03:18:10] amincd: I know I can make the time zone UTC simply with t.utc
[03:22:19] scepticulous: has joined #ruby
[03:22:20] toretore: localtime creates a time in local time
[03:22:22] unsymbol: has joined #ruby
[03:22:53] amincd: >>p Time.new.localtime("+00:00").to_s
[03:24:12] Ropeney: has joined #ruby
[03:24:13] torandu: has joined #ruby
[03:24:32] toretore: seems like it doesn't think +00:00 is the same as utc
[03:24:36] amincd: what happened to rubybot?
[03:24:36] toretore: it might not be
[03:24:52] havenwood: #=> "hello"
[03:26:25] makenoise: has joined #ruby
[03:33:28] pawnbox: has joined #ruby
[03:33:59] rkazak: has joined #ruby
[03:35:50] gix: has joined #ruby
[03:38:08] spacemud: has joined #ruby
[03:38:27] amincd: ok I figured it out: time zones are different than UTC offsets
[03:38:56] jtoy: has joined #ruby
[03:41:14] mdih: has joined #ruby
[03:44:27] stardiviner: has joined #ruby
[03:45:19] sarbs: has joined #ruby
[03:46:21] p0wn3d: has joined #ruby
[03:46:40] toretore: though the argument is called utc_offset
[03:46:56] swills: has joined #ruby
[03:49:34] David_H__: has joined #ruby
[03:50:32] makenoise: has joined #ruby
[03:50:58] Tempesta: has joined #ruby
[03:57:39] Tempesta: has joined #ruby
[03:58:29] cpup: has joined #ruby
[03:59:10] scepticu1ous: has joined #ruby
[03:59:22] sudoubuntu: has joined #ruby
[03:59:53] Tempesta: has joined #ruby
[04:01:25] nanoz: has joined #ruby
[04:05:28] chagel: has joined #ruby
[04:07:01] blackmesa: has joined #ruby
[04:13:24] pawnbox: has joined #ruby
[04:13:25] andywojo: has joined #ruby
[04:14:56] CloCkWeRX: has joined #ruby
[04:15:24] duckpuppy: has joined #ruby
[04:15:50] pawnbox: has joined #ruby
[04:17:58] scepticulous: has joined #ruby
[04:20:13] cki: has joined #ruby
[04:21:10] Devalo: has joined #ruby
[04:24:49] makenoise: has joined #ruby
[04:27:50] krz: has joined #ruby
[04:29:47] aspiers_: has joined #ruby
[04:31:47] IrishGringo: has joined #ruby
[04:32:50] nanoz]: has joined #ruby
[04:33:22] dc4: has joined #ruby
[04:33:35] gh: has joined #ruby
[04:37:57] Maxed: has joined #ruby
[04:38:11] Maxed: has left #ruby: ()
[04:39:27] the_drow: has joined #ruby
[04:42:47] kfpratt: has joined #ruby
[04:43:31] htmldrum: has joined #ruby
[04:48:07] LoneHermit: has joined #ruby
[04:49:19] duncannz: has joined #ruby
[04:52:29] Asher: has joined #ruby
[04:54:35] aqoom: has joined #ruby
[04:55:51] moeabdol: has joined #ruby
[04:56:55] goglosh: has joined #ruby
[04:58:12] goglosh: just installed metasploit and learned it's written in ruby
[04:58:20] goglosh: ruby keeps surprising me
[04:58:24] hxegon: has joined #ruby
[04:58:26] djbkd: has joined #ruby
[05:03:51] hk238: has joined #ruby
[05:04:59] djbkd: has joined #ruby
[05:10:45] blackmesa: has joined #ruby
[05:11:03] ericlee: Hi. how to use File.lstat to get the actual dest file name if give a link name?
[05:13:31] ericlee: should use File.realpath
[05:13:44] the_drow: has joined #ruby
[05:14:02] yfeldblum: has joined #ruby
[05:14:17] shmuli: has joined #ruby
[05:16:44] matp: has joined #ruby
[05:21:43] preyalone: has joined #ruby
[05:22:54] Kharma: has joined #ruby
[05:25:23] Suntzu: has joined #ruby
[05:29:22] User458764: has joined #ruby
[05:31:12] dh64: has joined #ruby
[05:32:09] skydiver: has joined #ruby
[05:34:14] ericlee: Hi, if I would like to get dir entries from /proc/<pid>, does ruby support regex to match the dirname like \d+ ?
[05:34:20] Dios: has joined #ruby
[05:34:27] halfamind: has joined #ruby
[05:34:49] halfamind1: has joined #ruby
[05:36:14] Ox0dea: ericlee: 'Fraid not. You'll have to say something like `Dir['/proc/*'].grep(/\d+$/)`.
[05:36:40] ericlee: Ox0dea, gotcha, thanks
[05:36:44] Ox0dea: Sure thing.
[05:37:02] karioleez: has joined #ruby
[05:37:14] ericlee: but Dir['/proc/*'].grep(/\d+$/) will just get the first level of \d+ matches, correct?
[05:37:23] AndChat643025: has joined #ruby
[05:38:14] Ox0dea: ericlee: Scratch that. Dir['/proc/[0-9]*'] seems to do the right thing.
[05:39:16] ericlee: Ox0dea, so seems the same, which supports glob
[05:39:44] Ox0dea: ericlee: It's slightly different from globs at the shell, but I forget the specifics.
[05:41:09] makufiru: has joined #ruby
[05:41:09] llua: the * will match non numeric characters too
[05:41:52] ericlee: * means 0 or more chars
[05:42:01] pawnbox: has joined #ruby
[05:42:47] Tempesta: has joined #ruby
[05:46:17] pawnbox: has joined #ruby
[05:48:20] GitGud: has joined #ruby
[05:48:48] GitGud: has joined #ruby
[05:51:22] the_drow: has joined #ruby
[05:54:09] diegoviola: has joined #ruby
[05:56:39] bkxd: has joined #ruby
[05:57:42] shmuli: has joined #ruby
[05:59:42] rippa: has joined #ruby
[06:02:30] dionysus69: has joined #ruby
[06:02:55] djbkd: has joined #ruby
[06:03:11] andywojo: has joined #ruby
[06:04:47] lxsameer: has joined #ruby
[06:07:27] kfpratt: has joined #ruby
[06:09:32] ecemm: has joined #ruby
[06:12:06] ecemm: has joined #ruby
[06:12:27] ecemm: has joined #ruby
[06:12:48] ecemm: has joined #ruby
[06:13:06] ecemm: has joined #ruby
[06:13:24] ecemm: has joined #ruby
[06:13:45] ecemm: has joined #ruby
[06:13:47] blackmesa: has joined #ruby
[06:15:51] Eiam_: has joined #ruby
[06:16:08] duckpuppy: has joined #ruby
[06:17:06] htmldrum: has joined #ruby
[06:19:17] Suntzu: has joined #ruby
[06:23:26] spacemud: has joined #ruby
[06:26:39] ericlee: I'm writing a small script to do the same thing as fuser which to check if the file is opened by any process: http://fpaste.org/348874/45966473/. But seems the realpath method always return the current dir
[06:26:44] ericlee: can anyone have a look?
[06:27:59] ericlee: sorry, the method I have issue is File.absolute_path
[06:31:02] BearLover: has left #ruby: ("Leaving")
[06:31:22] bkxd: has joined #ruby
[06:36:07] karioleez: any suggestions for ruby parsers of configuration files ?
[06:36:30] LoneHerm_: has joined #ruby
[06:39:43] djbkd2: has joined #ruby
[06:39:46] skweek: has joined #ruby
[06:40:04] Madplatypus: has joined #ruby
[06:41:31] baweaver: has joined #ruby
[06:44:10] DoubleMalt: has joined #ruby
[06:44:25] toretore: karioleez: which format?
[06:44:48] karioleez: toretore: custom one, I will need to make the rules
[06:46:14] toretore: use a well defined, widely used format like json or yaml
[06:46:32] toretore: ericlee: http://www.rubydoc.info/stdlib/core/File#absolute_path-class_method "Relative paths are referenced from the current working directory of the process unless dir_string is given"
[06:46:55] karioleez: toretore: this is impossible, I have to deal with the conf file I am given
[06:47:29] toretore: so you're not actually making the rules?
[06:48:31] toretore: the question is then: how can you parse a custom format defined by someone else for which no parser already exists?
[06:49:24] toretore: and this too depends on the format. it might be very easy to write a parser for or it may be very complicated
[06:49:39] Xeago: has joined #ruby
[06:50:24] karioleez: my question is about suggestions for ruby parsers
[06:50:37] karioleez: I've seen citrus, treetop
[06:51:32] ericlee: toretore, I'm using another way to do that, however, realpath method always throws out the exception, I have checked if the file exists: http://fpaste.org/348877/66618914/
[06:51:37] ericlee: no idea why it does not work.
[06:52:24] toretore: ericlee: then why use realpath?
[06:52:39] toretore: if you know that the filename is correct?
[06:52:47] ericlee: toretore, because I need to know the soft link dest name.
[06:53:02] ericlee: toretore, is there any way to know the dest name from a soft link in ruby?
[06:53:24] toretore: oh sorry, i was still thinking about absolute_path
[06:53:43] ericlee: toretore, oh no worry, we can ignore that.
[06:54:03] ericlee: toretore, just wanna know how to get the dest name from a link
[06:55:17] toretore: did you try File.readlink ?
[06:55:24] toretore: recursively as needed
[06:56:08] dionysus69: has joined #ruby
[06:56:19] ericlee: no, let me try
[06:58:31] toretore: real_path = maybe_linked_path; real_path = File.readlink(real_path) while File.stat(real_path).symlink?
[06:59:09] sigurding: has joined #ruby
[06:59:13] ericlee: that works
[07:02:00] Tempesta: has joined #ruby
[07:02:03] Musashi007: has joined #ruby
[07:04:31] ericlee: toretore, http://paste.fedoraproject.org/348881/96670591
[07:05:35] moeabdol: has joined #ruby
[07:06:29] quazimodo: has joined #ruby
[07:06:59] Tempesta: has joined #ruby
[07:07:13] mekul: has joined #ruby
[07:07:22] Musashi007: Guys, I have some ruby code that doesn’t seem to want to update from a database that I’m running. Would anyone be willing to look at it and offer some suggestions? https://gist.github.com/anonymous/054183723b927b9b2f302389391dab8b
[07:08:03] kfpratt: has joined #ruby
[07:09:57] lrkr: has joined #ruby
[07:10:23] youch: has joined #ruby
[07:10:44] sergey_makagon: has joined #ruby
[07:11:06] Tempesta: has joined #ruby
[07:11:30] Musashi007: I’m completely at a loss - It doesn’t work on heroku or locally
[07:13:42] User458764: has joined #ruby
[07:13:49] djbkd_: has joined #ruby
[07:14:09] Lomex_: has joined #ruby
[07:14:12] mr_oh: has joined #ruby
[07:16:51] blackmesa: has joined #ruby
[07:17:07] agit0: has joined #ruby
[07:17:32] the_drow: has joined #ruby
[07:19:07] kam270: has joined #ruby
[07:21:05] Lomex_: has joined #ruby
[07:23:02] blt: has joined #ruby
[07:23:10] vale_tudo: has joined #ruby
[07:23:44] Dios|2: has joined #ruby
[07:24:42] redasus: has joined #ruby
[07:25:50] dn`: has joined #ruby
[07:25:55] Dios: has joined #ruby
[07:26:01] LowLifePerv: has joined #ruby
[07:34:26] firstdayonthejob: has joined #ruby
[07:35:34] nando293921: has joined #ruby
[07:37:05] chagel: has joined #ruby
[07:38:06] nando293921: has joined #ruby
[07:38:52] solars: has joined #ruby
[07:38:58] GitGud: has joined #ruby
[07:40:02] joonty: has joined #ruby
[07:41:23] nando293921: has joined #ruby
[07:41:32] Dios: has joined #ruby
[07:42:00] houhoulis: has joined #ruby
[07:44:34] vikas027: has joined #ruby
[07:45:07] vikas027: has left #ruby: ()
[07:45:50] nando293921: has joined #ruby
[07:48:54] yfeldblum: has joined #ruby
[07:49:35] mr_oh: Anyone willing to give me a nude in the right direction? Breaking a method up into 2 or more seperate methods. Current method has bothe variables/valculations, and 'printing' results.
[07:50:08] mr_oh: jeebus... I can't type
[07:50:53] baweaver: ACTION puts down ban hammer slowly
[07:51:00] baweaver: have a gist?
[07:51:07] howdoi: has joined #ruby
[07:52:06] mr_oh: https://gist.github.com/c0ldT/3d34dc98b40ef3290ecf9ec79a8c746f
[07:52:23] mr_oh: It's long. process_brands method, specifically
[07:53:31] the_drow: has joined #ruby
[07:53:36] baweaver: https://coderpad.io/FCRZN9WR - let's work through it. Collab editor
[07:54:56] andywojo: has joined #ruby
[07:54:57] Dios|2: has joined #ruby
[08:02:19] futilegames: has joined #ruby
[08:02:54] mr_oh: baweaver: Is there chat in that, or just have to type comments?
[08:02:58] Jandre: has joined #ruby
[08:03:09] baweaver: comments works. I have two monitors so either way works for me
[08:03:23] nando293921: has joined #ruby
[08:03:35] marr: has joined #ruby
[08:03:55] Jandre: has joined #ruby
[08:07:06] mr_oh: baweaver: is there a way to load the json in there?
[08:08:40] tildes_: has joined #ruby
[08:08:54] kfpratt: has joined #ruby
[08:09:13] baweaver: always forget that cmd q is quit on mac....
[08:10:37] baweaver: there we go, got it in there.
[08:10:55] tildes_: has joined #ruby
[08:13:09] jtoy: has joined #ruby
[08:15:59] nando293921: has joined #ruby
[08:16:27] ljames: has joined #ruby
[08:16:51] jkahn: has joined #ruby
[08:16:53] duckpuppy: has joined #ruby
[08:19:05] tildes: has joined #ruby
[08:19:36] tildes_: has joined #ruby
[08:19:54] blackmes1: has joined #ruby
[08:20:17] tildes: has joined #ruby
[08:20:45] codenamepod: has joined #ruby
[08:23:47] CloCkWeRX: has joined #ruby
[08:24:47] codecop: has joined #ruby
[08:24:52] LoneHermit: has joined #ruby
[08:25:13] codenamepod: has joined #ruby
[08:26:57] tildes: has joined #ruby
[08:27:01] pawnbox: has joined #ruby
[08:30:34] pawnbox: has joined #ruby
[08:30:37] Zai00: has joined #ruby
[08:33:09] Eiam_: baweaver: coderpad.io is really cool
[08:33:15] Eiam_: never thought I'd see it used on IRC
[08:33:25] baweaver: indeed. I just wish it were free overall.
[08:33:31] baweaver: I can make a few a month free at least.
[08:33:43] noService: has joined #ruby
[08:34:12] car: has joined #ruby
[08:35:51] Eiam_: eh, gotta pay the bills
[08:36:25] baweaver: If it was something like $5 a month I'd gladly pay in
[08:36:30] baweaver: I think it was 50 though
[08:36:58] ruby[bot]: has joined #ruby
[08:36:58] ChanServ: +o ruby[bot]
[08:37:12] Eiam_: oh, wow thats really steep
[08:37:25] baweaver: Corps would pay it.
[08:37:35] Eiam_: corps would want their own internal deploy ;)
[08:37:45] baweaver: ACTION sighs
[08:37:48] Eiam_: (speaking as a corporate user, I'd never be allowed to use this outside our firewall)
[08:37:51] baweaver: well you're not wrong
[08:38:06] baweaver: I'm definitely in enterprise as well.
[08:38:07] Eiam_: I know ;) Doesn't mean I enjoy being right
[08:42:17] mr_oh: I didn't know about coderpad. I'm shocked.. :)
[08:43:07] jackjackdripper: has joined #ruby
[08:43:22] Eiam_: the downside is it takes the discussion out of IRC
[08:43:24] baweaver: do note I rarely have time to go this in depth on something.
[08:43:28] Eiam_: where others could potentially contribute.
[08:43:41] baweaver: which is great
[08:43:46] Eiam_: and if anything shows just another area where IRC really should be innovating
[08:44:03] baweaver: I don't have Ox0dea or apeiros around to tell me I did something stupid :D
[08:44:20] Eiam_: well I joined the session and could have commented!
[08:44:35] Eiam_: but my brain currently has swift paged in
[08:44:35] baweaver: yeah, figured it was someone else on channel
[08:45:15] baweaver: I'm reading the new Site Reliability Engineering book from O'Reilly while doing most of this.
[08:45:38] mr_oh: If a bunch of folks from the irc channel jumped in, I could see it getting pretty chaotic though
[08:45:57] mr_oh: If communication is just via #comments
[08:46:13] darkf_: has joined #ruby
[08:46:34] mr_oh: Well you've already given me a bunch to dig into
[08:47:07] baweaver: Read through ruby enumerable
[08:47:16] baweaver: &ri Enumerable#reduce
[08:47:16] `derpy: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-reduce
[08:47:20] sepp2k: has joined #ruby
[08:47:31] baweaver: that one especially, you can rewrite every single other function in there with reduce
[08:47:47] baweaver: in fact, give that a shot.
[08:47:55] baweaver: that'd be one heck of an exercise
[08:48:02] baweaver: ACTION goes to see if any of them can't be
[08:48:36] forcer: Just because you can do something does not necessarily mean it's a good idea to do ...
[08:49:03] baweaver: It doesn't, but it's more of a thought exercise than anything
[08:49:13] forcer: Now, THAT is almost always a good idea! :-D
[08:49:16] baweaver: one that's fairly common around Haskell exercises
[08:49:50] baweaver: and also reveals the fact that reduce is one of the most versatile functions in Ruby
[08:49:59] Eiam_: reduce is aweesome
[08:50:07] mr_oh: I'll try it
[08:50:08] baweaver: foldLeft tends to have a prominent place in FP as well.
[08:50:26] Eiam_: reduce & map are probably my two most invoked methods
[08:50:27] baweaver: remember you can return early
[08:50:29] Eiam_: (in ruby anyway)
[08:50:43] forcer: The more relevant question is usually which implementation is more readable.
[08:50:48] baweaver: I think Lazy is the only one that can't be done.
[08:50:53] Eiam_: mr_oh: there are plenty of ways to manage over commenting, IRC has implemented multiple.
[08:51:03] Eiam_: ops, voices, mutes, etc etc
[08:51:35] mr_oh: chatting in coderpad, I meant
[08:51:36] baweaver: most of the ops can be found easy enough from their hostmask
[08:51:47] baweaver: ruby/staff/nick
[08:52:09] Eiam_: mr_oh: same response. =) anyway, bedtime 2am
[08:52:17] baweaver: which can be seen on join or by a /whois nick
[08:52:33] baweaver: Eiam_: Cali?
[08:52:35] PlasmaStar: has joined #ruby
[08:52:58] mr_oh: speaking of the FP world... I have all of the current Elixer.tv videos for future learning. However, it might be a lonnng time learning ruby first
[08:52:59] baweaver: well, west coast at least.
[08:53:09] baweaver: Ruby will help
[08:53:19] baweaver: and that reduce exercise will make a lot of things make sense.
[08:53:39] baweaver: when going straight FP that is.
[08:53:55] baweaver: because reduce is effectively tail recursion.
[08:54:00] Musashi007: has joined #ruby
[08:54:23] mr_oh: I'm kind of excited about the reduce excercise. I'm sure I will stumble a lot, but oh well
[08:54:36] baweaver: So implementing all those functions leads to insights in recursion.
[08:55:24] hinbody: has joined #ruby
[08:59:08] redasus: has joined #ruby
[08:59:45] bkxd: has joined #ruby
[09:02:53] mr_oh: I owe you a coke
[09:03:18] baweaver: don't sweat it mate.
[09:03:35] baweaver: just pass it forward to the next person you see needing help
[09:04:14] ni291187: has joined #ruby
[09:04:24] mr_oh: I will do my best
[09:04:34] ni291187: has left #ruby: ()
[09:08:21] darkxploit: has joined #ruby
[09:09:36] kfpratt: has joined #ruby
[09:10:14] Zai00: has joined #ruby
[09:12:43] karioleez: has joined #ruby
[09:12:53] abyx: has joined #ruby
[09:14:05] dgncn: has joined #ruby
[09:14:37] Mon_Ouie: has joined #ruby
[09:14:46] weemsledeux: has joined #ruby
[09:15:02] User458764: has joined #ruby
[09:15:59] sandstrom: has joined #ruby
[09:16:45] futilegames: has joined #ruby
[09:17:35] krz: has joined #ruby
[09:22:09] lkba_: has joined #ruby
[09:22:51] blackmes1: has joined #ruby
[09:23:36] andywojo: has joined #ruby
[09:24:06] Musashi007: Guys, I have some ruby code that doesn’t seem to want to update from a database that I’m running. Would anyone be willing to look at it and offer some suggestions? https://gist.github.com/anonymous/054183723b927b9b2f302389391dab8b
[09:26:44] meal: has joined #ruby
[09:29:52] spider-mario: has joined #ruby
[09:30:37] d0nn1e: has joined #ruby
[09:34:34] SCHAAP137: has joined #ruby
[09:34:53] Macaveli: has joined #ruby
[09:36:09] skade: has joined #ruby
[09:37:05] skydiver: has joined #ruby
[09:43:38] hightower2: has joined #ruby
[09:46:53] Meow-J: has joined #ruby
[09:48:51] DoubleMalt: has joined #ruby
[09:49:43] dionysus69: has joined #ruby
[09:51:13] eljimmy: has joined #ruby
[09:51:34] zeroDivisible: has joined #ruby
[09:52:50] eljimbo: has joined #ruby
[09:53:33] blackmes1: has joined #ruby
[09:54:56] kirun: has joined #ruby
[09:56:01] tildes: Musashi007: can you show MixerOptions::Workouts?
[10:00:02] Musashi007: https://gist.github.com/anonymous/2b652df6fd15561b021e2e9f0825fd36
[10:04:02] tildes: Musashi007: I think normally you would use a controller to serve models to the view, rather than a module
[10:04:16] mekul: has joined #ruby
[10:04:34] tildes: So you update Workout table somehow, and then can't see the effect in the view?
[10:04:59] Musashi007: Using pgadmin3
[10:06:01] Musashi007: cute pgadmin is crashing atm lol
[10:06:22] tildes: can you show YogaModels::Workout?
[10:06:28] Musashi007: Well I’ll be
[10:06:38] Musashi007: So I made these changes about 4 hours ago and couldn’t figure it out
[10:06:43] Musashi007: I just reloaded it and it’s updated
[10:06:50] Musashi007: I apologize for wasting your time
[10:08:23] bkxd: has joined #ruby
[10:08:26] chagel: has joined #ruby
[10:09:42] Gasher: has joined #ruby
[10:10:25] kfpratt: has joined #ruby
[10:10:42] tildes: Musashi007: I think it's good you asked. what do you see here? http://pastie.org/private/ebveidgimr1wto2fri2unq
[10:11:07] tildes: (this could well explain what you saw earlier with your app)
[10:11:47] tildes: I any case, I would recommend using a Controller for serving the models to your views
[10:11:53] solocshaw: has joined #ruby
[10:12:06] Musashi007: I see mymodule::thing not getting updated to the current time?
[10:12:22] tildes: it's not just more rails, it's more crud, more standard in every way
[10:12:34] Musashi007: What do you mean?
[10:12:45] LoneHerm_: has joined #ruby
[10:12:50] tildes: Musashi007: I had to try it myself, because I haven't used module constants much. but indeed, it seems that once loaded, the constant doesn't reload
[10:13:13] skweek: has joined #ruby
[10:13:34] tildes: Musashi007: oh, I forgot it's not #rubyonrails. there you would use controllers, as per the model-view-controller thing
[10:13:38] Musashi007: Not sure if this is something I should fix
[10:13:41] PedramT: has joined #ruby
[10:13:43] tildes: so I don't really take a stand there
[10:14:06] tildes: Musashi007: what is your stack, as it is?
[10:14:31] Musashi007: Gonna -try- to answer that and say that it’s heroku with an amazon db..
[10:17:13] gh: has joined #ruby
[10:17:39] duckpuppy: has joined #ruby
[10:20:52] ruby[bot]: -bb Guest_98765!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.157.229.247$#ruby-banned
[10:22:34] neanderslob: has joined #ruby
[10:22:56] mtkd: has joined #ruby
[10:23:52] mdw: has joined #ruby
[10:24:02] Musashi007: @tildes thank you again
[10:24:12] m8: has joined #ruby
[10:24:26] baweaver: has joined #ruby
[10:25:27] G: has joined #ruby
[10:25:29] shafire: has joined #ruby
[10:25:40] shafire: does ruby have pipes or similar?
[10:26:28] apeiros: shafire: it has pipes in its syntax. I suspect that's not what you're asking for, so maybe you want to be more specific?
[10:28:00] madgen: has joined #ruby
[10:32:07] yxhuvud: apeiros: I'd guess he asks for what he would get as the first answer if he would google for it.
[10:32:21] shafire: yxhuvud: yes
[10:32:54] shafire: I am after chainable methods which ruby has when I remember correctly
[10:33:42] Chunlea_: has joined #ruby
[10:33:57] shafire: I am just thinking about the |> pipe operator in elixir if I could overload it in ruby with the same behaviour like in elixir
[10:37:45] dmr8: has joined #ruby
[10:38:38] User458764: has joined #ruby
[10:39:13] User458764: has joined #ruby
[10:40:49] symm-: has joined #ruby
[10:41:59] Musashi007: has joined #ruby
[10:42:19] skade: has joined #ruby
[10:44:01] sigurding: has joined #ruby
[10:49:23] Jackneill: has joined #ruby
[10:50:34] Lomex_: has joined #ruby
[10:51:07] tildes: has joined #ruby
[10:51:29] PedramT: has joined #ruby
[10:51:41] vikas027: has joined #ruby
[10:52:12] x0F: has joined #ruby
[10:54:23] Asher: has joined #ruby
[10:55:00] Musashi007: has joined #ruby
[10:57:07] darkf: has joined #ruby
[10:57:12] Asher: has joined #ruby
[10:57:36] binaryplease1: has joined #ruby
[11:00:49] User458764: has joined #ruby
[11:02:03] Zai00: has joined #ruby
[11:08:32] Suntzu: has joined #ruby
[11:09:42] Zai00: has joined #ruby
[11:11:09] kfpratt: has joined #ruby
[11:12:05] andywojo: has joined #ruby
[11:12:09] Xeago: has joined #ruby
[11:13:01] cisco: has joined #ruby
[11:14:00] PedramT_: has joined #ruby
[11:14:26] Xiti: has joined #ruby
[11:17:16] n008f4g_: has joined #ruby
[11:17:17] PedramT: has joined #ruby
[11:27:26] solocshaw1: has joined #ruby
[11:28:44] madgen: has joined #ruby
[11:29:26] lalalaaa: has joined #ruby
[11:30:08] lalalaaa: Hi! Anybody know why I can't ruby-install without certificates anymore? % ruby-install ruby 2.3.0 --no-check-certificate
[11:30:11] lalalaaa: ruby-install: unrecognized option --no-check-certificate
[11:31:32] CloCkWeRX: has joined #ruby
[11:42:34] rolha: has joined #ruby
[11:44:00] Asher: has joined #ruby
[11:47:52] bronson: has joined #ruby
[11:52:53] ruby[bot]: -bb Guest42536!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.157.134.254$#ruby-banned
[11:54:10] krz: has joined #ruby
[11:59:07] darkxploit: has joined #ruby
[12:01:34] Xeago: has joined #ruby
[12:01:56] darkxploit: has joined #ruby
[12:02:58] scepticulous: has joined #ruby
[12:04:44] darkxploit: has joined #ruby
[12:05:16] dling`: has joined #ruby
[12:05:16] StyXman: has joined #ruby
[12:06:34] djbkd: has joined #ruby
[12:07:34] darkxploit: has joined #ruby
[12:08:57] dling`: has joined #ruby
[12:12:03] kfpratt: has joined #ruby
[12:12:59] mdw: has joined #ruby
[12:13:49] StyXman: ah, drbrain, finally. someone in this channel pointed me to you as the go-to guy about extending rdoc. I found your rdoc-rake and I'm trying to use it as reference (is so far the more coplex extension I found), but it's rather difficult for me to read and understand it, as I'm rather new to Ruby: I came to it because we're using Chef. do you know of aguide or doc I could read abut it?
[12:15:19] StyXman: what I'm trying to do is documente chef repos in a way that makes more sense to this kind of ruby code
[12:17:25] TomyLobo: has joined #ruby
[12:17:57] shinnya: has joined #ruby
[12:18:26] duckpuppy: has joined #ruby
[12:18:43] djbkd: has joined #ruby
[12:20:03] Mon_Ouie: has joined #ruby
[12:22:36] freerobby: has joined #ruby
[12:23:15] Zai00: has joined #ruby
[12:25:06] tknz: has joined #ruby
[12:25:31] baweaver: has joined #ruby
[12:26:28] freerobby1: has joined #ruby
[12:29:16] User458764: has joined #ruby
[12:29:24] krz: has joined #ruby
[12:29:25] dmr8: has joined #ruby
[12:31:21] biberu: has joined #ruby
[12:35:14] adham128: has joined #ruby
[12:35:17] adham128: has left #ruby: ()
[12:35:20] downlwil: has joined #ruby
[12:35:20] roelof: has joined #ruby
[12:35:31] downlwil: How do i convert Ruby to python?
[12:36:05] apeiros: you read the code, then write python code
[12:36:20] roelof: How to solve this one : https://gist.github.com/rwobben/8d9ec5376ae3e3d1b45c2ce2105cb163
[12:36:49] apeiros: roelof: define a method named `reverse_word`?
[12:37:02] madgen: has joined #ruby
[12:37:46] roelof: apeiros: oke, but I have to use a block. and def reverse_word { |item| item.reverse } is not working
[12:38:05] AndChat643025: has joined #ruby
[12:38:18] apeiros: and what do you think, why is it not working?
[12:38:52] noService: has joined #ruby
[12:39:17] Mon_Ouie: has joined #ruby
[12:39:19] roelof: A function needs a parameter and you cannot do { ... } in a function ?
[12:39:49] RegulationD: has joined #ruby
[12:40:08] roelof: but I just learned that a block looks like { ..... }
[12:40:10] apeiros: the { … } is a parameter to a method. and you can define methods which do not require arguments.
[12:41:05] roelof: apeiros: sorry, still confused
[12:41:46] apeiros: you can't use { … } in a method *definition*. and `def reverse_word` is a method definition.
[12:41:55] apeiros: you do not need to declare that your method takes a block.
[12:42:02] apeiros: it's just `def reverse_word`
[12:42:09] apeiros: (+ method body, obv.)
[12:42:44] camilasan: has joined #ruby
[12:47:06] roelof: apeiros: oke, after some trying this seems to work : https://gist.github.com/rwobben/24e4b6f330aee08553953c307aac1521
[12:47:41] adaedra: maybe if you tell us what you're trying to do it would be easier to understand
[12:48:15] IrishGringo: has joined #ruby
[12:49:15] apeiros: roelof: this in all likeliness does not do what you think it does
[12:49:22] sandelius: has joined #ruby
[12:49:22] apeiros: despite it being seemingly working
[12:49:34] apeiros: but /me afk for now
[12:51:05] codecop: has joined #ruby
[12:52:44] roelof: apeiros: oke.. what do I wrong then, I use a block and reverse the word
[12:57:28] krobzaur: has joined #ruby
[12:59:12] roelof: adaedra: as a challenge I have to write a function which reverse a word but I need to use a block
[12:59:50] adaedra: you have to use a block where? As a parameter of your method, or in your method?
[13:01:43] mdw7: has joined #ruby
[13:01:46] ohcibi: has joined #ruby
[13:02:16] PedramT: has joined #ruby
[13:02:19] bry4n_: has joined #ruby
[13:03:02] mdw7_: has joined #ruby
[13:03:30] rolha: has joined #ruby
[13:03:35] roelof: adaedra: here is the spec file of the challenge ?
[13:03:55] andywojo: has joined #ruby
[13:04:46] roelof: adaedra: the challenge I try to solve
[13:04:55] roelof: the reverse is the first rspec part
[13:05:10] adaedra: where is your challenge?
[13:05:21] mdw___: has joined #ruby
[13:05:33] _stu_: has joined #ruby
[13:06:40] roelof: sorry I forget the link : https://github.com/zazenergy/Learn-Ruby/blob/master/05_silly_blocks/silly_blocks_spec.rb
[13:07:45] adaedra: ok, so you have to write a method that takes a block
[13:08:34] shinnya: has joined #ruby
[13:10:08] Ox0dea: has joined #ruby
[13:10:11] Xeago: has joined #ruby
[13:10:23] Ox0dea: All methods take a block. :P
[13:11:02] Ox0dea: And, but, well, the exercise seems like a better introduction to `yield` than Proc.
[13:11:45] adaedra: It clearly look that yield is to be used.
[13:11:48] roelof: yep, so I tried yield but then I see a message that the method reverse is missing
[13:11:58] adaedra: what did you try?
[13:12:12] roelof: yield , block.call
[13:12:30] roelof: bu then every time a message that reverse is missing :(
[13:12:34] adaedra: the complete file with all declarations that you run with your spec.
[13:12:44] kfpratt: has joined #ruby
[13:12:44] roelof: oke, moment
[13:13:41] roelof: adaedra: you mean this : https://gist.github.com/rwobben/1981289b4cf28e13cc5713b4535d8df7
[13:14:07] GodFather: has joined #ruby
[13:14:21] Ox0dea: roelof: What does `yield` do?
[13:15:08] roelof: as far as I understand as a beginner , yield is taking care of that the block is executed at that place
[13:15:36] PedramT: has joined #ruby
[13:16:01] manveru: roelof: you just don't need to take the &block argument in the yield case
[13:16:19] roelof: oke, I will delete it
[13:16:25] manveru: >> def foo; yield; end; foo{ :hi }
[13:16:27] ruby[bot]: manveru: # => :hi (https://eval.in/546983)
[13:16:35] adaedra: roelof: and with this file, what is the error you obtain?
[13:17:00] manveru: also call it 'reverse' if you mean 'reverse', not 'reverser'
[13:17:21] tildes: has joined #ruby
[13:19:00] roelof: oke, then I see this : https://gist.github.com/rwobben/047da3abe47917336d89eb61a9c0a7d1
[13:19:21] roelof: aha, I call the function with the same name
[13:19:34] Ox0dea: roelof: You don't need to write any blocks of your own for this exercise.
[13:19:45] adaedra: How do you test your exercise, roelof?
[13:20:07] roelof: with the rake command
[13:20:21] roelof: oke, I will delete the block
[13:20:33] jonathanwallace1: has joined #ruby
[13:21:52] roelof: oke, wen I do this : def reverser() yield end , I see rspec output that indicate that the word is not reversed :(
[13:22:11] daytime: has joined #ruby
[13:22:18] adaedra: right, because you give it the string as it is given to you
[13:22:28] diegoaguilar: has joined #ruby
[13:22:29] adaedra: now that you got the input to process, you have to process it
[13:22:47] roelof: oke, this works : def reverser() yield.reverse end
[13:22:56] Ox0dea: roelof: Take some time to understand why.
[13:23:17] jaruga_: has joined #ruby
[13:23:26] Ox0dea: Don't just plow on content with having gotten green by guesswork; no good will come of that.
[13:23:29] roelof: Learn ruby and ruby monk are sometimes very hard
[13:23:54] adaedra: Learning languages is sometimes hard.
[13:24:11] adaedra: You have to try to understand what is required from you.
[13:24:22] roelof: oke, yield is executing a given block , correct ?
[13:25:16] roelof: oke, and if I look at the spec file the block contents is only the word "hello" . right ?
[13:25:43] adaedra: what is a block for you?
[13:26:27] Ox0dea: roelof: That's right. And blocks, just like methods, evaluate to the last expression in their bodies (unless you explicitly return early).
[13:26:35] roelof: according to a definition a block is some code that belongs to each other
[13:27:04] adaedra: roelof: and using your words?
[13:27:05] roelof: so yield.reverse is just "hello".reverse
[13:27:17] PedramT: has joined #ruby
[13:27:32] roelof: a block is some code that for some reason can be placed on one place
[13:27:35] sigurding: has joined #ruby
[13:28:51] Ox0dea: roelof: https://eval.in/546987
[13:28:51] safe: has joined #ruby
[13:29:26] skydiver: has joined #ruby
[13:29:50] codecop: has joined #ruby
[13:29:52] Ox0dea: A block is a chunk of code with deferred (and potentially customized) execution.
[13:30:13] roelof: oke, so hello is the parameter of the block
[13:30:40] cisco: has joined #ruby
[13:30:59] cisco: has joined #ruby
[13:31:21] cisco: has joined #ruby
[13:31:44] cisco: has joined #ruby
[13:32:02] roelof: oke, I take a break and reread the chapters from ruby monk about blocks
[13:32:05] blackmes1: has joined #ruby
[13:32:07] cisco: has joined #ruby
[13:32:08] adaedra: !fixconn cisco
[13:32:28] adaedra: !fixcon cisco
[13:32:28] ruby[bot]: +bb cisco!*@*$#ruby-fix-your-connection *!*@138.36.2.4$#ruby-fix-your-connection
[13:33:36] roelof: all thanks for the help
[13:35:07] Zai00: has joined #ruby
[13:39:23] Ox0dea: This is a little weird, right? https://eval.in/546995
[13:40:15] chagel: has joined #ruby
[13:40:24] adaedra: interesting https://eval.in/546996
[13:40:53] cdg: has joined #ruby
[13:40:59] adaedra: you broke ruby again, it seems. Are you even sorry?
[13:41:02] Ox0dea: Hm? The ampersand is superfluous for #reduce.
[13:41:25] Ox0dea: But yeah, never mind; it's just that it's calling `0.succ(1)`.
[13:41:30] Ox0dea: I wish it wouldn't try to do that.
[13:41:32] bkxd: has joined #ruby
[13:41:48] adaedra: well, &: should do exactly as the block version at least, no?
[13:42:05] Ox0dea: Well, yeah, that was my understanding of what should happen.
[13:43:02] Ox0dea: But #reduce with a Symbol has to `public_send *args`, and thence the arity problem.
[13:43:24] makenoise: has joined #ruby
[13:43:26] karioleez: has joined #ruby
[13:44:14] Ox0dea: So it's getting "transformed" into `{ |size, foo| size.succ foo }`, but it'd be nice if it did some smart.
[13:44:54] ruby-lang275: has joined #ruby
[13:45:07] Ox0dea: Doesn't generalize well, I guess.
[13:45:22] freerobby: has joined #ruby
[13:45:52] Ox0dea: Good morning, ruby-lang275.
[13:46:04] sudoubuntu: has joined #ruby
[13:48:55] LoneHerm_: has joined #ruby
[13:50:36] Spami: has joined #ruby
[13:51:07] Begi: has joined #ruby
[13:55:32] quazimodo: has joined #ruby
[13:57:09] sdothum: has joined #ruby
[13:58:31] lalalaaa: has joined #ruby
[14:00:55] karioleez: has joined #ruby
[14:01:04] n008f4g_: has joined #ruby
[14:01:46] karioleez: has joined #ruby
[14:02:00] ItSANgo: has joined #ruby
[14:03:15] bry4n_: has joined #ruby
[14:04:37] halfamind: has joined #ruby
[14:06:15] manveru: it's kinda clear that reduce only takes binary methods
[14:09:09] workmad3: has joined #ruby
[14:10:42] mtkd: has joined #ruby
[14:11:14] average: has joined #ruby
[14:11:16] average: the writer lock: http://i.imgur.com/9TNI5zT.jpg ; the reader lock: http://i.imgur.com/zORWzNw.jpg ;
[14:11:59] x0F: has joined #ruby
[14:12:29] Polysics: has joined #ruby
[14:13:07] Ox0dea: That doesn't look anything like George R. R. Martin.
[14:13:21] sudoubuntu: has joined #ruby
[14:13:42] kfpratt: has joined #ruby
[14:15:09] Xeago: has joined #ruby
[14:16:34] average: has left #ruby: ()
[14:18:44] Aviio: has joined #ruby
[14:19:10] duckpuppy: has joined #ruby
[14:20:43] bitri: has joined #ruby
[14:23:24] PedramT: has joined #ruby
[14:27:21] karioleez: has joined #ruby
[14:27:43] sigurding: has joined #ruby
[14:28:18] krobzaur: has joined #ruby
[14:32:34] kfpratt: has joined #ruby
[14:34:51] noService: has joined #ruby
[14:41:19] bitri: has joined #ruby
[14:42:12] bitri: has joined #ruby
[14:45:34] karioleez: has joined #ruby
[14:46:26] crdpink: has joined #ruby
[14:47:52] halfamind: has joined #ruby
[14:49:11] nhhc: has joined #ruby
[14:49:15] halfamind1: has joined #ruby
[14:49:33] ht__: has joined #ruby
[14:51:51] andywojo: has joined #ruby
[14:54:34] halfamind: has joined #ruby
[14:55:14] n1colas: has joined #ruby
[14:59:12] Xeago: has joined #ruby
[15:00:48] mtkd: has joined #ruby
[15:01:21] petrichorx: has joined #ruby
[15:01:36] Rubie: has joined #ruby
[15:03:49] karioleez: has joined #ruby
[15:05:21] houhoulis: has joined #ruby
[15:06:38] halfamind1: has joined #ruby
[15:08:02] halfamind: has joined #ruby
[15:08:47] halfamind1: has joined #ruby
[15:09:17] halfamind: has joined #ruby
[15:10:38] hogetaro: has joined #ruby
[15:11:21] halfamind1: has joined #ruby
[15:12:27] codecop: has joined #ruby
[15:12:36] Djole: has joined #ruby
[15:13:14] stardiviner: has joined #ruby
[15:13:37] karioleez: has joined #ruby
[15:13:45] User458764: has joined #ruby
[15:13:59] Polysics: has joined #ruby
[15:16:19] dvinciguerra: has joined #ruby
[15:16:40] Thomas-0725: has joined #ruby
[15:22:05] karioleez: has joined #ruby
[15:22:55] mwlang: how do I take an array of hashes down to one hash? i.e. [{foo: 1}, {bar: 2}] => {foo: 1, bar: 2}
[15:23:32] araujo: has joined #ruby
[15:23:43] apeiros: .inject(:merge)
[15:24:40] mwlang: apeiros: thanks. I knew there had to be an easier way than I was trying.
[15:26:13] tildes: has joined #ruby
[15:31:42] hulk: has joined #ruby
[15:32:25] matt_d: hi gnufied
[15:35:51] PedramT: has joined #ruby
[15:36:07] solocshaw: has joined #ruby
[15:37:27] bijan: has joined #ruby
[15:40:10] lalalaaa: has joined #ruby
[15:40:15] karioleez: has joined #ruby
[15:42:40] bkxd: has joined #ruby
[15:42:50] heinrich5991: has joined #ruby
[15:45:10] zast: has joined #ruby
[15:48:31] rehat: has joined #ruby
[15:49:22] karioleez: has joined #ruby
[15:50:02] bitri: has joined #ruby
[15:51:44] vikas027: has joined #ruby
[15:51:58] vikas027: has left #ruby: ()
[15:54:35] magikid: has joined #ruby
[15:54:47] madgen: has joined #ruby
[15:55:53] workmad3_: has joined #ruby
[15:57:13] rkazak: has joined #ruby
[15:59:46] Polysics_: has joined #ruby
[16:00:58] workmad3: has joined #ruby
[16:01:30] |Frank|: has joined #ruby
[16:04:00] n008f4g_: has joined #ruby
[16:04:02] bry4n_: has joined #ruby
[16:04:23] |Frank|: has left #ruby: ()
[16:04:39] halfamind: has joined #ruby
[16:07:32] karioleez: has joined #ruby
[16:07:40] shredding: has joined #ruby
[16:07:43] lomex: has joined #ruby
[16:12:50] karioleez: has joined #ruby
[16:16:27] benlieb: has joined #ruby
[16:18:22] Aviio: has joined #ruby
[16:19:59] duckpuppy: has joined #ruby
[16:21:47] hxegon: has joined #ruby
[16:23:21] havenwood: good mornin'
[16:26:13] noService: has joined #ruby
[16:26:19] htmldrum: has joined #ruby
[16:27:21] trinaldi: has joined #ruby
[16:27:48] mdw: has joined #ruby
[16:28:26] baweaver: has joined #ruby
[16:30:05] mdw: has joined #ruby
[16:31:54] A124: has joined #ruby
[16:31:59] vikaton: has joined #ruby
[16:32:52] benlieb: has joined #ruby
[16:33:15] moei: has joined #ruby
[16:36:09] sigurding: has joined #ruby
[16:36:12] SenpaiSilver: has joined #ruby
[16:36:16] YP-QMUL-W: has joined #ruby
[16:37:01] hightower3: has joined #ruby
[16:38:13] chouhoulis: has joined #ruby
[16:39:17] Aviio: has joined #ruby
[16:39:23] DrVitusWerdegast: has joined #ruby
[16:39:52] davedev24: has joined #ruby
[16:41:25] DrVitusWerdegast: has left #ruby: ("Leaving")
[16:42:58] andywojo: has joined #ruby
[16:44:42] codecop: has joined #ruby
[16:47:12] mdw: has joined #ruby
[16:47:22] codecop: has joined #ruby
[16:48:54] mdw: has joined #ruby
[16:52:42] YP-QMUL-W: has joined #ruby
[16:54:06] ericlee: has joined #ruby
[16:54:48] bewilled: has joined #ruby
[16:56:00] parduse: has joined #ruby
[16:56:32] bewilled: Hey... After installing RVM in a terminal session and installing ruby-head I get version 2.4.0dev. however when popping out a new terminal windows ruby -version shows 2.3.0p0 why does this happen?
[16:58:18] minimalism: has joined #ruby
[16:58:40] Roa: has joined #ruby
[16:59:55] preyalone: has joined #ruby
[17:00:10] sepp2k1: has joined #ruby
[17:01:04] chagel: has joined #ruby
[17:01:26] Ox0dea: bewilled: It happens because RVM doesn't love you, but here's how to pretend it doesn't hurt: https://rvm.io/rubies/default
[17:02:13] LoneHerm_: has joined #ruby
[17:02:20] bewilled: Ox0dea, lol, now there's love all of the sudden
[17:02:30] sudoubuntu: has joined #ruby
[17:03:07] moei: has joined #ruby
[17:03:19] DoubleMalt: has joined #ruby
[17:03:28] halfamind: has joined #ruby
[17:03:38] n1colas: has joined #ruby
[17:04:34] bijan: has joined #ruby
[17:09:07] weemsledeux: has joined #ruby
[17:17:26] elifoster: has joined #ruby
[17:19:57] Zai00: has joined #ruby
[17:20:33] Blaguvest: has joined #ruby
[17:21:33] infernix: has joined #ruby
[17:21:44] Azure|dc: has joined #ruby
[17:25:10] last_staff: has joined #ruby
[17:25:38] dasher00: has joined #ruby
[17:27:59] Guest58: has joined #ruby
[17:28:47] decoponio: has joined #ruby
[17:29:16] Polysics: has joined #ruby
[17:31:10] mrgrieves: has joined #ruby
[17:32:24] smathy: has joined #ruby
[17:32:44] sarbs: has joined #ruby
[17:32:58] LoneHerm_: has joined #ruby
[17:33:09] User458764: has joined #ruby
[17:34:32] zacts: has joined #ruby
[17:34:54] bry4n_: has joined #ruby
[17:35:12] baweaver: has joined #ruby
[17:37:37] Dimik: has joined #ruby
[17:43:28] bkxd: has joined #ruby
[17:43:33] Mia: has joined #ruby
[17:43:34] Mia: has joined #ruby
[17:43:35] bronson_: has joined #ruby
[17:43:49] rehat: has joined #ruby
[17:43:51] jtoy: has joined #ruby
[17:44:28] morfin: has joined #ruby
[17:44:30] morfin: has left #ruby: ()
[17:44:50] Eiam_: has joined #ruby
[17:49:33] car: has joined #ruby
[17:52:02] mdw: has joined #ruby
[17:53:02] c0x: has joined #ruby
[17:53:03] mdw7: has joined #ruby
[17:53:16] Limix: has joined #ruby
[17:53:56] karioleez: has joined #ruby
[17:57:16] demasy-lang315: has joined #ruby
[17:58:37] mistermocha: has joined #ruby
[17:58:42] statelesscode: has joined #ruby
[17:59:17] mistermocha: has joined #ruby
[17:59:29] shellie_: has joined #ruby
[18:02:20] n008f4g_: has joined #ruby
[18:02:24] duderonomy: has joined #ruby
[18:04:21] amclain: has joined #ruby
[18:05:18] symm-: has joined #ruby
[18:05:47] zeroDivisible: has joined #ruby
[18:06:02] fedexo: has joined #ruby
[18:08:01] mdw: has joined #ruby
[18:08:57] Aviio: has joined #ruby
[18:09:25] weemsledeux: has joined #ruby
[18:09:51] Unicorn|: has joined #ruby
[18:10:12] djbkd: has joined #ruby
[18:10:36] joonty: has joined #ruby
[18:11:24] bb010g: has joined #ruby
[18:14:08] tAn: has joined #ruby
[18:16:04] tAn: has joined #ruby
[18:16:05] Cohedrin: has joined #ruby
[18:17:23] Cohedrin: has joined #ruby
[18:19:08] User458764: has joined #ruby
[18:19:17] skade: has joined #ruby
[18:20:40] duckpuppy: has joined #ruby
[18:22:16] skade: has joined #ruby
[18:24:52] youch: has joined #ruby
[18:25:20] ssiris: has joined #ruby
[18:25:27] matp: has joined #ruby
[18:25:51] onur: has joined #ruby
[18:26:02] skade: has joined #ruby
[18:26:19] weemsledeux: has joined #ruby
[18:26:34] onur: Hi guys. I have ruby2.3 and ruby2.2 installed. I need to use ruby2.2 for bundle install but it keeps telling me I have ruby 2.3. How can I use ruby2.2 with bundle install
[18:27:29] adaedra: how did you install those?
[18:27:44] onur: with my os package manager
[18:28:28] mrgrieves: has joined #ruby
[18:28:53] adaedra: you need to switch between those two versions often?
[18:29:09] onur: not really
[18:29:22] BigDog: has joined #ruby
[18:29:37] adaedra: I think you can use the alternatives system to change between ruby versions in debian
[18:29:44] adaedra: Otherwise, take a look at chruby
[18:29:45] Es0teric: has joined #ruby
[18:30:57] shevy: good old debian
[18:31:30] andywojo: has joined #ruby
[18:32:12] Zai00: has joined #ruby
[18:32:25] makenoise: has joined #ruby
[18:33:50] onur: well lets see I managed to set default ruby to 2.2.4 with update-alternatives
[18:34:13] Allfader: has joined #ruby
[18:36:02] Allfader: has left #ruby: ()
[18:36:21] vqrs: has joined #ruby
[18:38:08] solocshaw: has joined #ruby
[18:42:21] edwinvdgraaf: has joined #ruby
[18:46:05] PedramT: has joined #ruby
[18:46:14] cpup: has joined #ruby
[18:46:18] edwinvdgraaf: has joined #ruby
[18:46:38] duderonomy: has joined #ruby
[18:49:58] Trynemjoel: has joined #ruby
[18:50:49] madgen: has joined #ruby
[18:50:56] skade: has joined #ruby
[18:55:37] Eiam_: has joined #ruby
[18:56:25] karioleez: has joined #ruby
[18:58:21] SenpaiSilver: has joined #ruby
[18:59:37] goglosh: has joined #ruby
[19:01:22] Cohedrin_: has joined #ruby
[19:01:40] dionysus69: has joined #ruby
[19:02:07] greenbigfrog: has joined #ruby
[19:02:34] greenbigfrog: anyone here who can help me with a pg issue?
[19:03:00] Eiam_: baweaver: yes, CA
[19:03:34] ur5us: has joined #ruby
[19:06:29] PlasmaStar: has joined #ruby
[19:07:44] yqt: has joined #ruby
[19:09:49] lalalaaa: Hi! Anybody know why I can't ruby-install without certificates anymore? % ruby-install ruby 2.3.0 --no-check-certificate
[19:09:53] lalalaaa: ruby-install: unrecognized option --no-check-certificate
[19:14:46] Spami: has joined #ruby
[19:15:36] smathy: greenbigfrog, we won't know until you ask.
[19:16:20] blackmes1: has joined #ruby
[19:17:48] greenbigfrog: has left #ruby: ()
[19:18:13] sudoubuntu: has joined #ruby
[19:24:02] shellie_: I have a function, that accepts an integer and a string flag at the end, essentially it's either 'r' or 'w' (read/write) - what's the best way to represent this? if I name the variable 'flags', it is not very obvious what kind of flag it takes
[19:24:25] bitri_: has joined #ruby
[19:24:43] PedramT: has joined #ruby
[19:25:32] havenwood: lalalaaa: Are you sure you don't want to check the cert? You have a ca-certificates package installed?
[19:26:37] banister: has joined #ruby
[19:26:49] lacrosse: has joined #ruby
[19:26:58] havenwood: lalalaaa: It's probably worth checking the cert so you don't get MITMed but an easy way to use http instead of https is: ruby-install --url http://cache.ruby-lang.org/pub/ruby --latest ruby
[19:27:34] havenwood: lalalaaa: Check those certs! :)
[19:28:35] Ox0dea: shellie_: `mode` is a little better there.
[19:34:10] stardiviner: has joined #ruby
[19:35:33] bitri: has joined #ruby
[19:35:35] bry4n_: has joined #ruby
[19:36:04] shmuli: has joined #ruby
[19:39:20] tristanp: has joined #ruby
[19:40:09] GG: has joined #ruby
[19:41:30] n_blownapart: has joined #ruby
[19:41:36] Cohedrin: has joined #ruby
[19:42:35] Madplatypus: has joined #ruby
[19:43:38] Suntzu: has joined #ruby
[19:44:20] bkxd: has joined #ruby
[19:44:46] ericlee: has joined #ruby
[19:45:58] Zai00: has joined #ruby
[19:46:31] e4xit: has joined #ruby
[19:51:15] goglosh: is there any embodiment of a type system in ruby?
[19:51:27] goglosh: like those in the ML family?
[19:53:00] havenwood: goglosh: See dry-types: http://dry-rb.org
[19:57:25] bollullera: has joined #ruby
[20:01:51] Devalo: has joined #ruby
[20:02:11] mdw: has joined #ruby
[20:02:56] mdw: has joined #ruby
[20:03:39] alexherbo2: has joined #ruby
[20:04:18] nando293921: has joined #ruby
[20:05:18] Aviio: has joined #ruby
[20:10:36] chagel: has joined #ruby
[20:11:11] PedramT: has joined #ruby
[20:11:44] n_blownapart: has joined #ruby
[20:14:33] RegulationD: has joined #ruby
[20:15:35] kith: has joined #ruby
[20:15:48] LoneHerm_: has joined #ruby
[20:16:57] shmuli: has joined #ruby
[20:17:37] rehat: has joined #ruby
[20:21:27] duckpuppy: has joined #ruby
[20:22:11] aibot: has joined #ruby
[20:22:25] brentw: has joined #ruby
[20:22:41] andywojo: has joined #ruby
[20:23:29] Limix: has joined #ruby
[20:25:54] Limix: has joined #ruby
[20:31:35] PedramT: has joined #ruby
[20:32:04] _stu_: has joined #ruby
[20:33:45] rkazak: has joined #ruby
[20:36:14] bry4n_: has joined #ruby
[20:37:59] bitri: has joined #ruby
[20:42:25] Spami: has joined #ruby
[20:44:18] brentw: has joined #ruby
[20:45:58] ramfjord: has joined #ruby
[20:46:41] darix: havenwood: the next version of "facets"?
[20:47:30] baweaver: has joined #ruby
[20:47:50] weemsledeux: has joined #ruby
[20:47:57] shmuli: has joined #ruby
[20:48:27] aeterne: has joined #ruby
[20:48:35] brentw: anybody able to help w/ rbenv/ruby-build on arch? keeps failing w/ ruby-build
[20:54:21] sigurding: has joined #ruby
[20:55:59] adaedra: what's your problem?
[20:56:08] futilegames: has joined #ruby
[20:56:18] futilegames: has left #ruby: ()
[20:56:39] brentw: i'm trying to rbenv install 2.1.2 and keep getting the following error http://hastebin.com/uwapijisuv.coffee
[20:57:56] adaedra: You may want to include the full log indicated in your output.
[20:59:22] karioleez: has joined #ruby
[20:59:42] chridal: has joined #ruby
[21:01:24] lalalaaa: brent_: i thought everybody'd ditched rbenv/rvm in favor of ruby-install and chruby?
[21:01:39] lalalaaa: brent_: also i thought everybody'd ditched linux for openbsd/freebsd?
[21:01:46] lalalaaa: im confused
[21:01:51] Zai00: has joined #ruby
[21:01:52] lalalaaa: ACTION checks himself in the mirror
[21:02:03] brentw: quite possibly
[21:02:16] brentw: i was instructed to use rbenv and ruby-install
[21:02:29] brentw: not trying to get into openbsd right now
[21:02:48] adaedra: brent_: seen the full log?
[21:04:17] brentw: probably dumb question, how do i get the log you're askign about?
[21:04:34] adaedra: It's mentioned in the trace you've pasted.
[21:04:35] brentw: i did script screen.log and the log is the same as what i put in hastebin
[21:05:34] shmuli: has joined #ruby
[21:05:58] ecksit: has joined #ruby
[21:06:31] brentw: http://hastebin.com/abuqitozah.pas
[21:06:35] pawnbox: has joined #ruby
[21:06:39] lvn: has joined #ruby
[21:07:18] Begi1: has joined #ruby
[21:08:01] abyx: has joined #ruby
[21:08:16] adaedra: Do you have openssl correctly installed, with development package if applicable?
[21:09:13] s00pcan: has joined #ruby
[21:09:16] brentw: my package manager shows i have lib32-openssl and openssl installed
[21:09:42] adaedra: is there an openssl-devel package available?
[21:09:56] edwinvdgraaf: has joined #ruby
[21:10:27] chouhoulis: has joined #ruby
[21:10:37] stardiviner: has joined #ruby
[21:11:12] Aviio: has joined #ruby
[21:12:25] adaedra: mh, Arch-based, should be in the same package
[21:12:41] brentw: not seeing a separate package for openssl-devel
[21:15:01] adaedra: brent_: https://github.com/rbenv/ruby-build/wiki#openssl-sslv3_method-undeclared-error
[21:15:10] mdw: has joined #ruby
[21:16:02] brentw: give it a shot, but i need 2.1.2
[21:16:08] mdw: has joined #ruby
[21:16:19] brentw: i also found this https://github.com/hashbangcode/vlad/issues/295#issuecomment-152778244
[21:17:21] Ox0dea: brent_: adaedra's link is the one you're after.
[21:17:23] adaedra: that's for rvm though
[21:17:32] adaedra: good evening Ox0dea
[21:17:39] Ox0dea: Hi, adaedra.
[21:17:58] brentw: looks like theres nothing version specific in the script, so maybe i can just do the same command w/ 2.1.2
[21:19:17] Ox0dea: brent_: Aye, the patch cleanly applies all the way back to 1.9.
[21:19:24] The_Phoenix: has joined #ruby
[21:19:32] Ox0dea: And all the way up to trunk, for what that's worth.
[21:19:40] brentw: whats the trunk?
[21:19:59] Ox0dea: The version of Ruby "released" today.
[21:20:15] darix: brent_: you want at least 2.1.4 ... if i recall correctly .3 and 4. were security releases
[21:20:27] marr: has joined #ruby
[21:20:33] Ox0dea: brent_: Why 2.1?
[21:20:53] brentw: it's what the excercise instructed
[21:21:14] darix: brent_: that is silly
[21:21:22] adaedra: yeah, go 2.1.9 then
[21:21:26] nano-: has joined #ruby
[21:21:32] darix: i would just use the latest available
[21:21:45] Ox0dea: Shouldn't have to say that to an Archer. :/
[21:21:51] Ox0dea: brent_ pls
[21:22:00] darix: when did 2.1.9 happen
[21:22:08] adaedra: A long time ago
[21:22:14] darix: and 2.1.10 is out
[21:22:14] adaedra: In a galax... er, wrong story
[21:22:18] darix: someone update topic
[21:22:24] darix: https://www.ruby-lang.org/en/news/2016/04/01/ruby-2-1-10-released/
[21:22:35] darix: ah just a test
[21:22:35] brentw: adaedra thanks for the help, that did get it to install
[21:23:01] brentw: do you see significant issues not using the version or ruby they mentioned?
[21:23:36] adaedra: darix: downloads page states 2.1.9 is the latest, and iirc we had it here for some time then removed from the topic
[21:24:38] darix: adaedra: both releases are like 2-3 days old :p
[21:24:47] n_blownapart: has joined #ruby
[21:24:53] adaedra: yeah, saw that.
[21:25:09] shevy: we need a 2.3.1!
[21:25:13] brentw: i'll just go w/ 2.3 for now an dhopefully not run into issues
[21:25:25] adaedra: We played a bit with the topic on 1/4.
[21:25:33] shevy: 1/4? 0.25?
[21:25:42] adaedra: 2016-04-01
[21:25:47] Trynemjoel: has joined #ruby
[21:26:32] brentw: i was struggling the last couple days Ox0dea, and you were no where to be found
[21:26:45] Ox0dea: brent_: That doesn't mean I don't love you.
[21:27:08] adaedra: Well, they're not the only one knowing Ruby here :)
[21:27:11] brentw: lol. i was dreaminga bout my problem
[21:27:20] shevy: better than to dream about Ox0dea!
[21:27:36] brentw: indeed, i did wake up and realize what 1 bug was
[21:27:49] Ox0dea: brent_: Oh, hey, this is a slightly better patch than the one rbenv recommends: https://github.com/ruby/ruby/commit/801e1f.diff
[21:28:05] Ox0dea: Unlikely to bite you at this stage of your journey, I suppose.
[21:28:52] brentw: what's the difference between the 2?
[21:29:32] Ox0dea: You'll want to get comfortable with reading patches. :)
[21:29:52] Ox0dea: Well, diffs, at least.
[21:30:05] bkxd: has joined #ruby
[21:31:16] darix: adaedra: you just sticked to 2.1.9 because of the 2.1.10 potentially breaking things?
[21:31:40] adaedra: it's stated "not intended for production"
[21:31:55] adaedra: let me find back, I'm almost sure we've already discussed that here
[21:32:00] Guest52: has joined #ruby
[21:32:34] Ox0dea: The difference between 2.1.9 and 2.1.10: https://github.com/ruby/ruby/commit/f0060b
[21:32:52] stevenxl_: has joined #ruby
[21:33:13] adaedra: mh, can't find it back, my memory may be failing
[21:33:26] adaedra: what do you think, apeiros? Is 2.1.10 worth topicying?
[21:33:51] apeiros: somebody doubted recently that 2.1 should still be in topic. I missed the argument, though
[21:34:08] adaedra: I forgot the logs didn't like emoji
[21:34:11] apeiros: if it's not EOL, I think it should be in the topic
[21:34:16] Polysics: has joined #ruby
[21:34:58] robbyoconnor: has joined #ruby
[21:35:00] adaedra: let me check again
[21:35:11] darix: it is in the "security updates only" mode
[21:36:22] pwnd_nsfw: has joined #ruby
[21:36:41] n008f4g_: has joined #ruby
[21:36:44] adaedra: ./2016-04-01.log:[22:05:33] *** havenwood changes topic to 'Ruby 3.0 release announcement: https://goo.gl/SsAhv 🎉 || Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/'
[21:36:50] lkba: has joined #ruby
[21:36:57] Ox0dea: I don't have who undid it.
[21:37:00] Polysics_: has joined #ruby
[21:37:02] Ox0dea: But they should feel bad.
[21:37:04] Cohedrin_: has joined #ruby
[21:38:42] adaedra: havenwood didn't want to keep it and restored 2.1.9
[21:38:49] darix: 2016-04-02.log:04:00:22 -!- havenwood changed the topic
[21:39:26] adaedra: I'll let that to havenwood's decision for now.
[21:39:37] robbyoconnor: has joined #ruby
[21:40:11] adaedra: And on these words, good night.
[21:41:17] baweaver: has joined #ruby
[21:42:20] shmuli: has joined #ruby
[21:42:39] youch: has joined #ruby
[21:43:30] davedev24: has joined #ruby
[21:43:44] lrkr: has joined #ruby
[21:44:29] brentw: thanks again adaedra!
[21:46:23] ecksit: has joined #ruby
[21:51:13] tadas-uh-oh: has joined #ruby
[21:51:57] mtkd: has joined #ruby
[21:52:41] Suntzu: has joined #ruby
[21:56:02] pawnbox: has joined #ruby
[21:59:19] Limix: has joined #ruby
[22:03:12] diegoviola: has joined #ruby
[22:08:16] Cohedrin: has joined #ruby
[22:08:40] sandstrom: has joined #ruby
[22:12:42] dc4: has joined #ruby
[22:13:39] andywojo: has joined #ruby
[22:14:53] bry4n_: has joined #ruby
[22:17:04] GodFather: has joined #ruby
[22:17:26] davedev24: has joined #ruby
[22:19:56] jottr: has joined #ruby
[22:22:11] yfeldblum: has joined #ruby
[22:22:14] duckpuppy: has joined #ruby
[22:25:07] halfamind: has joined #ruby
[22:25:57] pawnbox: has joined #ruby
[22:25:57] n008f4g_: has joined #ruby
[22:28:11] smathy: Another constant surprise: https://gist.github.com/smathy/555432f9873ec4e3ff3e56862c75f7af
[22:29:54] ecksit: has joined #ruby
[22:33:20] freerobby: has joined #ruby
[22:33:45] darkf: has joined #ruby
[22:34:21] vdamewood: has joined #ruby
[22:37:41] Polysics: has joined #ruby
[22:38:49] zenlot6: has joined #ruby
[22:42:59] Ox0dea: smathy: Grader::Cell is resolving to User::Cell.
[22:43:29] smathy: Ox0dea, yep, easy to fix, just another surprise.
[22:43:40] Ox0dea: smathy: You'd want :: to be right-associative?
[22:48:33] smathy: I know it can't be like that, and I'm not sure what I want, maybe a warning.
[22:49:28] Ox0dea: Warning: constant resolution is behaving appropriately. :P
[22:50:03] smathy: ...I feel like I want constant lookup to NOT go up inheritance trees, but I'm sure there are times that I'm just not thinking of right now where I really DO want that.
[22:50:29] smathy: Maybe I just want a warning if I use a leading ::
[22:51:00] d0nn1e: has joined #ruby
[22:53:17] dvinciguerra: has joined #ruby
[22:54:15] axisys: has joined #ruby
[22:54:20] statelesscode: has joined #ruby
[22:54:52] SHyx0rmZ: has joined #ruby
[22:55:22] dvinciguerra_: has joined #ruby
[22:55:59] pawnbox: has joined #ruby
[23:02:34] kam270: has joined #ruby
[23:06:43] nando293921: has joined #ruby
[23:06:44] brentw: Ox0dea, do you use linux?
[23:06:46] noService: has joined #ruby
[23:06:51] Ox0dea: brent_: I use Arch.
[23:07:53] mekul: has joined #ruby
[23:08:44] brentw: hopefully
[23:09:23] brentw: do you have any experience w/ postgresql?
[23:09:37] mekul: has joined #ruby
[23:09:55] lalalaaa: has joined #ruby
[23:10:19] Ox0dea: I know how to fire it up and ask it simple questions.
[23:10:49] Ox0dea: You can do all sorts of nifty things with its CLI, but I never really dug into that aspect.
[23:11:25] mekul: has joined #ruby
[23:11:55] brentw: i think i'm having trouble setting it up
[23:12:28] brentw: i installed that long w/ the libpqxx package
[23:13:34] Zai00: has joined #ruby
[23:13:55] brentw: i was following these steps http://hastebin.com/lohoxemoqo.hs but under my usr/lib/postgresql/ there is no 9.1 directory, only a pgxs directory
[23:15:25] Ox0dea: brent_: Why this libpqxx thing?
[23:16:05] Ox0dea: In any case, the Arch Wiki is top-notch and written for you with love. :P
[23:16:58] edwinvdgraaf: has joined #ruby
[23:17:43] brentw: the exercise asked to aslo isntall libpq-devel, which looks like libpqxx is the equivalent for arch
[23:18:09] havenwood: Ox0dea: Since it's "not intended for production use" I don't feel bad. Well, I guess I bumped it initially so I can feel bad either way. :)
[23:18:44] havenwood: Doesn't seem it belongs amongst stable versions at this point, at least with that release caveat.
[23:19:13] Inside: has joined #ruby
[23:19:13] Inside: has joined #ruby
[23:19:39] halfamind: has joined #ruby
[23:21:51] havenwood: I defer to this as the canonical truth: https://github.com/postmodern/ruby-versions/blob/master/ruby/stable.txt
[23:21:58] stardiviner: has joined #ruby
[23:22:09] Ropeney: has joined #ruby
[23:24:10] Paradox: has joined #ruby
[23:25:19] halfamind1: has joined #ruby
[23:29:58] User458764: has joined #ruby
[23:30:57] bkxd: has joined #ruby
[23:32:22] ecksit: has joined #ruby
[23:33:48] halfamind: has joined #ruby
[23:34:34] htmldrum: has joined #ruby
[23:37:22] pawnbox: has joined #ruby
[23:37:48] Nawn: has joined #ruby
[23:39:11] vdamewood: has joined #ruby
[23:40:56] halfamind: has joined #ruby
[23:47:13] pleiosaur: what's that trick where I can write strings without needing to quote them?
[23:48:13] havenwood: pleiosaur: Thinking of something like %|| or %[], you can pick between a variety of delimiters
[23:48:48] pleiosaur: havenwood: I remember seeing a trick from long ago where you didn't need to quote them with any delimiters at all
[23:49:01] pleiosaur: I don't want to actually do this, I just want to remember how it was done :)
[23:49:20] diegoaguilar: has joined #ruby
[23:49:30] shellie_: I have 2 objects in different files and in one of the objects, I have some functionality I want shared between both objects. What's the best way to extend an object with another object (defined in separate files)?
[23:49:31] Nawn: Like an Array? I know that's %w(String1 String2 String3)
[23:49:34] CloCkWeRX: has joined #ruby
[23:49:43] havenwood: pleiosaur: http://docs.ruby-lang.org/en/2.3.0/syntax/literals_rdoc.html#label-Strings
[23:50:19] Ox0dea: pleiosaur: I think you're thinking of #method_missing.
[23:50:21] havenwood: pleiosaur: Check those String literal docs ^ and the Here Documents right below it.
[23:50:48] Nawn: Well, the way I typically do it, is just wrap the code in a Module
[23:50:54] Nawn: and then include that module in both classes?
[23:51:19] Nawn: either that, or maybe make the functionalities public Class Methods?
[23:51:25] Ox0dea: >> def method_missing m; m.to_s; end; foo + bar + baz # pleiosaur
[23:51:27] ruby[bot]: Ox0dea: # => "foobarbaz" (https://eval.in/547077)
[23:51:34] pleiosaur: havenwood Ox0dea: found it, 0:43 at https://www.destroyallsoftware.com/talks/wat
[23:51:41] Ox0dea: Yep, that'd be the one.
[23:51:48] Nawn: shellie_?
[23:52:16] th0m: has joined #ruby
[23:52:40] shellie_: Nawn: ok, let me scrible an example and pastebin it
[23:53:37] SenpaiSilver: has joined #ruby
[23:55:03] shellie_: http://paste.ubuntu.com/15605796/
[23:56:03] shellie_: I'd like to be able to call rctype2.some_shared_func from rctype1
[23:56:07] Ox0dea: shellie_: That shared functionality can go directly on an enclosing Module.
[23:56:09] shellie_: what's the best way for me to do this?
[23:56:31] shellie_: Ox0dea: like how?
[23:57:19] shellie_: I'm relatively new to ruby, so I can't follow your statement
[23:57:42] Ox0dea: shellie_: In this particular case, you'd make it a "class method" on ServerSpec::Type.
[23:57:58] uglybandersnatch: has joined #ruby
[23:58:32] shellie_: so does the other file then inherit/see it?
[23:58:51] ruby[bot]: Why don't you try it and see for yourself?
[23:59:25] Aviio: has joined #ruby
[23:59:51] shellie_: maybe I should make my own module in between type and my object, so that I don't polute type's namespace
[23:59:59] shellie_: would this make sense?