havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
eddof13 has quit [Client Quit]
Braill24 has quit [Read error: Connection reset by peer]
John_Ivan has quit [Ping timeout: 246 seconds]
diagnostics0 has joined #ruby
caedmon has joined #ruby
diagnostics0 has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 245 seconds]
Gabrie45 has joined #ruby
gh0st6 has joined #ruby
Gabrie45 has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
MarvelousWololo has joined #ruby
caedmon has joined #ruby
<johnjaye> hmm. is it natural for the range operators to have lower precedence than comparison?
<johnjaye> i would think it natural to write 5 == 1..10 but apparently I have to do 5 == (1..10) due to precedence
caedmon has quit [Ping timeout: 245 seconds]
_ht has joined #ruby
keypresser86 has quit [Ping timeout: 272 seconds]
clemens3 has quit [Ping timeout: 245 seconds]
gh0st6 has quit [Quit: Connection closed for inactivity]
clemens3 has joined #ruby
anaero70 has joined #ruby
anaero70 has quit [K-Lined]
grenierm has joined #ruby
_ht has quit [Quit: _ht]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
nektro has quit [Remote host closed the connection]
nektro has joined #ruby
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
teclator has joined #ruby
MarvelousWololo has quit [Read error: Connection reset by peer]
octobear has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
dalan03822 has quit [Quit: dalan03822]
dalan03822 has joined #ruby
infinityfye has joined #ruby
grenierm has quit [Quit: Client closed]
crespire1 has quit [Ping timeout: 245 seconds]
weaksauce has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
crespire has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
grenierm has joined #ruby
rvalue has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 272 seconds]
rvalue has joined #ruby
shokohsc53 has joined #ruby
shokohsc5 has quit [Ping timeout: 272 seconds]
shokohsc53 is now known as shokohsc5
grenierm has quit [Quit: Client closed]
hightower2 has joined #ruby
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #ruby
desnudopenguino has quit [Read error: Connection reset by peer]
markong has joined #ruby
cordia82 has joined #ruby
reset has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
markong has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
kaivai has quit [Ping timeout: 246 seconds]
some14u has joined #ruby
cordia82 has quit [Remote host closed the connection]
some14u has quit [Ping timeout: 245 seconds]
kaivai has joined #ruby
dnadev2 has joined #ruby
<dnadev2> i have to set ssl_params/verify_mode on my actioncable config to get it running on heroku (https://github.com/rails/rails/issues/42036). unfortunately this project is running rails 5.2 and the adapter doesn't slice those configuration options like later versions do. 5.2: https://github.com/rails/rails/blob/v5.2.8.1/actioncable/lib/action_cable/subscription_adapter/redis.rb#L16 vs 6.1: https://github.com/rails/rails/blob/v6.1.7.4/action
<dnadev2> cable/lib/action_cable/subscription_adapter/redis.rb#L18. does anyone know how to monkey patch this to work on 5.2? thanks.
Linux_Kerio has joined #ruby
some14u has joined #ruby
markong has joined #ruby
graywolf has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desnudopenguino has joined #ruby
some14u has joined #ruby
maims has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 272 seconds]
desnudopenguino1 is now known as desnudopenguino
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
maims has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
John_Ivan has joined #ruby
octobear has quit [Remote host closed the connection]
ribeiro has joined #ruby
brokkoli_origin has quit [Ping timeout: 245 seconds]
brokkoli_origin has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
markong has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 264 seconds]
patrick has quit [Killed (NickServ (GHOST command used by patrick-!~patrick@fsf/member/patrick))]
patrick has joined #ruby
sagax has joined #ruby
<Momentum> hmm string interpolation doesn't work in puts methods available in say socket?
<Momentum> ah nevermind it requires double quotes it seems like
_ht has joined #ruby
MarvelousWololo has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
<adam12> Momentum: I always use double quotes for every string.
___nick___ has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
c10l6 has quit [Quit: See ya! o/]
c10l6 has joined #ruby
hightower2 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
r3m has quit [Quit: WeeChat 4.1.0-dev]
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
ribeiro has quit [Ping timeout: 272 seconds]
caedmon has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
caedmon has quit [Ping timeout: 246 seconds]
<ox1eef_> IIRC that's the standardrb default.
<ox1eef_> johnjaye: (1..10).include?(5) is another way to write that. IME it is more common.
r3m has joined #ruby
<johnjaye> yes. i'm not sure why the == syntax exists tbh. but ruby allows you to overload syntax so it makes sense I guess.
caedmon has joined #ruby
Ribeiro86 has joined #ruby
Ribeiro86 is now known as ribeiro
bobbin has joined #ruby
<Momentum> okay thanks
<ox1eef_> Always welcome, Momentum !
Ribeiro86 has joined #ruby
ribeiro has quit [Ping timeout: 272 seconds]
caedmon has quit [Ping timeout: 245 seconds]
octobear has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
Linux_Kerio has quit [Ping timeout: 264 seconds]
bobbin has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
<leftylink> oh wow TIL. I was about to give the admonishment "remember that for numeric range inclusion, you must use cover? instead of include? so that you do not iterate the entire range members" but at some point they made it so that numeric range include? becomes a cover? instead. nice
<leftylink> so my admonishment is unnecessary
<leftylink> huh in fact that's been the behaviour ever since at least 1.9.1, so whatever idea I had in my head that you must use cover?, it must have been very very very outdated
<leftylink> I did not expect today to learn that I'm a dinosaur who needs to get with the times :<
graywolf has quit [Quit: WeeChat 4.0.0]
<leftylink> it should go without saying that the designers and makers of the Ruby language are much smarter than I am
<leftylink> oh, and the designers and makers of its standard library too
caedmon has joined #ruby
<weaksauce> get with the times old man
<weaksauce> wear an onion around your waist
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
<ox1eef_> xD
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
victori has joined #ruby
___nick___ has quit [Ping timeout: 258 seconds]
eddof13 has joined #ruby
some14u has quit [Ping timeout: 245 seconds]
<ox1eef_> >> (1...10).include?(10)
<ruby[bot]> ox1eef_: # => false (https://carc.in/#/r/fhh7)
<ox1eef_> That is so subtle. I'm not sure I like that feature.
some14u has joined #ruby
_ht has quit [Quit: _ht]
some14u has quit [Ping timeout: 272 seconds]
some14u has joined #ruby
infinityfye has quit [Quit: Leaving]
caedmon has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
shokohsc56 has joined #ruby
shokohsc5 has quit [Ping timeout: 272 seconds]
shokohsc56 is now known as shokohsc5
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
Ribeiro86 is now known as ribeiro
some14u has quit [Quit: Textual IRC Client: www.textualapp.com]
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
konsolebox has quit [Quit: Leaving]
ribeiro has quit [Remote host closed the connection]
bambanxx has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
polishdub has quit [Remote host closed the connection]
sagax has quit [Ping timeout: 246 seconds]
bambanxx has quit [Quit: Textual IRC Client: www.textualapp.com]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
diagnostics0 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomtmym has quit [Quit: Gone.]
<Momentum> hmm this is a bit weird
<Momentum> i did something like:
<Momentum> req = Net::HTTP::Post.new uri, {"Content-Type": "application/json"}.to_json
<Momentum> (NoMethodError) !initheader.keys.any? { |k|
<Momentum> ox1eef_: do you have an idea? :D
Pixi has quit [Read error: Connection reset by peer]
<Momentum> oh my bad
<Momentum> idk why i'm passing it as json
Pixi has joined #ruby
<Momentum> some examples are misleading
keypresser86 has joined #ruby
<ox1eef_> +1