« Back to channel list

#ruby - 24 October 2017

« Back 1 day Forward 1 day »
[00:00:46] hutch34: has joined #ruby
[00:01:32] Devalo: has joined #ruby
[00:01:33] eckhardt: has joined #ruby
[00:02:51] ForeignBiscuit: has joined #ruby
[00:04:03] raynold: ahh it's a wonderful day
[00:04:12] cajone: has joined #ruby
[00:04:54] eckhardt: has joined #ruby
[00:05:42] zenspider: no it isn't
[00:06:39] Ropeney: has joined #ruby
[00:06:50] zenspider: matthewd: I disagree with your advice to not test private methods. Sometimes you really need to. I suggest making them public in the test file so you don't need send
[00:08:13] jphase: has joined #ruby
[00:09:44] jphase_: has joined #ruby
[00:12:42] jphase: has joined #ruby
[00:12:47] Technodrome: has joined #ruby
[00:13:42] Silthias1: has joined #ruby
[00:16:29] Rodya_: has joined #ruby
[00:18:11] oetjenj: has joined #ruby
[00:18:57] oetjenj: has joined #ruby
[00:20:29] TinkerTyper: has joined #ruby
[00:20:42] Rodya_: has joined #ruby
[00:29:29] mostlybadfly: has joined #ruby
[00:29:58] enterprisey: has joined #ruby
[00:32:24] cagomez: has joined #ruby
[00:33:03] hutch34: has joined #ruby
[00:33:06] Rodya_: has joined #ruby
[00:33:59] Technodrome: has joined #ruby
[00:38:11] jphase: has joined #ruby
[00:39:42] idefine: has joined #ruby
[00:40:00] fclausen: has joined #ruby
[00:42:43] Rodya_: has joined #ruby
[00:42:47] jphase_: has joined #ruby
[00:42:57] hutch34: has joined #ruby
[00:43:44] jphase: has joined #ruby
[00:47:28] bmurt: has joined #ruby
[00:48:12] VladGh: has joined #ruby
[00:50:36] knight33: has joined #ruby
[00:52:50] hutch34: has joined #ruby
[00:58:28] fullstack: has joined #ruby
[01:02:48] hutch34: has joined #ruby
[01:02:49] jphase: has joined #ruby
[01:03:50] jphase_: has joined #ruby
[01:06:39] imode: has joined #ruby
[01:06:50] __Yiota: has joined #ruby
[01:07:19] jphase: has joined #ruby
[01:12:40] Technodrome: has joined #ruby
[01:12:42] hutch34: has joined #ruby
[01:16:41] whippythellama: has joined #ruby
[01:16:44] Jameser: has joined #ruby
[01:18:13] cosimo_: has joined #ruby
[01:22:05] jphase: has joined #ruby
[01:22:37] hutch34: has joined #ruby
[01:22:40] jenrzzz: has joined #ruby
[01:22:40] jenrzzz: has joined #ruby
[01:24:13] thomasv314: has joined #ruby
[01:26:14] uZiel: has joined #ruby
[01:29:44] d^sh: has joined #ruby
[01:32:28] hutch34: has joined #ruby
[01:36:49] jxv: has joined #ruby
[01:36:51] wnd: has joined #ruby
[01:36:53] mim1k: has joined #ruby
[01:39:32] Ropeney: has joined #ruby
[01:42:22] hutch34: has joined #ruby
[01:43:02] Azure: has joined #ruby
[01:45:47] govg: has joined #ruby
[01:45:55] jxv_: has joined #ruby
[01:47:21] __Yiota: has joined #ruby
[01:48:51] idefine: has joined #ruby
[01:51:05] alfiemax: has joined #ruby
[01:51:44] govg: has joined #ruby
[01:51:58] gizmore|2: has joined #ruby
[01:52:18] hutch34: has joined #ruby
[01:54:18] thomasv314: has joined #ruby
[01:57:16] alnewkirk: has joined #ruby
[01:57:24] bruno-: has joined #ruby
[01:57:33] Cohedrin_: has joined #ruby
[01:57:50] Devalo: has joined #ruby
[02:01:49] nowhereman: has joined #ruby
[02:02:17] hutch34: has joined #ruby
[02:09:20] orbyt_: has joined #ruby
[02:11:45] alfiemax: has joined #ruby
[02:12:07] hutch34: has joined #ruby
[02:18:17] gusrub: has joined #ruby
[02:20:44] Jameser: has joined #ruby
[02:22:05] hutch34: has joined #ruby
[02:24:00] ap4y1: has joined #ruby
[02:25:36] fullstack: has joined #ruby
[02:26:10] erlend: has joined #ruby
[02:27:39] Jameser: has joined #ruby
[02:31:59] hutch34: has joined #ruby
[02:32:53] alex``: has joined #ruby
[02:34:37] zanoni: question - I have a method with a conditional statement in it. I'd like that conditional to be optional. Is there a way to go about that? I tried a few things, assigning it to a proc and also a variable.
[02:35:06] Radar: ?gist zanoni
[02:35:06] ruby[bot]: zanoni: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[02:35:10] Radar: Show us your code, please.
[02:35:13] basket: zanoni: Do you have some code to show?
[02:35:29] Radar: basket: TOO SLOW
[02:35:52] zanoni: I'll put it into a gist and pop the link, probably later, thanks!
[02:36:56] ap4y1: has joined #ruby
[02:37:42] xuanrui: has joined #ruby
[02:41:51] hutch34: has joined #ruby
[02:43:44] oncall-pokemon: has joined #ruby
[02:50:06] duderonomy: has joined #ruby
[02:51:49] hutch34: has joined #ruby
[02:59:47] cschneid_: has joined #ruby
[03:01:43] hutch34: has joined #ruby
[03:07:35] Freshnuts: has joined #ruby
[03:09:32] uZiel: has joined #ruby
[03:10:42] tastytf: has joined #ruby
[03:11:38] hutch34: has joined #ruby
[03:14:42] uneeb: has joined #ruby
[03:14:58] alfiemax: has joined #ruby
[03:15:35] shinnya: has joined #ruby
[03:16:52] ap4y1: has joined #ruby
[03:17:54] rajno: has joined #ruby
[03:21:31] hutch34: has joined #ruby
[03:26:03] gix: has joined #ruby
[03:26:39] jrabe: has joined #ruby
[03:37:22] mim1k: has joined #ruby
[03:39:26] kies: has joined #ruby
[03:40:07] matthewd: zenspider: Ah, interesting
[03:42:23] matthewd: "Don't.. but here's how" was certainly a nod to "sometimes you do need to" -- but having the test just 'fix' the visibility sounds much more pleasant when you do need to get intimate
[03:43:36] Cohedrin_: has joined #ruby
[03:56:42] idefine: has joined #ruby
[04:01:02] anjen: has joined #ruby
[04:03:34] rabajaj: has joined #ruby
[04:03:37] govg: has joined #ruby
[04:06:42] idefine: has joined #ruby
[04:07:22] Xiti: has joined #ruby
[04:08:16] eckhardt: has joined #ruby
[04:10:08] Rodya_: has joined #ruby
[04:10:19] ap4y: has joined #ruby
[04:11:22] dkam: has joined #ruby
[04:14:42] idefine: has joined #ruby
[04:16:16] idefine: has joined #ruby
[04:24:30] Devalo: has joined #ruby
[04:25:51] rhyselsmore: has joined #ruby
[04:27:03] triston: has joined #ruby
[04:27:36] hutch34: has joined #ruby
[04:29:08] triston: has joined #ruby
[04:30:02] triston: has joined #ruby
[04:30:20] triston: has left #ruby: ()
[04:31:25] triston: has joined #ruby
[04:31:27] idefine: has joined #ruby
[04:32:56] uZiel: has joined #ruby
[04:35:57] mim1k: has joined #ruby
[04:38:18] bruno-: has joined #ruby
[04:38:30] alfiemax: has joined #ruby
[04:42:11] alfiemax: has joined #ruby
[04:45:22] idefine: has joined #ruby
[04:51:01] alfiemax: has joined #ruby
[04:54:09] eckhardt: has joined #ruby
[04:54:27] bmurt: has joined #ruby
[04:57:08] quiller: has joined #ruby
[05:06:59] DTZUZO: has joined #ruby
[05:15:24] zautomata: has joined #ruby
[05:20:16] Silthias: has joined #ruby
[05:20:29] LocaMocha: has joined #ruby
[05:20:50] xuanrui: has joined #ruby
[05:24:37] cschneid_: has joined #ruby
[05:27:32] dkam: has joined #ruby
[05:33:52] eckhardt: has joined #ruby
[05:33:53] milardovich: has joined #ruby
[05:35:00] LocaMocha: has joined #ruby
[05:35:41] biberu: has joined #ruby
[05:36:38] ShekharReddy: has joined #ruby
[05:37:49] ozcanesen: has joined #ruby
[05:41:14] aupadhye: has joined #ruby
[05:41:14] dkam: has joined #ruby
[05:42:05] alfiemax: has joined #ruby
[05:45:32] uZiel: has joined #ruby
[05:46:26] cschneid_: has joined #ruby
[05:47:48] ramfjord: has joined #ruby
[05:53:32] xuanrui: has joined #ruby
[05:55:28] dkam: has joined #ruby
[05:56:48] ramfjord: has joined #ruby
[05:58:11] mtkd: has joined #ruby
[05:58:13] anisha: has joined #ruby
[06:00:26] dinfuehr: has joined #ruby
[06:00:50] anisha_: has joined #ruby
[06:03:39] cschneid_: has joined #ruby
[06:05:00] apeiros_: has joined #ruby
[06:05:28] milardovich: has joined #ruby
[06:06:43] djbkd: has joined #ruby
[06:10:01] dionysus69: has joined #ruby
[06:20:10] jxv: has joined #ruby
[06:20:54] konsolebox: has joined #ruby
[06:22:27] conta: has joined #ruby
[06:31:10] Xiti: has joined #ruby
[06:31:18] _aeris_: has joined #ruby
[06:31:50] CrazyEddy: has joined #ruby
[06:31:55] Technodrome: has joined #ruby
[06:41:47] cdg: has joined #ruby
[06:43:35] CrazyEddy: has joined #ruby
[06:44:11] andikr: has joined #ruby
[06:44:26] cschneid_: has joined #ruby
[06:45:51] alex``: has joined #ruby
[06:48:21] hutch34: has joined #ruby
[06:49:14] hs366: has joined #ruby
[06:52:11] madbytes: has joined #ruby
[06:52:12] apeiros_: has joined #ruby
[06:53:20] madbytes: I'm getting the error "Bundler could not find compatible versions for gem 'ruby'". The gemfile says it needs > 2.2.0 but when i do "ruby -v" i already have ruby 2.3.5p376.
[06:53:33] madbytes: where is the bundler command looking for the ruby gem :
[06:56:29] ioggstream: has joined #ruby
[06:56:47] Hexafox[I]: has joined #ruby
[06:58:29] hutch34: has joined #ruby
[06:59:35] dkam: has joined #ruby
[07:08:20] hutch34: has joined #ruby
[07:11:10] matthewd: madbytes: Check you're using the latest bundler
[07:11:33] madbytes: matthewd: Bundler version 1.16.0.pre.3
[07:12:46] matthewd: Hmm.. I was hoping an upgrade might at least get us a better error
[07:12:54] claudiuinberlin: has joined #ruby
[07:13:00] matthewd: Does the Gemfile say it needs > 2.2, or does it say it needs 2.2?
[07:14:06] xco: has joined #ruby
[07:15:31] xco: hi, can someone please help me understand what {}.tap is doing here? what is it? https://gist.github.com/anonymous/b3ada24f42df08188bca49ca88d1c6d8
[07:15:54] blackmesa1: has joined #ruby
[07:16:04] matthewd: xco: `{}` is a hash. `.tap` is a method call.
[07:16:48] xco: yes, i know that. why {}? where did that hash come from?
[07:17:28] xco: matthewd: i look here and there’s not #tap https://ruby-doc.org/core-2.2.0/Hash.html
[07:17:47] madbytes: matthewd: https://pastebin.com/raw/ngVtYQLs This is what i see.
[07:17:48] ruby[bot]: madbytes: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[07:17:58] matthewd: xco: Hash inherits Object
[07:18:06] cdg: has joined #ruby
[07:19:28] matthewd: madbytes: `bundle env` to make sure you're running the ruby version you think you are
[07:20:09] matthewd: madbytes: That "ruby" gem looks unfamiliar, and maybe relevant?
[07:21:36] madbytes: matthewd: ahh, i'm not running the ruby version i need. how do i change it? i've a .ruby_version file on the folder with the correct updated version.
[07:21:46] madbytes: i also got rbenv installed, if thats an help.
[07:21:51] djbkd: has joined #ruby
[07:22:01] matthewd: Check `gem env`
[07:22:10] matthewd: If that's right and just bundler is wrong, `gem install bundler` should fix it
[07:22:41] madbytes: nah, even gem env shows older version
[07:22:54] madbytes: i've 2.4.2 installed on the system
[07:22:59] matthewd: What about `ruby -v`?
[07:23:03] mjolnird: has joined #ruby
[07:23:18] madbytes: matthewd: zsh: command not found: ruby :s
[07:23:33] Devalo: has joined #ruby
[07:23:41] matthewd: Well thar's yer problem ;)
[07:24:11] Devalo: has joined #ruby
[07:24:22] matthewd: Either rbenv isn't active, or is trying to defer to system ruby, or.. something?
[07:24:45] madbytes: okay now i get ruby 2.0.0 on "ruby -v".
[07:24:49] madbytes: but still not the version i want
[07:25:03] matthewd: `rbenv versions` ?
[07:25:30] madbytes: it shows "* 2.4.2 (set by /usr/local/share/metasploit-framework/.ruby-version)"
[07:25:44] madbytes: i installed 2.4.2 via "rbenv install" command.
[07:26:08] madbytes: rbenv didn't show me the 2.0.0 version, though.
[07:26:35] matthewd: That's probably "system"
[07:26:54] matthewd: `which -a ruby` perhaps?
[07:27:02] matthewd: Is rbenv definitely active in your current shell?
[07:27:07] madbytes: yeah, /usr/bin/ruby
[07:27:18] madbytes: how do i confirm, it is??
[07:27:22] madbytes: rbenv commands are workign fine
[07:28:06] matthewd: Hmm.. `which rbenv`
[07:28:08] hutch34: has joined #ruby
[07:28:19] madbytes: usr/local/bin/rbenv
[07:28:26] madbytes: "/usr/local/bin/rbenv"
[07:29:20] matthewd: Sounds like you haven't reloaded your shell after adding the 'eval "$(rbenv init -)"' bit to .zshrc
[07:32:22] madbytes: oh YES, you were right. phew
[07:32:26] aufi: has joined #ruby
[07:32:29] madbytes: gem env shows the correct version now
[07:32:32] madbytes: but not, bundle env
[07:32:35] madbytes: it still shows older vesion
[07:32:44] matthewd: Okay, so `gem install bundler` should fix that
[07:33:03] Megamosaren: has joined #ruby
[07:34:12] madbytes: uhm, not actually.... i still see `bundle env` showing older version after `gem install bundler`
[07:34:17] madbytes: i even upgraded it to latest version.
[07:35:15] matthewd: Huh. The one belonging to the system ruby must be appearing earlier in your $PATH for some reason.
[07:35:40] madbytes: oh, i did `. ~/.zshrc` again and then, it worked!
[07:35:50] madbytes: phew, thanks a ton matthewd. You are a savior!
[07:37:47] milardovich: has joined #ruby
[07:39:52] Devalo: has joined #ruby
[07:40:32] Devalo: has joined #ruby
[07:42:59] mikecmpbll: has joined #ruby
[07:43:11] xco: has joined #ruby
[07:45:00] alex``: has joined #ruby
[07:47:14] Dimik: has joined #ruby
[07:48:10] ramfjord: has joined #ruby
[07:49:04] hutch34: has joined #ruby
[07:51:31] morfin: has joined #ruby
[07:52:54] ^mtkd: has joined #ruby
[07:53:07] rgr_: has joined #ruby
[07:54:19] morfin: if i have test which has 'it_behaves_like "PoolCrawler Engine"' how can i run specific test from this behaves like?
[07:54:32] morfin: this is rspec again..
[07:55:36] Devalo: has joined #ruby
[07:56:16] Devalo: has joined #ruby
[07:57:55] alnewkirk: has joined #ruby
[07:58:08] raatiniemi: has joined #ruby
[07:58:09] blackmesa1: has joined #ruby
[07:58:15] tvw: has joined #ruby
[07:58:47] hutch34: has joined #ruby
[07:59:08] alfiemax: has joined #ruby
[07:59:56] fullstack: has joined #ruby
[08:03:57] mikecmpbll: has joined #ruby
[08:04:13] alfiemax_: has joined #ruby
[08:05:38] guille-moe: has joined #ruby
[08:05:43] dminuoso: morfin: https://relishapp.com/rspec/rspec-core/v/2-0/docs/example-groups/shared-example-group
[08:06:02] dminuoso: Or rather: https://relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples
[08:06:49] MrBusiness: has joined #ruby
[08:07:15] dkam: has joined #ruby
[08:08:45] hutch34: has joined #ruby
[08:09:29] yCrazyEdd: has joined #ruby
[08:18:38] hutch34: has joined #ruby
[08:20:47] ldepandis: has joined #ruby
[08:21:42] morfin: how do you specify if there is 2 arguments but only one mandatory(should be either timestamp or height)?
[08:26:55] mim1k: has joined #ruby
[08:28:33] hutch34: has joined #ruby
[08:28:51] Stan: has joined #ruby
[08:30:44] jxv: has joined #ruby
[08:31:16] quobo: has joined #ruby
[08:33:02] mim1k: has joined #ruby
[08:33:12] Beams: has joined #ruby
[08:34:08] alfiemax: has joined #ruby
[08:35:10] claudiuinberlin: has joined #ruby
[08:37:53] burgestrand: has joined #ruby
[08:38:13] huyderman: has joined #ruby
[08:38:29] hutch34: has joined #ruby
[08:40:01] fullstack: has joined #ruby
[08:43:42] universa1: has joined #ruby
[08:47:57] Guest28041: has joined #ruby
[08:48:24] hutch34: has joined #ruby
[08:52:27] Devalo: has joined #ruby
[08:52:35] ur5us: has joined #ruby
[08:53:03] InfinityFye: has joined #ruby
[08:53:07] Devalo: has joined #ruby
[08:56:51] dminuoso: morfin: trivial way is using an opts hash, and asserting that its not empty.
[08:57:50] voodoofish430: has joined #ruby
[08:58:16] hutch34: has joined #ruby
[08:59:17] cabotto: has joined #ruby
[09:01:11] uZiel: has joined #ruby
[09:04:17] Devalo: has joined #ruby
[09:04:57] Devalo: has joined #ruby
[09:05:19] Serpent7776: has joined #ruby
[09:07:59] creat: has joined #ruby
[09:08:11] hutch34: has joined #ruby
[09:11:34] xco: has joined #ruby
[09:15:25] marr: has joined #ruby
[09:17:05] Technodrome: has joined #ruby
[09:17:49] xco: has joined #ruby
[09:18:05] hutch34: has joined #ruby
[09:21:36] morfin: and if you have shared examples you specify expectations in every spec using it?
[09:22:00] astrobunny: has joined #ruby
[09:24:50] xco: has joined #ruby
[09:24:56] cschneid_: has joined #ruby
[09:25:36] morfin: how do i specify different expectations for every spec using shared examples?
[09:25:39] idefine: has joined #ruby
[09:25:55] morfin: just let every value and use that?
[09:26:46] Stan: has joined #ruby
[09:27:04] mark_66: has joined #ruby
[09:27:55] bruno-: has joined #ruby
[09:28:01] hutch34: has joined #ruby
[09:31:45] im0nde: has joined #ruby
[09:33:24] astrobunny: has joined #ruby
[09:33:39] __Yiota: has joined #ruby
[09:34:04] cdg: has joined #ruby
[09:34:57] Hexafox[I]: Are data types in ruby just classes?
[09:35:18] xco: has joined #ruby
[09:37:56] hutch34: has joined #ruby
[09:40:12] Devalo: has joined #ruby
[09:42:27] Devalo: has joined #ruby
[09:42:51] burgestrand: Hexafox[I] probably in the way you're thinking yes, to be pedantic the classes are also objects
[09:44:18] ruby[bot]: Burgestrand: # => Fixnum (https://eval.in/885654)
[09:44:19] burgestrand: >> true.class
[09:44:20] ruby[bot]: Burgestrand: # => TrueClass (https://eval.in/885655)
[09:44:36] xco: has joined #ruby
[09:44:40] ruby[bot]: Burgestrand: # => NilClass (https://eval.in/885656)
[09:45:13] burgestrand: (… and then…)
[09:45:17] burgestrand: >> 1.class.class
[09:45:39] burgestrand: ACTION kicks @ruby[bot]
[09:46:48] OnkelTem: has joined #ruby
[09:47:10] n13z: has joined #ruby
[09:47:28] adlerdias: has joined #ruby
[09:47:51] hutch34: has joined #ruby
[09:48:06] OnkelTem: Hi all. Guys I wonder what I do wrong on a clean debian jessie system that I can't install one gem
[09:48:57] OnkelTem: I installed ruby (2.1.6) and rubygem from the repository. Now when I install say 'compass', it just doesn't work
[09:49:23] OnkelTem: I do: `gem install compass`, then it builds extensions, then then it just doesn't run
[09:50:06] voodoofish430: has joined #ruby
[09:50:31] dminuoso: "it doesn't run" is by far the most helpful error description.
[09:51:19] OnkelTem: dminuoso: yeah, sorry. https://apaste.info/R9fx
[09:52:02] Hexafox[I]: Burgestrand, So if I wanted to make a method that can only be run on one data type I should add it to the class?
[09:52:16] charliesome: has joined #ruby
[09:53:06] burgestrand: Hexafox[I] "data type" is a bit ambiguous to me, but my answer to your question is another question: why don't you try it and see? :)
[09:53:47] dminuoso: Hexafox[I]: Yes.
[09:53:55] dminuoso: Hexafox[I]: *Yes to your original question.
[09:54:36] burgestrand: Hexafox[I] https://eval.in/885662
[09:55:52] Hexafox[I]: I never knew you could use p instead of puts
[09:56:33] tobiasvl: well, they're not the same
[09:56:41] dminuoso: Hexafox[I]: `p a` is basically `puts a.inspect`
[09:56:52] dminuoso: technically its a bit more, since p can take multiple arguments, and it will do that for each.
[09:56:54] Hexafox[I]: Oh, interesting
[09:57:21] Devalo: has joined #ruby
[09:57:23] Hexafox[I]: I never liked puts on its own because it makes it hard to see arrays.
[09:57:28] dminuoso: def p(*args); args.each { |arg| puts arg.inspect }; end # something along those lines.
[09:57:46] hutch34: has joined #ruby
[09:58:05] zanoni: has joined #ruby
[10:04:15] xco: has joined #ruby
[10:07:41] hutch34: has joined #ruby
[10:09:20] ramfjord: has joined #ruby
[10:11:17] Xeago: has joined #ruby
[10:13:02] ioggstream: anybody interested in https://bugs.ruby-lang.org/issues/14035
[10:14:09] fclausen: has joined #ruby
[10:15:14] facest: has joined #ruby
[10:15:54] xco: has joined #ruby
[10:16:41] Devalo: has joined #ruby
[10:17:33] hutch34: has joined #ruby
[10:20:37] ldnunes: has joined #ruby
[10:20:57] matthewd: ioggstream: You've offered no discussion of why that might be desirable
[10:22:59] ioggstream: matthewd: right. Other languages expect file uris to be in traditional format instead of minimal.
[10:23:06] matthewd: ioggstream: (apart from the claim of "canonical form", which, like the current commenter, seems unsupported by my reading of the RFCs)
[10:24:02] ioggstream: matthewd: iiuc reading https://tools.ietf.org/html/rfc8089#appendix-B the traditional format is file:///etc/hosts
[10:24:22] ioggstream: respect to a minimal one file:/etc/hosts
[10:24:56] matthewd: The very section of the spec that you quoted inline states: the "file" URI scheme is defined so that no authority [means] the end-user's machine
[10:25:18] cschneid_: has joined #ruby
[10:26:01] ioggstream: I'm not saying that file:/etc/hosts is broken, rather that is not the prevalent serialization of file uri
[10:26:03] matthewd: So any implementation mis-parsing file:/etc/hosts is non-conformant
[10:26:33] im0nde: has joined #ruby
[10:27:30] hutch34: has joined #ruby
[10:28:03] matthewd: You're saying it should use the traditional form because "other languages expect" it
[10:29:17] maattdd: has joined #ruby
[10:29:38] ioggstream: matthewd: not really, it's because it's the "most common format is use today"
[10:31:33] ioggstream: the ability to confront serialized and deserialized uri between different languages is a bonus to me
[10:32:23] matthewd: You've made a bug report, showing that you consider the current behaviour to be unexpected, and identifying a "fix". That sure sounds like a claim of brokenness to me.
[10:32:53] ioggstream: matthewd: can I change that request to be an enhancement ;) ?
[10:33:15] ioggstream: marked feature
[10:33:25] GodFather: has joined #ruby
[10:33:42] ioggstream: matthewd: do you think "misc is better?"
[10:34:44] matthewd: I'd be more concerned with the body, tbh -- instead of claiming/implying the current behaviour is in some way wrong, yes contrast it with your suggested behaviour, but focus on why that would be desirable
[10:35:40] matthewd: "Its values might be string-equal with other-implementation-X" doesn't seem terribly compelling to me, but it's not my call
[10:37:25] hutch34: has joined #ruby
[10:37:28] ioggstream: matthewd: ok, I'm modifying the ticket. Thank you very much for your time! Further feedback is very welcome too :D
[10:37:54] milardovich: has joined #ruby
[10:38:31] xco: has joined #ruby
[10:39:09] DTZUZO: has joined #ruby
[10:41:29] cabotto: has joined #ruby
[10:41:43] ioggstream: matthewd: I'll change the ticket with the following requisite: URI(uri_s).to_s == uri_s that imho is reasonable
[10:42:01] ioggstream: is that fine for you?
[10:42:29] Devalo: has joined #ruby
[10:43:09] Devalo: has joined #ruby
[10:47:08] bigkevmcd: has joined #ruby
[10:47:29] xco: has joined #ruby
[10:47:46] matthewd: ioggstream: That's already widely untrue
[10:48:12] ioggstream: matthewd: why?
[10:48:30] im0nde_: has joined #ruby
[10:48:43] matthewd: >> require 'uri'; URI('HTTP://example.com').to_s
[10:48:44] ruby[bot]: matthewd: # => "http://example.com" (https://eval.in/885704)
[10:49:49] matthewd: But more than case, e.g. default ports
[10:50:43] matthewd: And you were previously implying that URI("file:/etc/hosts") should be canonicalized to "file:///etc/hosts"
[10:51:15] ioggstream: matthewd: imho file:/// should be the canonical form, but I'm trying to accomodate to your pov :D
[10:52:27] matthewd: Right. Currently, the minimal form is being used as the ruby-canonical form. AFAICS, you need to present an argument for changing that.
[10:53:42] ioggstream: yes. the real argument is that file:/// is the most common format in use according to
[10:53:44] ioggstream: https://tools.ietf.org/html/rfc8089#appendix-B
[10:53:54] Devalo: has joined #ruby
[10:54:33] ioggstream: and it may improve interoperaability tests (which usually rely on string comparison)
[10:54:37] matthewd: Counter-argument: they said "in use today", implying they anticipate some probability of that situation changing
[10:54:57] alfiemax: has joined #ruby
[10:57:09] matthewd: ... and I just now realised that the commenter on your bug report *is* "they"
[10:58:58] ioggstream: matthewd: "they" actually wrote that appendix-B ;)
[10:59:58] morfin: i did not know there is RFC for that path
[11:00:10] matthewd: Yeah. Which makes his statement that there's no recognised canonical representation pretty... canonical.
[11:01:14] alex``: has joined #ruby
[11:02:37] Devalo: has joined #ruby
[11:03:17] Devalo: has joined #ruby
[11:04:05] apeiros_: "I just now realised that the commenter on your bug report *is* "they [RFC author]" 😅
[11:04:14] apeiros: friggin tail! begone!
[11:08:12] xco: has joined #ruby
[11:13:37] Devalo: has joined #ruby
[11:16:06] xco: has joined #ruby
[11:17:12] tastytf: has joined #ruby
[11:18:22] bruno-: has joined #ruby
[11:18:58] alfiemax: has joined #ruby
[11:25:46] xco: has joined #ruby
[11:31:30] tcopeland: has joined #ruby
[11:32:50] cabotto: has joined #ruby
[11:36:54] xco: has joined #ruby
[11:40:59] dminuoso: apeiros the sorcerer.
[11:41:02] dminuoso: I played that game.
[11:44:52] xco: has joined #ruby
[11:47:06] __Yiota: has joined #ruby
[11:48:15] HTTP_____GK1wmSU: has joined #ruby
[11:49:14] Aloy: has joined #ruby
[11:50:52] HTTP_____GK1wmSU: has left #ruby: ()
[11:53:16] xco: has joined #ruby
[11:55:56] milardovich: has joined #ruby
[11:58:02] zautomata: has joined #ruby
[11:58:37] Aloy: has joined #ruby
[11:59:14] tvw: has joined #ruby
[11:59:38] synthroid: has joined #ruby
[12:02:34] jxweng: has joined #ruby
[12:03:19] blackmesa1: has joined #ruby
[12:03:42] xco: has joined #ruby
[12:11:52] Devalo: has joined #ruby
[12:12:17] xco: has joined #ruby
[12:12:22] jottr: has joined #ruby
[12:14:29] johno84: has joined #ruby
[12:15:15] fclausen: has joined #ruby
[12:15:16] ferr1: has joined #ruby
[12:16:20] scorpiosec: has joined #ruby
[12:17:02] ldepandis: has joined #ruby
[12:17:29] cabotto: has joined #ruby
[12:17:31] ramfjord: has joined #ruby
[12:19:28] schaary: has joined #ruby
[12:20:42] Devalo: has joined #ruby
[12:21:26] __Yiota: has joined #ruby
[12:21:52] schaary: how can I compute the first day of the last month?
[12:23:02] xco: has joined #ruby
[12:25:57] Braindead: has joined #ruby
[12:27:29] Bacta: has joined #ruby
[12:28:10] Bacta: Anyone know what the situation is with FactoryGirl? Are there any forks available? I don't want to start referring to it as FactoryBot.
[12:33:32] latemus: i followed the example for readline history blank-line exclusion as shown in the docs here ==> ruby-doc.org/stdlib-1.9.3/libdoc/readline/rdoc/Readline.html but the code from the example breaks history altogether, here's my code ==> http://termbin.com/3xxt
[12:33:47] apeiros: schaary: last month of what? or last = previous?
[12:34:04] apeiros: also vanilla ruby or with rails?
[12:34:13] latemus: (i can't see why history is broken)
[12:34:49] schaary: apeiros: previous month
[12:35:03] schaary: ruby - not railr
[12:35:34] milardovich: has joined #ruby
[12:35:40] jphase: has joined #ruby
[12:35:44] apeiros: schaary: previous_month = Date.today << 1; Date.civil(previous_month.year, previous_month.month, 1)
[12:36:26] bmurt: has joined #ruby
[12:37:04] GodFather_: has joined #ruby
[12:37:11] Braindead: has joined #ruby
[12:37:15] apeiros: and if you want it purely mathematical: t = Date.today; y,m = (t.year*12+t.month-2).divmod(12); Date.civil(y,m+1,1)
[12:38:04] latemus: why does 'Date.today << 1;' work, ri Date.today says nothing about push
[12:38:26] nadir: has joined #ruby
[12:38:39] latemus: nor about arrays
[12:38:45] apeiros: << is not push
[12:38:50] apeiros: ri Date#<<
[12:38:55] apeiros: &ri Date#<<
[12:38:55] `derpy: http://ruby-doc.org/stdlib-2.4.1/libdoc/date/rdoc/Date.html#method-i-3C-3C
[12:38:59] Guest12059: has left #ruby: ()
[12:39:12] apeiros: Array#<< is *similar* to push (it's not the same either, though)
[12:39:27] apeiros: >> 16 << 1
[12:39:28] ruby[bot]: apeiros: # => 32 (https://eval.in/885839)
[12:40:24] apeiros: as an example of yet another meaning for `<<`
[12:40:55] duckpuppy: has joined #ruby
[12:41:20] Devalo: has joined #ruby
[12:41:24] apeiros: Bacta: require 'factory_bot'; FactoryGirl = FactoryBot
[12:41:31] apeiros: also, let me play the tinies violin for you…
[12:41:59] Devalo: has joined #ruby
[12:47:57] apparition: has joined #ruby
[12:53:12] mson: has joined #ruby
[12:54:26] hutch34: has joined #ruby
[12:57:13] dminuoso: ACTION pokes apeiros with a big stick
[12:57:15] dminuoso: can you tell me
[12:57:25] dminuoso: why I have no ri documentation at all?
[12:58:28] Bacta: This is programming. Not a Black Lives Matter rally
[12:59:02] Psybur: has joined #ruby
[12:59:17] apeiros: !kick bacta keep your mysognism/racism elsewhere
[12:59:17] ruby[bot]: +bbb $a:Bacta$#ruby-banned Bacta!*@*$#ruby-banned *!*@2400:4030:9d31:aa00:7823:88cd:fee6:8241$#ruby-banned
[12:59:17] ruby[bot]: ruby[bot] kicked Bacta: your mysognism/racism elsewhere
[12:59:25] alfiemax: has joined #ruby
[12:59:37] apeiros: dminuoso: I have no idea?
[12:59:50] apeiros: you don't use rvm, right?
[12:59:58] apeiros: there I'd bet on missing rvm docs generate
[13:00:01] dminuoso: Just plain chruby/ruby-install
[13:00:14] apeiros: might be a separate step with chruby too
[13:00:31] ruby[bot]: -bbb $a:Bacta$#ruby-banned Bacta!*@*$#ruby-banned *!*@2400:4030:9d31:aa00:7823:88cd:fee6:8241$#ruby-banned
[13:01:20] dminuoso: I have a theory.
[13:01:28] dminuoso: Perhaps I did install with --disable-install-rdoc...
[13:01:44] apeiros: that *might* be the reason
[13:01:51] Bacta: has joined #ruby
[13:02:05] Bacta: Obviously no love here for Japanese Rubyists :(
[13:02:35] fmcgeough: has joined #ruby
[13:02:40] dminuoso: Just like there's no love for English speaking developers in the Ruby source code.
[13:02:42] dminuoso: Seems fair.
[13:02:58] apeiros: Bacta: you know exactly that that's unwarranted. if you want to argue, do it in #ruby-banned. if you try here again, you'll be permabanned.
[13:03:16] Devalo: has joined #ruby
[13:03:29] Bacta: Great. Someone new to add to my ignore list.
[13:03:34] jphase: has joined #ruby
[13:03:40] Bacta: dminuoso: How so?
[13:04:03] Devalo: has joined #ruby
[13:05:25] apeiros: Bacta: I don't care. just don't complain if you miss a warning about your behavior and then "unexpectedly" get kicked/banned.
[13:05:46] cdg: has joined #ruby
[13:07:43] Bacta: What behavivour? In Tokyo this is considered reasonable
[13:07:52] Devalo: has joined #ruby
[13:09:07] fullstack: has joined #ruby
[13:11:03] apeiros: no. and I told you -> #ruby-banned if you want to discuss. last warning.
[13:12:40] cdg_: has joined #ruby
[13:12:47] DanielI: has joined #ruby
[13:12:47] DanielI: has joined #ruby
[13:15:02] brendan-: has joined #ruby
[13:15:21] sepp2k: has joined #ruby
[13:16:01] claudiuinberlin: has joined #ruby
[13:16:39] Fire-Dragon-DoL: has joined #ruby
[13:19:48] jphase: has joined #ruby
[13:20:18] dminuoso: apeiros: Hah. Would appear to be the reason.
[13:20:30] dminuoso: Well, just used this as an excuse to upgrade from 2.4.1 to 2.4.2 :)
[13:20:38] morfin: so JRuby use bunch of external things for JSON, YAML etc
[13:22:36] shinnya: has joined #ruby
[13:22:49] Bacta: Is there still a case for JRuby?
[13:23:07] morfin: i use it only with HBase =)
[13:24:04] morfin: Bacta, you would consider using Java 8 instead?
[13:24:54] Bacta: If performance is an issue it's an option - that and Scala
[13:25:05] workmad3: has joined #ruby
[13:25:08] Bacta: But if it's Ruby I've only ever run MRIs
[13:25:11] skydiver: has joined #ruby
[13:25:23] morfin: i heard Java 8 is way faster than older ones =)
[13:26:02] morfin: well, for most projects we use MRI but there is bunch of issues with GC
[13:26:25] morfin: and i do not want to install GCC 6 just to build older versions =(
[13:27:33] Bacta: Ruby 2x kinda blows things out of the water when it comes to GC but I'm guessing you guys aren't on 1x anymore?
[13:32:13] Devalo: has joined #ruby
[13:32:58] Devalo: has joined #ruby
[13:33:33] mtkd: has joined #ruby
[13:35:06] lxsameer: has joined #ruby
[13:35:33] milardovich: has joined #ruby
[13:35:40] __Yiota: has joined #ruby
[13:35:42] FrostCandy: has joined #ruby
[13:37:06] burgestrand: has joined #ruby
[13:38:25] morfin: fun is that GC segfault interpreter if you build with GCC 7 =)
[13:38:42] morfin: i have to use 2.4.1
[13:38:47] idefine: has joined #ruby
[13:39:18] DLSteve_: has joined #ruby
[13:40:36] alfiemax_: has joined #ruby
[13:51:21] quiller: has joined #ruby
[13:54:00] chouhoulis: has joined #ruby
[13:56:55] alan_w: has joined #ruby
[13:57:31] jgt: has joined #ruby
[13:59:26] alfiemax: has joined #ruby
[13:59:54] Jameser: has joined #ruby
[14:00:48] jrafanie: has joined #ruby
[14:03:03] zautomata: has joined #ruby
[14:09:32] rabajaj: has joined #ruby
[14:09:34] sepp2k: has joined #ruby
[14:10:18] alfiemax: has joined #ruby
[14:11:09] cabotto: has joined #ruby
[14:12:21] cabotto: has joined #ruby
[14:14:18] Devalo: has joined #ruby
[14:14:27] fullstack: has joined #ruby
[14:15:59] fclausen: has joined #ruby
[14:16:08] Rapture: has joined #ruby
[14:17:32] charliesome: has joined #ruby
[14:17:58] bonhoeffer: has joined #ruby
[14:21:01] Devalo: has joined #ruby
[14:21:26] idefine: has joined #ruby
[14:21:41] Devalo: has joined #ruby
[14:24:47] polishdub: has joined #ruby
[14:26:56] dionysus69: has joined #ruby
[14:27:32] Jameser: has joined #ruby
[14:28:50] im0nde_: has joined #ruby
[14:29:43] claudiuinberlin: has joined #ruby
[14:32:50] mikecmpbll: has joined #ruby
[14:32:56] jxv: has joined #ruby
[14:38:00] ahrs: has joined #ruby
[14:38:30] Devalo: has joined #ruby
[14:40:07] jxv: has joined #ruby
[14:41:01] workmad3: has joined #ruby
[14:41:14] Devalo: has joined #ruby
[14:41:30] Immune: has joined #ruby
[14:41:41] milardovich: has joined #ruby
[14:47:43] johno84: has joined #ruby
[14:48:02] iNs: has joined #ruby
[14:52:14] jrafanie: has joined #ruby
[14:55:50] knight33: has joined #ruby
[14:58:45] chouhoulis: has joined #ruby
[14:58:50] Technodrome: has joined #ruby
[15:07:26] Devalo: has joined #ruby
[15:09:26] cschneid_: has joined #ruby
[15:14:03] rabajaj: has joined #ruby
[15:14:12] mikecmpbll: has joined #ruby
[15:17:49] ramfjord: has joined #ruby
[15:17:58] Megamosaren: has joined #ruby
[15:19:29] milardov_: has joined #ruby
[15:22:33] Siyfion: has joined #ruby
[15:25:27] synthroid: has joined #ruby
[15:27:31] apeiros: has joined #ruby
[15:28:21] shinnya: has joined #ruby
[15:29:49] alfiemax: has joined #ruby
[15:32:33] jamesaxl: has joined #ruby
[15:34:03] cgfbee: has joined #ruby
[15:34:14] oleo: has joined #ruby
[15:36:05] synthroid: has joined #ruby
[15:38:43] enterprisey: has joined #ruby
[15:39:47] dinfuehr: has joined #ruby
[15:45:02] aphprentice: has joined #ruby
[15:45:16] Megamosaren: has joined #ruby
[15:45:56] FastJack: has joined #ruby
[15:49:05] alex``: has joined #ruby
[15:49:36] Sidoniuns: has joined #ruby
[15:49:51] DTZUZO: has joined #ruby
[15:50:35] pmunt_: has joined #ruby
[15:51:12] gustavo_: has joined #ruby
[15:54:29] jgt: has joined #ruby
[15:54:43] madbytes: has joined #ruby
[15:57:08] rippa: has joined #ruby
[15:57:34] dn`: has joined #ruby
[15:58:55] ltem: has joined #ruby
[16:00:33] herbmillerjr: has joined #ruby
[16:00:58] dviola: has joined #ruby
[16:01:04] thomasv314: has joined #ruby
[16:01:08] Megamosaren: has joined #ruby
[16:01:13] mikecmpbll: has joined #ruby
[16:04:04] edward__: has joined #ruby
[16:04:20] enterprisey: has joined #ruby
[16:04:29] webnanners: has joined #ruby
[16:04:31] gil_: has joined #ruby
[16:05:17] raynold: has joined #ruby
[16:06:04] claudiuinberlin: has joined #ruby
[16:06:44] [Butch]: has joined #ruby
[16:08:59] kies: has joined #ruby
[16:09:33] orbyt_: has joined #ruby
[16:13:38] Devalo: has joined #ruby
[16:15:52] ozcanesen: has joined #ruby
[16:16:49] fclausen: has joined #ruby
[16:18:52] morfin: how do you think would it be better to write parser with Ruby instead of let's say PHP? Nokogiri + Faradey + HTTPClient(as backend for Faradey) + maybe something else
[16:19:53] claudiuinberlin: has joined #ruby
[16:20:22] uZiel: has joined #ruby
[16:21:49] Prutheus: has joined #ruby
[16:22:30] Prutheus: Hey. I have following code, which uses an eval function but this is not good. How to change this code to not use eval?
[16:22:30] Prutheus: eval "results = indicator_hnd.run #{args[0].to_s unless args.empty?}" \ "#{', ' + args[1].to_s if args.length > 1}" \ "#{', ' + args[2].to_s if args.length > 2}" \ "#{', ' + args[3].to_s if args.length > 3}" \ "#{', ' + args[4].to_s if args.length > 4}" \ "#{', ' + args[5].to_s if args.length > 5}"
[16:22:43] Prutheus: https://bpaste.net/show/1e65e503afd6
[16:23:46] xuanrui: has joined #ruby
[16:25:10] gusrub: has joined #ruby
[16:25:23] Megamosaren: has joined #ruby
[16:28:14] lxsameer: has joined #ruby
[16:29:05] matthewd: prutheus: It sounds like the contents of 'args' is expecting to be evaled
[16:29:31] Prutheus: it must be sssssssolved like that, right?
[16:30:19] matthewd: I don't know where args is coming from, or how it's being constructed
[16:31:26] Harzilein: prutheus: i think mean something like indicator_hnd.run *(args.take_while { |e| !e.empty? }.map{ |e| e.to_s })
[16:32:59] matthewd: It's more like `indicator_hnd.run(*args.map {|v| eval(v.to_s) })` -- which doesn't particularly improve the situation
[16:33:08] Harzilein: yeah, i get that now
[16:33:15] Harzilein: it's slightly more sane to read
[16:33:39] Harzilein: i had a similar special thing in a templating context, i just made a parser for the expected ruby subset
[16:34:21] matthewd: The real question is whether args needs the eval at all, or whether this is purely a super-convoluted way to hand-implement a splat
[16:34:59] Harzilein: if those args are just strings with variable names in them, there's an easier way of course
[16:37:15] Harzilein: prutheus: can you explain your actual intent a bit more?
[16:42:20] mfb2: has joined #ruby
[16:42:47] vstemen: has left #ruby: ("Leaving")
[16:44:28] z64: has joined #ruby
[16:45:00] orbyt_: has joined #ruby
[16:47:42] tyil: Im trying to run jekyll in a docker container, but I get the error "jekyll 3.5.2 | Error: Permission denied @ rb_sysopen - /dev/core"; would anyone have some info on why it does this and how to solve it?
[16:47:56] uZiel: has joined #ruby
[16:48:39] ramfjord: has joined #ruby
[16:50:00] Nicmavr: has joined #ruby
[16:51:31] fantazo: has joined #ruby
[16:57:54] SeepingN: has joined #ruby
[16:58:00] matthewd: tyil: That really sounds like an OS-level issue
[16:58:10] thomasv314: has joined #ruby
[16:58:34] tyil: yes it does
[16:58:37] matthewd: tyil: Maybe try strace?
[16:58:56] tyil: I guess I could strace from within the docker container
[16:59:58] matthewd: Yeah. I think it's going to be a "docker doesn't have access to $X" issue, where $X is some low level thing... but I consequently have no idea on the details.
[17:00:21] zautomata: has joined #ruby
[17:02:35] alnewkirk: has joined #ruby
[17:03:51] ikopico: Hello, can anyone please share a snippet for running executable scripts on a host over SSH using net/ssh's channels?
[17:04:05] jxv: has joined #ruby
[17:04:13] matthewd: ikopico: What do you have so far?
[17:05:50] selim: has joined #ruby
[17:08:03] Guest5410: has joined #ruby
[17:09:30] milardovich: has joined #ruby
[17:12:00] Cohedrin_: has joined #ruby
[17:13:30] Cohedrin_: has joined #ruby
[17:13:32] milardovich: has joined #ruby
[17:13:35] ronenshvayg: has joined #ruby
[17:13:38] kapil___: has joined #ruby
[17:14:59] ronenshvayg: Can anyone please share a snippet for running a script (any executable) using Net::SSH's channels and getting the output?
[17:16:00] imode: has joined #ruby
[17:16:54] alnewkirk: has joined #ruby
[17:17:11] SeepingN: sure hold on
[17:18:25] SeepingN: msg ronenshvayg
[17:18:44] BTRE: has joined #ruby
[17:20:54] kies: has joined #ruby
[17:21:07] SeepingN: has joined #ruby
[17:21:41] hahuang65: has joined #ruby
[17:24:35] enterprisey: has joined #ruby
[17:28:09] hxegon: has joined #ruby
[17:28:27] hxegon: has joined #ruby
[17:32:21] fullstack: has joined #ruby
[17:36:47] Cohedrin_: has joined #ruby
[17:38:23] nogic: has joined #ruby
[17:38:33] jrafanie: has joined #ruby
[17:39:58] claw: has joined #ruby
[17:42:38] GodFather: has joined #ruby
[17:44:40] ayonkhan: has joined #ruby
[17:45:32] troys: has joined #ruby
[17:45:43] rajno: has joined #ruby
[17:51:04] elisaado: has left #ruby: ("WeeChat 1.9.1")
[17:52:30] jinie: has joined #ruby
[17:56:30] nunchuck: has joined #ruby
[17:57:07] mikecmpbll: has joined #ruby
[17:57:21] dmtd: has joined #ruby
[17:57:51] nixbug: has joined #ruby
[17:58:15] orbyt_: has joined #ruby
[17:59:40] Devalo: has joined #ruby
[17:59:47] Technodrome: has joined #ruby
[18:00:46] hahuang65: has joined #ruby
[18:02:12] kies: has joined #ruby
[18:02:20] milardovich: has joined #ruby
[18:03:20] nowhereman: has joined #ruby
[18:05:51] Megamosaren: has joined #ruby
[18:07:38] jxv: has joined #ruby
[18:08:16] Rapture: has joined #ruby
[18:10:33] conta1: has joined #ruby
[18:11:04] conta2: has joined #ruby
[18:15:29] lxsameer: has joined #ruby
[18:17:29] fclausen: has joined #ruby
[18:19:25] ldepandis: has joined #ruby
[18:19:27] claudiuinberlin: has joined #ruby
[18:20:50] banisterfiend: has joined #ruby
[18:21:30] biberu: has joined #ruby
[18:21:57] jphase: has joined #ruby
[18:24:24] banisterfiend: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:24:46] jxv: has joined #ruby
[18:26:30] jgt: has joined #ruby
[18:27:09] RedNifre: has joined #ruby
[18:27:17] RedNifre: Good evening!
[18:27:19] jxv: has joined #ruby
[18:27:37] Dimik: has joined #ruby
[18:27:47] alex``: has joined #ruby
[18:28:44] c_nick: has joined #ruby
[18:29:00] RedNifre: Say that you get two deliveries per month, say on the 12th and 26th (is it th?). How to best calculate a countdown in days for that? I can only think of clumsy solutions involving if statements at the month break.
[18:29:09] c_nick: how can i call ruby on button click in sinatra ?
[18:29:11] eckhardt: has joined #ruby
[18:31:12] jenrzzz: has joined #ruby
[18:32:20] cdg: has joined #ruby
[18:34:49] baweaver: RedNifre: clarify what you mean by countdown
[18:34:52] fullstack: has joined #ruby
[18:35:19] SeepingN: (26-12)*24*60*60 seconds ?
[18:35:42] baweaver: c_nick: https://learnrubythehardway.org/book/ex51.html
[18:40:51] claudiuinberlin: has joined #ruby
[18:41:11] RedNifre: a countdown in days that changes at midnight, which I can display on my raspberry pi's lcd.
[18:41:28] baweaver: > one_day = 24*60*60; now = Time.now; ten_d_ago = now - (10*one_day); {now: now, 10_ago: ten_d_ago, days_until: (now - ten_d_ago) / one_day} # RedNifre
[18:41:30] RedNifre: well, it's less a ruby problem and more a "how to write elegant code" problem
[18:42:02] RedNifre: baweaver the relevant days are the 12. and the 26.
[18:42:08] RedNifre: ...of each month
[18:42:11] baweaver: >> one_day = 24*60*60; now = Time.now; ten_d_ago = now - (10*one_day); {now: now, 10_ago: ten_d_ago, days_until: (now - ten_d_ago) / one_day} # RedNifre
[18:42:12] ruby[bot]: baweaver: # => /tmp/execpad-ecb2b67264c2/source-ecb2b67264c2:2: trailing `_' in number ...check link for more (https://eval.in/886164)
[18:42:28] baweaver: Anyways, basically that
[18:42:42] baweaver: probably mad about 10_ago
[18:43:11] alex``: has joined #ruby
[18:43:39] RedNifre: well, i don't see how it's related to my problem.
[18:44:05] RedNifre: ...but i guess I'll go with the if statement at the month edge or maybe just substract the count of days this month if the current day is after the second date.
[18:44:10] c_nick: has joined #ruby
[18:44:49] apeiros: Date is day based
[18:45:53] apeiros: Date.civil(year, month, day) - Date.today # => days remaining
[18:47:26] RedNifre: That technique would require three Date.civil, no?
[18:47:42] apeiros: one per date you want a countdown for
[18:47:54] RedNifre: You would need the two of the current month and the first of the next month, then substract Date.today and pick the first that isn't negative.
[18:48:44] RedNifre: Meh, I'll just irb it out until I'm happy with the code...
[18:48:50] ek926m: has joined #ruby
[18:49:58] apeiros: oh, I think I understand now
[18:50:01] RedNifre: apeiros it's not a difficult problem to solve, It's only difficult to solve it in an elegant way.
[18:50:12] apeiros: you can use << 1 to move a Date by 1 month
[18:50:25] apeiros: as long as it's not >28th day of the month, that should be unproblematic
[18:50:53] Technodrome: has joined #ruby
[18:51:07] RedNifre: How to get the number of days in the current month?
[18:51:13] VeryBewitching: has joined #ruby
[18:51:39] apeiros: have a lookup table (date might have one)
[18:51:53] apeiros: switch 28 to 29 if it's february and a leap year (Date#leap?)
[18:53:11] RedNifre: how do I list the methods of something again in irb?
[18:54:01] apeiros: but use pry and the `ls` command
[18:55:00] herbmillerjr: has joined #ruby
[18:58:55] ek926m: has joined #ruby
[18:59:02] enterprisey: has joined #ruby
[18:59:13] apeiros: pry is a replacement for irb
[18:59:55] RedNifre: ah, I'll look it up then.
[19:00:48] RedNifre: Is there an FP style way to find the first non negative number in a list? like list.find(>= 0) or something short like that, or do I have to go with a block with a parameter like { |x| x >= 0 } ?
[19:01:08] havenwood: RedNifre: &:negative?
[19:01:37] orbyt_: has joined #ruby
[19:01:41] RedNifre: ACTION is pondering.
[19:02:24] nadir: has joined #ruby
[19:02:24] havenwood: RedNifre: If you don't mind the inversion of: reject(&:negative?)
[19:02:27] RedNifre: okay, so how do I get not negative? 0 is neither
[19:03:15] RedNifre: nah, reject returns a list
[19:03:25] havenwood: oh, you wanted first
[19:03:44] RedNifre: hm, I guess find(complement(&:negative?)) or something like that is no longer worth the hassle.
[19:04:11] havenwood: RedNifre: find with a block
[19:04:42] havenwood: RedNifre: sorry, i should have read what you were asking more carefully - you said it clearly
[19:05:13] RedNifre: yeah, I'll go with the block, doing it point-free style isn't worth it it seems.
[19:06:28] knight33: has joined #ruby
[19:06:45] jrafanie: has joined #ruby
[19:09:24] haylon: has joined #ruby
[19:10:26] lxsameer: has joined #ruby
[19:12:29] alnewkirk: has joined #ruby
[19:12:42] thomasv314: has joined #ruby
[19:12:47] kitikonti: has joined #ruby
[19:15:11] apeiros: >> [-2,-3,5,-4,15].find(&:positive?)
[19:15:13] ruby[bot]: apeiros: # => 5 (https://eval.in/886174)
[19:15:15] apeiros: @ RedNifre ^
[19:16:04] Technodrome: has joined #ruby
[19:16:55] havenwood: >> [-1, 0, 1].find(&:positive?)
[19:16:56] ruby[bot]: havenwood: # => 1 (https://eval.in/886175)
[19:17:10] havenwood: I think RedNifre wanted `0` to be found.
[19:17:49] kitikonti: has joined #ruby
[19:18:11] apeiros: too bad natural? isn't a thing
[19:18:21] mathys: has joined #ruby
[19:18:39] havenwood: that'd be nice
[19:18:49] charliesome: has joined #ruby
[19:19:24] havenwood: >> class Numeric; def natural?; zero? || positive? end end; 0.natural?
[19:19:26] ruby[bot]: havenwood: # => true (https://eval.in/886176)
[19:19:49] apeiros: I'd change order of methods
[19:20:02] apeiros: positive? is infinitely more likely than zero :)
[19:20:12] havenwood: good point, the most-common case is non-zero
[19:20:41] havenwood: unless you have infinite zeros
[19:24:45] jxv: has joined #ruby
[19:26:50] uZiel: has joined #ruby
[19:28:53] enterprisey: has joined #ruby
[19:36:05] jxv: has joined #ruby
[19:36:26] |ifei5g00d: has joined #ruby
[19:36:53] claudiuinberlin: has joined #ruby
[19:44:11] |ifei5g00d: has joined #ruby
[19:44:36] VeryBewitching: Is there anything I should be aware of when having a carriage return in my symbol list? ie. %i(one two three)?
[19:45:02] VeryBewitching: Does Ruby treat the carriage return like a space?
[19:45:59] VeryBewitching: https://gist.github.com/bewitchingme/e9889b88e150f85134cca9131e332fd3 as an example
[19:46:16] basket: VeryBewitching: Did you try it at a REPL?
[19:46:17] VeryBewitching: It seems to work, just wondering if there's a gotcha somewhere
[19:46:25] Papierkorb: VeryBewitching: line feeds are whitespace
[19:46:25] basket: No, it just treats it like a space
[19:46:48] VeryBewitching: Papierkorb: I did not, and thanks basket :D
[19:47:36] konsolebox: has joined #ruby
[19:48:03] Macaveli: has joined #ruby
[19:49:12] eam: >> %i( weird that this is ok ( ) ).inspect
[19:49:13] ruby[bot]: eam: # => "[:weird, :that, :this, :is, :ok, :\"(\", :\")\"]" (https://eval.in/886179)
[19:49:31] eam: >> %i(but this isn't ( ( ).inspect
[19:49:32] ruby[bot]: eam: # => /tmp/execpad-990605aa3966/source-990605aa3966:2: unterminated string meets end of file ...check link for more (https://eval.in/886180)
[19:50:04] Papierkorb: eam: it counts braces in the body. Use different kinds of braces instead: `%i[ ( ]`
[19:50:18] ruby[bot]: Papierkorb: # => [:" "] (https://eval.in/886181)
[19:50:26] Papierkorb: And you can also do that :P
[19:50:28] eam: yeah not needing it solved more pointing out how odd it is
[19:50:43] rhyselsmore: has joined #ruby
[19:50:54] eam: as in the first case, the ( ) become symbols
[19:50:55] adaedra: Yeah, all % literals, when used with open/close symbols count the number of delimitors inside too
[19:51:53] Cohedrin_: has joined #ruby
[19:52:03] snickers: has joined #ruby
[19:52:27] adaedra: >> %(So you can have string litterals with (parenthesis) inside and () as delimitors without escaping.)
[19:52:29] ruby[bot]: adaedra: # => "So you can have string litterals with (parenthesis) inside and () as delimitors without escaping." (https://eval.in/886182)
[19:52:46] adaedra: Way better than good ol' `"`!
[19:52:53] eam: the rules around delimiters also differ between quote types, which is odd
[19:53:06] eam: >> % like_this ;
[19:53:07] ruby[bot]: eam: # => "like_this" (https://eval.in/886183)
[19:53:09] wnd: has joined #ruby
[19:53:15] eam: >> %i but_not_this ;
[19:53:16] ruby[bot]: eam: # => /tmp/execpad-a8e0f6fe803c/source-a8e0f6fe803c:2: unterminated string meets end of file ...check link for more (https://eval.in/886184)
[19:53:27] adaedra: it's any non-alphanumeric char
[19:53:35] eam: nope, it's any character
[19:54:16] eam: see the first example
[19:54:35] eam: almost any character, I should say
[19:54:45] eam: >> %?like this?
[19:54:46] ruby[bot]: eam: # => "like this" (https://eval.in/886185)
[19:54:47] adaedra: space is not alphanumeric, so it's working as delimitor
[19:54:54] eam: that's what I mean
[19:55:06] eam: it's a delimitor for % but not %i
[19:55:10] adaedra: alphanums after % indicate the "kind" of % litteral
[19:55:18] Papierkorb: >> %​unicode sucks​
[19:55:19] ruby[bot]: Papierkorb: # => /tmp/execpad-e649038a04ba/source-e649038a04ba:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/886186)
[19:55:26] adaedra: %w => Array, %i => String array, %q => String, etc.
[19:55:40] eam: >> %unicode is lame? No u
[19:55:41] ruby[bot]: eam: # => /tmp/execpad-434728cedaa9/source-434728cedaa9:2: unknown type of %string ...check link for more (https://eval.in/886187)
[19:55:59] Papierkorb: eam: zero width char: ​​
[19:56:02] mathys: has joined #ruby
[19:56:05] eam: oh haha
[19:56:05] adaedra: The rule is actually quite simple
[19:56:19] adaedra: >> % % % % % #
[19:56:20] ruby[bot]: adaedra: # => "%" (https://eval.in/886188)
[19:56:48] jolamb: Are there any tools to make refactoring ERuby templates easier? Preferably that integrate nicely with emacs?
[19:56:56] Devalo: has joined #ruby
[19:57:09] eam: >> % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% %
[19:57:10] ruby[bot]: eam: # => /tmp/execpad-46f68f84af18/source-46f68f84af18:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/886189)
[19:57:15] eam: %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% # %%%
[19:57:17] eam: whoops too long
[19:57:38] adaedra: tools that would refactor HTML, maybe?
[19:57:38] eam: >> % %%%%%% %%%% % %%%%% %%%% # % is versatile
[19:57:45] ruby[bot]: eam: # => "%" (https://eval.in/886192)
[19:57:47] chmurifree: has joined #ruby
[19:57:48] jolamb: I'd like to extract complex logic into a helper lib, e.g. https://github.com/openshift/sprint_tools/blob/master/templates/releases_overview.erb#L67-L138
[19:58:02] adaedra: eam: not too much with the bot, please
[19:58:32] jolamb: adaedra: it's not the HTML that's the problem :D
[19:58:47] Puffball: has joined #ruby
[19:59:03] adaedra: ah, in that case no idea :D
[19:59:14] adaedra: I abandonned erb some time ago now
[20:00:31] jolamb: adaedra: what's a good alternative?
[20:00:48] adaedra: haml / slim
[20:00:54] adaedra: (but that's a preference)
[20:00:58] jolamb: adaedra: note that I inherited this code, I wouldn't have made anything like this willingly :P
[20:00:59] jrafanie: has joined #ruby
[20:01:12] adaedra: we won't judge :D
[20:01:17] cdg: has joined #ruby
[20:01:20] Papierkorb: jolamb: There's a Erb-to-haml tool too. But i've never tried it
[20:01:26] Papierkorb: So no idea if it's any good
[20:01:36] jolamb: Papierkorb: adaedra: it's not really the er
[20:01:41] jolamb: erb that's a problem though
[20:01:55] jolamb: it's the huge blocks of logic that should be refactored out
[20:02:31] jolamb: sorry about the stutter, "b" is right next to "enter" on this typematrix kb and my muscle memory has never quite adjusted
[20:03:33] jolamb: I guess I just need to do this the old-fashioned way, by moving logic out chunk-by-chunk to see what breaks :/
[20:03:47] adaedra: Good thing you have good test coverage
[20:04:03] jxv: has joined #ruby
[20:04:45] jolamb: arrrgh wtf https://github.com/openshift/sprint_tools/blob/master/templates/releases_overview.erb#L182
[20:04:51] jolamb: adaedra: That's just mean
[20:05:09] jolamb: you've obviously spotted the missing tests :(
[20:05:14] Papierkorb: We're not gonna judge. but jeez
[20:05:22] adaedra: I'm double sorry if you don't have tests
[20:05:33] adaedra: First because what I said
[20:05:35] cdg_: has joined #ruby
[20:05:41] adaedra: Second because.... well, you don't have tests
[20:06:17] adaedra: (Maybe it's time to add some?)
[20:06:38] adaedra: Is that the thing you have to refactor, jolamb?
[20:07:18] jolamb: adaedra: yeah
[20:07:31] jolamb: it is Reliable Code that has Gotten Us This Far
[20:07:33] milardovich: has joined #ruby
[20:07:49] jolamb: it's very modification-hostile
[20:08:04] fclausen: has joined #ruby
[20:08:09] |ifei5g00d: has joined #ruby
[20:08:15] adaedra: It reminds me of PHP
[20:08:17] Papierkorb: jolamb: Mh I think I'd start splitting that thing into partials. Just to have smaller chunks you can then (hopefully) easier refactor
[20:08:50] Papierkorb: And then part by part pull things out, and do a few improvement passes until it's bearable overall
[20:09:01] adaedra: There's way too much logic in this file
[20:09:22] jolamb: adaedra: that's the dadgum truth
[20:09:34] ta: has joined #ruby
[20:09:37] Papierkorb: Hence why I'd split that thing into partials first :P
[20:10:19] Papierkorb: Doesn't improve the overall quality (or not by itself), but makes it more "consumable". Crazy code that fits on your screen is better than crazy code that doesn't
[20:10:28] adaedra: But once you've refactored this big bad boy, your satisfaction levels will likely reach their maximum
[20:11:34] adaedra: If you're looking at refactoring tools, I think RubyMine is the one that should give you the best, but even with that I wouldn't raise too many hopes
[20:12:03] adaedra: It may help you with the split to partials phase
[20:12:04] jolamb: adaedra: roger that
[20:12:24] adaedra: stop calling me roger
[20:14:22] adaedra: Anyway, I wish you courage
[20:14:59] tvw: has joined #ruby
[20:15:23] FastJack: has joined #ruby
[20:16:41] jolamb: adaedra: Papierkorb: any recommendations on unit-testing libraries for non-rails code?
[20:16:52] adaedra: Papierkorb: I've seen code that fits in my screen many times that would terrify me
[20:16:55] Papierkorb: jolamb: I really liked rspec3 the most
[20:17:18] havenwood: jolamb: minitest
[20:17:50] thomasv314: has joined #ruby
[20:18:53] Papierkorb: adaedra: Yeah I didn't say it made it good, but just more bearable to some extent, to let you focus a bit more. No doubt that you can create amazing shit code where that still doesn't help :P
[20:19:07] orbyt_: has joined #ruby
[20:19:48] eam: I wish the ruby builtin Process class allowed for more rich interactions
[20:20:06] eam: like enumerating, parent/child relationships
[20:20:19] jolamb: havenwood: why minitest over rspec3?
[20:21:01] havenwood: jolamb: It's already in the stdlib. It's simpler. It *just works*. It lets you combine test and spec styles as you wish. It's faster.
[20:21:20] jolamb: havenwood: that all sounds pretty good
[20:21:28] jolamb: downsides?
[20:21:40] Papierkorb: less expressive
[20:22:39] Papierkorb: Also the subject/let stuff with context/describe blocks is really great once you get the hang of it
[20:23:14] havenwood: An aside, but this Rspec 2-to-3 converter is fantastic: https://github.com/yujinakayama/transpec
[20:24:24] havenwood: eam: that's be really nice
[20:24:35] ta: has joined #ruby
[20:25:12] thomasv3_: has joined #ruby
[20:25:22] eam: I think it doesn't because it was written originally to wrap the posix libc interfaces and libc doesn't actually provide those things. But, you know, ruby could do better
[20:25:45] Papierkorb: Process is a mess
[20:26:12] eam: posix apis for interacting with processes are a mess
[20:30:23] eam: here's a fun question that really upsets people: why is /bin/ps on your OSX laptop setuid root?
[20:30:58] milardovich: has joined #ruby
[20:31:03] hutch34: has joined #ruby
[20:31:09] Papierkorb: because their proc fs has funny permissions?
[20:31:44] eam: does OSX have /proc?
[20:31:57] eam: (so then, how does it work?)
[20:31:58] Papierkorb: isn't that UNIX?
[20:32:18] jxv: has joined #ruby
[20:32:19] eam: proc is a nonstandard thing and the unixes that do implement it generally do so differently
[20:32:24] anjen: has joined #ruby
[20:35:10] postmodern: has joined #ruby
[20:40:08] scorpiosec: has joined #ruby
[20:42:05] adaedra: No /proc on macOS
[20:42:21] adaedra: On FreeBSD, it exist but not mounted by default
[20:43:15] mozzarella: has joined #ruby
[20:45:06] adaedra: Just checked, if ps is not setuid under macOS there are some information it can't get about process of other users (CPU time, Mem usage, Time, Status, ...)
[20:45:08] gil_: has joined #ruby
[20:45:29] adaedra: (it's also seeable with other process monitors like htop which require root to work correctly)
[20:46:06] Papierkorb: doesn't mac os use capabilities?
[20:46:38] adaedra: I'm not sure it applies to single binaries
[20:48:18] scorpiosec: has joined #ruby
[20:54:43] bmurt: has joined #ruby
[20:54:52] Ropeney: has joined #ruby
[20:54:54] eckhardt: has joined #ruby
[20:54:59] eam: it looks like it uses entitlements
[20:55:20] eam: I assumed it worked the way freebsd used to (open /dev/kmem and read it) but there's a lot more to it on osx
[20:55:25] TinkerTyper: has joined #ruby
[20:58:14] cpruitt: has joined #ruby
[20:59:15] scorpiosec_: has joined #ruby
[21:01:03] milardovich: has joined #ruby
[21:01:27] ta: has joined #ruby
[21:05:00] |ifei5g00d: has joined #ruby
[21:05:47] ta: has joined #ruby
[21:09:00] charliesome: has joined #ruby
[21:13:17] gusrub: has joined #ruby
[21:14:30] jenrzzz: has joined #ruby
[21:14:30] jenrzzz: has joined #ruby
[21:16:42] bvcosta: has joined #ruby
[21:22:17] |ifei5g00d: has joined #ruby
[21:22:46] orbyt_: has joined #ruby
[21:23:02] alfiemax: has joined #ruby
[21:26:08] chouhoul_: has joined #ruby
[21:27:55] FrostCandy: has joined #ruby
[21:29:46] FrostCandy: I've been looking all over and cant figure this out - how do I post an array to a uri? Every example I've found fails. responce.body = {'d'=>['1','2','3']}.to_json for example fails. Anyone have an example that works ?
[21:31:54] elomatreb: Depends on your encoding. JSON is simple, in x-www-form-urlencoded arrays look like d[]=1&d[]=2&d[]=3
[21:33:32] Azure: has joined #ruby
[21:34:14] nofxx: has joined #ruby
[21:35:25] FrostCandy: do you have a http.post example I could look at ? I don't really knwo what you mean. are you saying the to_json method doesn't encode the same way all the time?
[21:35:52] FrostCandy: currently im using the Net::HTTP.new
[21:35:58] FrostCandy: but nothing works.
[21:37:40] mim1k: has joined #ruby
[21:37:47] alfiemax: has joined #ruby
[21:39:34] apeiros: FrostCandy: what he says is that it depends on how the service you call expects it
[21:39:58] apeiros: there's more than one standard way to do it and there are infinite non-standard ways
[21:40:29] GodFather: has joined #ruby
[21:40:49] Aloy: has joined #ruby
[21:41:28] FrostCandy: Oh, ya I see, so there are several ways I could send it with ruby methods like URI.encode_www_form(params) vs something else and somethign else ?
[21:41:47] bruno-: has joined #ruby
[21:42:52] FrostCandy: ok, so is there a way i coudld puts out what I'm sending after encoding?
[21:45:39] nofxx: has joined #ruby
[21:46:53] FrostCandy: Ok, do you know off hand what method woudl encode with id=1,2,3 instead of how URI.encode_www_form does it - id=1&id=2&id=3?
[21:47:01] jenrzzz: has joined #ruby
[21:47:01] jenrzzz: has joined #ruby
[21:47:13] FrostCandy: if not i could write my own method for that i suppose
[21:47:52] |ifei5g00d: has joined #ruby
[21:48:12] thomasv314: has joined #ruby
[21:54:27] mostlybadfly: has joined #ruby
[21:55:11] ap4y: has joined #ruby
[21:56:56] AndBobsYourUncle: has joined #ruby
[22:01:52] Cohedrin_: has joined #ruby
[22:03:31] safetypin: has joined #ruby
[22:04:51] ap4y: has joined #ruby
[22:06:21] FrostCandy: fyi to_query is a nice idomatic way to do it for id[0]=1, id[1]=2
[22:07:30] FrostCandy: rather id[]=1,id[]=2
[22:12:18] elomatreb: Depending on what you're interacting with you can do a lot, but not all implementations support everything
[22:16:56] elomatreb: If you can get away with just using JSON for the transport like that, you should. (I think your issue earlier might have been that you didn't set the appropriate Content-Type on your request?)
[22:16:56] alnewkirk: has joined #ruby
[22:23:23] bvcosta: has joined #ruby
[22:24:34] |ifei5g00d: has joined #ruby
[22:31:10] FrostCandy: application/json was the content type. maybe there was a way to use a json string as a parameter, then break that down later.
[22:31:28] FrostCandy: oh well sounds like a tomorrow job.
[22:33:23] scorpiosec: has joined #ruby
[22:34:11] fullstack: has joined #ruby
[22:35:04] scorpiosec: hey anyone knows this error
[22:35:06] scorpiosec: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-n2sW0b/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-FMB1nr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-n2sW0b/pycrypto/
[22:36:56] elomatreb: Maybe you should ask in a python channel? :P
[22:37:21] cpruitt: has left #ruby: ()
[22:39:04] apeiros: has joined #ruby
[22:39:07] safetypin: has joined #ruby
[22:40:01] alfiemax: has joined #ruby
[22:40:35] ivanskie: has joined #ruby
[22:42:42] ycycling: has joined #ruby
[22:42:45] tcopeland: has joined #ruby
[22:44:22] Psybur: has joined #ruby
[22:52:52] veeti: has joined #ruby
[23:01:37] milardovich: has joined #ruby
[23:02:46] jxv: has joined #ruby
[23:03:17] alfiemax: has joined #ruby
[23:05:26] cschneid_: has joined #ruby
[23:06:56] kernelPaniq: has joined #ruby
[23:08:48] d5sx43: has joined #ruby
[23:10:34] |ifei5g00d: has joined #ruby
[23:12:44] veeti: has joined #ruby
[23:15:26] ap4y: has joined #ruby
[23:19:20] LenPayne: has joined #ruby
[23:25:41] orbyt_: has joined #ruby
[23:30:21] hutch34: has joined #ruby
[23:33:53] alveric2: has joined #ruby
[23:36:42] safetypin: has joined #ruby
[23:38:07] mim1k: has joined #ruby
[23:40:30] cdg: has joined #ruby
[23:41:10] veeti: has joined #ruby
[23:42:50] pryorda: has joined #ruby
[23:45:04] fclausen: has joined #ruby
[23:45:52] alfiemax: has joined #ruby
[23:47:09] jottr: has joined #ruby
[23:52:37] Ropeney: has joined #ruby
[23:53:19] latemus: how can i do something like .inspect to an an object of the class 'Object'
[23:53:43] |ifei5g00d: has joined #ruby
[23:53:44] wald0: has joined #ruby
[23:59:14] mim1k: has joined #ruby