havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.0, 2.5.3, 2.4.5: 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!
donofrio_ has joined #ruby
mat_bug has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
mat_bug has quit [Ping timeout: 252 seconds]
Fernando-Basso has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cthulchu_ has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 246 seconds]
mat_bug has joined #ruby
cthulchu_ has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mat_bug has joined #ruby
chouhoulis has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
donofrio_ has quit [Ping timeout: 272 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
mat_bug has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
bmurt has joined #ruby
sgen has quit [Ping timeout: 252 seconds]
venmx has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
mat_bug has joined #ruby
orbyt_ has quit [Ping timeout: 245 seconds]
code_zombie has quit [Quit: Leaving]
gix has quit [Ping timeout: 244 seconds]
ogotai has quit [Ping timeout: 245 seconds]
ogotai has joined #ruby
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tjbp has quit [Ping timeout: 250 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
jcarl43 has quit [Quit: WeeChat 2.3]
Eiam has quit [Ping timeout: 268 seconds]
ghormoon has quit [Remote host closed the connection]
uplime has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
mat_bug has joined #ruby
cagomez has quit [Remote host closed the connection]
sylario has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
cagomez has quit [Ping timeout: 268 seconds]
ghormoon has joined #ruby
mat_bug has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
donofrio_ has joined #ruby
mat_bug has quit [Ping timeout: 268 seconds]
mat_bug has joined #ruby
houhoulis has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
brent__ has joined #ruby
mat_bug has joined #ruby
tdy has joined #ruby
jenrzzz has joined #ruby
nickjj has quit [Quit: Leaving]
hutch has quit [Ping timeout: 258 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
fredolinhares has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
hutch has joined #ruby
tjbp has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
fanta7531 has joined #ruby
jenrzzz has joined #ruby
olspookishmagus has quit [Ping timeout: 268 seconds]
dalpo has quit [Ping timeout: 268 seconds]
eb0t has quit [Ping timeout: 268 seconds]
blaguvest has quit [Ping timeout: 268 seconds]
n13z has quit [Ping timeout: 246 seconds]
mangold has quit [Ping timeout: 250 seconds]
mangold has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Dreamer3 has joined #ruby
eb0t has joined #ruby
fanta7531 has quit [Quit: ...]
mat_bug has joined #ruby
darris has quit [Ping timeout: 245 seconds]
balo has quit [Ping timeout: 245 seconds]
mozzarel1 has joined #ruby
helpa-bot has joined #ruby
Soulcutter has joined #ruby
darris has joined #ruby
salasrod_ has joined #ruby
chihhsin_ has joined #ruby
TheMoonMaster_ has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
donofrio_ has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Quit: AJA4350]
raggi__ has joined #ruby
bairyn has joined #ruby
cnsvc has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
yokel_ has joined #ruby
hutch has quit [*.net *.split]
Nicmavr has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
yokel has quit [*.net *.split]
houhoulis has quit [*.net *.split]
mozzarella has quit [*.net *.split]
salasrod has quit [*.net *.split]
bauruine has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
Calinou has quit [*.net *.split]
lambarena has quit [*.net *.split]
leonthemisfit has quit [*.net *.split]
helpa has quit [*.net *.split]
anothertorusr has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
raggi has quit [*.net *.split]
chihhsin has quit [*.net *.split]
Arahael has quit [*.net *.split]
ChrisBr has quit [*.net *.split]
salasrod_ is now known as salasrod
mozzarel1 is now known as mozzarella
raggi__ is now known as raggi
yokel_ is now known as yokel
helpa-bot has quit [Remote host closed the connection]
code_zombie has joined #ruby
helpa has joined #ruby
lambarena has joined #ruby
Calinou has joined #ruby
bairyn is now known as ByronJohnson
jenrzzz has quit [Ping timeout: 268 seconds]
Arahael has joined #ruby
jenrzzz has joined #ruby
mat_bug has joined #ruby
fanta7531 has joined #ruby
anothertorusr has joined #ruby
hutch has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
Nicmavr has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
hutch has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has joined #ruby
sgen has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
fredolinhares has quit [Quit: WeeChat 1.9.1]
mat_bug has quit [Ping timeout: 252 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
Hoffman is now known as 07IAA4XML
mat_bug has joined #ruby
cnsvc has joined #ruby
code_zombie has quit [Quit: Leaving]
yokel has quit [Ping timeout: 250 seconds]
yokel has joined #ruby
\void has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
Tempesta has quit [Ping timeout: 246 seconds]
sgen has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
Tempesta has joined #ruby
DTZUZO has joined #ruby
mat_bug has joined #ruby
hutch has joined #ruby
CommanderViral has joined #ruby
donofrio_ has joined #ruby
tdy has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
donofrio_ has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
sleetdrop has quit [Remote host closed the connection]
kapil____ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
Tempesta has quit [Ping timeout: 246 seconds]
mat_bug has joined #ruby
sauvin has joined #ruby
sgen has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
matsaman has joined #ruby
<matsaman> trying to get sample_rails_app from rubyminedoc going with RubyMine and geting an error about bundler not installed; trying to run what it suggests it eventually errors out over ovirt-engine-sdk which is complaining about libxml2 missing
<CommanderViral> What operating system are you using?
<matsaman> Windows 10
<matsaman> sorry should've mentioned
<matsaman> although it complains about bundler on macOS as well
<matsaman> installing some things on macOS ATM, will have to come back to it
<CommanderViral> Yes, Rails has bundler as a dependency and depending on your Ruby version, it likely is not installed by default and simply needs to be installed with `gem install bundler`
<matsaman> gem install bundler produces the ovirt-engine-sdk error from the libxml2 error
<CommanderViral> On Windows, if you have not installed libxml2, you need to install that first. There are gems that link against libxml2 that Rails is dependent on.
<matsaman> am using rubyinstaller.org installer (with "devkit"), have tried a couple different versions
<matsaman> how does one install libxml2 on Windows? (for msys2?)
<CommanderViral> I'm not sure how to do it on msys2. I personally use WSL for Windows 10.
<CommanderViral> I'm not sure how to do it on msys2. I personally use WSL for Windows 10 Ruby development.
<matsaman> yeah...
<matsaman> with RubyMine by any chance?
dante has quit [Quit: bye]
dante has joined #ruby
sarink has quit [Remote host closed the connection]
<CommanderViral> I don't use RubyMine, no. I stick to vim and VS Code.
<matsaman> Right there with you. This is for a friend, for some terrible course. =P
mat_bug has joined #ruby
donofrio_ has joined #ruby
helpa-bot has joined #ruby
helpa has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
mat_bug has quit [Ping timeout: 264 seconds]
dellavg_ has joined #ruby
_whitelogger has joined #ruby
matsaman has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
donofrio_ has quit [Ping timeout: 268 seconds]
Cthulu201 has quit [Ping timeout: 268 seconds]
luminous has left #ruby [#ruby]
matsaman has joined #ruby
sgen has quit [Ping timeout: 250 seconds]
matsaman has quit [Quit: leaving]
donofrio_ has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
mat_bug has joined #ruby
donofrio_ has quit [Ping timeout: 250 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
davidw_ has quit [Ping timeout: 246 seconds]
porg has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
dellavg_ has quit [Ping timeout: 268 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
hutch has quit [Ping timeout: 240 seconds]
paranoicsan has joined #ruby
tdy has joined #ruby
DTZUZO has joined #ruby
sleetdrop has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman> I have a script/app written in ruby running in a CentOS7 machine. Is there a utility where I can monitor the process and its subprocesses?
<marz_d`ghostman> The script/app creates a couple of rsync subprocess on a different thread via concurrent-ruby
profetes has joined #ruby
CommanderViral is now known as cameronbroe
cameronbroe is now known as CommanderViral
mat_bug has joined #ruby
07IAA4XML has quit [Ping timeout: 268 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
Inline has quit [Quit: Leaving]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
uplime has quit [Ping timeout: 258 seconds]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
porg has quit [Remote host closed the connection]
porg has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
porg has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
esrse has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
evdubs__ is now known as evdubs
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
hutch has quit [Ping timeout: 245 seconds]
kapil____ has joined #ruby
Cthulu201 has joined #ruby
jcarl43 has joined #ruby
paranoicsan has joined #ruby
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
mat_bug has joined #ruby
conta has joined #ruby
marmotini_ has joined #ruby
marmotini has joined #ruby
marmotini_ has quit [Client Quit]
aufi has joined #ruby
clemens3_ has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
fanta7531 has quit [Quit: ...]
szulak_ has joined #ruby
prestorium has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
venmx has joined #ruby
dinfuehr has joined #ruby
t0xik has joined #ruby
nowhere_man has joined #ruby
mat_bug has quit [Remote host closed the connection]
jcarl43 has quit [Quit: WeeChat 2.3]
wildermind has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
paranoicsan has quit [Quit: paranoicsan]
mikecmpbll has joined #ruby
RedNifre has quit [Ping timeout: 268 seconds]
venmx has joined #ruby
paranoicsan has joined #ruby
venmx has quit [Remote host closed the connection]
RedNifre has joined #ruby
Avinash has joined #ruby
ChrisBr has joined #ruby
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
status402 has joined #ruby
venmx has joined #ruby
cd has quit [Quit: cd]
themsay has quit [Ping timeout: 250 seconds]
themsay has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
themsay has joined #ruby
jenrzzz has joined #ruby
sameerynho has joined #ruby
sameerynho is now known as Guest55233
paranoicsan has quit [Quit: paranoicsan]
jenrzzz has quit [Ping timeout: 250 seconds]
paranoicsan has joined #ruby
clemens3_ has quit [Remote host closed the connection]
status402 has quit [Quit: status402]
status402 has joined #ruby
profetes has quit [Remote host closed the connection]
profetes has joined #ruby
InfinityFye has joined #ruby
[spoiler] has quit [Ping timeout: 264 seconds]
Bish has joined #ruby
<Bish> anyone worked here with sisimai?
<Bish> i try to do bounce handling of emails and sisimai does analyze the bounce state of an email
<Bish> but i can't get the bounce adress (including some sort of id)
<Bish> how would i get the return path of an analyzed bounce
[spoiler] has joined #ruby
* Bish guesses not at all
<lunarkitty7> Bish: it can be slow here
<Bish> lunarkitty7: i know, but usually is one of the faster channels i lirk in
<Bish> but this beinga very special problem it might take time
<Bish> but i found a way anyways i think !
<lunarkitty7> Yeah, more obscure questions can take longer
<lunarkitty7> Good!
<Bish> yeah, sisimai allows to "hook" into the parse process
<Bish> that's great.
nowhere_man has quit [Ping timeout: 245 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raulp has quit [Ping timeout: 272 seconds]
themsay has quit [Ping timeout: 246 seconds]
conta has quit [Remote host closed the connection]
esrse has quit [Quit: 안녕히계세요]
Tempesta has joined #ruby
Avinash has joined #ruby
fanta7531 has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
themsay has joined #ruby
RougeR has joined #ruby
<RougeR> hih
ohcibi has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
marz_d`ghostman has quit [Quit: Page closed]
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RougeR> are multiple inline if statemtents bad practice
noboruma has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
jaddison has joined #ruby
jaddison_ has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
bmurt has joined #ruby
conta1 has joined #ruby
status402_ has joined #ruby
status402 has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
raulp has joined #ruby
status402_ has quit [Quit: status402_]
<Bish> RougeR: always depends i'd say
<Bish> but there wouldn't be a then if it shouldn't be done
<Bish> i like inline case statements
status402 has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
<Bish> > case 1 when Integer then "it's an Integer" end
<Bish> i don't see wher this is ugly
paranoicsan has joined #ruby
<Bish> more readable than x ? y : z if you ask me
paranoicsan has quit [Client Quit]
status402 has quit [Remote host closed the connection]
lucasb has joined #ruby
status402 has joined #ruby
Puffball has quit [Remote host closed the connection]
RedNifre has quit [Ping timeout: 252 seconds]
RedNifre has joined #ruby
clemens3 has joined #ruby
status402 has quit [Ping timeout: 250 seconds]
profetes has quit [Quit: Leaving]
Avinash has joined #ruby
status402 has joined #ruby
status402 has quit [Remote host closed the connection]
status402 has joined #ruby
p0s1x has joined #ruby
p0s1x has quit [Client Quit]
crankharder has joined #ruby
p0s1x has joined #ruby
p0s1x has quit [Client Quit]
marmotini has quit [Ping timeout: 250 seconds]
status402 has quit [Quit: status402]
status402 has joined #ruby
Creatornator has joined #ruby
status402 has quit [Read error: Connection reset by peer]
status402 has joined #ruby
yasumi2136 has joined #ruby
Inline has joined #ruby
ua has joined #ruby
krawchyk has joined #ruby
rippa has joined #ruby
conta1 has quit [Ping timeout: 244 seconds]
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xrexeon has joined #ruby
xrexeon has quit [Max SendQ exceeded]
xrexeon has joined #ruby
hutch has joined #ruby
marmotini has joined #ruby
twobitsprite has joined #ruby
polishdub has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
perique has joined #ruby
RougeRR has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has quit [Ping timeout: 268 seconds]
krawchyk has quit [Quit: krawchyk]
stryek has joined #ruby
Creatornator has joined #ruby
krawchyk has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
chouhoulis has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
turt2live has quit [Ping timeout: 252 seconds]
bastilian has quit [Ping timeout: 252 seconds]
Demos[m] has quit [Ping timeout: 252 seconds]
CrazyEddy has quit [Remote host closed the connection]
jonjitsu has quit [Ping timeout: 264 seconds]
cuerbot has joined #ruby
turt2live has joined #ruby
cuerbot is now known as elcuervo_
sepp2k has joined #ruby
elcuervo_ is now known as elcuervo
sleetdro_ has joined #ruby
jonjitsu has joined #ruby
irdr has quit [Remote host closed the connection]
Demos[m] has joined #ruby
irdr has joined #ruby
davidw_ has joined #ruby
bastilian has joined #ruby
conta1 has joined #ruby
aufi has quit [Ping timeout: 258 seconds]
uplime has joined #ruby
sgen has joined #ruby
za1b1tsu_ has joined #ruby
za1b1tsu_ has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Remote host closed the connection]
conta1 has quit [Quit: conta1]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleetdro_ has quit [Quit: Computer has gone to sleep.]
hutch has joined #ruby
Creatornator has joined #ruby
blackmesa has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
Bish has quit [Ping timeout: 240 seconds]
sanscoeur has quit [Remote host closed the connection]
InfinityFye has quit [Ping timeout: 240 seconds]
status402 has quit [Quit: status402]
cthulchu has quit [Ping timeout: 250 seconds]
cthulchu has joined #ruby
perique has quit [Quit: Textual IRC Client: www.textualapp.com]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
porg has joined #ruby
spacesuitdiver has joined #ruby
yasumi2136 has quit [Quit: Konversation terminated!]
conta1 has joined #ruby
orbyt_ has joined #ruby
\void has joined #ruby
code_zombie has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
spacesuitdiver has quit [Ping timeout: 246 seconds]
reber has joined #ruby
spacesuitdiver has joined #ruby
marmotini has quit [Ping timeout: 268 seconds]
porg has quit [Remote host closed the connection]
sgen has quit [Remote host closed the connection]
porg has joined #ruby
Creatornator has joined #ruby
jenrzzz has joined #ruby
porg has quit [Ping timeout: 264 seconds]
blaguvest has joined #ruby
sarink has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
ivanskie has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
<havenwood> RougeRR: Yes, that sounds convoluted. I can't think of an example where multiple if statements on a single line would be readable.
mikecmpbll has quit [Remote host closed the connection]
Yzguy has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
maryo has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
Dbugger has joined #ruby
sanscoeur has joined #ruby
clemens3 has quit [Ping timeout: 245 seconds]
jcarl43 has joined #ruby
CrazyEddy has joined #ruby
RougeRR has quit [Ping timeout: 246 seconds]
Aqo has joined #ruby
conta1 has quit [Quit: conta1]
Eiam has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
gix has joined #ruby
sarink has quit [Remote host closed the connection]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
prestorium has quit [Ping timeout: 268 seconds]
Yzguy has quit [Quit: Bye]
nchambers has joined #ruby
t0xik has joined #ruby
CrazyEddy has joined #ruby
Guest55233 has quit [Ping timeout: 245 seconds]
raulp has quit [Ping timeout: 272 seconds]
Guest55233 has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
akem has joined #ruby
Guest55233 has quit [Ping timeout: 245 seconds]
maryo has quit [Ping timeout: 245 seconds]
szulak_ has joined #ruby
mikecmpbll has joined #ruby
cnsvc has joined #ruby
nchambers has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
akem has quit [Remote host closed the connection]
norayr has joined #ruby
<norayr> hey ruby people
<norayr> when doing rvm get latest i see https://pastebin.com/ZMfhdg4N
<ruby[bot]> norayr: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
za1b1tsu has joined #ruby
<norayr> okay, when i try to import the gpg key, this happens https://pastebin.com/mWe108pL and then nothing changes, rvm get latest does not proceed. sorry, i already have these pastebin links, was showing in other room.
<ruby[bot]> norayr: as I told you already, please use https://gist.github.com
kapil____ has quit [Quit: Connection closed for inactivity]
akem has joined #ruby
blackmesa has joined #ruby
akem has quit [Remote host closed the connection]
<havenwood> norayr: Add the new key as well:
<havenwood> gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
<havenwood> norayr: the latest is signed with 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
<havenwood> norayr: see: https://rvm.io/
hiroaki has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
szulak_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<norayr> havenwood: oh thank you.
<norayr> let me try.
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
hiroaki has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
xrexeon has quit [Ping timeout: 258 seconds]
sarink has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
cow[moo] has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
orbyt_ has joined #ruby
jenrzzz has joined #ruby
hiroaki has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
venmx has quit [Ping timeout: 258 seconds]
twobitsprite has quit [Quit: leaving]
fanta7531 has quit [Quit: ...]
hiroaki has joined #ruby
hiroaki has quit [Max SendQ exceeded]
davidw_ is now known as davidw
hiroaki has joined #ruby
hiroaki has quit [Max SendQ exceeded]
hiroaki has joined #ruby
duderonomy has joined #ruby
blackmesa1 has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
SeepingN has joined #ruby
twopoint71 has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
r29v has joined #ruby
hutch has quit [Ping timeout: 252 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
reber has quit [Remote host closed the connection]
jenrzzz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<twopoint71> Sorry to bother, but been trying to understand why this works Hash.new({}) - https://pastebin.com/2S9Ju4qB
<ruby[bot]> twopoint71: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<SeepingN> keyfailure
hiroaki has joined #ruby
<havenwood> twopoint71: There are two Hashes in play. You have `magic` and you have `magic.default`.
<havenwood> twopoint71: Take a look at: magic.default
<twopoint71> Alright, checking it out.
jenrzzz has quit [Ping timeout: 258 seconds]
<havenwood> twopoint71: The 'watch' and 'out' keys are just used in your example to get access to the default. Note, they don't assign anything. They just pull up the default Hash value which is then mutated.
<havenwood> magic.default #=> {"closely"=>"this is the trick"}
<havenwood> Without the trickery: magic.default['closely'] #=> "this is the trick"
elcuervo has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
<havenwood> twopoint71: if you set the default proc instead, you'll get a fresh Hash for every new default:
<havenwood> not_magic = Hash.new { |h, k| h[k] = {} }
<twopoint71> So 'watch' and 'out' are not assigned to anything? None that is shown under magic.default
<havenwood> twopoint71: Yeah, they're just used to get access to #default.
<havenwood> twopoint71: magic['anything'] == magic.default
<havenwood> twopoint71: the same object_id even, the same object
chouhoulis has joined #ruby
<havenwood> &>> magic = Hash.new({}); magic.default.equal? magic[Object.new]
<rubydoc> # => true (https://carc.in/#/r/60wu)
<havenwood> twopoint71: Any key you check that you haven't set is going to return that identical default Hash.
<havenwood> If you don't assign the key to a value, it's a noop for the `magic` Hash. But... you then assign a key to magic#default, which is what you're seeing here.
<havenwood> twopoint71: Does that make sense?
<twopoint71> Yes, but shouldn't Ruby toss an error because the "root" object does not exist?
<twopoint71> That's the normal behavior from "normal = Hash.new"
<havenwood> twopoint71: It does exist, because you assigned a default on this line: magic = Hash.new({})
<twopoint71> ah
<twopoint71> *clicked*
<havenwood> it's just literally that same ({}) Hash object every time you look at the value of an unset key.
<havenwood> by using this idiom, you get a fresh Hash as the value for an unset key: Hash.new { |h, k| h[k] = {} }
<havenwood> so your trick wouldn't work
<havenwood> a Hash doesn't make a good default value for a Hash
<havenwood> but a proc that returns a Hash makes a fine default proc for a Hash
hahuang65 has joined #ruby
ur5us has joined #ruby
orbyt_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
jaddison has quit [Quit: jaddison]
ur5us has quit [Remote host closed the connection]
<twopoint71> havenwood: Thanks for the help. I'm going to share this insight with my group.
nowhere_man has joined #ruby
Xeago has joined #ruby
Xeago has quit [Client Quit]
Xeago has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
Xeago_ is now known as Xeago
za1b1tsu has quit [Remote host closed the connection]
guysbryant has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
cthu| has joined #ruby
jenrzzz has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56 has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
uplime has quit [Ping timeout: 252 seconds]
jaddison has joined #ruby
Scriptonaut has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r29v has quit [Quit: r29v]
jaddison has quit [Quit: jaddison]
cnsvc has quit [Quit: WeeChat 2.3]
kashike has joined #ruby
Dbugger has quit [Remote host closed the connection]
<kashike> is there a way to get a list of all *deepest* subdirectories? I want to start from "abc", and get "ghi" and "hij" (skipping "def"): abc/def/ghi, abc/def/hij
<go|dfish> kashike: File.basename ?
norayr has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
norayr has joined #ruby
Scriptonaut has left #ruby [#ruby]
<kashike> no; code: https://paste.gg/p/kashike/d2444b5e9e194ca794cb3690e5c85c09 -- I'm getting abc/def, abc/def/ghi, abc/def/hij; I only want that last two (deepest ones)
chouhoulis has joined #ruby
norayr has left #ruby [#ruby]
m4rCsi has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
johnny56 has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
jcalla has quit [Remote host closed the connection]
chouhoulis has joined #ruby
AJA4350 has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
<kashike> phaul: that seems to half-work - it get some directories, not all - I assume due to the group_by?
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<phaul> group_by makes it get the deepest ones...
<phaul> goup_by actually groups them by depth ( count of / assuming that that's the path separator )
<phaul> then max get the deepest group
<phaul> gets*
Puffball has joined #ruby
<phaul> it will not get directories that are not as deep but still leaf
cthulchu_ has joined #ruby
chouhoulis has joined #ruby
blackmesa1 has joined #ruby
<phaul> do you want the directories that don't have any child directory (leaf)? instead of what you said the deepest ones?
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
<phaul> right. so you don't want the deepest ones. you want the ones without sub directory
cthu| has quit [Ping timeout: 268 seconds]
<kashike> i guess I do - sorry, not a great way to phrase my question :)
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
<phaul> kashike: np, gist updated. try again
venmx has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
<kashike> woo, that's perfect - thanks phaul :)
chouhoulis has joined #ruby
<phaul> np. i just simplified the gist a tiny bit. There is a directory? method on Pathname directly
krawchyk has quit [Quit: krawchyk]
uplime has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
polishdub has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 245 seconds]
hutch has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
cd has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
nfk has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
hutch has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
AJA4351 has joined #ruby
chouhoulis has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
chouhoulis has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
code_zombie has quit [Quit: Leaving]
spacesuitdiver has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
orbyt_ has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
ec is now known as ELLIOTTCABLE
sagax has quit [Quit: Konversation terminated!]
hutch has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
ELLIOTTCABLE is now known as KL4JC
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
ansraliant has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
sanscoeu_ has joined #ruby
spacesuitdiver has joined #ruby