<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]