havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
xuochi has joined #ruby
xuochi has quit [Quit: leaving]
ur5us has quit [Ping timeout: 260 seconds]
Rounin has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has quit [Ping timeout: 240 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
camel has joined #ruby
camel has quit [Client Quit]
oxfuxxx has joined #ruby
jhawthorn has quit [Quit: ZNC 1.8.2 - https://znc.in]
jhawthorn has joined #ruby
PedroG2 has quit [Ping timeout: 256 seconds]
PedroG1 has joined #ruby
nirvdrum has joined #ruby
donofrio has joined #ruby
nirvdrum has quit [Ping timeout: 246 seconds]
donofrio has quit [Ping timeout: 246 seconds]
splud has quit [Ping timeout: 248 seconds]
nirvdrum has joined #ruby
o|||||o has quit [Ping timeout: 240 seconds]
splud has joined #ruby
splud has quit [Ping timeout: 246 seconds]
smp has quit [Ping timeout: 272 seconds]
smp has joined #ruby
splud has joined #ruby
splud has quit [Excess Flood]
splud has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
seifeslimene has quit [Ping timeout: 248 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 240 seconds]
q3lont has joined #ruby
roadie has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
rick123 has joined #ruby
rick123 has left #ruby [#ruby]
nirvdrum has quit [Client Quit]
eddof13 has joined #ruby
idiocrash has joined #ruby
q3lont has quit [Ping timeout: 260 seconds]
AndreYuhai has joined #ruby
<AndreYuhai> Hi everyone! Does anyone have any idea about what this error might mean? -> "<ActiveRecord::RecordInvalid: Validation failed: Name is reserved>"
<AndreYuhai> It happens when we try to update an entity but I don't know what to look for.
dionysus69 has joined #ruby
teclator has joined #ruby
idiocrash has quit [Ping timeout: 246 seconds]
<jhass[m]> Sounds custom to me, check the validate calls on the model
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has joined #ruby
eddof13 has joined #ruby
Rounin has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AndreYuhai> jhass[m]: The error would be there somehow, right? Since it's custom. Because I was trying to search the error. Let me search repo wide. :D
___nick___ has joined #ruby
<jhass[m]> could be looped through translations
<jhass[m]> and "Name" be interpolated, so your needle would be "is reserved"
Jonopoly has joined #ruby
<AndreYuhai> jhass[m]: That's genius! haha. Thank you so much. I was able to find some error which is not really Ruby related (Elixir), but I guess this will help debug further.
q3lont has joined #ruby
<AndreYuhai> Well, I guess I was wrong. :D I mean it can't really be Elixir related because the error comes from ActiveRecord validation, but in the code only place I can see that error is in Elixir. Weird.
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
infinityfye has joined #ruby
idiocrash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuh3i has joined #ruby
leah2 has quit [Ping timeout: 272 seconds]
Exa has quit [Quit: see ya!]
Exa has joined #ruby
ysionneau has quit [Ping timeout: 245 seconds]
AndreYuhai has quit [Ping timeout: 272 seconds]
georgemp_ has joined #ruby
ssh073 has quit [Ping timeout: 240 seconds]
moo- has joined #ruby
moo has quit [Read error: Connection reset by peer]
gigamo has quit [Ping timeout: 240 seconds]
quintasan has quit [Quit: No Ping reply in 180 seconds.]
<jhass[m]> Oh I was wrong, it's an exclusion validation: https://guides.rubyonrails.org/active_record_validations.html#exclusion
georgemp has quit [Ping timeout: 252 seconds]
quintasan has joined #ruby
gigamo has joined #ruby
<AndreYuh3i> jhass[m]: That's it! Thank you!
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
_aeris_ has joined #ruby
jpn has joined #ruby
_aeris_ is now known as aeris
BSaboia has quit [Quit: ZNC - https://znc.in]
BSaboia has joined #ruby
leah2 has joined #ruby
Buggys has quit [Ping timeout: 252 seconds]
gigamo has quit [Remote host closed the connection]
gigamo has joined #ruby
Cork has quit [Remote host closed the connection]
Cork has joined #ruby
donofrio has joined #ruby
ur5us has joined #ruby
moo- is now known as moo
jpn_ has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn_ has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
some14u has joined #ruby
some14u has quit [Ping timeout: 272 seconds]
ur5us_ has quit [Ping timeout: 250 seconds]
some14u has joined #ruby
some14u has quit [Ping timeout: 245 seconds]
Buggys has joined #ruby
o|||||o has joined #ruby
gr33n7007h has joined #ruby
<mooff> what subset of pattern matching works on both 2.7 and 3.0+ ?
dionysus69 has quit [Ping timeout: 246 seconds]
<ox1eef> is it not a 3.0 feature?
<ox1eef> interesting, ty
<jhass[m]> don't see it referenced in official 2.7 docs yet though, not sure where that link went at the time. That might due to it being experimental in 2.7
<ox1eef> +1
<jhass[m]> mooff: ^ so that might actually be the answer, only try stuff that's mentioned there
<mooff> thanks jhass[m]
<jhass[m]> and prepare for some warning spam on 2.7
<mooff> i feel like i should target 2.7 while it ships in Debian stable
<mooff> even though there are lots of 3.0 and 3.1 features i'd like to use
<jhass[m]> yeah. Also tooling might not be up-to-speed, ruby_parser added the latest 3.1 features only this week for example
<mooff> particularly endless methods :)
Tempesta has quit [Quit: See ya!]
<mooff> and the shorthand hash syntax {a:, b:}
<ox1eef> ive started to pin to 3.1 at least for a few gems. debian is always way behind the time.
Jonopoly has quit [Quit: WeeChat 3.0]
some14u has joined #ruby
Tempesta has joined #ruby
bit4bit has joined #ruby
some14u has quit [Ping timeout: 248 seconds]
<ox1eef> played around with pattern matching, and looks like it still needs work. basically, ("foo" in Foo.new) will always return true, and not call any callbacks. ("foo" in Foo.new.to_a) is a syntax error, but would call deconstruct on Foo
<ox1eef> just gotta work with it i guess.
<ox1eef> works better using case.. in
<ox1eef> not a fan, as new features good id call that implementation a bad omen.
<ox1eef> as new features go*
Sheilong has joined #ruby
bit4bit has quit [Ping timeout: 246 seconds]
Common-Lisp has joined #ruby
q3lont has quit [Ping timeout: 260 seconds]
q3lont has joined #ruby
nirvdrum has joined #ruby
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
oxfuxxx has joined #ruby
victori has joined #ruby
Common-Lisp has quit [Ping timeout: 260 seconds]
cxl has joined #ruby
<cxl> Hi all
eddof13 has joined #ruby
davidw has joined #ruby
<havenwood> hi
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
q3lont has quit [Quit: Leaving]
cxl has quit [Quit: bye]
dionysus69 has joined #ruby
cxl has joined #ruby
cxl has quit [Client Quit]
cxl has joined #ruby
cxl has quit [Client Quit]
cxl has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
eddof13 has quit [Ping timeout: 260 seconds]
oxfuxxx has quit [Ping timeout: 250 seconds]
oxfuxxx has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
John_Ivan has quit [Quit: Leaving]
Numocha has joined #ruby
Numocha has quit [Client Quit]
oxfuxxx has quit [Ping timeout: 268 seconds]
blackouter has joined #ruby
blackouter has left #ruby [#ruby]
oxfuxxx has joined #ruby
hololeap_ has quit [Read error: Connection reset by peer]
hololeap_ has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
eddof13 has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
seifeslimene has joined #ruby
vvn has quit [Read error: Connection reset by peer]
bit4bit has joined #ruby
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
oxfuxxx has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has joined #ruby
eddof13 has joined #ruby
John_Ivan has joined #ruby
<mooff> ox1eef: my worry is it's super non-obvious what the various forms are doing
<mooff> without studying the documentation for some time
AndreYuh3i has quit [Quit: Lost terminal]
jpn has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
bit4bit has quit [Ping timeout: 248 seconds]
cahoots has joined #ruby
_ht has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<moo> one day i'll create an AI that can automatically upgrade between arbitrary rails versions and become stinking rich
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
cxl has quit [Changing host]
cxl has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
hololeap has joined #ruby
jpn has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 248 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
oxfuxxx has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
seifeslimene has quit [Ping timeout: 260 seconds]
seifeslimene has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
_ht has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 248 seconds]
jpn has quit [Ping timeout: 272 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
robotmay has quit [Quit: Be excellent to each other]
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
nirvdrum has joined #ruby
robotmay has joined #ruby
dionysus69 has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
bit4bit has joined #ruby
jpn has joined #ruby
szkl has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
jpn has quit [Quit: leaving]
donofrio has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
gr33n7007h has quit [Ping timeout: 252 seconds]
ur5us_ has joined #ruby
ssh073 has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b3 - https://znc.in]
ollysmith has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
o|||||o has quit [Ping timeout: 252 seconds]
o|||||o has joined #ruby
Guest26nakilon has joined #ruby
Guest26nakilon has quit [Client Quit]
infinityfye has quit [Quit: Leaving]
<ox1eef> mooff: the whole thing feels so unruby like to me... ("foo" in x) only seems to work for primitives like Array and Hash, you would think it might just call to_h or to_a on the receiver, but no, and you can't even do it explicitly (it is a syntax error)
<ox1eef> its really disappointing, could have been something awesome. idk, im probably too harsh.
<ox1eef> btw, (obj in "foo") works in the sense that it calls deconstruct / deconstruct_keys on "obj", but it makes no sense in that order.
impermanence has joined #ruby
nirvdrum has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<ox1eef> to get an idea for how unruby like it is, you might think a class that which is Enumerable would support ("foo" in bar) - also a nope.
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
victori has joined #ruby
seydar has joined #ruby
<seydar> what's the preferred ruby version manager these days? am i dating myself by continuing to use rvm?
ssh073 has quit [Quit: The Lounge - https://thelounge.chat]
<kenichi> seydar: i hear alot about asdf https://github.com/asdf-vm/asdf-ruby
impermanence has quit [Quit: Connection closed]
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
<newton> I use asdf, chruby is good too
ssh073 has joined #ruby
victori has joined #ruby
<seydar> alright 2 points make a line: i'm using asdf and assuming that the entire community does as well
<seydar> time to upgrade to ruby 3.1.1
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
victori has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
<weaksauce> i like rbenv
<weaksauce> but asdf probably works ok too
seydar has quit [Ping timeout: 272 seconds]
trillp has joined #ruby
bit4bit has quit [Read error: Connection reset by peer]
cahoots has quit [Ping timeout: 240 seconds]
Starfoxxes has quit [Ping timeout: 252 seconds]
Starfoxxes has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]