jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
Pixi` has quit [Quit: Leaving]
Pixi has joined #ruby
markong has quit [Ping timeout: 252 seconds]
John_Ivan has quit [Ping timeout: 264 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
Linux_Kerio has joined #ruby
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #ruby
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]
rvalue has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
Ziyan has joined #ruby
dviola has quit [Quit: WeeChat 3.6]
rvalue has quit [Ping timeout: 245 seconds]
Sankalp has quit [Ping timeout: 245 seconds]
Sankalp has joined #ruby
rvalue has joined #ruby
Ziyan_ has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.6]
Ziyan has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Sankalp has quit [Ping timeout: 245 seconds]
<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]
robotmay has joined #ruby
jpn has joined #ruby
dionysus69 has joined #ruby
Ziyan_ has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
markong has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
jpn has joined #ruby
protektwar has quit [Ping timeout: 272 seconds]
jpn has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
arg_ has joined #ruby
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> Can I get a code review if possible? It's all here: https://gist.github.com/tsujp/0fe21fad9e22390c1de4eeaf49a57107
RetroPunk has joined #ruby
<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
TomyLobo has joined #ruby
protektwar has quit [Ping timeout: 260 seconds]
jl- has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
___nick___ has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
John_Ivan has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
Ziyan has joined #ruby
<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
protektwar has quit [Ping timeout: 255 seconds]
markong has quit [Ping timeout: 245 seconds]
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
arg_ has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
_ht has quit [Quit: _ht]
___nick___ has quit [Ping timeout: 245 seconds]
John_Ivan has quit [Quit: Leaving]
protektwar has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
aeris has quit [Remote host closed the connection]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
aeris has joined #ruby
aeris has quit [Write error: Connection reset by peer]
markong has joined #ruby
aeris has joined #ruby
John_Ivan has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Linux_Kerio has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
jl- has joined #ruby
Rounin has quit [Ping timeout: 245 seconds]
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
nirvdrum has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
John_Ivan has quit [Quit: Leaving]