jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
arg_ has quit [Quit: Connection closed for inactivity]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
mitt3ns has quit [Remote host closed the connection]
arg_ has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
abraham has joined #ruby
jetchisel has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
cahoots has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
abraham has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abraham has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
abraham has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abraham has joined #ruby
abraham has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
mitt3ns has joined #ruby
mitt3ns has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
cahoots has joined #ruby
polishdub has quit [Ping timeout: 256 seconds]
polishdub has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
EternalSunshine has joined #ruby
cahoots has joined #ruby
abraham has joined #ruby
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
cahoots has quit [Ping timeout: 256 seconds]
arg_ has quit [Quit: Connection closed for inactivity]
cahoots has joined #ruby
Linux_Kerio has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
taiju has quit [Ping timeout: 244 seconds]
abraham has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
cahoots has joined #ruby
EternalSunshine has quit [Quit: WeeChat 3.6]
Linux_Kerio has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 244 seconds]
gr33n7007h has quit [Quit: WeeChat 3.6]
gr33n7007h has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
John_Ivan_ has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
Linux_Kerio has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 268 seconds]
_aeris_ is now known as aeris
Aminda has quit [Ping timeout: 268 seconds]
Aminda has joined #ruby
_ht has quit [Quit: _ht]
Linux_Kerio has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 256 seconds]
Rounin has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
mikecmpbll has joined #ruby
jetchisel has joined #ruby
ua_ has quit [Ping timeout: 256 seconds]
mitt3ns has quit [Quit: leaving]
ua_ has joined #ruby
dionysus69 has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
dionysus69 has joined #ruby
arg_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
jpn has joined #ruby
Linux_Kerio has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
Ziyan_ has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
hightower4 has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
hightower2 has joined #ruby
hightower2 has quit [Client Quit]
hightower2 has joined #ruby
hightower2 has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
abraham has joined #ruby
abraham has left #ruby [#ruby]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
jpn has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Changing host]
mitt3ns has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
jpn has joined #ruby
hightower2 has joined #ruby
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #ruby
Ziyan has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
bit4bit has joined #ruby
jwr has joined #ruby
<jwr> i made some changes to my config/database.yml in a rails app and now i'm seeing this error/warning: https://pastebin.com/raw/pZmVLYLm. How can I know what this is complaining about? Weird yaml indention? Duplicate keys?
dionysus69 has quit [Ping timeout: 256 seconds]
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
eddof13 has joined #ruby
Ziyan has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John_Ivan_ has joined #ruby
hightower2 has joined #ruby
eddof13 has joined #ruby
cocalero has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bit4bit has quit [Ping timeout: 252 seconds]
CrazyEddy has quit [Ping timeout: 255 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Ziyan has joined #ruby
bit4bit has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
dionysus69 has joined #ruby
mitt3ns has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
polishdub has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 244 seconds]
polishdub has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
bit4bit has quit [Ping timeout: 248 seconds]
desnudopenguino has joined #ruby
jpn has joined #ruby
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
szkl has quit [Quit: Connection closed for inactivity]
eddof13 has quit [Ping timeout: 256 seconds]
Linux_Kerio has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 268 seconds]
jpn has quit [Quit: Lost terminal]
cahoots has quit [Quit: leaving]
ur5us has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
szkl has joined #ruby
Linux_Kerio has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
TomyWork has quit [Quit: Leaving]
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #ruby
reset has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
<newton> jwr, could you provide a redacted config?
<newton> jwr, it might be getting confused because you're declaring a primary database without a replica
<newton> guides notes there's some naming rules around multi-database config: https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application
<hightower2> Hey if I have `class X @@x = 1 end`, how do I made that class-level X.x available to the outside? I thought it was class_reader :x but no.
dionysus69 has joined #ruby
<hightower2> ah yes I remember, I think I need to make a def self.x() for that right?
<adam12> hightower2: Yes. But it's important to know that @x in a class and @@x in a class are different, and the @@ version can act unexpectedly.
<adam12> `class_reader` sounds like a Rails-ism.
<adam12> hightower2: @@ being a class variable, and @ being a class _instance_ variable.
<adam12> IMHO, avoid @@.
<newton> what are you trying to achieve hightower2
<hightower2> I know what I'm doing, no worries.
<newton> cattr_reader is probably what you're thinking of wrt class_reader
<hightower2> (I asked just because I was out of Ruby for a couple years). Thanks
<newton> (which is a rails thing)
Linux_Kerio has quit [Ping timeout: 248 seconds]
justache is now known as justache_
justache_ is now known as justache
Ziyan has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
bit4bit has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
<hightower2> Hey what's the Ruby equivalent of `x.try(&.y)` (i.e. call x.y if x is not nil, else nil) or x?.y in Node.js that has a similar function
<adam12> x&.y
_ht has joined #ruby
<leftylink> what was the one thing where I complained about hash default_proc and what did I want it to do instead?
<hightower2> danke schoen adam12
<leftylink> no, I see, it's consistent. hash's default doesn't assign so I should never expect default_proc to either. that is troublesome
<leftylink> I guess I could just ensure nobody's messed me up by freezing it
<leftylink> but it's kinda unergonomic
<leftylink> pandabot: rb h = Hash.new([].freeze); h[:a] += [5]
<pandabot> stderr: playpen: timeout triggered! - exit 1 - https://carc.in/#/r/dn8t
<leftylink> it's unergonomic because you couldn't do << 5 with that
<leftylink> pandabot: rb h = Hash.new([].freeze); h[:a] += [5]
<pandabot> [5] - https://carc.in/#/r/dn8u
<leftylink> pandabot: rb module AssignIt refine Hash.singleton_class do def new; super { |h, k| h[k] = yield } end end end; using AssignIt; h = Hash.new { [] }; h[:a] << 1; h[:b] << 2; h
<pandabot> {:a=>[1], :b=>[2]} - https://carc.in/#/r/dn8v
<leftylink> so I dunno
<leftylink> I guess I feel justified because if I have a default proc I would make it assign anyway
jpn has joined #ruby
jwr has quit [Remote host closed the connection]
_ht has quit [Remote host closed the connection]
bit4bit has quit [Quit: Leaving]
ur5us has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hightower2> Hey wasn't there in Ruby some good module to do file finding, called Finder or something?
eddof13 has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<weaksauce> til too
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hightower2> aa, good one! thanks
jpn has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
reset has quit [Quit: reset]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
Sankalp- has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp- is now known as Sankalp
mikecmpbll has joined #ruby