adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
va5c0 has joined #ruby
va5c0 has quit [Ping timeout: 258 seconds]
<nakilon> leftylink heh, I misread you and thought you said it does not work
bit4bit has quit [Remote host closed the connection]
swaggboi has quit [Quit: C-x C-c]
swaggboi has joined #ruby
neshpion has quit [Ping timeout: 244 seconds]
neshpion has joined #ruby
ua_ has quit [Ping timeout: 245 seconds]
desnudopenguino has quit [Ping timeout: 248 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Ping timeout: 268 seconds]
slothby has quit [Quit: brb ... maybe]
slothby has joined #ruby
neshpion has quit [Quit: neshpion]
jpw has joined #ruby
lad has quit [Ping timeout: 248 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
Oxfuxxx has quit [Quit: leaving]
mrkz_c has quit [Quit: Connection closed for inactivity]
Oxfuxxx has joined #ruby
dyCrazyEd has quit [Ping timeout: 258 seconds]
BSaboia has joined #ruby
endless has joined #ruby
jpw has quit [Ping timeout: 256 seconds]
jpw has joined #ruby
jpw_ has joined #ruby
jpw has quit [Ping timeout: 272 seconds]
jpw_ has quit [Ping timeout: 268 seconds]
jpw has joined #ruby
_ht has joined #ruby
jpw is now known as jpw_
jpw_ is now known as jpw
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
elf_fortrez has joined #ruby
Oxfuxxx has quit [Ping timeout: 268 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Ping timeout: 268 seconds]
Oxfuxxx has joined #ruby
lunarkitty has joined #ruby
mrkz_c has joined #ruby
Oxfuxxx has quit [Ping timeout: 256 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Ping timeout: 268 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx_ has joined #ruby
Oxfuxxx_ has quit [Client Quit]
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
joshcom has joined #ruby
roadt__ has quit [Ping timeout: 252 seconds]
roadt has joined #ruby
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
shokohsc has joined #ruby
joshcom has quit [Quit: Leaving]
lunarkitty has quit [Quit: Connection closed for inactivity]
gggp has joined #ruby
gggp_ has joined #ruby
gggp has quit [Ping timeout: 272 seconds]
gggp_ has quit [Remote host closed the connection]
gggp_ has joined #ruby
elf_fortrez has quit [Ping timeout: 246 seconds]
kwilczynski has joined #ruby
gggp_ has quit [Ping timeout: 248 seconds]
jpw_ has joined #ruby
jpw has quit [Ping timeout: 245 seconds]
<nakilon> recently I asked if it's ok to include \n in error messages
<nakilon> it appears that ruby appends "(<the exceotion class name>)" not to the actual end of the error message but to the end of the first line
<nakilon> does not make my life worse but is still a detail to consider
jpw_ is now known as jpw
gggp_ has joined #ruby
bhaak has quit [Ping timeout: 250 seconds]
bhaak has joined #ruby
<nakilon> gemified my validator thingy https://github.com/Nakilon/nakischema
lad has joined #ruby
desnudopenguino has joined #ruby
gggp_ has quit [Ping timeout: 268 seconds]
foxxx0 has quit [Quit: foxxx0]
Oxfuxxx has joined #ruby
foxxx0 has joined #ruby
roadie has joined #ruby
<jpw> nakilon, that's awesome. we were looking for a validator like that last week. i'll send it to the team to review. can it do yaml too?
<nakilon> jpw yay! it validates Ruby objects so you just do something like Nakischema.validate YAML.load(my_yaml_string), my_schema
<jpw> sounds great i've pinged it across
<jpw> thank you
<nakilon> I've just discussed it a bit with a friend, he also wanted custom validation error messages so I'll probably add the example of raising the Error within :assertion, would need some little edit to display the error path correctly
<nakilon> thank you!
rubion has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
JayDoubleu has quit [Ping timeout: 258 seconds]
keyvan has quit [Ping timeout: 245 seconds]
itok has quit [Ping timeout: 256 seconds]
pusewic|away has quit [Ping timeout: 240 seconds]
pjlsergeant has quit [Ping timeout: 272 seconds]
kwilczynski has quit [Ping timeout: 245 seconds]
josephl has quit [Ping timeout: 256 seconds]
rubin55___ has quit [Ping timeout: 272 seconds]
hsiktas has quit [Ping timeout: 252 seconds]
psb has quit [Read error: Connection reset by peer]
itok has joined #ruby
MachinShin has quit [Ping timeout: 256 seconds]
josephl has joined #ruby
integral has quit [Ping timeout: 256 seconds]
mrkz_c has quit [Ping timeout: 252 seconds]
joenoon has quit [Ping timeout: 258 seconds]
MachinShin has joined #ruby
hwrd has quit [Ping timeout: 276 seconds]
caleb has quit [Ping timeout: 245 seconds]
itok has quit [Max SendQ exceeded]
kwilczynski has joined #ruby
r0bby has quit [Ping timeout: 258 seconds]
mrkz_c has joined #ruby
JSharp has quit [Ping timeout: 240 seconds]
hsiktas has joined #ruby
keyvan has joined #ruby
itok has joined #ruby
Liothen has quit [Ping timeout: 240 seconds]
caleb has joined #ruby
pusewic|away has joined #ruby
hwrd has joined #ruby
integral has joined #ruby
r0bby has joined #ruby
psb has joined #ruby
joenoon has joined #ruby
JSharp has joined #ruby
Liothen has joined #ruby
niv has joined #ruby
JayDoubleu has joined #ruby
rubin55___ has joined #ruby
pjlsergeant has joined #ruby
Strongstan has joined #ruby
<Strongstan> Hi Everyone!
<Strongstan> I've been hammering away at this Ruby script for Vagrant and I keep running into Syntax errors with ruby
<Strongstan> Can someone review my code and see if the formatting is correct?
<nakilon> just paste it somewhere already
joshcom has joined #ruby
<nakilon> usually Ruby syntax error says the correct place where the it is, unless it's about the missing closing 'end'
sam113101 has quit [Read error: Connection reset by peer]
neshpion has joined #ruby
<nakilon> syntax highlighting gives a hint: https://i.imgur.com/0T8guS9.png
<nakilon> it's a wrong double quote in 24th line
<weaksauce> i mean you are missing an end
<nakilon> and that's too, lol
<weaksauce> are you editing this in word?
<weaksauce> that second double quote is wrong for sure
<weaksauce> missing two ends but yeah
<Strongstan> I'm using VSCode to write the file
<weaksauce> one for the first sub block and then the final end to close out the config
<weaksauce> weird that it would insert the word style end quote
<nakilon> maybe macOS default settings
<nakilon> weaksauce I guess only one 'end' is missing'
<nakilon> everything should be indented starting with 14 line
<weaksauce> yeah that's true just one
<nakilon> $ ruby -c temp.rb
<nakilon> Syntax OK
<weaksauce> i'm sure that hostname needs to be a string
<weaksauce> so ...
mattil has joined #ruby
<Strongstan> Seems to execute without syntax errors!
<weaksauce> lgtm
<weaksauce> except the indentation
<weaksauce> no points for that
<Strongstan> aw...
<Strongstan> but, hey, it runs! x3
<Strongstan> Can anyone recommend good books on Ruby?
<neshpion> /topic
<weaksauce> i'm a fan of eloquent ruby
<nakilon> imagine if Ruby syntax checker was smart enough to realise "I've got an error just after a string that has fancy quotes in it" and state it
_ht has quit [Remote host closed the connection]
joshcom has quit [Quit: Leaving]
mattil has quit [Read error: Connection reset by peer]
va5c0 has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
lunarkitty has joined #ruby
va5c0 has quit [Quit: WeeChat 3.2]
perrierjouet has quit [Quit: WeeChat 3.2]
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
rubion has quit [Ping timeout: 268 seconds]
roadie has quit [Ping timeout: 272 seconds]
ur5us_ has joined #ruby
Strongstan has quit [Quit: Client closed]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]