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
ur5us has quit [Ping timeout: 252 seconds]
entel_ has joined #ruby
quasisyntaxed has joined #ruby
ur5us has joined #ruby
Rounin has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
roadie has joined #ruby
MalkbabY has joined #ruby
roadt_ has quit [Ping timeout: 250 seconds]
neshpion has quit [Quit: neshpion]
roadt_ has joined #ruby
quasisyntaxed has quit [Remote host closed the connection]
kiki_lamb has joined #ruby
ByteEater has quit [Ping timeout: 246 seconds]
Oxfuxxx has quit [Ping timeout: 250 seconds]
jpw has joined #ruby
entel_ has quit [Quit: Connection closed for inactivity]
Oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
Garo_ has joined #ruby
dostoyevsky2 has quit [*.net *.split]
glider has quit [*.net *.split]
lipoqil_ has quit [*.net *.split]
seisatsu has quit [*.net *.split]
Garo__ has quit [*.net *.split]
lipoqil has joined #ruby
seisatsu_ has joined #ruby
dostoyev1ky2 has joined #ruby
glider_ has joined #ruby
seisatsu_ is now known as seisatsu
dhollinger has quit [*.net *.split]
phenom has quit [*.net *.split]
cnsvc has quit [*.net *.split]
Byteflux has quit [*.net *.split]
insolentworm has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
pookie has joined #ruby
cnsvc has joined #ruby
Bitflux has joined #ruby
insolentworm has joined #ruby
dhollinger has joined #ruby
phenom has joined #ruby
markmarkmark has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
MalkbabY has quit [Quit: Leaving...]
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
skali has joined #ruby
skali has quit [Client Quit]
jpw has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 258 seconds]
sagax has quit [Remote host closed the connection]
_ht has joined #ruby
roadie has joined #ruby
Rounin has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
dachinat has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.2]
roadie has joined #ruby
nmollerup has joined #ruby
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
sagax has joined #ruby
ur5us has joined #ruby
Guest19 has joined #ruby
Guest19 has quit [Quit: Client closed]
noa has joined #ruby
Guest49 has joined #ruby
Guest49 has quit [Client Quit]
ur5us has quit [Ping timeout: 240 seconds]
pwnd_sfw5 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw5 is now known as pwnd_sfw
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
noa has quit [Quit: Leaving]
roadie has joined #ruby
ByteEater has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
roadt_ has quit [Quit: 离开]
Oxfuxxx has quit [Quit: leaving]
roadie has joined #ruby
pookie has quit [Quit: All for nothing]
kiki_lamb has quit [Ping timeout: 268 seconds]
AndrewYu has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 248 seconds]
kiki_lamb has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
noa has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
bit4bit has joined #ruby
kiki_lamb has joined #ruby
Oxfuxxx has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
pgib has quit [Ping timeout: 240 seconds]
ByteEater has quit [Ping timeout: 246 seconds]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
noa has quit [Quit: Leaving]
kiki_lamb has joined #ruby
<peder> is there any way to turn off the highlighting of lines that 'ruby -c' does?
kiki_lamb has quit [Ping timeout: 252 seconds]
<adam12> peder: Example?
<adam12> peder: Not sure I've seen highlighting of lines before.
<peder> if you run ruby -c on a script with syntax errors, it prints out the line with some highlighting in the terminal
<peder> the line in bold and a _ under the point it deems the error on
<peder> insted of the '^~~~~' it prints when redirecting to a file
<adam12> peder: Oh interesting. Not sure I've ever noticed it bold before.
xuochi has joined #ruby
<peder> echo 'foo /+/ bar' | ruby -wc
<aesthetikx> and peder you want the squiggles and not the bold to be printed?
<peder> yep
<adam12> I looked through source and don't see an option.
<adam12> You will have to fake it by piping it somewhere else.
dostoyev1ky2 has quit [Quit: leaving]
kiki_lamb has joined #ruby
<adam12> echo 'foo /+/ bar' | ruby -wc 2>&1 | tee
dostoyevsky2 has joined #ruby
<peder> yeah, but then you can't capture the return code from ruby ;)
<peder> but i redirected it to file, and just cat'ed the file after the return code is stored
<adam12> peder: are you calling this from Ruby?
<peder> nope, from a shell-script
<peder> a pre-commit hook to syntax check various scripts and templates
kiki_lamb has quit [Ping timeout: 252 seconds]
ByteEater has joined #ruby
<adam12> peder: Might be worth asking for NO_COLOR to be supported on the bug tracker...
<aesthetikx> right I tried that to no avail
<aesthetikx> is NO_COLOR widely agreed upon
<adam12> aesthetikx: https://no-color.org
kiki_lamb has joined #ruby
<aesthetikx> I asked over in #linux but no one seemed to know; and I am only so knowledgeable about the shell and unix; but I am surprised that if ruby -c can tell if its outputing to a tty or a file, then there should be some | pipe command to trick it into thinking its a file
<aesthetikx> but there is not as far as i can tell
<aesthetikx> other than immediately reading back from a file or making a fifo or something
<aesthetikx> oh, peder, somehow I it seems ruby -c x.rb 2>&1 | cat gets rid of color
<aesthetikx> on this box anywya
<aesthetikx> maybe problem solved at least for my brain if cat does that then
kiki_lamb has quit [Ping timeout: 250 seconds]
bit4bit_ has joined #ruby
bit4bit has quit [Ping timeout: 240 seconds]
bit4bit_ has quit [Read error: Connection reset by peer]
Deknos has quit [Remote host closed the connection]
mrkz_c has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
jpw has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
ByteEater has quit [Quit: Client closed]
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
roadie has joined #ruby
teclator has quit [Client Quit]
roadie has quit [Client Quit]
kiki_lamb has joined #ruby
gr33n7007h has joined #ruby
howdoi has joined #ruby
kiki_lamb has quit [Ping timeout: 250 seconds]
noa has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
goldfish has joined #ruby
kiki_lamb has joined #ruby
jpw has quit [Ping timeout: 240 seconds]
jpw has joined #ruby
kiki_lamb has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
jpw has quit [Ping timeout: 252 seconds]
neshpion has joined #ruby
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
bit4bit has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 250 seconds]
<michigan> Here's "DHH Saved My Life". I couldn't find any vocals so I hired two midgets to chant "DHH". I hope DHH doesn't hear this: https://soundcloud.com/earbnb/dhh-saved-my-life
bit4bit has quit [Ping timeout: 240 seconds]
entel_ has joined #ruby
desnudopenguino has quit [Ping timeout: 252 seconds]
kiki_lamb has joined #ruby
desnudopenguino has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
venue has quit [Quit: was tired]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 240 seconds]
_ht has quit [Remote host closed the connection]
noa has quit [Quit: Leaving]
rubion has joined #ruby
noa has joined #ruby
xuochi has quit [Quit: leaving]
noa has quit [Quit: Leaving]
Oxfuxxx_ has joined #ruby
kiki_lamb has joined #ruby
Oxfuxxx has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
Oxfuxxx_ has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Quit: leaving]
<peder> aesthetikx: yes, 2>&1 | cat works for getting rid of it, but then the pipe return the exit code of cat, not ruby... so its a bit harder to know if the check failed or not :)
elf_fortrez has joined #ruby
Hobbyboy has quit [Quit: The BNC has broken!]
Hobbyboy has joined #ruby
<weaksauce> if color is all your are after you might be able to preface the command with TERM=xterm-mono or xterm-basic
<weaksauce> aesthetikx
<weaksauce> or setting the NO_COLOR variable first?
<weaksauce> RUBY_TESTOPTS=--color=never ruby -c x.rb
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
elf_fortrez has quit [Quit: Client closed]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
jetchisel has joined #ruby
havenwood has joined #ruby
elf_fortrez has joined #ruby
elf_fortrez has quit [Quit: Client closed]
elf_fortrezz has joined #ruby
elf_fortrezz has quit [Client Quit]
elf_fortrez has joined #ruby
Oxfuxxx has joined #ruby
elf_fortrez has quit [Quit: Client closed]
rubion has quit [Ping timeout: 240 seconds]
venue has joined #ruby
Rounin has quit [Ping timeout: 240 seconds]