« Back to channel list

#ruby - 03 August 2019

« Back 1 day Forward 1 day »
[00:00:22] AJA4350: has joined #ruby
[00:01:59] dviola: has joined #ruby
[00:06:28] jottr: has joined #ruby
[00:17:00] greengriminal: has joined #ruby
[00:20:10] AJA4350: has joined #ruby
[00:21:45] AJA4350: has joined #ruby
[00:31:48] brool: has joined #ruby
[00:34:10] orbyt_: has joined #ruby
[00:51:58] admin123: has joined #ruby
[00:59:32] orbyt_: has joined #ruby
[01:06:47] chalkmonster: has joined #ruby
[01:45:19] none__: has joined #ruby
[01:46:05] admin123: has joined #ruby
[01:47:46] zacts: has joined #ruby
[01:48:20] fphilipe_: has joined #ruby
[02:07:58] jottr: has joined #ruby
[02:35:57] jenrzzz: has joined #ruby
[02:40:14] admin123: has joined #ruby
[02:44:37] tdy: has joined #ruby
[02:47:13] englishm: has joined #ruby
[02:48:21] Fusl: has joined #ruby
[02:48:38] ramfjord: has joined #ruby
[02:49:06] jottr: has joined #ruby
[02:49:25] jenrzzz: has joined #ruby
[03:00:58] tdy: has joined #ruby
[03:05:21] tdy: has joined #ruby
[03:10:15] tdy: has joined #ruby
[03:12:48] AnandJambhulkar: has joined #ruby
[03:17:38] jenrzzz: has joined #ruby
[03:34:18] admin123: has joined #ruby
[03:35:26] jenrzzz: has joined #ruby
[03:49:19] fphilipe_: has joined #ruby
[03:56:41] jenrzzz: has joined #ruby
[03:57:22] Swyper: has joined #ruby
[04:03:42] Inline: has joined #ruby
[04:08:31] chunkypuffs: has joined #ruby
[04:15:02] jenrzzz: has joined #ruby
[04:21:11] _whitelogger: has joined #ruby
[04:27:11] _whitelogger: has joined #ruby
[04:28:28] admin123: has joined #ruby
[04:33:11] _whitelogger: has joined #ruby
[04:45:26] m1khail: has joined #ruby
[04:49:24] x86sk: has joined #ruby
[04:50:46] jottr: has joined #ruby
[04:58:08] polishdub: has joined #ruby
[05:12:15] Lyubo1: has joined #ruby
[05:14:11] rorochan: has joined #ruby
[05:15:36] sauvin: has joined #ruby
[05:22:35] admin123: has joined #ruby
[05:27:34] orbyt_: has joined #ruby
[05:28:45] jottr: has joined #ruby
[05:34:13] rorochan: has joined #ruby
[06:00:37] fphilipe_: has joined #ruby
[06:01:10] oetjenj: has joined #ruby
[06:16:46] admin123: has joined #ruby
[06:25:13] Lyubo1: has joined #ruby
[06:39:03] MuffinPimp: has joined #ruby
[07:00:36] jottr: has joined #ruby
[07:10:52] admin123: has joined #ruby
[07:14:17] tdy: has joined #ruby
[07:14:50] ramfjord: has joined #ruby
[07:17:11] Intelo_: has joined #ruby
[07:32:23] tdy: has joined #ruby
[07:34:43] sameerynho: has joined #ruby
[07:35:49] tdy: has joined #ruby
[07:37:16] suukim: has joined #ruby
[07:38:55] tdy: has joined #ruby
[07:53:58] tdy: has joined #ruby
[07:55:28] Furai: has joined #ruby
[08:01:30] fphilipe_: has joined #ruby
[08:15:27] glosoli: has joined #ruby
[08:23:04] Dbugger: has joined #ruby
[08:27:29] rorochan: has joined #ruby
[08:39:30] admin123: has joined #ruby
[08:43:46] za1b1tsu: has joined #ruby
[08:50:15] cyclonis: has joined #ruby
[08:50:40] cyclonis: has joined #ruby
[09:09:30] jottr: has joined #ruby
[09:15:11] _whitelogger: has joined #ruby
[09:19:36] davorb: has joined #ruby
[09:23:53] kapilp: has joined #ruby
[09:32:30] MuffinPimp: has joined #ruby
[09:33:53] admin123: has joined #ruby
[09:39:28] jmcgnh_: has joined #ruby
[09:40:22] jenrzzz: has joined #ruby
[09:43:19] zipkid: has joined #ruby
[09:43:43] wbnns: has joined #ruby
[09:45:51] pwillard: has joined #ruby
[09:45:54] victorqueiroz: has joined #ruby
[09:47:02] TvL: has joined #ruby
[09:47:21] strmpnk: has joined #ruby
[09:47:21] sparch: has joined #ruby
[09:47:24] raggi: has joined #ruby
[09:47:27] hsiktas: has joined #ruby
[09:47:30] Liothen: has joined #ruby
[09:48:01] KevinSjoberg: has joined #ruby
[09:48:09] JayDoubleu: has joined #ruby
[09:55:45] Fernando-Basso: has joined #ruby
[09:58:10] jokester: has joined #ruby
[09:58:20] Fernando-Basso: has joined #ruby
[09:59:29] jtperreault: has joined #ruby
[10:02:21] fphilipe_: has joined #ruby
[10:03:21] Fernando-Basso: has joined #ruby
[10:03:36] Nicmavr: has joined #ruby
[10:05:32] Ropeney: has joined #ruby
[10:10:58] fphilipe_: has joined #ruby
[10:27:12] za1b1tsu: has joined #ruby
[10:28:09] admin123: has joined #ruby
[10:30:50] gix: has joined #ruby
[10:34:16] za1b1tsu: has joined #ruby
[10:38:09] BH23: has joined #ruby
[10:39:01] duderonomy: has joined #ruby
[10:44:42] jottr: has joined #ruby
[10:50:56] lord4163: has joined #ruby
[10:57:09] chalkmonster: has joined #ruby
[11:10:01] fphilipe_: has joined #ruby
[11:22:21] admin123: has joined #ruby
[11:39:00] admin123: has joined #ruby
[11:44:57] ur5us_: has joined #ruby
[11:57:34] reber: has joined #ruby
[12:00:53] nowhere_man: has joined #ruby
[12:04:02] za1b1tsu: has joined #ruby
[12:07:38] TheCoolBrian: has joined #ruby
[12:11:53] gabschem_: has joined #ruby
[12:13:12] Inline: has joined #ruby
[12:15:36] jenrzzz: has joined #ruby
[12:18:20] fphilipe_: has joined #ruby
[12:20:57] AJA4350: has joined #ruby
[12:21:24] TheCoolBrian: how often do people use this IRC?
[12:22:39] glosoli: has joined #ruby
[12:26:03] lnh^: has joined #ruby
[12:28:58] Swyper: has joined #ruby
[12:29:40] enh^: has joined #ruby
[12:31:28] TheCoolBrian: Well here is a link to the only Ruby Discord https://discord.gg/UyQnKrT
[12:43:03] Swyper: has joined #ruby
[12:45:24] jottr: has joined #ruby
[12:51:00] Swyper: has joined #ruby
[12:56:17] Swyper: has joined #ruby
[13:10:23] kyrylo: has joined #ruby
[13:10:58] GodFather_: has joined #ruby
[13:11:04] GodFather: has joined #ruby
[13:13:08] kyrylo: has joined #ruby
[13:14:02] Lyubo1: has joined #ruby
[13:15:54] kyrylo_: has joined #ruby
[13:23:40] TheCoolBrian: has joined #ruby
[13:31:03] jottr: has joined #ruby
[13:32:26] go|dfish: has joined #ruby
[13:34:01] Fernando-Basso: has joined #ruby
[13:38:56] lucasb: has joined #ruby
[13:39:20] noizex: has joined #ruby
[13:40:53] AJA4350: has joined #ruby
[13:43:08] fphilipe_: has joined #ruby
[13:50:01] za1b1tsu: has joined #ruby
[13:54:07] AJA4351: has joined #ruby
[13:58:42] cd: has joined #ruby
[14:05:08] kyrylo: has joined #ruby
[14:05:37] Dbugger: has joined #ruby
[14:07:01] jottr: has joined #ruby
[14:08:18] kyrylo: has joined #ruby
[14:13:18] kyrylo: has joined #ruby
[14:16:12] kyrylo: has joined #ruby
[14:19:06] kyrylo: has joined #ruby
[14:20:51] fphilipe_: has joined #ruby
[14:21:51] kyrylo: has joined #ruby
[14:22:24] barg: irb arrow keys aren't working even with irb --noreadline
[14:23:26] barg: I get like ^[[A
[14:29:36] Iambchop: barg: what version ruby, how installed, what os/shell, did it ever work?
[14:30:53] kyrylo: has joined #ruby
[14:33:42] Sylario: has joined #ruby
[14:34:28] sagax: has joined #ruby
[14:36:36] barg: also if I try pry<ENTER> it says "Reason: image not found - /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/x86_64-darwin16/readline.bundle"
[14:36:50] barg: ruby 2.5.0
[14:37:23] barg: it probably worked some months ago when i last used irb, as i think i'd remember a problem like this
[14:37:49] barg: ruby --version says "ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]"
[14:41:52] AJA4351: has joined #ruby
[14:45:55] englishm: has joined #ruby
[14:47:22] jottr: has joined #ruby
[14:49:10] oetjenj: has joined #ruby
[14:49:10] kyrylo: has joined #ruby
[14:51:58] Frobozz: has joined #ruby
[14:52:46] apotheon: Wasn't there an option for using editline instead of readline with irb?
[14:53:22] havenwood: apotheon: There's a new default gem in trunk, Reline, that's a readline fallback.
[14:53:41] havenwood: https://github.com/ruby/reline
[14:54:05] havenwood: barg: brew upgrade
[14:54:37] apotheon: I hadn't heard about that.
[14:55:30] m1khail: has joined #ruby
[14:55:37] apotheon: I might have use for reline at some point in the nearish future.
[14:55:42] apotheon: havenwood: Thanks!
[14:57:40] havenwood: apotheon: rlwrap is another neat tool that you can use to wrap anything without readline support. perl6 doesn't support readline, for example, but you can: rlwrap perl6
[14:57:59] havenwood: https://github.com/hanslub42/rlwrap
[14:58:29] havenwood: it's handy when you want to add readlne to a toy repl, etc
[14:59:37] apotheon: I've heard of rlwrap.
[15:00:15] havenwood: There's another alternative that does similar but I can't recall the name.
[15:04:55] barg: after doing brew upgrade, now when I do pry<ENTER> it says "can't find gem pry (>= 0.a) with executable pry (Gem::GemNotFoundException)"
[15:05:11] rprimus: has joined #ruby
[15:05:26] barg: and if i try gem install pry, it says "bash: /usr/local/bin/gem: No such file or directory"
[15:07:54] queip: has joined #ruby
[15:09:48] barg: ah opening an ew window helps.. i can do irb now and arrow keys work!
[15:10:06] apotheon: I'm curious about the rlwrap alternative, now.
[15:10:17] barg: but gem install pry still gives that error
[15:10:24] apotheon: (assuming it's a Ruby gem; I know about the thing that comes with GNU Readline)
[15:11:41] barg: hmm now it says "You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory."
[15:12:07] nowhere_man: has joined #ruby
[15:12:20] havenwood: barg: That looks like system Ruby. You can install gems with system Ruby with sudo. But you're trying to use Brew Ruby, right?
[15:12:38] barg: my ruby --version has dropped to 2.3.7
[15:12:56] barg: havenwood: i haven't ever done brew ruby as far as i can recall
[15:13:00] havenwood: barg: That's likely your system Ruby.
[15:13:17] havenwood: barg: What Ruby are you trying to use? How'd you install Ruby?
[15:13:17] barg: i will try sudo gem install pry
[15:13:34] havenwood: barg: You can use system Ruby, but most Rubyists opt to install a newer Ruby.
[15:13:43] apotheon: Yeah, if the version *dropped* after a brew upgrade, it seems likely to have reverted to the system ruby.
[15:13:54] havenwood: barg: You could: brew install ruby
[15:14:11] barg: sudo gem install pry worked, now i open a new window and pry works..
[15:14:24] barg: will brew install ruby, install the latest stable one?
[15:14:28] havenwood: barg: You'll probably want to install Ruby 2.6 at some point. :)
[15:15:01] havenwood: barg: Or here are instructions for chruby, if you want to be able to switch between various versions: https://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
[15:17:29] barg: I have tried brew install ruby, and it says ruby 2.6 is already installed, and suggested brew reinstall ruby. So I tried that. And opened a new window, and it's still on ruby 2.3.7
[15:19:47] barg: ah was then a path issue export PATH="/usr/local/opt/ruby/bin:$PATH"
[15:20:00] barg: so now it's showing ruby 2.6
[15:22:51] TheBetrayer: has joined #ruby
[15:23:20] ascarter: has joined #ruby
[15:26:45] insolentworm: has joined #ruby
[15:29:02] AJA4350: has joined #ruby
[15:29:18] Caerus: has joined #ruby
[15:30:18] fphilipe_: has joined #ruby
[15:32:43] jacksoow: has joined #ruby
[15:39:03] ascarter: has joined #ruby
[15:39:17] linuxdaemon: has joined #ruby
[15:41:14] zacts: has joined #ruby
[15:52:43] jottr: has joined #ruby
[15:53:59] Sithembewena: has joined #ruby
[15:59:02] ascarter_: has joined #ruby
[16:11:38] m1khail: has joined #ruby
[16:15:16] za1b1tsu: has joined #ruby
[16:15:49] orbyt_: has joined #ruby
[16:15:56] AJA4351: has joined #ruby
[16:17:06] Sithembewena: SO does anyone know if/ when Ruby will get parallelism?
[16:17:29] jenrzzz: has joined #ruby
[16:17:35] Sithembewena: Or any news about losing the GIL?
[16:20:33] BTRE: has joined #ruby
[16:23:22] ascarter: has joined #ruby
[16:26:29] m1khail: has left #ruby: ("Leaving")
[16:26:44] jottr: has joined #ruby
[16:31:54] fphilipe_: has joined #ruby
[16:33:23] zacts: has joined #ruby
[16:35:22] orbyt_: has joined #ruby
[16:36:29] kyrylo: has joined #ruby
[16:46:03] Iambchop: Sithembewena: Ruby 3 Guilds, Christmas 2020? https://developer.squareup.com/blog/rubykaigi-and-the-path-to-ruby-3/ https://m.youtube.com/watch?v=XiujvihOLq8
[16:55:28] kyrylo: has joined #ruby
[16:58:56] Sithembewena: has joined #ruby
[17:03:59] kyrylo: has joined #ruby
[17:04:55] jottr: has joined #ruby
[17:13:25] oetjenj: has joined #ruby
[17:15:44] kyrylo: has joined #ruby
[17:30:34] AJA4350: has joined #ruby
[17:30:57] tdy: has joined #ruby
[17:32:05] conta: has joined #ruby
[17:33:15] rubytoday: has joined #ruby
[17:36:15] davor: has joined #ruby
[17:36:58] jottr: has joined #ruby
[17:39:13] jangid: has joined #ruby
[17:41:03] kyrylo: has joined #ruby
[17:45:34] conta: has joined #ruby
[17:53:02] fphilipe_: has joined #ruby
[17:53:40] kyrylo: has joined #ruby
[18:09:33] jottr: has joined #ruby
[18:15:54] kyrylo: has joined #ruby
[18:17:05] sh7d: has joined #ruby
[18:25:33] kyrylo: has joined #ruby
[18:25:52] Dbugger: has joined #ruby
[18:28:13] hiroaki: has joined #ruby
[18:28:16] kyrylo: has joined #ruby
[18:29:27] rushsteve1: has joined #ruby
[18:29:50] AJA4351: has joined #ruby
[18:31:04] kyrylo: has joined #ruby
[18:31:31] rushsteve1: Hello once again! I'm hoping to get someone to review the patch I submitted https://bugs.ruby-lang.org/issues/15244
[18:32:46] gabschem_: has joined #ruby
[18:35:34] kyrylo: has joined #ruby
[18:35:42] impermanence: has joined #ruby
[18:38:10] kyrylo: has joined #ruby
[18:38:17] wildtrees: has joined #ruby
[18:39:37] wildtrees: has joined #ruby
[18:39:44] Inline__: has joined #ruby
[18:40:37] BH23: has joined #ruby
[18:40:45] kyrylo: has joined #ruby
[18:41:53] Emmanuel_Chanel: has joined #ruby
[18:42:18] wildtrees: has joined #ruby
[18:43:23] kyrylo: has joined #ruby
[18:44:01] nowhere_man: has joined #ruby
[18:45:58] kyrylo: has joined #ruby
[18:48:40] kyrylo: has joined #ruby
[18:49:53] jottr: has joined #ruby
[18:51:34] kyrylo: has joined #ruby
[18:52:45] havenwood: rushsteve1: I tried your patch and didn't run into edge cases that bothered me in particular. That said, I also have a hard time seeing a case where anyone would use it.
[18:53:15] havenwood: rushsteve1: How should repeated dots in filenames be treated? I'm really not sure.
[18:53:34] havenwood: rushsteve1: I couldn't find any GNU or BSD guidelines that apply.
[18:53:48] Intelo: has joined #ruby
[18:53:56] havenwood: rushsteve1: Did you encounter this in real world code?
[18:54:09] kyrylo: has joined #ruby
[18:54:21] havenwood: rushsteve1: Or are you wanting it for logical consistency but haven't run into needing it?
[18:55:17] havenwood: rushsteve1: I'd suggest adding addition test cases. I tried a bunch but didn't actually find inconsistent behavior.
[18:55:24] havenwood: additional*
[18:56:58] kyrylo: has joined #ruby
[18:57:13] rushsteve1: havenwood: I didn't open the issue so I've never actually encountered the issue. But filename containing nothing but dots *are* technically valid so should probably be handled.
[18:58:11] rushsteve1: havenwood: As for how they should be treated, I decided to leave the current method where only the final dot is of significance when determining the extension
[18:58:14] havenwood: rushsteve1: Yeah, I do think your version makes a bit more sense unless someone can explain why you'd remove multiple leading dots from a dotfile.
[18:58:45] havenwood: I couldn't find a reason to do that.
[18:59:02] havenwood: And there's not one documented. ¯\_(ツ)_/¯
[18:59:46] kyrylo: has joined #ruby
[19:01:01] rushsteve1: Since extname only cares about the extension anyway leading dots are somewhat irrelevant. Only the last dot actually matters.
[19:01:30] rushsteve1: Though one edge case just occurred to me in my patch.
[19:02:30] kyrylo: has joined #ruby
[19:02:36] rushsteve1: `.bashrc` will return "" (empty string) but `...bashrc` will return ".bashrc" since it considers it to be a hidden file named "." with the extension ".bashrc"
[19:03:24] rushsteve1: But then... isn't it? That's how my file manager (Dolphin) treats it
[19:04:49] glosoli: has joined #ruby
[19:07:08] kyrylo: has joined #ruby
[19:08:45] wildtrees: has joined #ruby
[19:09:45] kyrylo: has joined #ruby
[19:16:19] rushsteve1: havenwood: any thoughts?
[19:17:54] Intelo_: has joined #ruby
[19:25:56] teardown: has joined #ruby
[19:26:17] havenwood: rushsteve1: I think a test for that case would be helpful to solidify expectations. I see your patch as an improvement, but I worry about system-dependent edge cases.
[19:30:15] jottr: has joined #ruby
[19:33:45] zacts: has joined #ruby
[19:35:34] zacts|pi: has joined #ruby
[19:36:29] AJA4351: has joined #ruby
[19:36:48] wildtrees_: has joined #ruby
[19:36:56] jottr: has joined #ruby
[19:38:04] Sithembewena: has joined #ruby
[19:45:52] jottr: has joined #ruby
[20:02:10] rorochan: has joined #ruby
[20:03:20] Swyper: has joined #ruby
[20:15:45] Sithembewena: has joined #ruby
[20:17:03] jottr: has joined #ruby
[20:19:57] chalkmonster: has joined #ruby
[20:20:55] jenrzzz: has joined #ruby
[20:21:08] Sithembewena: Lambchop thanks
[20:22:28] oetjenj: has joined #ruby
[20:23:25] fphilipe_: has joined #ruby
[20:36:43] orbyt_: has joined #ruby
[20:44:00] gabschem_: has joined #ruby
[20:44:07] chalkmonster: has joined #ruby
[20:45:52] orbyt_: has joined #ruby
[20:50:47] akkad: has joined #ruby
[20:55:24] Ober: has left #ruby: ("ERC (IRC client for Emacs 26.2)")
[20:56:10] jottr: has joined #ruby
[20:57:12] Sithembewena: has joined #ruby
[20:59:20] fphilipe_: has joined #ruby
[21:10:30] Swyper: has joined #ruby
[21:15:27] Intelo: has joined #ruby
[21:17:02] x86sk: has joined #ruby
[21:28:35] jottr: has joined #ruby
[21:36:56] fphilipe_: has joined #ruby
[21:47:06] duderonomy: has joined #ruby
[22:01:02] jenrzzz: has joined #ruby
[22:01:28] Exuma: has joined #ruby
[22:07:16] jottr: has joined #ruby
[22:13:35] jordanm: has joined #ruby
[22:13:54] fphilipe_: has joined #ruby
[22:23:01] kaleido: has joined #ruby
[22:28:50] matheusmoreira: has joined #ruby
[22:38:25] jottr: has joined #ruby
[22:46:44] Sithembewena: has joined #ruby
[22:52:07] nowhere_man: has joined #ruby
[22:53:39] fphilipe_: has joined #ruby
[22:58:13] zacts: has joined #ruby
[23:01:34] Xiti: has joined #ruby
[23:09:06] barg: what is the reasoning behind ruby's rule that if a method call has no parentheses and 1+ arguments, and a block, then the block has to be done with do end, not with braces?
[23:11:58] rorochan: has joined #ruby
[23:12:06] jottr: has joined #ruby
[23:24:16] bvdw: has joined #ruby
[23:24:18] rorochan: has joined #ruby
[23:24:25] Freshnuts: has joined #ruby
[23:27:11] m3ssia: has joined #ruby
[23:28:43] fphilipe_: has joined #ruby
[23:29:01] havenwood: barg: It's just a looser precedence, nothing else.
[23:29:55] havenwood: barg: Note how {/} is lower precedence than do/end: https://ruby-doc.org/core/doc/syntax/precedence_rdoc.html
[23:31:40] leftylink: I guess they just had to make a decision. in the expression `f y { :hello }`, does f get the block, or does y? and it so turns out that it is y
[23:31:50] leftylink: &>> def y; yield end; def f a; a end; f y { :hello }
[23:31:51] rubydoc: # => :hello (https://carc.in/#/r/7che)
[23:32:00] leftylink: a decision had to be made one way or the other
[23:36:11] Exuma: has joined #ruby
[23:49:01] jottr: has joined #ruby
[23:51:43] DaRock: has joined #ruby
[23:56:32] barg: so there is no such rule re what I had thought, as I see that f y {} works, and I suppose is equivalent to f (y {}) so, as you say, it's about precedence, but i don't understand how parentheses is worked out basd on precedence. I know how it works for arithmetic operators.. I see that link mentions that {} are low priority and do end are lower. I can see that f 4 do end works. But I can't
[23:56:32] barg: see what parentheses could be put on f 4 do end to have the same effect