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!
<phaul> &>> print [?\\, ?/] * ?o ; raise 'hell'
<rubydoc> # => \o/hell (RuntimeError) (https://carc.in/#/r/5j4x)
<phaul> argh.. never mind ..
DigitallyBorn has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spiette has quit [Quit: ZNC 1.7.1 - https://znc.in]
DigitallyBorn has quit [Ping timeout: 252 seconds]
spiette has joined #ruby
eckhardt_ has joined #ruby
sagax has quit [Quit: Konversation terminated!]
blackmesa has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has quit [Ping timeout: 272 seconds]
TheDracle has quit [Ping timeout: 244 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tempesta has joined #ruby
DigitallyBorn has joined #ruby
gix has quit [Ping timeout: 240 seconds]
ivanskie has quit [Ping timeout: 268 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DigitallyBorn has quit [Ping timeout: 244 seconds]
sgen has joined #ruby
queip has quit [Read error: Connection reset by peer]
DigitallyBorn has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
smutnysyn has joined #ruby
Freshnuts has joined #ruby
nchambers has joined #ruby
eckhardt_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
queip has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
Nicmavr has joined #ruby
DigitallyBorn has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
jcalla has joined #ruby
cow[moo] has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
asphyxia has joined #ruby
DigitallyBorn has joined #ruby
DigitallyBorn has quit [Ping timeout: 260 seconds]
DigitallyBorn has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 245 seconds]
DigitallyBorn has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smutnysyn has quit [Quit: WeeChat 2.2]
mroutis has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
queip has quit [Read error: Connection reset by peer]
asphyxia has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
DigitallyBorn has joined #ruby
AJA4350 has quit [Quit: AJA4350]
akaiiro has quit [Ping timeout: 246 seconds]
queip has joined #ruby
DigitallyBorn has quit [Ping timeout: 250 seconds]
DigitallyBorn has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
dinfuehr_ has quit [Ping timeout: 252 seconds]
DigitallyBorn has quit [Remote host closed the connection]
DigitallyBorn has joined #ruby
dinfuehr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
DigitallyBorn has quit [Ping timeout: 246 seconds]
DigitallyBorn has joined #ruby
sgen has quit [Remote host closed the connection]
sgen has joined #ruby
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
TheDracle has joined #ruby
DigitallyBorn has quit [Ping timeout: 240 seconds]
DigitallyBorn has joined #ruby
TheDracle has quit [Ping timeout: 246 seconds]
mroutis has joined #ruby
DigitallyBorn has quit [Ping timeout: 245 seconds]
DigitallyBorn has joined #ruby
bambanx has joined #ruby
queip has quit [Read error: Connection reset by peer]
DigitallyBorn has quit [Ping timeout: 245 seconds]
elphe has quit [Ping timeout: 252 seconds]
DigitallyBorn has joined #ruby
queip has joined #ruby
AKPWD has quit [Ping timeout: 250 seconds]
Scriptonaut has left #ruby [#ruby]
AKPWD has joined #ruby
sgen has quit [Ping timeout: 264 seconds]
DigitallyBorn has quit [Ping timeout: 246 seconds]
DigitallyBorn has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
awkwords has joined #ruby
elphe has joined #ruby
crankharder has joined #ruby
sanscoeur has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
elphe has joined #ruby
jp is now known as because
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn has quit [Ping timeout: 240 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn has quit [Ping timeout: 250 seconds]
DigitallyBorn has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
braincrash has quit [Quit: bye bye]
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
segy has joined #ruby
bambanx has quit [Quit: Leaving]
braincrash has joined #ruby
roshanavand1 has joined #ruby
darkhanb has joined #ruby
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
roshanavand1 is now known as roshanavand
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
DigitallyBorn has quit [Ping timeout: 246 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn has quit [Ping timeout: 246 seconds]
DigitallyBorn has joined #ruby
roshanavand has joined #ruby
darkhanb has joined #ruby
awkwords has quit [Quit: no]
awkwords has joined #ruby
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
za1b1tsu has joined #ruby
queip has quit [Read error: Connection reset by peer]
white_lilies has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
DigitallyBorn has quit [Ping timeout: 268 seconds]
queip has joined #ruby
DigitallyBorn has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
esrse has joined #ruby
DigitallyBorn has quit [Ping timeout: 245 seconds]
arescorpio has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DigitallyBorn has joined #ruby
asphyxia has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
donofrio has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
because is now known as jp
MoritaShinobu has joined #ruby
DigitallyBorn has quit [Ping timeout: 252 seconds]
DigitallyBorn has joined #ruby
Freshnuts has quit [Quit: Leaving]
Freshnuts has joined #ruby
ua has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
arescorpio has quit [Quit: Leaving.]
queip has quit [Read error: Connection reset by peer]
Inline has quit [Quit: Leaving]
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<Inside> Heyo ~
queip has joined #ruby
Inside has quit [Disconnected by services]
Inside has joined #ruby
<Inside> heyoo
<Inside> What's a good way to hash a data structure generated using YAML.from_file ?
<Inside> by that I mean... get a long-term stable UUID of some sort that represents the file
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
sputnik13 has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman> I already have an existing spec files for some of my .rb files. Is there a command to automatically generate spec files for newly created .rb files?
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
crankharder has joined #ruby
DigitallyBorn has quit [Ping timeout: 250 seconds]
DigitallyBorn has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
arescorpio has joined #ruby
crankharder has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
Inside has quit [Quit: Leaving]
DigitallyBorn has quit [Ping timeout: 240 seconds]
Cthulu201 has quit [Ping timeout: 245 seconds]
DigitallyBorn has joined #ruby
reber has joined #ruby
Cthulu201 has joined #ruby
arescorpio has quit [Remote host closed the connection]
asphyxia has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 240 seconds]
DigitallyBorn has joined #ruby
sauvin has joined #ruby
woodruffw has joined #ruby
Xiti` has joined #ruby
<baweaver> Slides and other content from my talk - https://twitter.com/keystonelemur/status/1063306367392342016
Xiti has quit [Ping timeout: 260 seconds]
mangold has quit [Ping timeout: 250 seconds]
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Read error: Connection reset by peer]
white_lilies has quit [Ping timeout: 252 seconds]
aupadhye_ has joined #ruby
DigitallyBorn has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
queip has joined #ruby
<marz_d`ghostman> Is it possible to create an instance variable from a module included in a class? Like inside self.included method of a module?
<marz_d`ghostman> baweaver: Where can I view the video?
<baweaver> Not out for probably a month or so
<baweaver> Why do you want to do that?
DigitallyBorn has joined #ruby
<marz_d`ghostman> baweaver: I have created a module specifically for Logging which I just want to include in a class. In the said module, I want to create a specific log file for each instance of the class where I include it. So as to separate logging functionalities.
<marz_d`ghostman> or is it going too far?
<baweaver> Read into dependency injection
<baweaver> I'd just have a universal logger unless you have some seriously gnarly application
<marz_d`ghostman> I guess I'll just have to create the logger in the class itself to make it simple
<marz_d`ghostman> Every instance of a class will run a different sync, so I want to log it on different files depending on the directory it is syncing
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
mroutis has quit [Quit: leaving]
elphe has joined #ruby
mangold has joined #ruby
DigitallyBorn has quit [Ping timeout: 245 seconds]
DigitallyBorn has joined #ruby
<marz_d`ghostman> baweaver: Is this a good design though? https://gist.github.com/marzdgzmn/f38b095c15eb737c7a544f46358fef28
donofrio has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
conta has joined #ruby
asphyxia has joined #ruby
DigitallyBorn has quit [Ping timeout: 252 seconds]
DigitallyBorn has joined #ruby
venmx has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
DigitallyBorn has quit [Ping timeout: 252 seconds]
venmx has quit [Remote host closed the connection]
DigitallyBorn has joined #ruby
queip has quit [Read error: Connection reset by peer]
Guest24308 has joined #ruby
mangold has quit [Quit: Leaving]
queip has joined #ruby
DigitallyBorn has quit [Ping timeout: 264 seconds]
DigitallyBorn has joined #ruby
phaul has joined #ruby
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
whysthatso has quit [Quit: whysthatso]
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
ellcs has joined #ruby
clemens3_ has joined #ruby
DigitallyBorn has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
nchambers has quit [Quit: WeeChat 2.2]
roshanavand has quit [Remote host closed the connection]
esrse has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
asphyxia has quit [Ping timeout: 252 seconds]
lomex has joined #ruby
Azure|dc has joined #ruby
bairyn has joined #ruby
DigitallyBorn has quit [Ping timeout: 244 seconds]
elphe has quit [Ping timeout: 244 seconds]
DigitallyBorn has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
asphyxia has joined #ruby
DigitallyBorn has quit [Ping timeout: 272 seconds]
DigitallyBorn has joined #ruby
keden has joined #ruby
venmx has joined #ruby
queip has quit [Read error: Connection reset by peer]
Guest24308 has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 250 seconds]
BH23 has joined #ruby
DigitallyBorn has joined #ruby
elphe has joined #ruby
queip has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
DigitallyBorn has quit [Ping timeout: 268 seconds]
DigitallyBorn has joined #ruby
ua has joined #ruby
govg has quit [Ping timeout: 244 seconds]
ua has quit [Ping timeout: 245 seconds]
Cthulu201 has quit [Read error: Connection reset by peer]
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
claudiuinberlin has joined #ruby
DigitallyBorn has quit [Ping timeout: 264 seconds]
Cthulu201 has joined #ruby
elphe has joined #ruby
Guest24308 has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
lxsameer has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lomex has joined #ruby
lomex has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
memo1 has quit [Quit: WeeChat 1.4]
voice_ftp has joined #ruby
SCHAPiE has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
c0san0stra has quit [Ping timeout: 268 seconds]
orpl has quit [Ping timeout: 268 seconds]
orpl has joined #ruby
jordanm has quit [Remote host closed the connection]
jordanm has joined #ruby
Cthulu201 has quit [Ping timeout: 268 seconds]
venmx has quit [Ping timeout: 268 seconds]
asphyxia has quit [Ping timeout: 268 seconds]
C-o has quit [Ping timeout: 268 seconds]
timeless has quit [Ping timeout: 268 seconds]
venmx has joined #ruby
asphyxia has joined #ruby
Azure|dc has quit [Ping timeout: 268 seconds]
claudiuinberlin has quit [Ping timeout: 268 seconds]
jcalla has quit [Ping timeout: 268 seconds]
voiceftp has quit [Ping timeout: 268 seconds]
thinkpad has quit [Ping timeout: 268 seconds]
jcalla has joined #ruby
r3m has joined #ruby
Cthulu201 has joined #ruby
thinkpad has joined #ruby
timeless has joined #ruby
c0san0stra has joined #ruby
kaleido has quit [Remote host closed the connection]
SCHAPiE has joined #ruby
Guest24308 has quit [Ping timeout: 246 seconds]
voolik has joined #ruby
Guest24308 has joined #ruby
asphyxia has quit [Ping timeout: 246 seconds]
asphyxia has joined #ruby
TheDracle has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
conta has quit [Quit: conta]
TheDracle has quit [Ping timeout: 240 seconds]
queip has quit [Read error: Connection reset by peer]
hiroaki has joined #ruby
Cthulu201 has quit [Read error: Connection reset by peer]
MoritaShinobu has quit [Ping timeout: 245 seconds]
Cthulu201 has joined #ruby
queip has joined #ruby
Freshnuts has quit [Quit: Leaving]
vasilakisfil has joined #ruby
<vasilakisfil> hi, accessing a hash value by key is extremely fasst. Is it possible to access the value of the first key with the same performance ?
zapata has quit [Read error: Connection reset by peer]
<phaul> I expect Hash#first to be actually faster
zapata has joined #ruby
<phaul> &>> {a:1, b:2}.first
<rubydoc> # => [:a, 1] (https://carc.in/#/r/5j9w)
<phaul> That's becasue the enumeration doesn't have to deal with the key lookups at all, it just walks the entries by the link pointers. That's how Hash is Enumerable. But I'm speculating, and I don't actually know the implementation in detail
<vasilakisfil> actualy it's not that fast
<phaul> what's not that fast?
<phaul> key lookup or first?
<vasilakisfil> ah sorry my bad folks, I misread the benchmark's results
AJA4350 has joined #ruby
<vasilakisfil> for the record here are the results: https://gist.github.com/vasilakisfil/6bd0375681ba65d8b6fa1d3cf2e720bd
<vasilakisfil> ah no my bad again, I am saying it right: HASH[:aaaa] is the fastest by far
<vasilakisfil> then it's HASH.first[0] and then of course HASH.keys.first
<vasilakisfil> it's a big difference, any idea how to speed it up ?
MoritaShinobu has joined #ruby
grr12314 has joined #ruby
<grr12314> hello, what is ~/$/ ?
DigitallyBorn has joined #ruby
<phaul> vasilakisfil: isn't :aaa the last key?
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
<vasilakisfil> yeah maybe it is actually, does it make difference ? let me check initializing before the faked data
nicolasb has joined #ruby
<vasilakisfil> now made it to be the first, now it seems like directly accessing the key is even faster
DigitallyBorn has quit [Ping timeout: 276 seconds]
paraxial has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
<grr12314> hello, what is ~/$/ ?
<phaul> &ri Regexp#~ grr12314
<rubydoc> did not understand that, parser error @ char position 9
<phaul> grrr
r3m is now known as C-o
fredmorcos has joined #ruby
<phaul> (right at the bottom of the page)
<grr12314> i dont get it
<grr12314> in the code that used it it was equivalent to $_.size
<grr12314> does ~ automatically apply to $_ if used as unary op?
<grr12314> and does it return the position that matches?
Guest24308 has quit [Ping timeout: 252 seconds]
queip has quit [Read error: Connection reset by peer]
voolik has quit [Quit: Taking a nap...]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<grr12314> are there other things that operate on $_ without mentioning it?
queip has joined #ruby
<canton7> grr12314, from phaul's doc: Matches rxp against the contents of $_. Equivalent to rxp =~ $_.. Looking at the doc for =~ (in the same page): "If a match is found, the operator returns index of first match in string, otherwise it returns nil."
<canton7> so yes, it operates on $_, and returns the index of the first match
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
conta has joined #ruby
conta has quit [Client Quit]
roshanavand has quit [Remote host closed the connection]
elphe has joined #ruby
Guest24308 has joined #ruby
conta has joined #ruby
Guest24308 has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
Tuor has joined #ruby
fredmorcos has quit [Remote host closed the connection]
asphyxia has quit [Ping timeout: 240 seconds]
bak1an has joined #ruby
roshanavand has quit [Remote host closed the connection]
jaddison_ has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
elphe has joined #ruby
jaddison has quit [Ping timeout: 245 seconds]
LinuxKnight has joined #ruby
whysthatso has joined #ruby
voolik has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
Guest24308 has joined #ruby
voolik has quit [Read error: Connection reset by peer]
elphe has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
conta has quit [Quit: conta]
whysthatso has quit [Quit: whysthatso]
roshanavand has joined #ruby
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest24308 has quit [Ping timeout: 252 seconds]
discopatrick has joined #ruby
roshanavand has quit [Remote host closed the connection]
whysthatso has joined #ruby
yohji has joined #ruby
keden has quit [Ping timeout: 260 seconds]
vasilakisfil has quit [Quit: Konversation terminated!]
jamied has joined #ruby
xerxes has joined #ruby
<xerxes> hello
<xerxes> how do i make an array [:ru, :en] into Hash {:ru => 0, :en => 1} ?
<phaul> >>& Hash[[:ru, :en].each_with_index.entries]
<ruby[bot]> phaul: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<phaul> &>> Hash[[:ru, :en].each_with_index.entries]
<rubydoc> # => {:ru=>0, :en=>1} (https://carc.in/#/r/5ja3)
<xerxes> oh, thanks
<phaul> yw
cow[moo] has joined #ruby
dviola has joined #ruby
bak1an has joined #ruby
DigitallyBorn has joined #ruby
cd has quit [Quit: cd]
blackmesa has quit [Ping timeout: 260 seconds]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DigitallyBorn has quit [Ping timeout: 245 seconds]
keden has joined #ruby
bmurt has joined #ruby
queip has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
keden has quit [Ping timeout: 268 seconds]
queip has joined #ruby
aupadhye_ has quit [Quit: Leaving]
roshanavand has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
venmx has quit [Quit: leaving]
roshanavand has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
keden has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
conta1 has joined #ruby
crankharder has joined #ruby
Inline has joined #ruby
Mike11 has joined #ruby
jamied has joined #ruby
alan_w has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
DigitallyBorn has joined #ruby
Mike11 has quit [Quit: Leaving.]
queip has quit [Read error: Connection reset by peer]
venmx has joined #ruby
yohji has quit [Ping timeout: 244 seconds]
Mike11 has joined #ruby
queip has joined #ruby
yohji has joined #ruby
yohji has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
Rapture has joined #ruby
elphe has joined #ruby
SeepingN has joined #ruby
akaiiro has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 268 seconds]
Tempesta has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Tempesta has joined #ruby
GodFather_ has quit [Ping timeout: 252 seconds]
kaleido has joined #ruby
marz_d`ghostman has quit [Quit: Page closed]
dviola has quit [Quit: WeeChat 2.3]
bairyn is now known as ByronJohnson
crankharder has joined #ruby
elphe has joined #ruby
GodFather has joined #ruby
<havenwood> &>> [:ru, :en].each_with_index.to_h # xerxes
<rubydoc> # => {:ru=>0, :en=>1} (https://carc.in/#/r/5jab)
<havenwood> #to_h gets even nicer in 2.6!
<marahin> hey guys. I'm doing something wrong here. https://gist.github.com/Marahin/6f68bc9cfa2527cde06091d95afd88b8 This is my CI script that runs two jobs, as ruby threads. However, if any of the jobs fail, or the script is interrupted by ^C, all jobs and this script should be killed.
<marahin> However, it continues to run rspec.
ua has joined #ruby
<marahin> Can someone take a look at this and help?
<marahin> i can tell that in this case rescue is not even used
elphe has quit [Ping timeout: 268 seconds]
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
elphe has joined #ruby
fluxAeon has joined #ruby
whysthatso has quit [Quit: whysthatso]
MuffinPimp has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 272 seconds]
MuffinPimp has joined #ruby
MuffinPimp has quit [Remote host closed the connection]
TheDracle has joined #ruby
sgen has joined #ruby
MuffinPimp has joined #ruby
<havenwood> marahin: Does it work as you expect with just:
<havenwood> begin; sleep; rescue Interrupt; abort 'interrupted' end
queip has quit [Read error: Connection reset by peer]
<havenwood> marahin: Does it continue to run when either jobs fail or it's interrupted?
queip has joined #ruby
blackmesa has joined #ruby
elphe has joined #ruby
<havenwood> marahin: Are you in a modern Ruby where: Thread.report_on_exception = true
<havenwood> marahin: Or set: Thread.abort_on_exception = true
<marahin> havenwood: yeah I'm on a relatively modern ruby
elphe has quit [Ping timeout: 245 seconds]
<havenwood> marahin: Are subshells involved in your jobs?
<havenwood> I suspect zombies.
<marahin> I have no idea what a subshell is?
<marahin> So its interesting, because it seems that the job that is spawned and still continues to run in the background isn't part of Thread.list
<marahin> which is why it's not killed
<havenwood> marahin: Shelling out to commands. Yeah, looks like so: https://gist.github.com/Marahin/6f68bc9cfa2527cde06091d95afd88b8#file-ci-rb-L19
Exuma has joined #ruby
<marahin> so is there a way we can fix it, havenwood?
phaul has quit [Quit: bye]
<havenwood> marahin: I'd suggest looking at spawning processes rather than shelling out from threads. Sec, let me find an article.
<marahin> thank you
conta1 has quit [Quit: conta1]
<marahin> havenwood: thank you. Do you know, if there's a way to check for status of the forked processes, like I do with threads?
GodFather has quit [Ping timeout: 246 seconds]
Caerus has quit [Ping timeout: 240 seconds]
discopatrick has quit [Quit: Connection closed for inactivity]
<havenwood> marahin: The 0 signal is handy for that.
dviola has joined #ruby
<havenwood> marahin: Process.kill 0, pid
Caerus has joined #ruby
<marahin> like, wait 0?
<marahin> oh.
<marahin> what happens then?
GodFather has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
phaul has joined #ruby
elphe has joined #ruby
<havenwood> marahin: `kill -0` just checks if a process exists
govg has joined #ruby
jthomas has joined #ruby
<havenwood> marahin: Jesse Storimer wrote a great little book on Processes in Ruby that's worth a read.
<havenwood> The TCP and Thread ones are good too: https://www.jstorimer.com/pages/books
TheDracle has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 246 seconds]
<havenwood> marahin: Or for most platforms you can use Process::getpgid: https://docs.ruby-lang.org/en/2.5.0/Process.html#method-c-getpgid
grr12314 has left #ruby [#ruby]
GodFather has quit [Ping timeout: 272 seconds]
<havenwood> (Not Windows.)
raulp has quit [Read error: Connection reset by peer]
<marahin> havenwood: I'll give these a read. Yeah, we're using Macs or anything unix like, so it shouldn't be an issue
<marahin> anyways
<marahin> in the meantime, I'm trying to copy the example
<marahin> and where the example is working, when I try to apply that to a collection of jobs, its exiting my binding.pry instantly :(
<havenwood> marahin: join or detach those processes - in your case here, looks like you want to joinn
jthomas has quit [Read error: Connection reset by peer]
<havenwood> marahin: ah, you did detach them
<marahin> yes, in the map block
raulp has joined #ruby
<havenwood> marahin: if you join main process won't exit
<marahin> why is it exiting though..?
<havenwood> marahin: it's done
<marahin> How?
<marahin> I haven't left pry.
<marahin> It should wait for pry to finish execution, shouldn't it..?
<havenwood> marahin: ahh, gotcha - i misunderstood - yeah
jthomas has joined #ruby
<havenwood> marahin: does `binding.irb` work or same?
<havenwood> marahin: I don't see an obvious reason for pry to fail here
<marahin> havenwood what's the dependency for binding.irb?
<marahin> (bin/ci:19:in `<main>': undefined method `irb' for #<Binding:0x007fee8520b9f0> (NoMethodError))
<havenwood> marahin: ah, it's only in newer Ruby
<havenwood> hmm
<marahin> its 2.3.4 here
<havenwood> I think it was introduced in 2.4
clemens3_ has quit [Ping timeout: 245 seconds]
<marahin> well, krap
<havenwood> marahin: I'm not sure why Pry isn't playing nice.
<havenwood> marahin: your code looks straightforward
<marahin> Let me try to run this in IRB and see if its working :)
<marahin> hm :)
<marahin> something is not right :)
<marahin> yeah I think I need to educate myself
<marahin> i thought that maybe i can tinker with the code examples in the article you've sent me and get more or less a working result
<marahin> but I think I need to understand whats happening exactly with fork and Process.detach first
govg has quit [Ping timeout: 268 seconds]
<havenwood> marahin: I'm assuming this example doesn't fail if you change the jobs to be say "ls" and "pwd"?
<havenwood> marahin: Is it `rspec_rerun` or `quality` causing the issue?
<havenwood> You might want to also take a look at: spawn
elphe has joined #ruby
DigitallyBorn has quit [Read error: Connection reset by peer]
ReallyDigital has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
tubbo has joined #ruby
tubbo has quit [Client Quit]
elphe has joined #ruby
tubbo has joined #ruby
sgen has quit [Ping timeout: 250 seconds]
tubbo has quit [Client Quit]
GodFather has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
Guest24308 has joined #ruby
queip has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 268 seconds]
queip has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
akaiiro has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
hahuang6- has joined #ruby
sputnik13 has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
govg has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
za1b1tsu has quit [Ping timeout: 246 seconds]
gix has joined #ruby
sgen has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
Tuor has quit [Quit: Konversation terminated!]
cthulchu has joined #ruby
elphe has joined #ruby
Mike11 has quit [Quit: Leaving.]
darkhanb has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
akaiiro has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
whysthatso has joined #ruby
Dbugger has joined #ruby
orbyt_ has joined #ruby
blackmesa has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
lxsameer has joined #ruby
sgen has quit [Ping timeout: 252 seconds]
OrangeManBad has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OrangeManBad has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
elphe has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
tdy1 has quit [Ping timeout: 244 seconds]
za1b1tsu has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
sanscoeur has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
elphe has joined #ruby
keden has quit [Quit: WeeChat 2.3]
crankharder has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 272 seconds]
yokel has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
yokel has joined #ruby
orbyt_ has joined #ruby
elphe has joined #ruby
jaddison_ is now known as jaddison
elphe has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
sputnik13 has joined #ruby
queip has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
queip has joined #ruby
elphe has joined #ruby
gnufied has joined #ruby
govg has quit [Ping timeout: 246 seconds]
elphe has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
ua has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
sameerynho has joined #ruby
sameerynho has quit [Client Quit]
elphe has quit [Ping timeout: 252 seconds]
ua has joined #ruby
lxsameer has joined #ruby
elphe has joined #ruby
Dbugger has quit [Ping timeout: 264 seconds]
despai has joined #ruby
\void has joined #ruby
elphe has quit [Ping timeout: 250 seconds]
elphe has joined #ruby
Dbugger has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
dbugger_ has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Remote host closed the connection]
sauvin has quit [Remote host closed the connection]
roshanavand has joined #ruby
BH23 has quit [Ping timeout: 250 seconds]
Dbugger has quit [Ping timeout: 268 seconds]
jcarl43 has joined #ruby
elphe has joined #ruby
za1b1tsu has joined #ruby
roshanavand has quit [Remote host closed the connection]
despai has quit [Quit: ...]
elphe has quit [Ping timeout: 244 seconds]
za1b1tsu has quit [Ping timeout: 245 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
roshanavand has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
\void has joined #ruby
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
\void has quit [Ping timeout: 240 seconds]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
kapil____ has joined #ruby
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
\void has joined #ruby
eckhardt_ has joined #ruby
skweek has quit [Quit: Leaving]
elphe has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 260 seconds]
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
dbugger_ has quit [Ping timeout: 264 seconds]
xerxes has quit [Remote host closed the connection]
roshanavand has joined #ruby
Dbugger has joined #ruby
clemens3_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
tdy1 has joined #ruby
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
jetchisel has joined #ruby
DigitallyBorn has joined #ruby
urbanmonk has joined #ruby
urbanmonk has quit [Client Quit]
ReallyDigital has quit [Ping timeout: 245 seconds]
urbanmonk has joined #ruby
urbanmonk has left #ruby [#ruby]
elphe has quit [Ping timeout: 276 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
clemens3_ has quit [Remote host closed the connection]
devyn has quit [Ping timeout: 244 seconds]
mroutis has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
devyn has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
elphe has joined #ruby
IanMalcolm has left #ruby ["Textual IRC Client: www.textualapp.com"]
queip has quit [Read error: Connection reset by peer]
MzrE has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
queip has joined #ruby
elphe has joined #ruby
elcontrastador has quit [Ping timeout: 252 seconds]
sgen has quit [Ping timeout: 252 seconds]
Fernando-Basso has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
za1b1tsu has joined #ruby
sagax has joined #ruby
<sagax> hi all!
<sagax> how to make output from gem -- silent/
<sagax> ?
<sagax> because i see this *** LOCAL GEMS ***
Dbugger has quit [Quit: Leaving]
za1b1tsu has quit [Ping timeout: 240 seconds]
<sagax> oh, i found -q
<sagax> thanks
\void has quit [Quit: So long, and thanks for all the fish.]
evdubs has joined #ruby
tag has joined #ruby
MzrE has quit [Read error: Connection reset by peer]
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
al2o3-cr has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
eckhardt_ has joined #ruby
elphe has joined #ruby
Exuma has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
phaul has quit [Ping timeout: 246 seconds]
cd has joined #ruby
reber has quit [Remote host closed the connection]
elphe has joined #ruby
conta1 has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
conta1 has quit [Quit: conta1]
phaul has joined #ruby
elphe has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
asphyxia has joined #ruby
queip has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 246 seconds]
queip has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
nicolasb has quit [Quit: Leaving...]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DigitallyBorn has quit [Quit: leaving]
elphe has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
alan_w has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
sgen has joined #ruby
za1b1tsu has joined #ruby
phaul has quit [Ping timeout: 272 seconds]
crankharder has quit [Ping timeout: 272 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
nicolasb has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
paraxial has joined #ruby
jetchisel has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil____ has quit [Quit: Connection closed for inactivity]
knight33_ has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
mroutis has quit [Remote host closed the connection]
mroutis has joined #ruby
mroutis has quit [Remote host closed the connection]
nicolasb has quit [Quit: ZNC 1.7.1 - https://znc.in]
nicolasb has joined #ruby
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
Fernando-Basso has quit [Read error: Connection reset by peer]
bak1an has joined #ruby
elphe has joined #ruby
awkwords has quit [Quit: sleepy time]
sanscoeu_ has joined #ruby
sanscoeur has quit [Ping timeout: 244 seconds]
thinkpad has quit [Ping timeout: 250 seconds]
jayjo has joined #ruby
<jayjo> im looking at this ruby project: https://github.com/helpyio/helpy that uses bundle exec rake db:migrate - where can I find that migrate script in the project?
venmx has joined #ruby
sanscoeu_ has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby