havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.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!
sarink has quit [Remote host closed the connection]
impermanence has joined #ruby
sarink has joined #ruby
<impermanence> I have a cli I use that is based on a ruby api. When I call it from my command line...no issues. When I call it from a simple bash script I get fixnum is deprecated warnings.
<impermanence> I really don't want to update any of the gems on this box because it'll probably break everything.
<impermanence> Is there any way I can simply suppress these warnings?
<uplime> how are you calling it in a bash script, and how is the bash script being executed?
<impermanence> calling it in script identically as I am on the command line; script is being executed manually right now by me from command line
<impermanence> I get that the script is a new process...
<impermanence> my current shell is bash; shell that script executes in is bash
sarink has quit [Ping timeout: 258 seconds]
<impermanence> even when I literally just take the actual cli command and plop it in a file and bash $that_file I get this fixnum warning
<impermanence> but when I simply run that cli command from my command line...all good in terms of STDOUT
<impermanence> it's making it a PITA for me to have to parse the fixnum warnings
etupat has quit [Remote host closed the connection]
drincruz_ has quit [Ping timeout: 268 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sarink has joined #ruby
zacts has joined #ruby
<al2o3-cr> impermanence: you could set $VERBOSE to nil
<al2o3-cr> impermanence: or ruby -W0 script.rb
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cliluw has quit [Ping timeout: 250 seconds]
cliluw has joined #ruby
zacts has quit [Quit: Konversation terminated!]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
itarato has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
ctOS has quit [Quit: Connection closed for inactivity]
wildtrees has quit [Quit: Leaving]
wymillerlinux has joined #ruby
davidw has quit [Ping timeout: 268 seconds]
im0nde_ has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
TvL2386 has joined #ruby
endorama has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Quit: AJA4350]
johnny56 has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
Mrbuck has quit [Quit: WeeChat 2.7]
markopasha has quit [Remote host closed the connection]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
skyikot has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
ivanskie has joined #ruby
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
gix- has quit [Ping timeout: 248 seconds]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
itarato has quit [Ping timeout: 268 seconds]
wallace_mu has quit [Ping timeout: 265 seconds]
ctOS has joined #ruby
orbyt_ has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
impermanence has quit [Ping timeout: 240 seconds]
sagax has quit [Read error: Connection reset by peer]
sagax has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
cthulchu_ has joined #ruby
bruce_lee has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthu| has quit [Ping timeout: 248 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
ivanskie has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Benett has joined #ruby
NODE has joined #ruby
chalkmonster has joined #ruby
NODE has quit [Client Quit]
Benett has quit [Quit:  ]
Benett has joined #ruby
etupat has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
Benett has quit [Remote host closed the connection]
drincruz_ has quit [Read error: Connection reset by peer]
houhoulis has joined #ruby
<uplime> is there a builtin or rubyish way to turn the strings "true" or "false" into equivalent booleans
ur5us_ has quit [Ping timeout: 248 seconds]
skyikot has quit [Ping timeout: 260 seconds]
etupat has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: Connection closed for inactivity]
<uplime> guess i can just do: val = str.downcase == "true"
bsdbandit-01 has joined #ruby
akemhp_ has joined #ruby
jzinedine has joined #ruby
akemhp_ has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 265 seconds]
skyikot has joined #ruby
<jzinedine> hello
alexherbo2 has joined #ruby
ccooke has quit [Ping timeout: 268 seconds]
bsdband14 has joined #ruby
ltd has quit [Ping timeout: 265 seconds]
ivanskie has joined #ruby
ltd has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
bsdbandit-01 has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
fphilipe_ has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
Mrbuck has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
skyikot has quit [Quit: skyikot]
bsdbandit-01 has joined #ruby
bsdband14 has quit [Ping timeout: 248 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
sarink has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
etupat has quit []
_whitelogger has joined #ruby
akemhp has joined #ruby
ivanskie has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
sarink has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
Nicmavr has joined #ruby
jzinedine has quit [Read error: Connection reset by peer]
sarink has joined #ruby
drincruz_ has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
Mrbuck has quit [Quit: WeeChat 2.7]
envex has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 252 seconds]
envex has joined #ruby
sarink has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
fphilipe_ has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
donofrio has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cthulchu_ has joined #ruby
cthu| has quit [Ping timeout: 245 seconds]
akemhp has quit [Ping timeout: 258 seconds]
bambanx has quit [Quit: Leaving]
ur5us_ has joined #ruby
davor has quit [Ping timeout: 245 seconds]
duckpupp- has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
davor has joined #ruby
infinityfye has joined #ruby
infinityfye has quit [Client Quit]
infinityfye has joined #ruby
code_zombie has quit [Quit: Leaving]
schne1der has joined #ruby
conta has joined #ruby
conta has quit [Quit: conta]
endorama has joined #ruby
suukim has joined #ruby
conta has joined #ruby
phaul has joined #ruby
<ljarvis> erikh: o/ long time
skx86 has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Axy has quit [Ping timeout: 248 seconds]
sameerynho has joined #ruby
chalkmonster has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
ur5us_ has quit [Ping timeout: 245 seconds]
Mia has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 265 seconds]
william1 has joined #ruby
Mrbuck has joined #ruby
dionysus69 has joined #ruby
phaul has joined #ruby
sarink has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<uplime> is it possible to instance_eval a block, and pass an argument to the block?
sarink has quit [Ping timeout: 258 seconds]
cthulchu has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
cthulchu_ has quit [Ping timeout: 245 seconds]
lacrymology has joined #ruby
Fernando-Basso has joined #ruby
Yuyu0 has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather_ has joined #ruby
clemens3 has joined #ruby
yann-kaelig has joined #ruby
<uplime> nmd im an idiot
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #ruby
william1 has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
william1 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
mikecmpbll has joined #ruby
rippa has joined #ruby
gavlee has joined #ruby
william1 has quit [Ping timeout: 248 seconds]
priodev has quit [Ping timeout: 268 seconds]
priodev has joined #ruby
turbo_choo has quit [Ping timeout: 258 seconds]
markopasha has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
william1 has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7]
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 248 seconds]
phaul_ has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
Tikku has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
william1 has quit [Ping timeout: 268 seconds]
TCZ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
Tikku has left #ruby [#ruby]
dionysus69 has quit [Ping timeout: 258 seconds]
dionysus70 is now known as dionysus69
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
chalkmonster has joined #ruby
william1 has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #ruby
cthulchu has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
ccooke has joined #ruby
cthulchu has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
phaul_ has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
lineus has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
lineus has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
Benett has joined #ruby
Benett has quit [Quit:  ]
Benett has joined #ruby
william1 has quit [Ping timeout: 248 seconds]
wallace_mu has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Benett has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
AJA4350 has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
phaul_ has quit [Ping timeout: 268 seconds]
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
william1 has joined #ruby
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
johnny56 has joined #ruby
donofrio has joined #ruby
phaul_ has joined #ruby
lacrymology has quit [Ping timeout: 268 seconds]
houhoulis has quit [Remote host closed the connection]
lucasb has joined #ruby
shokohsc has quit [Remote host closed the connection]
william1 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
cthulchu_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
phaul_ has quit [Ping timeout: 258 seconds]
cthulchu has quit [Ping timeout: 248 seconds]
mozzarella has quit [Quit: WeeChat 2.4]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
DaRock has quit [Remote host closed the connection]
skx86 has joined #ruby
DaRock has joined #ruby
wymillerlinux has quit [Remote host closed the connection]
drincruz has joined #ruby
Benett has joined #ruby
drincruz_ has quit [Read error: Connection reset by peer]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
lacrymology has joined #ruby
drincruz has quit [Ping timeout: 248 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
schne1der has quit [Ping timeout: 268 seconds]
cthulchu has joined #ruby
<cjohnson> uplime: When you want to turn arbitrary strings into totally unrelated values, the way you have it is right
cthulchu_ has quit [Ping timeout: 248 seconds]
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
akemrir has joined #ruby
cxl has quit [Changing host]
cxl has joined #ruby
MrCrackPotBob has quit [Read error: Connection reset by peer]
impermanence has joined #ruby
Tikku has joined #ruby
cnomad has joined #ruby
<impermanence> say I have some box and it's got a bunch of gems on it and this is a fairly important box with a ton of ruby shit on it that no one understands; I know for sure that one of these gems is out of date and is throwing a ton of FIXNUM deprecation warnings (this is not a rails box) and this is super annoying; so anyway I "feel" like if I update the gem
<impermanence> that's throwing all these FIXNUM warnings it may solve this spam, but I'm also scared shitless that if I updated this gem it'll break a bunch of stuff; any advice?
Inline has joined #ruby
MrCrackPot has joined #ruby
william1 has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 268 seconds]
MrCrackPot has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
mozzarella has joined #ruby
Tikku has quit [Quit: Leaving]
Tikku has joined #ruby
phaul_ has joined #ruby
MrCrackPot has quit [Ping timeout: 240 seconds]
Tikku_ has joined #ruby
Tikku has quit [Client Quit]
Tikku_ has quit [Client Quit]
Tikku has joined #ruby
drincruz has joined #ruby
phaul_ has quit [Ping timeout: 258 seconds]
MrCrackPot has joined #ruby
TCZ has quit [Quit: Bye Bye]
Tikku has quit [Client Quit]
Tikku has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
vrih_ has joined #ruby
vrih has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
Tikku has quit [Client Quit]
Tikku has joined #ruby
Tikku has quit [Client Quit]
lacrymology has quit [Ping timeout: 240 seconds]
<ljarvis> impermanence: install both versions and use the Kernel "gem" method (added by rubygems) to fix the version number
<impermanence> kernel gem method?
conta has quit [Quit: conta]
<impermanence> k
al2o3-cr has joined #ruby
<ljarvis> so you want `gem "name", "version"` followed by `require "gem"` and it'll load the version you specified, this will ensure the important version is still used where you need it to be (I guess you're not using bundler)
lacrymology has joined #ruby
schne1der has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
Esa_ has joined #ruby
infinityfye has quit [Quit: Leaving]
<NL3limin4t0r> impermanence: You could setup a development box with the same Ruby version and gem versions. Then try to upgrade that, run your tests and see if anything breaks.
<impermanence> this box is a monolithic beast with massive DBs attached; it's a real monster (yes: that is not good) so I don't have any motivation to do that
<impermanence> I'm just going to live with the warnings for now until I have time to switch to a different product
sarink has joined #ruby
chalkmonster has joined #ruby
<NL3limin4t0r> Database dumps are not that hard to do, even for large databases, although it can take a while if the database is large.
<NL3limin4t0r> That's the best I can come up with for now. If all traffic to/from the production box can be halted for a while you can make a snapshot of your box, then directly try to upgrade production. If something goes wrong, restore the snapshot. But I wouldn't reccomend that approach.
mr-kumar has quit [Ping timeout: 258 seconds]
cats has quit [Ping timeout: 252 seconds]
DaRock has quit [Ping timeout: 268 seconds]
fphilipe_ has quit [Ping timeout: 258 seconds]
jcalla has quit [Ping timeout: 246 seconds]
william1 has quit [Ping timeout: 258 seconds]
ellcs has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
jcalla has joined #ruby
wallace_mu has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
dionysus69 has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
duderonomy has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
akemhp has joined #ruby
orbyt_ has joined #ruby
akemhp has quit [Excess Flood]
akemhp has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
teclator has joined #ruby
fphilipe_ has joined #ruby
wallace_mu has joined #ruby
sarink has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 246 seconds]
unreal has quit [Read error: Connection reset by peer]
cthulchu has quit [Ping timeout: 248 seconds]
Axy has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Axy has joined #ruby
unreal has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
akemrir has quit [Quit: WeeChat 2.6]
Tikku has joined #ruby
william1 has joined #ruby
<havenwood> impermanence: Presumably you somehow went from Ruby 2.3 to 2.4, where Integer combines Fixnum and Bignum. You could consider just silencing the warning in Rails if you're keeping everything fixed. https://til.hashrocket.com/posts/7fc758d28e-rails-on-ruby-24-silence-fixnumbignum-warnings
<impermanence> as I mentioned this is not a rails box
<impermanence> Ruby is 2.0
<impermanence> `ruby 2.0.0p648 (2015-12-16) [x86_64-linux]`
Tikku has quit [Client Quit]
Tikku has joined #ruby
<havenwood> impermanence: haha, I just scanned what you wrote and saw "rails" but didn't realize it was inverted. are you sure you're using ruby 2.0? :O
<impermanence> gem list | grep rails; echo $? --> 1
<impermanence> "I'm" not using it; some guy that built all this stuff is
<havenwood> impermanence: You shouldn't see that warning unless you're on Ruby 2.4+.
<impermanence> well...I do.
Tikku has quit [Client Quit]
<havenwood> impermanence: I mean, some guy shouldn't see that warning. I'd focus on why he's saying it's Ruby 2.0 when it's giving warning that start in 2.4. I just woke up. Need coffee to read properly. bbiab.
Tikku has joined #ruby
<impermanence> `rh-ruby24-ruby-2.4.3-90.el7.x86_64`
<impermanence> jackpot
<impermanence> I'm saying 2.0, but I was wrong. There are multiple versions upon closer examination.
<impermanence> And I suppose this is likely what broke the thing that got me out to this channel in the first place
Tikku has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
Nicmavr has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
william1 has quit [Ping timeout: 258 seconds]
clemens3 has quit [Quit: WeeChat 1.6]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
dionysus69 has joined #ruby
jenrzzz has joined #ruby
luminousnine has left #ruby ["Leaving"]
dviola has quit [Quit: WeeChat 2.7]
mikecmpbll has quit [Quit: inabit. zz.]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
phaul_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
drincruz_ has quit [Read error: No route to host]
drincruz_ has joined #ruby
jenrzzz has joined #ruby
cthulchu has joined #ruby
ellcs has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
sarink has quit []
ivanskie has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
shokohsc has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
code_zombie has joined #ruby
jenrzzz has joined #ruby
impermanence has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
akemhp has quit [Ping timeout: 268 seconds]
fuzzface has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 265 seconds]
arooni_team_b is now known as arooni
alexherbo2 has joined #ruby
fphilipe_ has joined #ruby
SlavicBohemian has joined #ruby
skx86 has joined #ruby
dostoyevsky has quit [Ping timeout: 252 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
shokohsc8 has joined #ruby
shokohsc has quit [Ping timeout: 258 seconds]
jcalla has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #ruby
galaxie has quit [Remote host closed the connection]
galaxie has joined #ruby
jordanm has quit [Remote host closed the connection]
akemhp has joined #ruby
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
jordanm has joined #ruby
suukim has quit [Quit: Konversation terminated!]
<adam12> Anybody ever have to restrict an entire subset of tests (minitest) to not run except under certain scenarios? I'm trying to find an elegant pattern that can be consistent across a team and looking for alternative options.
alexherbo2 has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<adam12> I kinda hate the Rake test task.
cconstantine has joined #ruby
davispuh has joined #ruby
<cconstantine> Hey folks, I'm running ruby in an application environment that is not nice with how it limits memory usage (nomad / docker). When a ruby application goes beyond the limit of how much memory it's allowed the process is force-killed. I'd really rather have the ruby vm raise an out of memory error/exception instead but I can't find a way to tell RMI a limit for how much memory (heap or otherwise) it's allowed to allocate. Does anyone know if there's a
<cconstantine> way to tell RMI a maximum allowable memory limit like java's `-Xmx` flag?
FastJack has quit [Ping timeout: 264 seconds]
SeepingN has joined #ruby
sameerynho has joined #ruby
FastJack has joined #ruby
<adam12> cconstantine: I've never seen one, at lease for MRI. Obviously with jRuby you can use the -Xmx flag as it just passes through to the JVM.
alexherbo2 has joined #ruby
<davidw> Any idea why calling a method from do_thread_start would cause it to not crash? Some kind of lock or check or... ?! https://bugs.ruby-lang.org/issues/16288 (see my last comment)
<cconstantine> adam12: Yeah, I saw that but moving to jruby would be a bit of a project.
<cconstantine> I was hoping for a cli flag or environment variable or method call that could help me out
<adam12> cconstantine: Absolutely :| Sometimes the hack people use for web serving Ruby apps is a periodic task that kills subprocesses.
<adam12> cconstantine: Also, forcing the max arena for GC can help on memory usage. Neither of these restrict memory usage because the GC allocates what it wants but it might help keep memory use within bounds.
<cconstantine> adam12: Yeah, the issue is that some of our devs are writing ActiveJob jobs that allocate WAY more memory that we have available. The issue isn't slowly creaping memory usage; it's a sudden spike where they want things like hundreds of gigs in a very short time. Obviously they shouldn't be doing that, but mistakes happen
Ai9zO5AP has joined #ruby
NODE has quit [Quit: changing servers]
cconstantine has quit [Quit: cconstantine]
nirix has quit [*.net *.split]
skywalker has quit [*.net *.split]
gsingh93 has quit [*.net *.split]
kke has quit [*.net *.split]
bier has quit [*.net *.split]
dalpo has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
NODE has joined #ruby
kke has joined #ruby
dalpo has joined #ruby
skywalker has joined #ruby
nirix has joined #ruby
justinmrkva has joined #ruby
gsingh93 has joined #ruby
bier has joined #ruby
<leftylink> I see that the .: was reverted. interesting
NODE has quit [Client Quit]
jenrzzz has joined #ruby
NODE has joined #ruby
cconstantine has joined #ruby
william1 has joined #ruby
<leftylink> glad to see tally in
jenrzzz has quit [Ping timeout: 240 seconds]
<leftylink> is enumerator produce still in?
<leftylink> "the heap may be more CoW friendly"
* leftylink moos
<adam12> lol
<SeepingN> may be
<leftylink> filter_map is still in
<leftylink> produce appears to still be in
<leftylink> nice nice nice
<leftylink> this is good shit
<havenwood> leftylink: Ruby makes both human and CoW happy.
jenrzzz has joined #ruby
<leftylink> huh I would never have thought to do something like `a, b = raise rescue [1, 2]`
<SeepingN> what's that solve?
<adam12> Migrating a large-ish project from Minitest/TestUnit to Rspec. Anybody done it? How'd it go?
fuzzface has quit [Quit: Leaving]
Koshian has quit [*.net *.split]
Keltia has quit [*.net *.split]
S007 has quit [*.net *.split]
haylon has quit [*.net *.split]
salvor has quit [*.net *.split]
darkphnx4805 has quit [*.net *.split]
haylon has joined #ruby
salvor has joined #ruby
salvor has quit [Changing host]
salvor has joined #ruby
darkphnx4805 has joined #ruby
Koshian has joined #ruby
<havenwood> adam12: I usually go the other way around! :P
FastJack has quit [Ping timeout: 264 seconds]
S007 has joined #ruby
<havenwood> I've upgraded a large RSpec project from 2-3 with Transpec, which is awesome. Too bad there's not an RSpec to Minitest Transpec.
<adam12> havenwood: Really? I've been mostly off rspec since '09 and all my personal stuff runs on minitest, but as teams I consult on grow, it's becoming increasingly painful getting everyone a nice test experience. I end up having to use a half-dozen plugins.
<adam12> havenwood: This looks interesting: https://github.com/jaredbeck/minitest_to_rspec
<havenwood> adam12: Yeah, the plugin creep is real.
<adam12> havenwood: I grabbed the rspec book a few weeks ago and gave it a read and saw elegant solutions for a ton of hacks I've had to implement...
jenrzzz has quit [Ping timeout: 265 seconds]
* havenwood clings to his hacks.
Keltia has joined #ruby
<adam12> Not discounting minitest since I absolutely enjoy the minimalism for my gems, but for web apps, it feels like an uphill battle.
<havenwood> mmm
<havenwood> adam12: I'm curious about specific pain points.
cconstantine has quit [Quit: cconstantine]
<davidw> I.hate lets(:pretend).to be(English)
<adam12> havenwood: Not having to use Rake testtask (minintest-sprint works for this kinda but see my open PR for one issue, and I have another issue I'm not sure it's worth opening a PR for).
<havenwood> adam12: I've been happy with Minitest plus plugins (and a few hacks) for a large Rails app at least.
<davidw> we tried that in the 60ies ("I know! I know! Let's make programming like writing English, then everyone will be able to do it!") and I think it's a dead end
<adam12> havenwood: Run by name is kinda broken if you're using minitest/spec. Names include spaces and any of the runners output the names without spaces. Copy and paste? Nope. Copy, paste, modify -n argument to be quoted.
<adam12> havenwood: Around hooks need Jeremy's plugin. Fine.
cconstantine has joined #ruby
<havenwood> adam12: Yeah, running was an issue I had too. Ended up obscuring that with Rake tasks.
<havenwood> It's awkward to pass the seed too.
<adam12> havenwood: Running a single test by name either needs a failing test, an external plugin (minitest-focus or minitest-tagz), or a simple class/method name for you to figure out before a failing test.
<havenwood> adam12: Ah, I usually don't run solo tests. Hmmm.
<adam12> havenwood: I have to implement my own 'fake' mechanism (ala OpenStruct but not happy to talk about every method it doesn't know about).
FastJack has joined #ruby
jenrzzz has joined #ruby
cconstantine has quit [Client Quit]
<adam12> The rspec syntax of yester-year was a huge turnoff but with expect() now, it's mostly passable. Not much different than minitest/spec other than minitest/spec offers 3 different constructs for expect.
<havenwood> adam12: One reason I lean towards minitest with larger web apps is test speed. Are you seeing improvements on that front too?
<adam12> davidw: The plain english is kinda weird. It makes a ton more sense once you start using a few more parens. expect(foo).to be something ambiguous vs expect(foo).to be(something(ambiguous))
<havenwood> Thousands of assertions need to be speedy or it gets frustrating fast.
cconstantine has joined #ruby
<davidw> adam12, it works well, I use it, but I'm not a fan of the 'idiom'
<adam12> havenwood: Haven't benchmarked it, but in reality, I'm running a ton of tests I wouldn't want to run with rspec (ala the js tests I might not care about at that exact moment) but skipping js tests is difficult.
<davidw> I can just hear captain kirk speaking RSPEC to the computer "Computer, expect(COURSE).to have_zero(klingons)"
<adam12> havenwood: So once I start deviating, speed becomes less of an issue. I wonder how current rspec vs minitest benchmarks actually are.
sepp2k has quit [*.net *.split]
qbrd[m] has quit [*.net *.split]
turt2live has quit [*.net *.split]
<adam12> davidw: lulz
jenrzzz has quit [Ping timeout: 265 seconds]
galaxie has quit [*.net *.split]
lineus has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
iNs has quit [*.net *.split]
<adam12> I'm inclined to trade a nicer single test / tdd driven experience vs overall test time. Especially if I can exclude js/slow tests by default and let the CI deal with them.
<adam12> But rewriting and moving around test files has their risks. Wanted to see if/how other people dealt with it before I started giving it too much thought :)
<cconstantine> I havn't migrated from minitest (or even used it), but I've been very happy with rspec
leitz has joined #ruby
<cconstantine> my instincts would be to do it manually and confirm each test is testing what it's supposed to test (ie, make sure they fail when you break the feature it's testing)
<adam12> Yeah. Maintaining 2 test suites is a huge concern as well, but might be the easiest to mitigate risk.
cconstantine has quit [Quit: cconstantine]
<davidw> "Tests?! Why bother, when I have users?"
cconstantine has joined #ruby
<cconstantine> agreed, that's rough
<uplime> just don't make any bugs and then you don't need tests
<adam12> O_o
<cconstantine> Oh yeah! why didn't I think of that!?
fphilipe_ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
cconstantine has quit [Quit: cconstantine]
fphilipe_ has quit [Ping timeout: 246 seconds]
stryek has joined #ruby
ur5us_ has joined #ruby
gpaddis has joined #ruby
cconstantine has joined #ruby
jenrzzz has joined #ruby
william1 has quit [Ping timeout: 240 seconds]
cconstantine has quit [Client Quit]
gpaddis has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
cconstantine has joined #ruby
SlavicBohemian has quit [Quit: Connection closed for inactivity]
NODE has quit [Quit: changing servers]
william1 has joined #ruby
duderonomy has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
NODE has quit [Client Quit]
cconstantine has quit [Quit: cconstantine]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
cconstantine has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
cconstantine has quit [Client Quit]
NODE has quit [Client Quit]
NODE has joined #ruby
cconstantine has joined #ruby
cconstantine has quit [Client Quit]
NODE has quit [Client Quit]
NODE has joined #ruby
wildtrees has joined #ruby
<uplime> for eventmachine, is it possible for an EventMachine::Connection to be initialized by my code, and then perform a connect later?
<havenwood> uplime: Committed to using EventMachine or just starting a project with it?
<uplime> im doing a rewrite (from scratch) of a bot that was originally written with it, so not committed at all
<uplime> do you have a better suggestion?
NODE has quit [Quit: changing servers]
<havenwood> uplime: Yes, the socketry async libraries are a very good bet. They're Fiber-based solutions and are part of the Ruby 3 future.
<havenwood> uplime: https://github.com/socketry
<uplime> nice, thanks!
<havenwood> uplime: The core lib is Async: https://github.com/socketry/async
NODE has joined #ruby
<havenwood> uplime: It has great options for Fiber-backed IO, websockets, HTTP, and so on.
<uplime> Thanks, I'll take a look at that. Are there any good resources for learning how to use it (and Fiber, which I have little experience with), or should the READMEs suffice?
NODE has quit [Client Quit]
<havenwood> uplime: The resources aren't super thorough at this point, but I've been able to make everything I've tried work.
<uplime> oh, well thats good to know
<havenwood> uplime: I'm happy to help if you run into issues and ioquatix is super responsive.
<uplime> thanks! I'll play around with it and will poke if i get stuck
itarato has joined #ruby
NODE has joined #ruby
<havenwood> uplime: Check out ioquatix's latest update: https://www.codeotaku.com/journal/2019-12/ruby-concurrency-progress-report/index
<havenwood> uplime: I think Async is a solid bet. I'd use it over EventMachine these days without question.
<uplime> perfect, this looks much cleaner than what i was having to write before tbh
<havenwood> uplime: I've found it to be really well done and I love the HTTP/2 support for HTTP and WebSockets.
<uplime> oh cool, cause i was actually planning on adding an http client/server to it down the road
<havenwood> The Fiber reactor is great, and if you use Async-based I/O, it opens up huge gains with a Rack up served up by Falcon.
<uplime> should I use async for logging as well so everything stays under the same umbrella?
<havenwood> uplime: If you're using Falcon, absolutely. If you're using it as a one-off, up to you.
s2013 has joined #ruby
<uplime> neat, just opened the falcon repo actually
william1 has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Remote host closed the connection]
jcalla has quit [Quit: Leaving]
dan64- has quit [Quit: ZNC - http://znc.in]
dan64 has joined #ruby
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 258 seconds]
gpaddis has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
gix has joined #ruby
ur5us_ has quit [Remote host closed the connection]
gpaddis has quit [Remote host closed the connection]
ur5us_ has joined #ruby
al2o3-cr has joined #ruby
william1 has joined #ruby
fphilipe_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7]
al2o3-cr has joined #ruby
Caius has quit [Ping timeout: 268 seconds]
Caius has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
ErhardtMundt has quit [Ping timeout: 265 seconds]
ErhardtMundt has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
itarato has quit [Ping timeout: 260 seconds]
schne1der has quit [Ping timeout: 268 seconds]
lacedem777 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
william1 has quit [Ping timeout: 268 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
iNs has joined #ruby
DaRock has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
galaxie has joined #ruby
lineus has joined #ruby
lineus has quit [*.net *.split]
galaxie has quit [*.net *.split]
iNs has quit [*.net *.split]
bradleyprice has joined #ruby
lacedem777 has quit [Remote host closed the connection]
bambanx has joined #ruby
fuzzface has joined #ruby
bradleyprice has quit [Remote host closed the connection]
fuzzface has quit [Client Quit]
sameerynho has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Quit: dionysus69]
lucasb has quit [Quit: Connection closed for inactivity]
iNs has joined #ruby
<uplime> havenwood: had some time to go through https://katacoda.com/ioquatix/scenarios/async-introduction. does the Async keyword just dump the blocks into some global queue that an event loop dispatches?
Ai9zO5AP has quit [Quit: WeeChat 2.5]
lineus has joined #ruby
<uplime> im sure that's an oversimplification, but just to get a basic idea
akemhp has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]