arg_ has quit [Quit: Connection closed for inactivity]
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ziyan has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
typeof[panda] has joined #ruby
<tsujp>
Not a lot of chatter here, how would we say the Ruby community is doing these days? Not that it has to be active to be good or whatever. I only really know of this channel on IRC
jl- has joined #ruby
<llua>
touching grass
jl- has quit [Ping timeout: 252 seconds]
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
typeof[panda] has quit [Quit: Client closed]
rvalue has quit [Read error: Connection reset by peer]
<tsujp>
im trying to print with colours, if I do a literal `sprintf("\033[1m%s\033[m", 'foobar')` then the text `foobar` is correctly printed in bold but if I put those escape codes into strings
<tsujp>
and then call sprintf as `sprintf("%s%s%s", bold, 'foobar', reset)` it prints the literal string `\033[1mfoobar\033[m`
<tsujp>
can you not template shell escape sequences with sprintf?
Sankalp has joined #ruby
<tsujp>
oh.. it's because I defined `bold` and reset` using single qoutes instead of double?
<tsujp>
ah right because double quotes enables string interpolation for the escape code, d'oh
_ht has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
John_Ivan has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
John_Ivan has quit [Quit: Leaving]
jpn has joined #ruby
John_Ivan has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
dionysus69 has joined #ruby
ua_ has quit [Ping timeout: 268 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
jpn has joined #ruby
Aminda has quit [Remote host closed the connection]
ua_ has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Ziyan has joined #ruby
Guest92 has joined #ruby
John_Ivan has quit [Quit: Leaving]
Guest92 has quit [Client Quit]
arg_ has quit [Quit: Connection closed for inactivity]
Aminda has joined #ruby
<tsujp>
Hello Ruby friends, it's been a solid ~5-6 years since I did any non-trivial Ruby. I've been working on this small CLI generation tool over the weekend
<tsujp>
The idea is to take the webhook payload (see links at top of conventions.rb) GitHub sends and generate a `gh` CLI command to (for now) add/remove labels based on the PR status
<tsujp>
`gh` is the GitHub CLI, could use `curl` but.. I cannot be bothered
<Ziyan>
What is the best way to accept file uploads through an API? I am https://jsonapi.org v1 specification. I didn't see a recommendation there. I am assuming the best way would be to accept a Base 64 encoded string?
<Ziyan>
How would you guys handle a file upload?
<moo>
nginx' upload_progress module was always my go-to