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
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
wand has quit [Ping timeout: 268 seconds]
gschanuel has joined #ruby
gschanuel has quit [Client Quit]
markong has quit [Ping timeout: 240 seconds]
wand has joined #ruby
roshanavand_ has quit [Ping timeout: 240 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 276 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp- is now known as Sankalp
gr33n7007h has quit [Quit: WeeChat 3.6]
gr33n7007h has joined #ruby
wand has quit [Remote host closed the connection]
wand has joined #ruby
stylo has quit [Quit: Connection closed for inactivity]
Linux_Kerio has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 272 seconds]
nirvdrum has joined #ruby
Ziyan has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has quit [Ping timeout: 240 seconds]
jhass has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
desnudopenguino has joined #ruby
jhass has quit [Ping timeout: 272 seconds]
jhass has joined #ruby
lagash has quit [Quit: ZNC - https://znc.in]
jl- has joined #ruby
dionysus69 has joined #ruby
moldorcoder7 has quit [Ping timeout: 276 seconds]
jl- has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
aeris has quit [Ping timeout: 268 seconds]
aeris has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
dviola has left #ruby [WeeChat 3.6]
dviola has joined #ruby
teclator has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
jpn has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
___nick___ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
desnudopenguino has quit [Ping timeout: 244 seconds]
roshanavand_ has joined #ruby
roshanavand_ has quit [Ping timeout: 244 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
dionysus69 has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
lagash has joined #ruby
moldorcoder7 has joined #ruby
___nick___ has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 264 seconds]
_ht has joined #ruby
Thanzex has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 272 seconds]
maroloccio has joined #ruby
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
clemens3 has joined #ruby
jpn has joined #ruby
wails4 has joined #ruby
wails4 has quit [Ping timeout: 264 seconds]
arahael1 has joined #ruby
arahael has quit [Ping timeout: 276 seconds]
arahael1 is now known as arahael
infinityfye has joined #ruby
<dionysus69> is it possible to inherit the method header? I would want to monkey patch in a sustainable way
jl- has joined #ruby
<dionysus69> def method_header_with_parent_method_definition_arguments; super(args.merge(some_new_args)); end;
jl- has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
Ziyan_ has quit [Ping timeout: 264 seconds]
<jhass[m]> dionysus69: just *args, **kwargs?
<dionysus69> sorry what do you mean? jhass[m]
<dionysus69> yea basically I want to patch only the args
<dionysus69> if the method definition changes in the super then monkey patch is kinda gone so, dunno if there's a solution for this kind of scenario
<jhass[m]> def foo(*args, **kwargs); super(*monkey(args), **monkey(kwargs)); end
<dionysus69> ahaa
<jhass[m]> ruby only matches on method name, arguments are not part of the signature
<dionysus69> and that would monkey patch foo no matter how the arguments change within the method header right?
<dionysus69> jhass[m]: cool thanks, that's all I wanted to know :)
<jhass[m]> yes, there's no method overloading in ruby
protektwar has quit [Remote host closed the connection]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
<depesz> Hi. Sorry, it could be offtopic, but I wrote very, very simple roda/puma microservice, which works 100% when i run it normally, but for some reason breaks if/when i'll put it in docker. my app: https://gitlab.com/depesz/pg-query-parser-microservice - to start: ./control start; docker file: https://paste.depesz.com/s/OZ4 I build& run it using: docker build --rm -t pg-query-parser . && docker run --publish 127.0.0.1:15283:15283/tcp --rm --name pg-query-parser
<depesz> pg-query-parser
<depesz> any idea on what I screwed up?
reset has quit [Ping timeout: 240 seconds]
markong has joined #ruby
<Sebi[m]> Could you elaborate on what exactly "breaks"? Error message/output?
duds-_ has joined #ruby
duds- has quit [Ping timeout: 240 seconds]
Ziyan has quit [Ping timeout: 244 seconds]
duds-_ is now known as duds-
infinity_fye has joined #ruby
jl- has joined #ruby
infinityfye has quit [Ping timeout: 276 seconds]
jpn has quit [Ping timeout: 240 seconds]
infinity_fye is now known as infinityfye
jl- has quit [Ping timeout: 276 seconds]
<depesz> Sebi[m]: sorry got work-distracted. it works by doing: curl -XPOST --data-urlencode "q=select 1" http://127.0.0.1:15283/
<depesz> but when the thing runs in docker all i'm getting is curl: (56) Recv failure: Connection reset by peer
kaivai has quit [Ping timeout: 268 seconds]
<depesz> actually, never mind. colleague told me what is wrong :). thanks, and sorry
yxhuvud has quit [Remote host closed the connection]
wand has quit [Remote host closed the connection]
jpn has joined #ruby
wand has joined #ruby
jpn has quit [Ping timeout: 276 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
comas0 has joined #ruby
comas0 has quit [Ping timeout: 240 seconds]
comas0 has joined #ruby
jpn has joined #ruby
jl- has joined #ruby
comas0 has quit [Ping timeout: 276 seconds]
differed7 has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
<rapha> whoopseedoopsee
<rapha> this is interesting
<rapha> @stdout is global to all threads
<rapha> and there seems to be no way of redirecting only the current thread's stdout/stderr
<rapha> * scratches head *
<rapha> (yes, talking about jruby)
<rapha> er, $stdout, pardon my french
differed7 has quit [Ping timeout: 276 seconds]
desnudopenguino has joined #ruby
<adam12> Can threads even have their own stdout? I thought it was process level.
<adam12> Better pattern would be to receive a top level io object, then pass it around.
CrazyEddy has quit [Ping timeout: 240 seconds]
bit4bit has joined #ruby
wand has quit [Ping timeout: 268 seconds]
infinityfye has quit [Quit: Leaving]
TomyWork has joined #ruby
Ziyan has joined #ruby
wand has joined #ruby
yxhuvud has joined #ruby
markong has quit [Ping timeout: 240 seconds]
cocalero has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan_ has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
<Sebi[m]> Or send log messages to a in-process queue (separate thread) that does the stdout handling
keb has joined #ruby
keb has quit [Client Quit]
John_Ivan has quit [Quit: Leaving]
keb has joined #ruby
graywolf has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
reset has joined #ruby
protektwar has quit [Ping timeout: 264 seconds]
TomyWork has quit [Quit: Leaving]
Ziyan_ has quit [Ping timeout: 276 seconds]
SteveR has joined #ruby
Ziyan has joined #ruby
finsternis has quit [Ping timeout: 244 seconds]
finsternis has joined #ruby
graywolf has quit [Quit: WeeChat 3.5]
jl- has joined #ruby
Ziyan has quit [Ping timeout: 272 seconds]
jl- has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
dionysus69 has joined #ruby
CrazyEddy has joined #ruby
<leftylink> pandabot: what's ruby flags
<pandabot> rubyflags is: ruby -ple '$_.upcase!' < input.txt; ruby -nle 'BEGIN { i = c = 0 }; c += $_.size; puts "#{i += 1} #$_"; END { p c }' < input.txt
howdoi has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
cocalero has quit [Read error: No route to host]
Ziyan has quit [Read error: Connection reset by peer]
cocalero has joined #ruby
Ziyan has joined #ruby
jpn has quit [Quit: Lost terminal]
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
SteveR has quit [Quit: Client closed]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 240 seconds]
protektwar has quit [Ping timeout: 240 seconds]
bit4bit has quit [Ping timeout: 260 seconds]
bit4bit has joined #ruby
EternalSunshine has joined #ruby
EternalSunshine has quit [Changing host]
EternalSunshine has joined #ruby
wra1th has joined #ruby
wra1th has quit [Client Quit]
Sebi[m] has left #ruby [#ruby]
___nick___ has quit [Ping timeout: 240 seconds]
cocalero_ has joined #ruby
cocalero has quit [Read error: Connection reset by peer]
cocalero_ is now known as cocalero
maroloccio has quit [Quit: WeeChat 3.0]
_ht has quit [Remote host closed the connection]
nirvdrum has joined #ruby
Linux_Kerio has quit [Ping timeout: 272 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jpn has joined #ruby
rvalue has quit [Ping timeout: 244 seconds]
walez has joined #ruby
jl- has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
desnudopenguino has joined #ruby
walez has quit [Ping timeout: 255 seconds]
jpn has quit [Ping timeout: 244 seconds]
John_Ivan has joined #ruby
bit4bit has quit [Quit: Leaving]
markong has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
keb has quit [Ping timeout: 255 seconds]
jpn has joined #ruby
rvalue has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
jpn has quit [Ping timeout: 272 seconds]
ua__ has quit [Ping timeout: 256 seconds]
ua__ has joined #ruby
EternalSunshine has quit [Quit: WeeChat 3.6]
kiki_lamb has joined #ruby
whysthatso125070 has quit [Remote host closed the connection]
whysthatso125070 has joined #ruby
kiki_lamb has left #ruby [#ruby]
keb has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
musashi has joined #ruby
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
jpn has quit [Ping timeout: 244 seconds]