havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-preview3: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
ur5us has joined #ruby
mangold has quit [Ping timeout: 268 seconds]
hutch has joined #ruby
beowuff has joined #ruby
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
ansraliant has joined #ruby
crankharder has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
cliluw has quit [Ping timeout: 250 seconds]
cliluw has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Remote host closed the connection]
akem has joined #ruby
white_lilies has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
akem has quit [Remote host closed the connection]
akem has joined #ruby
mangold has joined #ruby
jetchisel has joined #ruby
akaiiro has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 250 seconds]
gix has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 250 seconds]
tag has quit [Quit: Connection closed for inactivity]
hutch has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
arescorpio has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
nicesignal has quit [Quit: WeeChat 1.9.1]
chens has joined #ruby
andrewray has joined #ruby
<andrewray> Is this redundant? File.open(Tempfile.new())
<andrewray> I'm calling file.close then File.delete(file) on the resulting file, and I'm getting this error
<andrewray> Errno::ENOENT: No such file or directory @ apply2files IOError: not opened for reading
akaiiro has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
white_lilies has quit [Ping timeout: 246 seconds]
esrse has joined #ruby
white_lilies has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
DTZUZO has joined #ruby
white_lilies has quit [Ping timeout: 268 seconds]
oncall-pokemon has joined #ruby
AJA4350 has quit [Quit: AJA4350]
chens has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 250 seconds]
Freshnuts has joined #ruby
hays has quit [Quit: No Ping reply in 180 seconds.]
hays has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
akaiiro has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
Renich_ has joined #ruby
Renich has quit [Ping timeout: 250 seconds]
Renich_ is now known as Renich
white_lilies has joined #ruby
<andrewray> lol why are ruby core docs like this
<andrewray> showing me 10 years old versions by default
serard has joined #ruby
jetchisel has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
andrewray has quit [Ping timeout: 256 seconds]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
DTZUZO has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
akem has quit [Remote host closed the connection]
knight33 has quit [Quit: Ping timeout (120 seconds)]
akem has joined #ruby
dbz has joined #ruby
knight33 has joined #ruby
jetchisel has joined #ruby
serard has quit [Quit: Leaving]
jetchisel has quit [Max SendQ exceeded]
dbz has quit [Remote host closed the connection]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
arescorpio has quit [Ping timeout: 250 seconds]
code_zombie has quit [Quit: Leaving]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
scrptktty has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
awkwords_ has joined #ruby
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
awkwords has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
hurricanehrndz has quit [Ping timeout: 252 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\void has quit [Quit: So long, and thanks for all the fish.]
houhoulis has joined #ruby
braincrash has quit [Quit: bye bye]
Renich has quit [Remote host closed the connection]
Renich has joined #ruby
braincrash has joined #ruby
nchambers has joined #ruby
mrush has joined #ruby
<mrush> parsing malformed json is tricky
houhoulis has quit [Remote host closed the connection]
<nchambers> / 31
<nchambers> erm
<mrush> hi nchambers.
<nchambers> hello
<nchambers> you saw nothing
<mrush> hahah
jetchisel has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
ivanskie has quit [Client Quit]
hurricanehrndz has joined #ruby
jetchisel has joined #ruby
jetchisel has quit [Client Quit]
KeyJoo has joined #ruby
Nicmavr has quit [Quit: ZNC 1.7.0 - https://znc.in]
Nicmavr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
jenrzzz has joined #ruby
bambanx has joined #ruby
jaddison_ has quit [Quit: jaddison_]
awkwords has joined #ruby
awkwords_ has quit [Ping timeout: 244 seconds]
mrush has left #ruby [#ruby]
awkwords has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
ur5us has quit [Remote host closed the connection]
awkwords has joined #ruby
sauvin has joined #ruby
matju has joined #ruby
awkwords_ has joined #ruby
\void has joined #ruby
awkwords has quit [Ping timeout: 268 seconds]
awkwords_ has quit [Ping timeout: 250 seconds]
awkwords has joined #ruby
matju has quit [Ping timeout: 250 seconds]
dedRabbit has joined #ruby
hurricanehrndz has quit [Excess Flood]
dedRabbit has quit [Client Quit]
nchambers has quit [Quit: aren't you a little young to be an astrophysicist?]
mangold has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
hurricanehrndz has joined #ruby
bambanx has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
MyMind has joined #ruby
Inline has quit [Quit: Leaving]
ogres has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
Sembei has quit [Ping timeout: 268 seconds]
paranoicsan has joined #ruby
akem has quit [Remote host closed the connection]
dbz has joined #ruby
akem has joined #ruby
cgfbee has joined #ruby
hurricanehrndz has quit [Ping timeout: 252 seconds]
hiroaki has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
jenrzzz has joined #ruby
awkwords_ has joined #ruby
awkwords has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
conta has joined #ruby
jenrzzz has joined #ruby
akosednar has quit [Ping timeout: 246 seconds]
peirama has joined #ruby
awkwords_ has quit [Ping timeout: 268 seconds]
akosednar has joined #ruby
awkwords has joined #ruby
dbz has quit [Remote host closed the connection]
aupadhye has joined #ruby
akem__ has joined #ruby
dbz has joined #ruby
akem has quit [Ping timeout: 240 seconds]
paranoicsan is now known as paranoicsan[Away
white_lilies has quit [Ping timeout: 246 seconds]
dellavg_ has joined #ruby
paranoicsan[Away is now known as paranoicsan
awkwords has quit [Quit: sleepy time]
vondruch has quit [Read error: Connection reset by peer]
hurricanehrndz has joined #ruby
vondruch has joined #ruby
Swyper has joined #ruby
<Swyper> I’m getting a wrong number of arguments error and I am not sure why
evdubs_ has joined #ruby
<Swyper> def repeat(text)
<Swyper> return (text + " " + text)
<Swyper> end # should just send the repeating word back no?
evdubs has quit [Ping timeout: 250 seconds]
bijan_ has joined #ruby
piks3l has joined #ruby
dbz has quit [Remote host closed the connection]
kapil____ has quit [Quit: Connection closed for inactivity]
akosednar has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
irdr has quit [Ping timeout: 268 seconds]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
akosednar has joined #ruby
bijan_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
ellcs has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
bijan_ has quit [Read error: Connection reset by peer]
clemens3 has joined #ruby
jenrzzz has joined #ruby
Swyper has quit [Quit: Swyper]
KeyJoo has quit [Quit: KeyJoo]
Swyper has joined #ruby
roshanavand has joined #ruby
Swyper has quit [Client Quit]
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
roshanavand1 is now known as roshanavand
bijan_ has joined #ruby
agent_white has quit [Quit: bbl]
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
RougeR has joined #ruby
aufi has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
bijan_ has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
hurricanehrndz has quit [Ping timeout: 246 seconds]
paranoicsan has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away is now known as paranoicsan
paranoicsan is now known as paranoicsan[Away
Guest12374 has joined #ruby
paranoicsan[Away has quit [Client Quit]
\void has quit [Quit: So long, and thanks for all the fish.]
bijan_ has joined #ruby
nolanv has quit [Ping timeout: 246 seconds]
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
nolanv has joined #ruby
ur5us has quit [Remote host closed the connection]
bijan__ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
akem has joined #ruby
mikecmpbll has joined #ruby
hurricanehrndz has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
divergence has quit [Ping timeout: 246 seconds]
r3dc0d3r has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 250 seconds]
chongtxtx has quit [Ping timeout: 246 seconds]
booboy has quit [Ping timeout: 246 seconds]
divergence has joined #ruby
booboy has joined #ruby
xMopx has quit [Ping timeout: 246 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
ansraliant has quit [Quit: My planet needs me]
r3dc0d3r has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan___ has joined #ruby
xMopx has joined #ruby
bijan___ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
DTZUZU has quit [Ping timeout: 268 seconds]
DTZUZU has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan__ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
saTchymoto has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
kapil____ has joined #ruby
chongtxtx has joined #ruby
themsay has joined #ruby
akosednar has quit [Ping timeout: 250 seconds]
akosednar has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 246 seconds]
dbz has joined #ruby
dbz has quit [Ping timeout: 268 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
arekushi has joined #ruby
Beams has joined #ruby
phaul has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 245 seconds]
paranoicsan has joined #ruby
lucasb has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
LinuxKnight has joined #ruby
piks3l has quit [Quit: piks3l]
Guest12374 has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
Freshnuts has quit [Quit: Leaving]
cnsvc has joined #ruby
bijan_ has quit []
malen has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
malen has joined #ruby
awkwords has joined #ruby
malen has quit [Ping timeout: 246 seconds]
malen has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
bijan_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 246 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 268 seconds]
conta has joined #ruby
malen has quit [Ping timeout: 250 seconds]
esrse has quit [Ping timeout: 246 seconds]
<dionysus69> hmm
<dionysus69> so I pass n number of arguments to exec
<dionysus69> how do I save it in method or proc so I pass method/proc as argument to exec
piks3l has joined #ruby
malen has joined #ruby
bijan_ has joined #ruby
lxsameer has joined #ruby
nolanv has quit [Ping timeout: 246 seconds]
saTchymoto has quit [Ping timeout: 250 seconds]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
paranoicsan has joined #ruby
malen has quit [Ping timeout: 250 seconds]
tau has quit [Remote host closed the connection]
saTchymoto has joined #ruby
cnsvc has joined #ruby
ropeney_ has joined #ruby
ropeney_ has quit [Client Quit]
malen_ has joined #ruby
malen_ is now known as malen
cnsvc has quit [Ping timeout: 256 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
kapil____ has joined #ruby
irdr has joined #ruby
Blaguvest has quit [Ping timeout: 272 seconds]
dedRabbit has joined #ruby
bijan_ has quit [Remote host closed the connection]
bijan_ has joined #ruby
* dedRabbit
malen has quit [Ping timeout: 272 seconds]
bijan_ has quit [Read error: Connection reset by peer]
dedRabbit has quit [Client Quit]
bijan_ has joined #ruby
paranoicsan has joined #ruby
dedRabbit has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
dedRabbit is now known as Mikey808
bijan_ has joined #ruby
malen has joined #ruby
<jhass> dionysus69: wat
bijan_ has quit [Ping timeout: 252 seconds]
<dionysus69> how would you dry that up?
<dionysus69> I tried putting exec block in a method, but it misbehaved
AJA4350 has joined #ruby
Mikey808 has quit [Quit: WeeChat 1.9.1]
<jhass> pid = spawn ...; Process.waitpid pid if last
bijan_ has joined #ruby
<jhass> if you really absolutely must exec; args = [...]; if last; exec *args; else; spawn *args; end
<jhass> I'd personally give Process.detach a chance first: pid = spawn ...; Process.detach pid
bijan_ has quit [Read error: Connection reset by peer]
<dionysus69> ok so you think spawn is better used in this case than fork? but they roughly do the same right, both return the pid
<dionysus69> yea thanks for the splat operator
<jhass> I'm repeating myself: you're just reimplementing spawn there
<jhass> spawn is doing fork & exec for you
<dionysus69> ohh
<dionysus69> now I get it
<dionysus69> finally, thanks :D
woodruffw has quit [Ping timeout: 244 seconds]
piks3l has quit [Quit: piks3l]
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
woodruffw has joined #ruby
<dionysus69> jhass: result :P last_call ? exec(*ssh_args(args_for_args)) : spawn(*ssh_args(args_for_args))
bijan_ has joined #ruby
nowhereman has joined #ruby
nowhereman is now known as Guest14049
nowhere_man has quit [Read error: Connection reset by peer]
bijan_ has quit [Ping timeout: 252 seconds]
blackswan has quit [Ping timeout: 246 seconds]
bijan_ has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand1 is now known as roshanavand
malen is now known as estst
bijan_ has quit [Ping timeout: 250 seconds]
Tuor has joined #ruby
bijan_ has joined #ruby
dhollin3 is now known as dhollinger
bijan__ has joined #ruby
jsc has joined #ruby
jsc is now known as status402
bijan_ has quit [Ping timeout: 268 seconds]
mostlybadfly has joined #ruby
elfranne has joined #ruby
bijan__ has quit [Ping timeout: 252 seconds]
ropeney has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
conta2 has joined #ruby
ropeney has joined #ruby
cnsvc has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
kloeri has joined #ruby
bijan_ has joined #ruby
ogres has joined #ruby
conta has quit [Ping timeout: 268 seconds]
conta2 is now known as conta
<sezuan> /15
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
sheepman has quit [Ping timeout: 260 seconds]
conta2 has joined #ruby
conta2 has quit [Ping timeout: 246 seconds]
sheepman has joined #ruby
akem has quit [Quit: Leaving]
cnsvc has quit [Ping timeout: 256 seconds]
Genya has joined #ruby
<Genya> ruby newb here. using ruby WITHOUT rails. and dont know how to make a singleton. basically I shouldnt have a need to do someclass.new
<Genya> so an object with methods
Bish has joined #ruby
<Bish> somebody have a good gem for swagger defined apis?
<Bish> (client)
<Zarthus> Genya: typically you can `include Singleton` in your class and that's it.
saTchymoto has quit []
<Zarthus> Genya: though note that singletons are more or less an antipattern in the vision of most.
<Genya> it seemed I still had to initialize the class
<Genya> Im reading a little more and it might seem that module is what im looking for?
<peirama> You can use Singleton, but sounds like you rather need a module: https://ruby-doc.org/stdlib-2.3.0/libdoc/singleton/rdoc/Singleton.html
<Genya> im writting a small service which gets a string and searches for keywords.
<peirama> If it does not hold state, use a module
<Genya> thank you. I think that is what I am looking for
Inline has joined #ruby
Guest14049 has quit [Ping timeout: 252 seconds]
<Bish> swagger seems to be not in here, :o
Genya has left #ruby [#ruby]
Pisuke has joined #ruby
polishdub has joined #ruby
MyMind has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
mangold has joined #ruby
aupadhye has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
code_zombie has joined #ruby
peirama has quit [Read error: Connection reset by peer]
peirama has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
paranoicsan has joined #ruby
Inline has quit [Remote host closed the connection]
Swyper has joined #ruby
arup_r has joined #ruby
Inline has joined #ruby
HailTheRobots has joined #ruby
hutch has joined #ruby
mangold has quit [Quit: Leaving]
awkwords has quit [Quit: sleepy time]
Renich_ has joined #ruby
awkwords has joined #ruby
Renich has quit [Ping timeout: 244 seconds]
Renich_ is now known as Renich
arup_r has quit [Remote host closed the connection]
status402 has quit [Quit: status402]
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
Tuor has quit [Quit: Konversation terminated!]
Renich_ has joined #ruby
Renich has quit [Ping timeout: 250 seconds]
Renich_ is now known as Renich
cnsvc has joined #ruby
akaiiro has joined #ruby
bijan__ has quit [Remote host closed the connection]
KeyJoo has joined #ruby
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-rc1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
chainz has joined #ruby
<chainz> anyone know if there's a way to run a ruby script starting at a certain line?
<chainz> like ruby script.rb:34
<Zarthus> chainz: import the lib, call the method declared in script.rb?
<Zarthus> that's typically how portability becomes easy
Dbugger has joined #ruby
CrazyEddy has quit [Ping timeout: 246 seconds]
conta has quit [Quit: conta]
paranoicsan has quit [Quit: paranoicsan]
CrazyEddy has joined #ruby
coltkirk has joined #ruby
<chainz> Zarthus: the script is like a thousand lines
hutch has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
<Zarthus> i can think of a hack where you copy the file, slice the lines, and eval it. Or you do a `head +43 | ruby`
<Zarthus> might actually be -43, i do not remember.
<Zarthus> Probably not what you want :P
<chainz> so some background on what i'm trying
jaddison has joined #ruby
<chainz> this is a bootstrap script after a server is launched. right now i'm troubleshooting issues and instead of starting all over (which i will eventually do to ensure it works from start) i want to step through each issue and resolve them all
cnsvc has quit [Ping timeout: 256 seconds]
<chainz> the entire bootstrap process takes 45 mins to an hour
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan__ has joined #ruby
tau has joined #ruby
weaksauce has joined #ruby
Swyper has quit [Quit: Swyper]
Swyper has joined #ruby
gix has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 272 seconds]
bijan_ has joined #ruby
dbz has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
CrazyEddy has quit [Ping timeout: 246 seconds]
dbz has quit [Ping timeout: 268 seconds]
clemens3 has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
tau has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
RougeR has joined #ruby
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 252 seconds]
Beams has quit [Quit: .]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
HailTheRobots has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 240 seconds]
uplime has joined #ruby
Pisuke has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
sauvin has quit [Remote host closed the connection]
bijan_ has quit [Read error: Connection reset by peer]
Swyper has quit [Quit: Swyper]
Pisuke has joined #ruby
\void has joined #ruby
bijan_ has joined #ruby
mochiyoda has quit [Remote host closed the connection]
hutch has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
estst is now known as malen
Guest14049 has joined #ruby
Swyper has joined #ruby
eckhardt_ has joined #ruby
bijan_ has joined #ruby
<havenwood> "solve the genie/zombie/wrestlers bug"
KeyJoo has quit [Quit: KeyJoo]
<havenwood> 🧞‍♂️🧟‍♂️🤼‍♂️🧞‍♀️🧟‍♀️🤼‍♀️
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
CrazyEddy has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
Bish has quit [Quit: Lost terminal]
Aqo has joined #ruby
cnsvc has joined #ruby
malen has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
malen has joined #ruby
Renich_ has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
malen has quit [Excess Flood]
reber has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
Renich_ has quit [Read error: Connection reset by peer]
malen has joined #ruby
Renich has joined #ruby
tau has joined #ruby
bijan_ has joined #ruby
orbyt_ has joined #ruby
elcontrastador has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
mostlybadfly has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
awkwords has quit [Quit: sleepy time]
mikecmpbll has joined #ruby
RedNifre has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
malen has quit [Ping timeout: 246 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
malen has joined #ruby
mikecmpbll has quit [Quit: inabit.]
hutch has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
Swyper has quit [Quit: Swyper]
Swyper has joined #ruby
tau has quit [Remote host closed the connection]
ur5us has joined #ruby
awkwords has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
Scriptonaut has joined #ruby
bijan_ has joined #ruby
eckhard__ has joined #ruby
Guest14049 has quit [Ping timeout: 252 seconds]
eckhardt_ has quit [Ping timeout: 250 seconds]
mochiyoda has joined #ruby
HailTheRobots has joined #ruby
reber has quit [Remote host closed the connection]
<Scriptonaut> hey guys, I'm working on a really old project that uses activerecord 2, I'm having an issue with connections to the database persisting after I've ran the query, and returned from the method. Here is a basic rundown of what is happening: https://gist.github.com/robins35/9d6b5bcc02550d8ee4f88402660b9850
<Scriptonaut> this ends up meaning that when I iterate a few hundred time, it ends up maxing out my max connection pool within a few seconds
<Scriptonaut> each time I call the method that runs this query, I return an array of the results (not an activerecord relation), yet the connection stays open
<phaul> uhm, this looks like Sequel?
<Scriptonaut> oh, ya it is, but isn't Sequel an activerecord wrapper?
<phaul> afaik that's not activerecord, or was activerecord using Sequel back then?
<havenwood> phaul: I concur, that's a fishy ActiveRecord 2.
<havenwood> Scriptonaut: No
<Scriptonaut> ah, ok. I guess this is a sequel problem
<Scriptonaut> or is it behaving as intended?
krawchyk has joined #ruby
<havenwood> Scriptonaut: I see you asked in the #sequel channel. It may take a minute for a response, but that's the best place.
ogres has quit [Quit: Connection closed for inactivity]
<Scriptonaut> havenwood: thanks
<Scriptonaut> ya
awkwords has quit [Ping timeout: 250 seconds]
awkwords has joined #ruby
Renich has quit [Remote host closed the connection]
piks3l has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
bijan__ has joined #ruby
awkwords has quit [Ping timeout: 250 seconds]
bijan__ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
awkwords has joined #ruby
agent_white has joined #ruby
bambanx has joined #ruby
Dbugger has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 268 seconds]
agent_white has quit [Quit: leaving]
RedNifre has quit [Ping timeout: 252 seconds]
awkwords has quit [Quit: sleepy time]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dellavg_ has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
daemonwrangler has quit [Ping timeout: 246 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
jenrzzz has joined #ruby
krawchyk has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
awkwords has joined #ruby
bijan_ has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
jenrzzz has joined #ruby
HailTheRobots has quit [Remote host closed the connection]
HailTheRobots has joined #ruby
eckhard__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
jcalla has quit [Read error: Connection reset by peer]
awkwords_ has joined #ruby
awkwords has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piks3l_ has joined #ruby
Fusl has quit [Excess Flood]
piks3l has quit [Ping timeout: 246 seconds]
Fusl has joined #ruby
perique has joined #ruby
daemonwrangler has joined #ruby
eckhardt_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
perique has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
blackswan has joined #ruby
jenrzzz has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ogres has joined #ruby
Swyper has quit [Quit: Swyper]
awkwords_ has quit [Ping timeout: 268 seconds]
cnsvc has joined #ruby
awkwords has joined #ruby
polishdub has quit [Quit: leaving]
Swyper has joined #ruby
pavelz has joined #ruby
<pavelz> hello
<pavelz> i am trying to rename keys in array of hashes but it just ignores them
<pavelz> arr.each{|n| n.each{|k,v| f = k.gsub(/node_/,''); puts f," ", v; [f, v]}.to_h }
<Radar> what is arr
<pavelz> [{},{}]
<Radar> &>> arr = [{},{}]; arr.each{|n| n.each{|k,v| f = k.gsub(/node_/,''); puts f," ", v; [f, v]}.to_h }
<rubydoc> # => [{}, {}] (https://carc.in/#/r/5png)
<Radar> pavelz: actual input and expected output please
<pavelz> is my code wrong?
<phaul> i guess you mean map, not each
<pavelz> [{"node_name" => "hello"},{"node_name" => "where"}]
<pavelz> oh
<pavelz> right
<pavelz> fail
<pavelz> thanks!
<phaul> yw
<havenwood> pavelz: If it's modern Ruby, consider refactoring: map { |h| h.transform_keys { |key| key.delete 'node_' } }
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
chainz has left #ruby [#ruby]
piks3l_ has quit [Quit: piks3l_]
<Radar> ^
<pavelz> havenwood: haha no its not. but thanks!
<pavelz> havenwood: what version?
<havenwood> pavelz: #delete is available whatever version
<havenwood> pavelz: #transform_keys is Ruby 2.5
<havenwood> (or Rails)
<pavelz> yea
<pavelz> no
<pavelz> 2.2.3 here
<havenwood> pavelz: You can use the backports gem if you'd like to keep 2.2 and have Hash#transform_keys: https://github.com/marcandre/backports
<havenwood> pavelz: The latest 2.2 is 2.2.10, fwiw.
<havenwood> pavelz: "We highly recommend that you upgrade to Ruby 2.5 or 2.4 as soon as possible."
jenrzzz has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
awkwords has quit [Quit: sleepy time]
beowuff has quit [Remote host closed the connection]
<pavelz> havenwood: thanks
beowuff has joined #ruby
beowuff has left #ruby [#ruby]
beowuff has joined #ruby
beowuff has left #ruby [#ruby]
beowuff has joined #ruby