adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 2.7.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
ap4y has quit [Ping timeout: 248 seconds]
ap4y has joined #ruby
teclator has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
Al2O3 has quit [Ping timeout: 250 seconds]
CesarMarinhoRJ has quit [Quit: Client closed]
ap4y has quit [Remote host closed the connection]
goldfish has quit [Remote host closed the connection]
caedmon has joined #ruby
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
caedmon has quit [Quit: caedmon]
Linux_Kerio has joined #ruby
donofrio_ has quit [Remote host closed the connection]
donofrio_ has joined #ruby
heartburn has quit [Read error: Connection reset by peer]
heartbur1 has joined #ruby
grenierm has quit [Ping timeout: 260 seconds]
heartbur1 is now known as heartburn
heartburn has quit [Quit: Reconnecting]
heartburn has joined #ruby
stirl has joined #ruby
defectiverobot has joined #ruby
defectiverobot has quit [Remote host closed the connection]
reset has quit [Quit: reset]
donofrio has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 250 seconds]
grenierm has joined #ruby
weaksauce has joined #ruby
CrazyEddy has quit [Ping timeout: 250 seconds]
jetchisel has quit [Ping timeout: 250 seconds]
weaksauc_ has quit [Ping timeout: 250 seconds]
jetchisel has joined #ruby
clinically has joined #ruby
sickdyd has joined #ruby
<sickdyd> haml question: when `lazy` is false, the `loading` attribute should not show in the element, however it still shows up without any value: %img{loading: lazy ? 'lazy' : nil}
<sickdyd> why?
MalusVulgaris has joined #ruby
donofrio_ has quit [Ping timeout: 260 seconds]
<ox1eef_> sickdyd: Did you try `false` ? It is `nil` in that snippet. Maybe it makes a difference (just a guess).
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
moldorcoder7 has joined #ruby
otisolsen70 has joined #ruby
<sickdyd> ox1eef_: sorry, I don't understand what you mean
<sickdyd> by looking at various articles online it looks like the code should work and the attribute be ignored by haml, but it does not work in our case :<
<sickdyd> maybe it's related to the rails / haml version or something
<sickdyd> however in the Gemfile it does not specify the haml version
pvb has joined #ruby
mexen has joined #ruby
stirl has quit [Ping timeout: 260 seconds]
<ox1eef_> Try: '%img{loading: lazy ? 'lazy' : false}'
<ox1eef_> Also try: '%img{ lazy ? {loading: 'lazy'} : {} }' (See https://coderwall.com/p/_jiytg/conditional-html-tag-attribute-in-haml).
Sankalp has quit [Ping timeout: 255 seconds]
Sankalp has joined #ruby
Linux_Kerio has quit [Ping timeout: 265 seconds]
_ht has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
<sickdyd> ox1eef_: thanks, will try that
<cxl> Hi all, why is this blowing up in Ruby 3: `FileUtils.mv(source, expanded_destination, @file_options)`, it says 3 args given but 2 required. The last one is a hash `{noop: true}` and the first two are paths to files.
<sickdyd> cxl: it looks like FileUtils.mv requires 2 arguments, but you are passing 3
<cxl> but what about the options? the docs say you can pass an options hash
<sickdyd> do the docs show an example?
<sickdyd> maybe a different version of FileUtils
<sickdyd> do you have a link to the docs?
<cxl> Uuugh I guess in Ruby 3 you have to **hsh and in 2 you could pass the hsh
slothby has quit [Quit: brb ... maybe]
dionysus69 has joined #ruby
Jonopoly has joined #ruby
razetime has joined #ruby
hightower2 has quit [Ping timeout: 276 seconds]
grenierm has quit [Ping timeout: 260 seconds]
donofrio_ has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
bambanxx has joined #ruby
Linux_Kerio has joined #ruby
razetime has quit [Ping timeout: 255 seconds]
shokohsc7 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc7 is now known as shokohsc
shokohsc0 has joined #ruby
shokohsc has quit [Ping timeout: 248 seconds]
shokohsc0 is now known as shokohsc
razetime has joined #ruby
TomyWork has joined #ruby
donofrio_ has quit [Ping timeout: 265 seconds]
Jonopoly has quit [Quit: WeeChat 3.0]
donofrio_ has joined #ruby
razetime has quit [Remote host closed the connection]
John_Ivan has quit [Quit: Phantom of the future.]
sickdyd has quit [Ping timeout: 255 seconds]
reset has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tomtmym has quit [Quit: Gone.]
sickdyd has joined #ruby
bambanxx has joined #ruby
pvb has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
shokohsc9 has joined #ruby
shokohsc has quit [Ping timeout: 276 seconds]
shokohsc9 is now known as shokohsc
hightower2 has joined #ruby
xuochi has joined #ruby
xuochi has quit [Remote host closed the connection]
xuochi has joined #ruby
xuochi has quit [Remote host closed the connection]
pvb has joined #ruby
xuochi has joined #ruby
sickdyd has quit [Ping timeout: 252 seconds]
znpy has quit [Read error: Connection reset by peer]
znpy has joined #ruby
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #ruby
hightower2 has quit [Ping timeout: 255 seconds]
sickdyd has joined #ruby
johnjaye has joined #ruby
sickdyd has quit [Ping timeout: 248 seconds]
MalusVulgaris has quit [Quit: MalusVulgaris]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
slothby has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
teclator has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
sickdyd has joined #ruby
sickdyd has quit [Ping timeout: 252 seconds]
autodev has joined #ruby
pvb has quit [Ping timeout: 255 seconds]
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Ping timeout: 260 seconds]
autodev has joined #ruby
autodev has quit [Ping timeout: 250 seconds]
Rounin has quit [Ping timeout: 276 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
TomyWork has quit [Remote host closed the connection]
razetime has joined #ruby
sickdyd has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
bambanxx has joined #ruby
autodev has joined #ruby
razetime has quit [Ping timeout: 268 seconds]
sickdyd has quit [Ping timeout: 260 seconds]
lagash has quit [Ping timeout: 252 seconds]
sickdyd has joined #ruby
sickdyd has quit [Ping timeout: 255 seconds]
donofrio_ has quit [Ping timeout: 268 seconds]
donofrio_ has joined #ruby
lagash_ has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
donofrio_ has quit [Ping timeout: 255 seconds]
donofrio_ has joined #ruby
sickdyd has joined #ruby
eddof13 has joined #ruby
sickdyd has quit [Ping timeout: 255 seconds]
mexen has quit []
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
moo- is now known as moo
ur5us has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Ping timeout: 255 seconds]
goldfish has joined #ruby
sickdyd has joined #ruby
_ht has quit [Remote host closed the connection]
otisolsen70 has quit [Quit: Leaving]
hsiktas[m]1 has joined #ruby
sickdyd has quit [Ping timeout: 265 seconds]
Demi_ is now known as Demi
ur5us has quit [Ping timeout: 250 seconds]
tomtmym has quit [Quit: Gone.]
bambanxx has joined #ruby
xuochi has quit [Quit: ChatZilla 0.15 [SeaMonkey 2.53.15/20230120000000]]
sickdyd has joined #ruby
sickdyd has quit [Ping timeout: 248 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
<ox1eef_> cxl: Yep. I noticed a few APIs have made the switch to keyword arguments. Tempfile is another one.
sickdyd has joined #ruby
sickdyd has quit [Ping timeout: 255 seconds]
Linux_Kerio has quit [Ping timeout: 268 seconds]
johnjaye has quit [Ping timeout: 248 seconds]
johnjaye has joined #ruby
shokohsc2 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc2 is now known as shokohsc
FetidToot has quit [Read error: Connection reset by peer]
FetidToot5 has joined #ruby
graywolf has joined #ruby
sickdyd has joined #ruby
clinically is now known as CrazyEddy
sickdyd has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 250 seconds]