adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
CommunistWolf has quit [Ping timeout: 260 seconds]
CommunistWolf has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
meinside has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
aremaref has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
dfucci has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
dfucci has quit [Ping timeout: 240 seconds]
bsdbandit-01 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: https://github.com/srgx]
dfucci has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
dfucci has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
dfucci has quit [Ping timeout: 246 seconds]
aremaref has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
SeepingN has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
bsdbandit-01 has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
aremaref has joined #ruby
dviola has quit [Quit: WeeChat 2.9]
ChmEarl has quit [Quit: Leaving]
aremaref has quit [Ping timeout: 240 seconds]
prion has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
panorain has joined #ruby
prion has quit [Ping timeout: 246 seconds]
maryo has joined #ruby
adu has joined #ruby
maryo87 has joined #ruby
astronavt has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
maryo has quit [Ping timeout: 260 seconds]
bsdbandit-01 has joined #ruby
aremaref has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
dfucci has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 264 seconds]
aremaref has quit [Ping timeout: 256 seconds]
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
prion has joined #ruby
aremaref has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
prion has quit [Ping timeout: 240 seconds]
apotheon has quit [Ping timeout: 272 seconds]
apotheon has joined #ruby
duderonomy has joined #ruby
Mrgoose5 has joined #ruby
Mrgoose has quit [Ping timeout: 256 seconds]
Mrgoose5 is now known as Mrgoose
ur5us has joined #ruby
maryo87 has quit [Read error: Connection reset by peer]
maryo87 has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
akem has joined #ruby
cloud69 has joined #ruby
gix has quit [Quit: Client exiting]
adu has quit [Quit: adu]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has quit [Quit: cd]
SeepingN has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
SeepingN has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
dfucci has joined #ruby
maryo87 has quit [Remote host closed the connection]
maryo87 has joined #ruby
maryo87 has quit [Remote host closed the connection]
aremaref has quit [Ping timeout: 240 seconds]
Mrgoose5 has joined #ruby
Mrgoose has quit [Ping timeout: 240 seconds]
Mrgoose5 is now known as Mrgoose
aremaref has joined #ruby
hiroaki has quit [Ping timeout: 256 seconds]
aremaref has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Quit: WeeChat 2.9]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
meinside has quit [Ping timeout: 260 seconds]
jo-so has quit [Ping timeout: 260 seconds]
meinside has joined #ruby
duderonomy has quit [*.net *.split]
Rudd0 has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
electrostat has quit [*.net *.split]
phaul has quit [*.net *.split]
s_ has quit [*.net *.split]
fippy has quit [*.net *.split]
clemens3_ has quit [*.net *.split]
llua has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
Rounin has quit [*.net *.split]
axsuul has quit [*.net *.split]
madhatter has quit [*.net *.split]
kozowu has quit [*.net *.split]
cfjk has quit [*.net *.split]
kenichi has quit [*.net *.split]
FemmeAndroid has quit [*.net *.split]
miah has quit [*.net *.split]
sjums has quit [*.net *.split]
lypsis has quit [*.net *.split]
blackmesa has quit [Ping timeout: 260 seconds]
jo-so has joined #ruby
spk has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
thecoffemaker has quit [Ping timeout: 264 seconds]
Eiam has quit [Ping timeout: 246 seconds]
spk has joined #ruby
Rudd0 has joined #ruby
duderonomy has joined #ruby
electrostat has joined #ruby
fippy has joined #ruby
clemens3_ has joined #ruby
s_ has joined #ruby
phaul has joined #ruby
Emmanuel_Chanel has joined #ruby
Fridtjof has joined #ruby
axsuul has joined #ruby
sjums has joined #ruby
Rounin has joined #ruby
llua has joined #ruby
kozowu has joined #ruby
madhatter has joined #ruby
cfjk has joined #ruby
kenichi has joined #ruby
miah has joined #ruby
FemmeAndroid has joined #ruby
lypsis has joined #ruby
thecoffemaker has joined #ruby
Rudd0 has quit [Max SendQ exceeded]
Rudd0 has joined #ruby
vondruch has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<TheBrayn> What's the easiest way of installing the ruby 3 previews?
<TheBrayn> Nvm, there are docker images
cloud69 has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
TomyWork has joined #ruby
blackmesa1 has joined #ruby
blackmesa has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
va5c0 has joined #ruby
kristian_on_linu has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
fandre1986 has joined #ruby
cloud69 has joined #ruby
va5c0 has quit [Quit: WeeChat 3.0]
va5c0 has joined #ruby
ta has quit [Quit: WeeChat 2.9]
ta has joined #ruby
va5c0 has quit [Client Quit]
drincruz has joined #ruby
hiroaki has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
bier has quit [Excess Flood]
pwnd_sfw8 has joined #ruby
pwnd_sfw has quit [Ping timeout: 240 seconds]
pwnd_sfw8 is now known as pwnd_sfw
braincrash has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
BenDover has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
impermanence has quit [Quit: Connection closed]
al2o3-cr has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
banisterfiend has joined #ruby
dionysus69 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
somazero has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Quit: WeeChat 2.9]
al2o3-cr has joined #ruby
bsdbandit-01 has joined #ruby
fandre1986 has quit [Quit: Connection closed]
adu has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
BenDover has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristian_on_linu has quit [Remote host closed the connection]
Technodrome has joined #ruby
TCZ has quit [Quit: Kindergarten is elsewhere!]
Rudd0 has quit [Read error: Connection reset by peer]
fanta1 has joined #ruby
bier has joined #ruby
cow[moo] has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has joined #ruby
Technodrome has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<ruurd> @TheBrayn install rvm
<ruurd> then add ruby3 to that
<ruurd> Well, a docker image is a bit hamfisted way to just try out a ruby version isn't it
<ruurd> On a more general node - I'm using rvm to separate ruby versions and gemset versions, I use jabba to be able to run multiple Java version, nvm to run multiple node versions and pyenv to run multiple python versions.
blackmesa has quit [Ping timeout: 260 seconds]
<ruurd> All that is more than reason enough to not use a Windows machine in the first place.
bsdbandit-01 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.9]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
akem_ has quit [Quit: Leaving]
bsdbandit-01 has quit [Read error: Connection reset by peer]
<adam12> TheBrayn: Out of curiosity, what OS are you running?
<TheBrayn> Archlinux
<TheBrayn> Do I have to add a git branch to RVM or is there an easier way?
Emmanuel_Chanel has joined #ruby
<adam12> Were you already using RVM?
<TheBrayn> yeah
bsdbandit-01 has joined #ruby
<adam12> TheBrayn: You might need to get rvm from github master branch, because Ruby 3 preview 2 changed packaging mechanism and that broke some ruby managers.
<TheBrayn> Thanks, I'll just try ruby-head and will see how that works out
SeepingN has joined #ruby
prion has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nakilon> 17:29:26 <ruurd> All that is more than reason enough to not use a Windows machine in the first place.
<nakilon> WSL is already 4 years old technology
<ruurd> why would you want to use WSL in heavens' name
<ruurd> then either use macos or use ubuntu but stop wasting energy by heating the universe with unnecessary clock cycles.
<ruurd> or another linux to your liking
<adam12> :| I use WSL2 for a solid 8 hours a day. It's _fine_.
bsdbandit-01 has quit [Read error: Connection reset by peer]
aremaref has joined #ruby
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
<TheBrayn> adam12: building the master branch with rvm worked
<TheBrayn> well not directly but you know what I mean
<adam12> TheBrayn: Cool. Hopefully the fix to RVM ships soon. ruby-build just got it a few days ago as well.
cloud69 has quit [Quit: Connection closed for inactivity]
Rudd0 has joined #ruby
ChmEarl has joined #ruby
blackmesa has joined #ruby
prion has quit [Ping timeout: 260 seconds]
somazero has quit [Remote host closed the connection]
somazero has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prion has joined #ruby
SeepingN has joined #ruby
tekk has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
<nakilon> forcing yourself to struggle trying to use linux as a development machine is like an infection that you may catch and then hopefully recover
duderonomy has joined #ruby
akem has joined #ruby
aremaref has quit [Ping timeout: 246 seconds]
duderonomy has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
elcontrastador has joined #ruby
cuerbot has joined #ruby
BTRE has quit [Remote host closed the connection]
elcuervo has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
prion has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
somazero has quit [Quit: Leaving]
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
somazero has joined #ruby
cjohnson has joined #ruby
<cjohnson> Riddle me this batman. puts matching_upstream \n puts matching_upstream['local_bind_port'] gives me the following output
<cjohnson> {"destination_name"=>"rxservice", "local_bind_port"=>21000}
<cjohnson> test.rb:29:in `[]': no implicit conversion of String into Integer (TypeError)
<cjohnson> The first line is the output from the first puts, the second line is the error caused by the second puts
<adam12> cjohnson: puts matching_upstream.class
yobro has joined #ruby
<yobro> hi !
<adam12> yobro: ohai
<yobro> i like ruby because of msf.
bambanx has joined #ruby
<yobro> hi adam12.
<cjohnson> adam12: Array (wut)
<yobro> adam12 are you a dev?
<cjohnson> Ok, so I see my problem. I thought Array.select would return the first matching result. Is there a form that will return the first matching result instead of an array of matching results?
<adam12> cjohnson: What did the Array say to the Hash? Quack.
<adam12> cjohnson: Enumerable#first
<al2o3-cr> cjohnson: detect/find
<cjohnson> It's confusing that puts matching_upstream gives me output that doesn't include [ ]
<cjohnson> But thanks for helping me spot the funkiness
<adam12> err. Yeah. Enumerable#find
<cjohnson> Thanks
<adam12> cjohnson: Use `p` not `puts` for debugging since it calls #inspect.
<yobro> adam12 why are you opped ?
<cjohnson> adam12: ho ho, thanks for the tip
<cjohnson> yobro: to make you ask questions
<yobro> why?
<cjohnson> Because it's entertaining to the rest of us
<cjohnson> LOL jk
<yobro> ?
<yobro> helo
<yobro> so yea
<al2o3-cr> &>> 1.step(21, 2).find ->{:nope}, &:even?
<rubydoc__> # => :nope (https://carc.in/#/r/a41b)
<yobro> where do i start lerning ruby?
<adam12> yobro: I'm not sure we feel like feeding the troll today. You can stay and be nice or we can do the dance now and then I'll go for lunch.
<yobro> what?
<adam12> OK bye then.
yobro was banned on #ruby by adam12 [*!*@2a03:1b20:1:f410:40::3d]
yobro was kicked from #ruby by adam12 [yobro]
cloud69 has joined #ruby
aremaref has joined #ruby
ian| has joined #ruby
<havenwood> &>> ((1..21) % 2).find ->{:nope}, &:even?
<rubydoc__> # => :nope (https://carc.in/#/r/a41c)
<havenwood> al2o3-cr: I think I prefer the `step(by: 2)` syntax.
<havenwood> &>> 1.step(to: 21, by: 2).find ->{:nope}, &:even?
<rubydoc__> # => :nope (https://carc.in/#/r/a41d)
<havenwood> <3 kwargs
<al2o3-cr> havenwood: 👍 i always forget keyword arguments to step :)
<havenwood> &>> ((1..21) % 2) == 1.step(to: 21, by: 2)
<rubydoc__> # => true (https://carc.in/#/r/a41e)
<ian|> how do you get an array out of n..m
<havenwood> al2o3-cr: I feel somewhat criminal, but I want to be able to mutate the #end and #step of Enumerator::ArithmeticSequence.
<havenwood> ian|: [*n..m]
<havenwood> ian|: Or: (n..m).to_a
<havenwood> ian|: I'd usually use the former—an Array literal with a splat.
<ian|> cool, thanks
<al2o3-cr> havenwood: i forgot Range#% too
<ian|> i guess n..m is an iterator because irb seems to return lazily applied functions to it
<al2o3-cr> &>> Enumertor::ArithmeticSequence.ancestors
<rubydoc__> stderr: -e:4:in `<main>': uninitialized constant Enumertor (NameError)... check link for more (https://carc.in/#/r/a41f)
<al2o3-cr> &>> Enumerator::ArithmeticSequence.ancestors
<rubydoc__> # => [Enumerator::ArithmeticSequence, Enumerator, Enumerable, Object, Kernel, BasicObject] (https://carc.in/#/r/a41g)
<havenwood> ian|: A Range literal like `(n..m)` isn't lazy but you can make a Lazy Enumerator with: (n..m).lazy
<havenwood> &>> (42..420).lazy.map(&:to_s)
<rubydoc__> # => #<Enumerator::Lazy: #<Enumerator::Lazy: 42..420>:map> (https://carc.in/#/r/a41h)
<havenwood> &>> (42..420).map(&:to_s)
<rubydoc__> # => ["42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85",... check link for more (https://carc.in/#/r/a41i)
<havenwood> ian|: Note the first is lazy and the latter is eager.
<al2o3-cr> lazy is good :)
<havenwood> &>> (42..420).lazy.lazy.lazy
<rubydoc__> # => #<Enumerator::Lazy: 42..420> (https://carc.in/#/r/a41j)
<havenwood> I still think Enumerator should have an #eager but I've been too lazy to implement.
somazero has quit [Quit: Leaving]
<ian|> i like language design and am sick of writing everything in C, so i'll definitely learn some ruby
<havenwood> ian|: Welcome!
<havenwood> ian|: Let us know if you have any questions and we're always happy to review code.
<ian|> thanks man
<al2o3-cr> i was think yesterday Array/Enumerable#pluck was rejected.
<al2o3-cr> *thinking
dionysus69 has joined #ruby
<al2o3-cr> that schedules.map { ... } could be schedules.map &:id
<al2o3-cr> but i think schedules.map { _1[:id] } is sufficient tbh
ellcs has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
<havenwood> al2o3-cr: I was a bit disappointed that Struct literals didn't make it in 3.0.
<havenwood> al2o3-cr: I look forward to 3.1.
<adam12> havenwood: Same.
gix has joined #ruby
<al2o3-cr> havenwood: me three. ${ ... } seems nice to me.
<havenwood> [${aim: true}].map(&:aim) #=> [true]
aremaref has joined #ruby
<al2o3-cr> havenwood: do you know ko1's proposal was rejected?
<havenwood> al2o3-cr: For whatever reason it seemed to have gotten clumped with Set literal, and was delayed along with it. I don't recall why.
<al2o3-cr> havenwood: i hope they reconsider this.
howdoi has joined #ruby
ellcs has quit [Ping timeout: 258 seconds]
TomyWork has quit [Remote host closed the connection]
braincrash has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
aremaref has quit [Ping timeout: 256 seconds]
desnudopenguino has quit [Quit: Lost terminal]
aremaref has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
r29v has joined #ruby
r29v has quit [Client Quit]
BTRE has joined #ruby
bsdbandit-01 has joined #ruby
DTZUZU has quit [Remote host closed the connection]
DTZUZU has joined #ruby
Iarfen has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
bsdbandit-01 has joined #ruby
baojg_ has quit [Remote host closed the connection]
BSaboia has joined #ruby
baojg has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ellcs has quit [Ping timeout: 260 seconds]
Benett has quit [Remote host closed the connection]
blackmesa has joined #ruby
TCZ has joined #ruby
Benett has joined #ruby
siaw23 has joined #ruby
ellcs has joined #ruby
panorain has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
SeepingN has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
ellcs has quit [Ping timeout: 258 seconds]
d0liver has quit [Ping timeout: 264 seconds]
kwilczynski has quit [Read error: Connection reset by peer]
proc has quit [Read error: Connection reset by peer]
jerme_ has quit [Read error: Connection reset by peer]
d0liver has joined #ruby
proc has joined #ruby
jerme_ has joined #ruby
nickb has quit [Ping timeout: 258 seconds]
kwilczynski has joined #ruby
nickb has joined #ruby
aremaref has joined #ruby
bsdbandit-01 has joined #ruby
Swyper has joined #ruby
braincrash has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
<apotheon> havenwood: Have you tried opening irb and just entering ${} on the first line?
<havenwood> apotheon: Not until you suggested. What am I supposed to see?
bsdbandit-01 has quit [Read error: Connection reset by peer]
prion has joined #ruby
<apotheon> I'm not sure why it's behaving that way.
<havenwood> apotheon: What's it doing? Indenting?
<apotheon> It's odd, and I haven't figured out what the parser thinks is happening.
<apotheon> yep
<apotheon> every time I hit Enter
<havenwood> apotheon: Thinks it's a block?
<havenwood> $!> `${' is not allowed as a global variable name
<apotheon> I'd think it would think the block closed.
<apotheon> Oh, weird.
<apotheon> It behaved differently this time.
<apotheon> I just got the same error you indicated. The first time I tried it, that's not what happened.
<apotheon> I entered ${}
<apotheon> it indented on the next line with no output.
<apotheon> I hit Enter again, and it indented again.
<apotheon> I hit Ctrl-C, it went back to "normal".
<apotheon> Something must have been screwed up in irb the first time.
<apotheon> Never mind. Glitch. I have no idea how to reproduce it, now.
<apotheon> Oh, the second time I accidentally ran it in an SSH session to a different machine.
<apotheon> . . . so on a 32b system I get the repeated indentation, and on a 64b system I get the same result as you.
zenspider has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
<apotheon> $ irb
<apotheon> irb(main):002:1>
<apotheon> irb(main):001:1> ${}
<apotheon> irb(main):003:1>
<apotheon> 002:1 is indented two columns
<apotheon> 003:1 is indented four columns
zenspider has joined #ruby
<apotheon> It repeats that increasing indentation behavior, until Ctrl-C, then it resets to 001:0.
<apotheon> hmm
ellcs has quit [Ping timeout: 258 seconds]
<apotheon> The behavior on the 64b system makes sense.
<apotheon> (same OS on both)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fanta1 has quit [Quit: fanta1]
SeepingN has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
panorain has joined #ruby
tomaw has quit [Ping timeout: 606 seconds]
tomaw_ has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
tomaw_ is now known as tomaw
bsdbandit-01 has joined #ruby
<nakilon> how do I split useful optional development_dependencies and those that are needed to run tests in the gem CI testing?
bsdbandit-01 has quit [Read error: Connection reset by peer]
<nakilon> for example, I'd like to have an environment variable that enables ruby-prof but I don't need to install it during test run because it needs to compile native extensions so I need build utils then wait, etc.
baojg has quit [Remote host closed the connection]
<nakilon> the easiest way that probably will work is 'spec.add_development_dependency "ruby-prof" unless ENV["CI"]' but maybe there is a cleaner way
baojg has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
siaw23 has joined #ruby
<adam12> nakilon: Do you use bundler? could use a Gemfile for this.
<apotheon> havenwood: Now I get the difference in behavior. I installed the same version on the 64b system as on the 32b system (Ruby 2.7.2), and now it does the indentation thing instead of giving an error about variables.
<apotheon> I just don't know what's going on behind the scenes for that indentation.
jinie has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cd has joined #ruby
<nakilon> adam12 you mean remove "gemspec" from Gemfile?
<adam12> nakilon: Nah. I mean keep it and add a group like `profile`, and put those dependencies there.
<nakilon> ah, and then somehow install the specified group when developing?
<adam12> nakilon: Yeah.
tempate has quit [Ping timeout: 258 seconds]
hiroaki has quit [Ping timeout: 272 seconds]
siaw23 has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
bsdbandit-01 has joined #ruby
Technodrome has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 3.0]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tempate has joined #ruby
tempate has joined #ruby
SeepingN has joined #ruby
prion has quit [Ping timeout: 272 seconds]
<havenwood> apotheon: Yeah, hard to get insights on things that aren't valid syntax.
<havenwood> apotheon: See: ruby -yydebug -e '${'
Rudd0 has joined #ruby
<havenwood> apotheon: It doesn't compile, but that'll ^ show you the parse.y grammar rules it followed.
<havenwood> apotheon: Then again, could be an IRB-specific oddity?
<havenwood> apotheon: Error as expected in Pry
<apotheon> It's interesting if there's an IRB-specific oddity that doesn't exist in older versions.
bsdbandit-01 has joined #ruby
<apotheon> It looks to me, from the debug output, like there's an error because it recognizes the opening brace as significant syntax when the dollar sign significance is left hanging.
<havenwood> apotheon: IRB has changed lately.
<havenwood> Some nice new changes in 3.0. Faster paste, particularly.
<apotheon> How big a change are we discussing?
<apotheon> Was parsing altered?
<apotheon> substantially, I mean
BSaboia has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
<havenwood> yup
<havenwood> and lots of new features, like syntax highlighting
<havenwood> and reline
<panorain> hmm
<panorain> I have never been involved with "programming before" one thing has brought me to Ruby.
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
dfucci has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
panorain has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
panorain has joined #ruby
prion has joined #ruby
<adam12> panorain: welcome?
bsdbandit-01 has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 256 seconds]
<panorain> Thank you asam12 ..... I ugh have been struggling a bit with computers. I decided I like openSUSE Tumbleweed. I want you to talk about the Ruby programming language.
dfucci has joined #ruby
<havenwood> panorain: Have any Ruby questions? Or comments or code to share?
FastJack has quit [Ping timeout: 240 seconds]
FastJack has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
<panorain> I would like to work more with "Gsmartcontrol".
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<panorain> havenwood: I do not know Perl
baojg has quit [Remote host closed the connection]
Cork has quit [Ping timeout: 260 seconds]
baojg has joined #ruby
dfucci has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
prion has quit [Ping timeout: 256 seconds]
Rudd0 has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
adu has quit [Quit: adu]
bsdbandit-01 has quit [Ping timeout: 260 seconds]
<ian|> i'm curious why '[1,2,3,4].map{|x|x+1}' works but '[1,2,3,4].map({|x|x+1})' doesn't
<CommunistWolf> '[1,2,3,4].map(){|x|x+1}' does
<CommunistWolf> the block syntax just isn't an argument to the function, in the way it would be in js (say)
<ian|> ah so block parameters must be special, not just like 'lambdas' or w/e
<pabs> ian|: the former is a block passed to map, and the latter is syntactically invalid, but it looks like it's supposed to be a proc passed as a parameter to map
<havenwood> &>> [1,2,3,4].map(&proc{|x|x+1})
<rubydoc__> # => [2, 3, 4, 5] (https://carc.in/#/r/a42a)
<pabs> ian|: does that answer your question?
<CommunistWolf> you could do [1,2,3,4].map(&proc { |x| x+1 }) if you really wanted to
<havenwood> ian|: A block can be passed inside the parens, but only with &. The {} block notation must be outside parens.
<CommunistWolf> heh, yes
<CommunistWolf> faster than me :D
<ian|> question answered :)
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
shokohsc has joined #ruby
<panorain> CommunistWolf: Can I ask about your beginning in programming with Ruby?
<CommunistWolf> I learnt it for a job interview
<CommunistWolf> back in 2008
ur5us has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 260 seconds]