infinityfye has quit [Killed (NickServ (GHOST command used by infinityfye__))]
infinityfye__ has joined #ruby
infinityfye has joined #ruby
infinityfye__ has quit [Ping timeout: 276 seconds]
grenierm has quit [Ping timeout: 272 seconds]
fantazo has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
rvalue- is now known as rvalue
The_Camel has quit [Ping timeout: 260 seconds]
sandra has quit [Remote host closed the connection]
sandra has joined #ruby
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
Vonter has quit [Ping timeout: 265 seconds]
Vonter has joined #ruby
<leah2>
>>> f"{1+1}"
<leah2>
'2'
<leah2>
but what's the point, just write #{}
<o0x1eef>
Indeed! If we want to support expressions like f"{1+1}" it should be 'binding.eval' instead. Not sure what you mean by 'just use #{} instead' ?
<o0x1eef>
Indeed. It was just an experiment. I was impressed that Ruby could implement the equivalent in about a line of code, although, I had to pull in binding_of_caller to gain access to locals
<leah2>
come back when you can do f"{f"{6+7}"}" :p
<o0x1eef>
challenge accepted :D
sarna has quit [Ping timeout: 245 seconds]
R2 has joined #ruby
R2robot has quit [Read error: Connection reset by peer]
<o0x1eef>
I got something that works. But I will sit on it for a while and see it can be made more robust. More or less just change local_variable_get to eval, and update the rexexp to match against .+ instead of the character class.
sarna has joined #ruby
<o0x1eef>
Gist updated :)
Sampersand has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
<leah2>
breaks f"{f"{5}"}{f"{6}"}" i think
<leah2>
you have to use the weird matching parens operator, but that still doesnt work with escaping i think
wbooze has quit [Ping timeout: 252 seconds]
<o0x1eef>
For these kind of scenarios I think I prefer #{} because "#{#{5}#{6}}" is way more readable but maybe I'm just use to Ruby.
<Sampersand>
I do like how ruby lets you do `#$foo`
<o0x1eef>
Me too
<Sampersand>
Anyone know if there's an easier way to hide options in `optparse`? Rn im doing `op.base.long['debug'] = OptParse::Switch::NoArgument.new { $-d = $-v = true }`
<o0x1eef>
That's quite cool actually (re #$foo).
<Sampersand>
there's also `#@` and `#@@`
<o0x1eef>
Nice
<Sampersand>
is there a better way to get a `\u` representation of a codepoint other than `'\u{%04x}' % char.ord`?
<Sampersand>
woah segfault
<Sampersand>
`case "\u0081"; case (Encoding::UTF_8 == Encoding::BINARY && "\x7F".."\xFF"); end`
niv has quit [Read error: Connection reset by peer]
niv has joined #ruby
<Sampersand>
`case nil; when (Encoding::UTF_8.nil? && 'a'..'b'); end` reduced
<Sampersand>
even better: `case nil; when (!true && 'a')..'b'; ends`
<Sampersand>
in newer rubies you can get away with omitting the case entirely
inline has joined #ruby
cappy has joined #ruby
markong has joined #ruby
jhass has quit [Remote host closed the connection]
jhass has joined #ruby
Sampersand has quit [Quit: Client closed]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
dionysus70 is now known as dionysus69
R2 is now known as R2robot
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
markong has quit [Ping timeout: 248 seconds]
szkl has joined #ruby
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 265 seconds]
ih8u2 is now known as ih8u
markong has joined #ruby
user71 has joined #ruby
Vonter has quit [Quit: WeeChat 4.6.3]
cappy has quit [Quit: Leaving]
<Doc_X>
I've got 'foo_test.rb' files I've written with a shebang line of `#!/usr/bin/env ruby` using 'minitest'. I'm not passing in command line arguments. Is there a way to set minitest to have verbose output? If not with minitest, is there a way with Test::Unit?
<adam12>
Doc_X: Minitest will parse commandline arguments in a few different ways. Have you tried just `--verbose` or similar?
<adam12>
Or `-v`
<Doc_X>
adam12: I had not done that... needed to update my `entr` command, but that works as intended. thanks!
user71 has quit [Ping timeout: 272 seconds]
Sampersand has joined #ruby
Sampersand has quit [Quit: Client closed]
markong has quit [Ping timeout: 248 seconds]
oznek has joined #ruby
<adam12>
Doc_X: yw!
<caleb>
In talking about deploying to regular box with systemd and a post receive hook on a non-bare repository in the modern day; would you stick with journald to look at the logs or would you want to use an external logging service?
The_Camel has joined #ruby
donofrio has joined #ruby
jmcantrell has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
schne1der has quit [Ping timeout: 248 seconds]
jmcantrell has quit [Ping timeout: 248 seconds]
jmcantrell has joined #ruby
sir_oj has joined #ruby
jmcantrell has quit [Ping timeout: 252 seconds]
oznek has quit [Quit: Leaving]
jmcantrell has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinityfye__))]
infinityfye__ has joined #ruby
infinityfye__ is now known as infinityfye
schne1der has joined #ruby
schne1der has quit [Client Quit]
schne1der has joined #ruby
jmcantrell has quit [Ping timeout: 248 seconds]
schne1der has quit [Quit: schne1der]
infinityfye has quit [Read error: Connection reset by peer]
hansolo has quit [Ping timeout: 245 seconds]
fantazo has quit [Quit: Lost terminal]
hansolo has joined #ruby
dviola has quit [Ping timeout: 245 seconds]
Linux_Kerio has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
<The_Camel>
when in chinese, the implied "the" in a sentence like "a cat and the dog" contetually uses "he" instead of "the" T_T
<The_Camel>
"a cat and the dog" becomes "a cat and he dog"
<The_Camel>
"a man and she woman" (a man and the woman)
<The_Camel>
this be making things very confu zi ing.
<The_Camel>
Ko nu fu zi gu
<The_Camel>
Kong fu zi.
jmcantrell has joined #ruby
markong has joined #ruby
Cork has quit [Ping timeout: 248 seconds]
sir_oj has quit [Read error: Connection reset by peer]
Cork has joined #ruby
<The_Camel>
also, I confused the pronunciation prefix of "bears" and "brothers"
<The_Camel>
xiong vs xiong. one sounds more like "shung" (brothers) while the other is "shyong"
<The_Camel>
fuck. me.
<The_Camel>
why not just pinyin it as shung and shyong. that way I don't make that mistake.
<The_Camel>
gonna kill myself.
<The_Camel>
also
<The_Camel>
apparently in chinese "parents" is one unit.
<The_Camel>
as in, saying "This is my parents" is grammatically correct rather than "these are".
<The_Camel>
literarily saying "these are my parents" is awkward.
<The_Camel>
one unit, as in, "one noun"
<The_Camel>
that tripped me up real bad.
<The_Camel>
also, I think I may have misheard one of the audio tracks. I heard
<The_Camel>
"these are my dads" (kid speaking) lol
<The_Camel>
============== what pisses me off is that to adjectives, you can't use the same symbol/word for "is".
<The_Camel>
it's another symbol completely.
<The_Camel>
"is" happy
<The_Camel>
"is" there
<The_Camel>
uses two separate words in chinese.
<sweatiest>
Why did you choose the #ruby channel as your rubber-duck monologue?
<The_Camel>
sweatiest, that's a dumb question to ask because this could've been any other channel.
<The_Camel>
imagine this was the #anime or #rust channel.
<The_Camel>
asking me the same thing in that context results in a dumb question lol
<The_Camel>
sweatiest, offtopic - have you ever seen what early horses looked like?
<adam12>
The_Camel: Please try to keep offtopic to #ruby-offtopic. I know it's been fairly quiet in here lately but it's nice to keep signal v. noise ratio in check.