havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
jetpackjoe has quit [Quit: WeeChat 1.5]
blackmes1 has quit [Ping timeout: 252 seconds]
dstarh has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
destructure has quit [Quit: leaving]
moei has quit [Quit: Leaving...]
certainty has joined #ruby
<al2o3-cr> tothepoint = big green fucking giant; if big green fucking giant gotta big green fucking hammer then run else poke the fuckers eyes out end # of story
mdw has quit [Quit: Sleeping Zzzzz]
chouhoulis has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
RegulationD has joined #ruby
chouhoulis has joined #ruby
pietr0 has quit [Quit: pietr0]
jancel has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
startupality has quit [Quit: startupality]
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
scottschecter_ is now known as scottschecter
kwatz has joined #ruby
kwatz is now known as destructure
destructure has quit [Changing host]
destructure has joined #ruby
marr has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
arooni has quit [Ping timeout: 264 seconds]
flashpoint9 has joined #ruby
Rickmasta has joined #ruby
Dios has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp_ has joined #ruby
Dios has joined #ruby
matp has quit [Ping timeout: 244 seconds]
Mia has quit [Read error: Connection reset by peer]
<jhass> al2o3-cr: we told you in the past, don't drink and IRC
<jhass> !kick al2o3-cr
al2o3-cr was kicked from #ruby by ruby[bot] [kickable offense, see http://ruby-community.com/pages/user_rules]
slappy16 has quit [Quit: Leaving.]
arooni has joined #ruby
hahuang62 has quit [Ping timeout: 260 seconds]
<hxegon_> are #reduce and #inject analagous to fold_l or fold_r?
<jhass> hxegon_: foldl
ramfjord_ has quit [Ping timeout: 244 seconds]
<hxegon_> jhass: is there a way to foldr?
<jhass> .reverse.reduce ?
ramfjord has joined #ruby
<hxegon_> doesn't work in my cas
<hxegon_> case*
hxegon_ is now known as hxegon
tvw has quit [Ping timeout: 264 seconds]
<jhass> well perhaps ask about your usecase
<hxegon> I'll explain it in a bit, have to head out for now. thanks jhass
hxegon is now known as hxegon_afk
vdamewood has joined #ruby
minimalism has quit [Quit: minimalism]
ljarvis has joined #ruby
matp_ has quit [Ping timeout: 264 seconds]
arooni has quit [Ping timeout: 258 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
arooni has joined #ruby
ljarvis has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
replay has quit []
diegoaguilar has quit [Remote host closed the connection]
swills has joined #ruby
moeabdol has joined #ruby
mistermocha has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
arooni has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
jgt3 has quit [Ping timeout: 276 seconds]
sepp2k has quit [Read error: Connection reset by peer]
elifoster has joined #ruby
smathy is now known as smathy_afk
aupadhye has joined #ruby
matp has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
charliesome has joined #ruby
arooni has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
arescorpio has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Ping timeout: 272 seconds]
Sashimi has joined #ruby
Sashimi has quit [Client Quit]
Ropeney has joined #ruby
Sashimi has joined #ruby
Sashimi has quit [Client Quit]
freerobby has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
minimalism has joined #ruby
arooni has quit [Ping timeout: 260 seconds]
Niham has joined #ruby
mistermocha has quit [Remote host closed the connection]
blackmes1 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
danostrowski has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
arooni has joined #ruby
Rodya_ has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
neha- has quit [Quit: Textual IRC Client: www.textualapp.com]
certainty has joined #ruby
Rodya_ has quit [Remote host closed the connection]
danostrowski has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
Rodya_ has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
solars has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aberen has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
jancel has quit [Ping timeout: 240 seconds]
lapointe has joined #ruby
charliesome has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Channel6 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<lapointe> I'm looking for a way to search for multiple patterns in a log file (multiple lines) and return an error if one of them is not present
monoprotic has quit [Quit: bite me]
<lapointe> this is for a sensu plugin if that matters
<lapointe> as you can expect, I'm not very good at ruby ;)
<lapointe> so your help is appreciated
mistermo_ has joined #ruby
AcidCras_ has joined #ruby
arooni has joined #ruby
Rickmasta has joined #ruby
AcidCrash has quit [Ping timeout: 250 seconds]
<shevy> you can use .scan() and check the result you get from it
<shevy> ruby-doc.org/core/String.html#method-i-scan
flashpoint9 has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
rustyworks has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 258 seconds]
rustyworks has left #ruby [#ruby]
mistermocha has joined #ruby
Rodya_ has quit [Remote host closed the connection]
mistermo_ has joined #ruby
Niham has quit [Read error: Connection reset by peer]
arooni has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
jaguarmagenta has joined #ruby
ljarvis has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
arooni has joined #ruby
solars has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
DiCablo has joined #ruby
ElFerna has joined #ruby
gnufied has quit [Quit: Leaving]
mistermo_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
ljarvis has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
jgt3 has joined #ruby
mistermo_ has quit [Ping timeout: 244 seconds]
arooni has quit [Ping timeout: 240 seconds]
mistermo_ has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
ta_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arooni has joined #ruby
jgt3 has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
shakes has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
mistermo_ has joined #ruby
ur5us has joined #ruby
rkazak has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
jancel has joined #ruby
arooni has quit [Ping timeout: 260 seconds]
vdamewood has quit [Quit: Life beckons.]
aryaching has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
lapointe has quit [Ping timeout: 250 seconds]
Dios has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
kgrz has joined #ruby
mattwashere has joined #ruby
blackmes1 has joined #ruby
JakFrist has joined #ruby
arooni has quit [Ping timeout: 264 seconds]
pilne has quit [Quit: Quitting!]
certainty has joined #ruby
tokynet has quit [Quit: Connection closed for inactivity]
Alazoral has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
freerobby has quit [Quit: Leaving.]
lightt has quit [Remote host closed the connection]
freerobby has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 258 seconds]
arooni has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
LoneHerm_ has joined #ruby
freerobby has quit [Client Quit]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaumg has quit [Quit: WeeChat 1.0.1]
davedev2_ has quit []
JakFrist has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arooni has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
Niham has joined #ruby
arooni has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
ncthom91 has joined #ruby
ljarvis has joined #ruby
mattwashere has quit [Remote host closed the connection]
sdothum has joined #ruby
tmtwd has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ljarvis has quit [Ping timeout: 276 seconds]
arooni has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
jancel has quit [Remote host closed the connection]
c_nick has joined #ruby
<c_nick> need to check for every {([ we have }])
GodFather has quit [Ping timeout: 260 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 240 seconds]
banister is now known as banisterfiend
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
DotKite has joined #ruby
arooni has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
kies has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
arooni has quit [Ping timeout: 258 seconds]
rueben has joined #ruby
djbkd has quit [Quit: My people need me...]
binaryplease1 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
arooni has joined #ruby
mattwashere has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
lictor36 has joined #ruby
juanfra has quit [Disconnected by services]
solars has joined #ruby
juanfra_ has joined #ruby
xall has joined #ruby
blackgoat has joined #ruby
sandstrom has joined #ruby
arooni has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 244 seconds]
binaryplease1 is now known as binaryplease
blackmes1 has joined #ruby
mistermocha has joined #ruby
snath has quit [Ping timeout: 244 seconds]
ornerymoose has quit [Quit: ornerymoose]
jancel has joined #ruby
snath has joined #ruby
mistermocha has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has joined #ruby
braincras has quit [Quit: bye bye]
tjohnson has quit [Quit: Connection closed for inactivity]
certainty has joined #ruby
jgt3 has joined #ruby
RegulationD has joined #ruby
Yiota has joined #ruby
arooni has joined #ruby
blackmes1 has quit [Ping timeout: 272 seconds]
lightt has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
jgt3 has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
ta_ has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
uranellus_ is now known as uranellus
uranellus has quit [Changing host]
uranellus has joined #ruby
arooni has quit [Ping timeout: 264 seconds]
sarbs has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
ta_ has joined #ruby
k3rn31 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
arooni has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
houhoulis has joined #ruby
solars has quit [Ping timeout: 260 seconds]
ElFerna has quit [Ping timeout: 244 seconds]
lektrik has joined #ruby
rkazak has joined #ruby
koooge has quit [Quit: Leaving...]
aryaching has quit [Ping timeout: 240 seconds]
iceden has quit [Ping timeout: 244 seconds]
jancel has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jaguarmagenta has joined #ruby
aryaching has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
arooni has quit [Ping timeout: 244 seconds]
ljarvis has joined #ruby
stardiviner has joined #ruby
xue has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
iceden has joined #ruby
arooni has joined #ruby
shakes has quit [Quit: Leaving]
gix has quit [Ping timeout: 250 seconds]
ljarvis has quit [Ping timeout: 258 seconds]
Long has joined #ruby
kareeoleez has joined #ruby
c_nick has left #ruby [#ruby]
rueben has quit [Ping timeout: 246 seconds]
Long has left #ruby [#ruby]
Long has joined #ruby
Long has left #ruby [#ruby]
Long has joined #ruby
vdamewood has joined #ruby
gix has joined #ruby
lektrik has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
vdamewood has quit [Max SendQ exceeded]
lightt has quit [Remote host closed the connection]
lupine has quit [Ping timeout: 250 seconds]
arooni has quit [Ping timeout: 250 seconds]
pontiki has joined #ruby
Vingador has joined #ruby
vdamewood has joined #ruby
kies has quit [Ping timeout: 272 seconds]
arooni has joined #ruby
houhoulis has quit []
Rodya_ has joined #ruby
codecop has joined #ruby
lightt has joined #ruby
lightt has quit [Read error: Connection reset by peer]
DiCablo has left #ruby ["Textual IRC Client: www.textualapp.com"]
houhoulis has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Coldblackice has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
lektrik has joined #ruby
mattwashere has joined #ruby
arooni has quit [Ping timeout: 260 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
sandstrom has quit [Quit: My computer has gone to sleep.]
k3rn31 has joined #ruby
arooni has joined #ruby
mattwashere has quit [Ping timeout: 258 seconds]
Klumben has quit [Ping timeout: 250 seconds]
alem0lars has quit [Ping timeout: 250 seconds]
rueben has joined #ruby
hahuang62 has joined #ruby
hutch34 has joined #ruby
blackmes1 has joined #ruby
aberen has joined #ruby
eljimmy has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
moei has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
slash_ni1k has quit [Changing host]
slash_ni1k has joined #ruby
slash_ni1k is now known as slash_nick
tmtwd has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
bruce_lee has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
aberen has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
arooni has quit [Ping timeout: 252 seconds]
ornerymoose has joined #ruby
roamingdog has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
lightt has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
ornerymoose has quit [Read error: Connection reset by peer]
arooni has joined #ruby
ornerymoose has joined #ruby
ta_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
idle_task has joined #ruby
idletask has quit [Remote host closed the connection]
jgt3 has joined #ruby
arooni has quit [Ping timeout: 244 seconds]
jgt3 has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
arooni has joined #ruby
ljarvis has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
lightt has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
nankyokusei has joined #ruby
ljarvis has quit [Ping timeout: 240 seconds]
paradisaeidae has joined #ruby
jaguarmagenta has joined #ruby
Vingador has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 276 seconds]
arooni has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 240 seconds]
Klumben has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has joined #ruby
arooni has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
crystal77 has joined #ruby
duncannz has joined #ruby
mistermocha has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
alem0lars has joined #ruby
jancel has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
arooni has quit [Ping timeout: 276 seconds]
jas02 has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
arooni has joined #ruby
jas02 has quit [Client Quit]
crystal77 has quit [Read error: Connection reset by peer]
crystal7_ has joined #ruby
blackmes1 has joined #ruby
certainty has joined #ruby
dcunit3d has joined #ruby
RegulationD has joined #ruby
arooni has quit [Max SendQ exceeded]
craigp has joined #ruby
DotKite has quit [Read error: Connection reset by peer]
dsea has quit [Ping timeout: 250 seconds]
crystal7_ has quit [Ping timeout: 252 seconds]
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
certainty has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 244 seconds]
craigp has quit [Ping timeout: 244 seconds]
tildes has quit [Ping timeout: 246 seconds]
rueben has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
arooni has joined #ruby
agent_white has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tildes has joined #ruby
<agent_white> Evenin'
ur5us has quit [Remote host closed the connection]
sauvin has joined #ruby
rkazak has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby
dionysus69 has joined #ruby
kareeoleez has quit [Remote host closed the connection]
arooni has quit [Ping timeout: 250 seconds]
crystal77 has joined #ruby
axxyhtrx has joined #ruby
arooni has joined #ruby
kgrz has quit [Read error: Connection reset by peer]
crystal77 has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby
aeterne has quit [Read error: Connection reset by peer]
kgrz has quit [Client Quit]
kgrz has joined #ruby
bokayio has joined #ruby
chandlerbing has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
jenrzzz has joined #ruby
arooni has joined #ruby
crystal77 has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0/20160606113944]]
ta_ has quit [Ping timeout: 246 seconds]
crystal77 has quit [Ping timeout: 276 seconds]
spudowiar has quit [Ping timeout: 250 seconds]
arooni has quit [Ping timeout: 258 seconds]
Es0teric has joined #ruby
ta_ has joined #ruby
mistermocha has joined #ruby
chandlerbing has quit [*.net *.split]
bokayio has quit [*.net *.split]
spudowiar has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
chandlerbing has joined #ruby
bokayio has joined #ruby
arlek has joined #ruby
saneax is now known as saneax_AFK
moeabdol has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
fenre has joined #ruby
kareeoleez has joined #ruby
certainty has joined #ruby
amclain has quit [Quit: Leaving]
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
eGGshke has joined #ruby
kareeoleez has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
Dreamer3 has quit [Ping timeout: 246 seconds]
arooni has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
kgrz has quit [Ping timeout: 264 seconds]
chopin has joined #ruby
chopin is now known as Guest48231
aberen has joined #ruby
lektrik has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jackjackdripper has quit [Quit: Leaving.]
arooni has joined #ruby
aberen has quit [Ping timeout: 240 seconds]
czerasz has joined #ruby
vuoto has joined #ruby
Coldblackice has quit [Ping timeout: 244 seconds]
solars has joined #ruby
blackmes1 has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
sandstrom has joined #ruby
jas02 has quit [Quit: jas02]
Guest48231 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
tubuliferous_ has joined #ruby
arooni has quit [Ping timeout: 276 seconds]
d0lph1n98 has joined #ruby
Qommand0r has joined #ruby
jackjackdripper has joined #ruby
LoneHerm_ has quit [Ping timeout: 244 seconds]
dcunit3d has quit [Ping timeout: 252 seconds]
arooni has joined #ruby
czerasz has quit [Ping timeout: 244 seconds]
jgt3 has joined #ruby
fenre has quit [Remote host closed the connection]
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
fenre has joined #ruby
saneax_AFK is now known as saneax
kgrz has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
jgt3 has quit [Ping timeout: 244 seconds]
arlek has joined #ruby
skade has joined #ruby
kgrz has quit [Ping timeout: 258 seconds]
arooni has quit [Ping timeout: 244 seconds]
axxyhtrx has joined #ruby
last_staff has joined #ruby
dcunit3d has joined #ruby
nankyokusei has joined #ruby
ramfjord has joined #ruby
arooni has joined #ruby
brianpWins has joined #ruby
yardenbar has joined #ruby
<brianpWins> I’m running in to a problem I need help with. The error is very straight forward, we’ve all seen it before, normally I know what to do. In this case though, I have no idea why the “expected type” isn’t &mut. I’m defining it as &mut I don’t know why it would be expected to be anything but that: http://pastie.org/private/rv1dxyvhyhh9kdfzy51zw
nankyokusei has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
kgrz has joined #ruby
<brianpWins> errrr
yfeldblum has quit [Remote host closed the connection]
<brianpWins> this is the wrong room
KnownSyntax has quit [Ping timeout: 264 seconds]
johnbat26 has joined #ruby
yfeldblum has joined #ruby
ur5us has joined #ruby
howdoi has joined #ruby
jancel has joined #ruby
firstdayonthejob has quit [Ping timeout: 258 seconds]
arooni has quit [Ping timeout: 260 seconds]
hahuang62 has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 250 seconds]
jancel has quit [Ping timeout: 258 seconds]
arooni has joined #ruby
vinleod has joined #ruby
vdamewood has quit [Disconnected by services]
vinleod is now known as vdamewood
snath has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
cgfbee has quit [Quit: cgfbee]
jas02 has joined #ruby
arooni has quit [Max SendQ exceeded]
giz|work has joined #ruby
arooni has joined #ruby
matp has quit [Ping timeout: 264 seconds]
blaxter has joined #ruby
mdw has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
sandstrom has quit [Quit: My computer has gone to sleep.]
karmatr0n has joined #ruby
flughafen has joined #ruby
<flughafen> hey shevy
ferr1 has joined #ruby
aswen has joined #ruby
houhoulis has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
karmatr0n has quit [Ping timeout: 244 seconds]
Dimik has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
govg has joined #ruby
blackmes1 has joined #ruby
n1x-nz has joined #ruby
DoubleMalt has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
ctp has joined #ruby
czerasz has joined #ruby
cgfbee has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
mistermocha has joined #ruby
Hounddog has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
multi_io has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
jgt3 has joined #ruby
jgt3 has quit [Ping timeout: 246 seconds]
mrmortondk has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
antgel has joined #ruby
KnownSyntax has quit [Client Quit]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has joined #ruby
vuoto has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 276 seconds]
vuoto has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
ur5us has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
arooni has quit [Ping timeout: 240 seconds]
slackbotgz has joined #ruby
badeball_ is now known as badeball
multi_io has joined #ruby
Guest__ has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
Long1 has joined #ruby
Ishido has joined #ruby
moeabdol has joined #ruby
aberen has joined #ruby
Long has quit [Ping timeout: 244 seconds]
aganov has joined #ruby
agent_white has quit [Quit: leaving]
jgt3 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
arooni has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
Es0teric has quit [Quit: Computer has gone to sleep.]
arooni has joined #ruby
Omen has joined #ruby
Long1 has quit [Quit: Leaving.]
Omen is now known as Guest19013
the_drow has joined #ruby
workmad3 has joined #ruby
mikecmpbll has joined #ruby
TomyWork has joined #ruby
aufi has joined #ruby
arooni has quit [Ping timeout: 272 seconds]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
arooni has joined #ruby
Long has joined #ruby
diegoaguilar has joined #ruby
janno_ has quit [Quit: leaving]
aswen has joined #ruby
blackmes1 has joined #ruby
janno has joined #ruby
toretore has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
slackbotgz has quit [Remote host closed the connection]
arooni has quit [Ping timeout: 258 seconds]
nadir has quit [Quit: Connection closed for inactivity]
biggernashing has joined #ruby
minimalism has quit [Quit: minimalism]
lictor36 has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
kgrz has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
edwinvdgraaf has joined #ruby
tvw has joined #ruby
mikecmpbll has quit [Quit: Textual IRC Client: www.textualapp.com]
aep_ has quit [Changing host]
aep_ has joined #ruby
Silthias has quit [Ping timeout: 264 seconds]
aep_ is now known as aep
joonty has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 260 seconds]
exilarch has joined #ruby
madgen has joined #ruby
<exilarch> Hello all, what is the easiest way to get started with Ruby without no programming skills. My goal is to develop a simple GUI program.
sid_fules has joined #ruby
ocbtec has joined #ruby
giz|work has quit [Ping timeout: 264 seconds]
Silthias has joined #ruby
nankyokusei has joined #ruby
wuyin has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
<ddv> exilarch: by just doing
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
<Lucky__> I don't really understand what a "build script" or a "makefile" are. I feel like it's supposed to help my code run on another environment that doesn't have ruby installed, but I don't really get how I'm supposed to transition my code from ruby into a makefile
biggernashing has quit [Ping timeout: 250 seconds]
<Lucky__> could anyone explain it to me?
charliesome has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
giz|work has joined #ruby
startupality has joined #ruby
platzhirsch has joined #ruby
saneax_AFK is now known as saneax
sid_fules has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
edwinvdg_ has joined #ruby
digneety has joined #ruby
certainty has joined #ruby
jenrzzz has joined #ruby
skade has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
moeabdol has joined #ruby
ctp has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
nerium has joined #ruby
Guest19013 has quit [Quit: Leaving]
<gregf_> exilarch: why a simple GUI program? you could just follow rubymonk or rubykoans?
<gregf_> also, without no == with :)
<exilarch> gregf_: i'm not familiar with those.
<heftig> there is no class without end
<gregf_> exilarch: nobody is, so i am suggesting :). if you were familiar you would'nt need to read it ;)
<exilarch> gregf_: thanks for the suggestion :)
<gregf_> exilarch: when you say you dont have programming skills , you need to learn the syntax first?
<exilarch> gregf_: Correct, I only studied basic C at school but I hated it.
<gregf_> you hated C... *weeps*
<gregf_> btw, i hated programming in uni :) tho i majored in Comp sc
<exilarch> gregf_: maybe it was because of the bad teacher.
ramfjord has joined #ruby
allenn has joined #ruby
allenn has quit [Changing host]
allenn has joined #ruby
<gregf_> exilarch: nope, the more time you spend on the computer, the more you;ll code better ;). nobody can teach you logic *honest*
<gregf_> well, you're partly correct
d0lph1n98 has quit [Ping timeout: 258 seconds]
biberu has joined #ruby
exilarch has quit [Quit: Leaving]
aef_ has quit [Remote host closed the connection]
aef has joined #ruby
nhhc has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
weckl has joined #ruby
marr has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
blackmesa has joined #ruby
renderful has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 264 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
RegulationD has quit [Ping timeout: 264 seconds]
sid_fules has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
Olipro has joined #ruby
axxyhtrx has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
Saloun has left #ruby [#ruby]
chip_ has joined #ruby
rvchangue has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rvchangue has joined #ruby
startupality has quit [Quit: startupality]
n1x-nz has quit [Quit: Computer says no]
yfeldblum has quit [Remote host closed the connection]
edwinvdg_ has quit [Ping timeout: 240 seconds]
existensil has quit [Ping timeout: 258 seconds]
edwinvdg_ has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
hanmac has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 244 seconds]
aupadhye_ has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
aupadhye_ has quit [Client Quit]
jenrzzz has joined #ruby
hanmac has joined #ruby
duncannz has quit [Remote host closed the connection]
uranellus has quit [Ping timeout: 276 seconds]
existensil has joined #ruby
yfeldblum has joined #ruby
aupadhye has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 240 seconds]
matp has joined #ruby
isxek has joined #ruby
Lucky__ has quit [Quit: Page closed]
biberu has quit []
lupine has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
biberu has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
certainty has quit [Ping timeout: 246 seconds]
edwinvdg_ has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
araujo_ has quit [Quit: Leaving]
blackgoat has joined #ruby
yfeldblu_ has joined #ruby
renderful has joined #ruby
mdw has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
c355e3b has joined #ruby
chip_ has quit [Ping timeout: 246 seconds]
vuoto has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 258 seconds]
AcidCras_ is now known as AcidCrash
Snowy has joined #ruby
blackgoat has quit [Read error: Connection reset by peer]
craigp has joined #ruby
jancel has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Remote host closed the connection]
mistermocha has joined #ruby
Long has quit [Quit: Leaving.]
yfeldblu_ has quit [Remote host closed the connection]
Pisuke has quit [Read error: Connection reset by peer]
jancel has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
sameerynho has joined #ruby
axxyhtrx has joined #ruby
aupadhye has quit [Quit: Leaving]
allcentury has joined #ruby
sdothum has joined #ruby
mdw has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
d0lph1n98 has joined #ruby
chrismytton has joined #ruby
zenspider has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
zenspider has quit [Client Quit]
joonty has quit [Quit: This computer has gone to sleep]
ljarvis has joined #ruby
d0lph1n98 has quit [Ping timeout: 244 seconds]
noregret has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<noregret> i'm new to ruby and trying to understand some code. "if @repo_data[:store][:files].key?(req_path)" - does this check if there is a key (in :files) that matches req_path?
hk238 has joined #ruby
<jhass> noregret: assuming @repo_data[:store][:files] returns a hash, key? checks whether that hash has the given (req_path) key. So yes. There's a more verbose alias for Hash#key? called Hash#has_key?
<noregret> jhass: thanks
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d0nn1e has quit [Ping timeout: 244 seconds]
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axxyhtrx has joined #ruby
johnny56_ has joined #ruby
nettoweb has joined #ruby
dhk has joined #ruby
d0nn1e has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
sandstrom has joined #ruby
rodfersou has joined #ruby
craigp has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
TheMonster has left #ruby ["Konversation terminated!"]
rodferso1 has joined #ruby
Xeago has joined #ruby
rodfersou has quit [Ping timeout: 276 seconds]
giz|work has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
giz|work has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
rodferso1 is now known as rodfersou
elaptics is now known as elaptics`away
Adam_FrVancouver has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 272 seconds]
sid_fules has quit [Remote host closed the connection]
joonty has joined #ruby
GodFather has joined #ruby
blackmesa has joined #ruby
nerium has quit [Quit: nerium]
howdoi has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
jaguarmagenta has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
hrob has joined #ruby
<hrob> hi
dcunit3d has quit [Ping timeout: 258 seconds]
<hrob> I'm looking for a foolproof way of embedding shell script code in a string inside ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
<hrob> i saw advice to use,,, mystr = <<-EOF my shell code .... EOF
<hrob> however, when I write this string to a file, I find that not all characters are escaped
<hrob> for example "\" followed by new line, seems to result in no "\" and no new line
codecop has quit [Ping timeout: 244 seconds]
<hrob> In python the syntax would be """ my code """ tripple quotes
<apeiros> foolproof - good luck
<apeiros> triple quotes in python won't protect you either
<jhass> also why don't you just write it in ruby
<hrob> apeiros: no they wont, but they will preserve pack slashes
<apeiros> there's two basic string quotings in ruby, single-quote and double-quote
<apeiros> in single-quotes, only \\ and \' are escape sequences
<apeiros> there's no string literal in ruby where \ can be used unescaped
charliesome has joined #ruby
nerium has joined #ruby
<apeiros> and there's various ways to write single-quoted strings. 'like this', %q{like this}, <<-'EOF' \n like this \n EOF
<apeiros> but those things are all only related to how escaping works. it's *entirely* unrelated to the fact that this string is "shell script code"
<jhass> hrob: the two foolproof ways I see in order of preference: 1) don't do it at all, Ruby can do everything shell script can 2) Write it to a separate file and let your shell run that file
<hrob> apeiros: ah ok, I see. I will have to work around the back slashes... perhaps just .gsub('/','//)
diegoaguilar has quit [Remote host closed the connection]
<jhass> hrob: no, that won't work at all
<hrob> sorry meant \
<hrob> yeah, I guess separate file is going to be foolproof :)
<jhass> took that into account
<jhass> hrob: curious, why isn't 1) an option?
<hrob> jhass: the company I work for use ruby for provisionings scripts -- the build environment is however mxe in some cases
<hrob> jhass: mxe has its own config file syntax... shell-like
<jhass> oh well
<apeiros> gsubbing won't work because there's no backslash in your string to begin with if you don't escape it
<jhass> yeah, separate file seems the most sane then
johnmilton has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
k3rn31 has joined #ruby
ljarvis has quit [Quit: Lost terminal]
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnmilton has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
duckpuppy has joined #ruby
sepp2k has joined #ruby
allenn has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 272 seconds]
flashpoint9 has joined #ruby
skade has joined #ruby
freerobby has joined #ruby
Fernando-Basso has joined #ruby
nerium has quit [Quit: nerium]
d0lph1n98 has joined #ruby
certainty has joined #ruby
A124 has quit [Read error: No route to host]
nerium has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
joonty has quit [Quit: This computer has gone to sleep]
elSaxo has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
A124 has joined #ruby
CloCkWeRX has joined #ruby
shadeslayer has joined #ruby
elSaxo has quit [Ping timeout: 244 seconds]
johnmilton has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
Yiota has quit [Client Quit]
k3rn31 has joined #ruby
edwinvdgraaf has joined #ruby
Ankhers_ is now known as Ankhers
giz|work has joined #ruby
blackgoat has joined #ruby
nerium has quit [Quit: nerium]
fisch123456 has joined #ruby
meal has quit [Read error: Connection reset by peer]
fisch123456 has quit [Client Quit]
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elSaxo has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
jojojojo has joined #ruby
bruce_lee has quit [Ping timeout: 244 seconds]
ElFerna has joined #ruby
joonty has joined #ruby
hanmac has joined #ruby
ornerymoose has joined #ruby
jojojojo is now known as bruce_lee
maucar has joined #ruby
blackgoat has quit [Ping timeout: 272 seconds]
giz|work has quit [Ping timeout: 252 seconds]
gnufied has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ornerymoose has quit [Ping timeout: 252 seconds]
blackgoat has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
Adam_FrVancouver has joined #ruby
ldnunes has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
idle_task has quit [Ping timeout: 250 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
ferr1 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
sergio_101 has joined #ruby
ferr1 is now known as ferr
Mia has joined #ruby
freerobby has quit [Quit: Leaving.]
hutch34 has joined #ruby
nhhc has quit [Quit: Leaving]
idle_task has joined #ruby
<shevy> go insanity, go!
blackmesa has joined #ruby
<shevy> one big monster file to rule them all
elaptics`away is now known as elaptics
ur5us has joined #ruby
synthroid has joined #ruby
iamvery has joined #ruby
dhk_ has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
allcentury has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
dhk has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
sid_fules has joined #ruby
tk___ has joined #ruby
joaumg has joined #ruby
dcunit3d has joined #ruby
axxyhtrx has joined #ruby
joaumg has quit [Client Quit]
AlexJakeGreen has joined #ruby
joaumg has joined #ruby
eGGshke has quit [Quit: Leaving...]
davedev24 has joined #ruby
mistermocha has joined #ruby
BillSussman has quit [Ping timeout: 252 seconds]
swills has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
dcunit3d has quit [Ping timeout: 250 seconds]
duckpupp1 has joined #ruby
dcunit3d has joined #ruby
chip_ has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
ornerymoose has joined #ruby
christianrojas has joined #ruby
zacstewart has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
nadir has joined #ruby
tvw has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
christianrojas has quit [Quit: Lingo: www.lingoirc.com]
nankyokusei has joined #ruby
truenito has joined #ruby
dhk has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
ornerymoose_ has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
dhk_ has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
christianrojas_ has joined #ruby
christianrojas_ has quit [Client Quit]
ornerymoose has quit [Ping timeout: 258 seconds]
ornerymoose_ is now known as ornerymoose
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
christianrojas has joined #ruby
roamingdog has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Ping timeout: 244 seconds]
jaruga____ has quit [Quit: jaruga____]
aryaching has quit [Remote host closed the connection]
jrafanie has joined #ruby
axxyhtrx has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
zacstewart has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
christianrojas has quit [Quit: Be back later ...]
banister has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
christianrojas has joined #ruby
christianrojas has quit [Client Quit]
chouhoulis has joined #ruby
GodFather has joined #ruby
Silthias has joined #ruby
iCHAIT has joined #ruby
amsharma has joined #ruby
banister has quit [Client Quit]
CloCkWeRX has joined #ruby
<iCHAIT> Can someone help with porting this python method - http://dpaste.com/3M6FNBW
<apeiros> what kind of help do you need?
Dysp has joined #ruby
ramfjord has joined #ruby
<jhass> and what do you have so far?
<iCHAIT> I'm trying to understand what I can use in place of that patch function.
relix has joined #ruby
<relix> Hey, I'd like to see if my project is frozen string literal compatible without adding the pragma line at the top of every file
<Dysp> Mjello. Here I am again with my many problems. I am using rubyXL to deal with excel sheets, unfortunately when pulling values, rubyXL (?) decides to convert some values to scientific notation. When I try to do anything with the array of values, I obviously get errors because they are handled as strings. Any idea or anyone who have encountered this problem before?
<apeiros> iCHAIT: we do not know what that patch function does
<iCHAIT> I need to see if a mocked function was called with a particular argument
<relix> how can I enable it globally?
ChiefAlexander has joined #ruby
Vile` has joined #ruby
<relix> I know of the `--enable-frozen-string-literal` option, but my ruby scripts are run through `#!/usr/bin/ruby`-ish command, so no where to do `ruby --set-enable-...`
<relix> I tried running `export RUBYOPT=--enable-frozen-string-literal
<relix> `
<relix> but that didn't work
ChiefAlexander has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
ddffg has joined #ruby
giz|work has joined #ruby
nerium has joined #ruby
aegis3121 has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
christianrojas has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
ramortegui has joined #ruby
ncthom91 has joined #ruby
RegulationD has joined #ruby
ta_ has joined #ruby
swills has joined #ruby
<iCHAIT> apeiros: I have a function delete_object in my ruby code, now I want to test another function delete_time (which uses delete_object implicitly), for this I am patching the result of the function delete_object whose result goes into the argument m_delete_object.
<shevy> isn't the --enable-frozen-string-literal a directive at configure time relix?
blackmesa has joined #ruby
<relix> oh that could be it shevy
<relix> I have a hard time finding information about it actually
jaguarmagenta has joined #ruby
<shevy> hmm let's see... I think nobu added that code
Miron_ is now known as Miron
malconis has joined #ruby
christianrojas has quit [Ping timeout: 276 seconds]
<shevy> how odd
<shevy> so if the information on that blog is correct, "ruby --enable-frozen-string-literal foobar.rb" should work
edwinvdgraaf has quit [Ping timeout: 240 seconds]
<shevy> yeah seems to work
RegulationD has quit [Ping timeout: 252 seconds]
edwinvdgraaf has joined #ruby
<shevy> relix perhaps it is a bug if it does not work
ramfjord has quit [Ping timeout: 260 seconds]
<Dysp> Mjello. Here I am again with my many problems. I am using rubyXL to deal with excel sheets, unfortunately when pulling values, rubyXL (?) decides to convert some values to scientific notation. When I try to do anything with the array of values, I obviously get errors because they are handled as strings. Any idea or anyone who have encountered this problem before?
jaguarmagenta has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
colegatron has joined #ruby
<jhass> iCHAIT: which test framework?
blackmesa has quit [Ping timeout: 244 seconds]
ta_ has quit [Read error: Connection reset by peer]
<jhass> Dysp: are you sure you're not just confusing the value with how ruby represents it on a plain puts / .to_s?
<iCHAIT> I am using Test::Unit
<iCHAIT> jhass: ^
<Dysp> jhass: I think I am, unfortunately
<relix> thanks shevy, I believe it's due to how ruby is run in my scripts
<Dysp> jhass: Because I get an argumenterror: comparison of string failed when calling .max on the array
<jhass> iCHAIT: I don't think that supports mocking/stubbing by itself. You either have to add a gem that does, like mocha, or switch to a test framework that does, like minitest
<jhass> Dysp: show code and output of p array ?
aegis3121 has quit [Ping timeout: 240 seconds]
c0mrad3 has joined #ruby
mistermocha has joined #ruby
<Dysp> jhass: Only if you promise not to lynch me for formatting
<jhass> ugh
tubuliferous_ has joined #ruby
* jhass lynches Dysp
<jhass> ah well, it's just initialize being off
<Dysp> Yes?
<jhass> formatting wise
ta_ has joined #ruby
evansbee has joined #ruby
<jhass> anyway, second part of the question? I can't run the code myself to get it
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Dysp> Would you like me to send you what you need?
<jhass> no
<Dysp> Thought so
<jhass> actually you always return an empty array there
<Dysp> Where?
<jhass> extract_values
<jhass> so not sure, but that code should never raise
<jhass> you probably run some other version if it does
<Dysp> It doesnt return an empty array
<jhass> that version of the code surely does
<jhass> oooh, nvm I you hid it
<Dysp> I did what, now? :D
k3rn31 has joined #ruby
<jhass> I totally didn't see the <<
<jhass> so
<Dysp> Oh
mistermocha has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
cek has joined #ruby
<jhass> so, do p array between ll 18, 19
<jhass> and show me the output
malconis has quit [Remote host closed the connection]
ramfjord has joined #ruby
<cek> How do I check if a -v parameter's been passed to rake file?
<Dysp> between what, now?
<jhass> lines 18 and 19
malconis has joined #ruby
<Dysp> Im just giving you a snippet
ta_ has quit [Read error: Connection reset by peer]
<Dysp> You can probably guess what the rest looks like. But this is the troubling area.
<jhass> curios
shevy has quit [Read error: Connection reset by peer]
<jhass> I guess this RubyXL thing is pretty shit then :P
Ebok has joined #ruby
<jhass> >> "-2E-3".to_f
<ruby[bot]> jhass: # => -0.002 (https://eval.in/590348)
<jhass> so just .to_f all the values
ddffg has left #ruby ["Leaving"]
spiette has joined #ruby
<Dysp> Yeah, that would be a fix
<Dysp> But I always wanna make sure it is not just I who is a fuckup
<Dysp> What happens if a random string is converted to float?
Es0teric has quit [Quit: Computer has gone to sleep.]
<Dysp> >> "hello".to_f
<jhass> 0.0
<Dysp> :|
<Dysp> Hm.
shevy has joined #ruby
<jhass> >> "hello".to_f
<ruby[bot]> jhass: # => 0.0 (https://eval.in/590351)
<Dysp> Why does it hate me?
<jhass> because you're not identified
<Dysp> Damn bot.
elSaxo has quit [Ping timeout: 240 seconds]
kies has joined #ruby
<Dysp> Just a quick thought: It is possible to check for whether the "fix" I apply actually did any work?
<Dysp> I mean, if it actually converted anything.
ta_ has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
<jhass> short of doing it in a separate step, keeping the original and finding the differences between the two, nope
<jhass> well or you could check explicitly for strings before calling it and set a flag at the same time I guess
ramfjord has quit [Ping timeout: 252 seconds]
<Dysp> Yes. Just seems like a lot of work to fix a problem that there shouldn't be there in the first place.
<Dysp> Oh well, I will look into it. Thank you very much.
Fernando-Basso has quit [Ping timeout: 264 seconds]
bruce_lee has joined #ruby
lektrik has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
lektrik has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
JJM has joined #ruby
JJM is now known as Guest96755
noregret has quit [Ping timeout: 250 seconds]
matp has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
matp has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
<cek> FileUtilsExt.verbose_flag then
<cek> this is largely confusing
kies has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
aegis3121 has joined #ruby
startupality has joined #ruby
howdoi has joined #ruby
mattwashere has quit [Remote host closed the connection]
yqt has joined #ruby
mattwashere has joined #ruby
cs_0x6373 has joined #ruby
get_durnk has joined #ruby
Fernando-Basso has joined #ruby
<get_durnk> stupid question: if I have an instance of an object that I want to extend with a module, without extending other instances of that class, how can I do that?
Fernando-Basso has quit [Remote host closed the connection]
ping__ has joined #ruby
ping__ has left #ruby [#ruby]
ta_ has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
<jhass> instance.extend Module
<jhass> but doing it for anything but long-lived objects can hurt your performance significantly
<jhass> consider writing a wrapper instead, SimpleDelegator from delegate stdlib might help in doing so
blackmesa has joined #ruby
CJKinni has quit [Remote host closed the connection]
jancel has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 250 seconds]
lektrik has joined #ruby
pawnbox has joined #ruby
mattwashere has quit [Remote host closed the connection]
CJKinni has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
<cs_0x6373> could anyone point me to the ruby-sourcefile where class IO (used by class File) is implemented?
<jhass> it's io.c
ta_ has quit [Read error: Connection reset by peer]
<cs_0x6373> I'm currently troubleshooting some strange issues where ruby 2.1.8 running on AIX is unable to open /dev/null
chip_ has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
<cs_0x6373> jhass: so there's no real "class IO" since this is just a mapping to systemcalls? (with rb_define_singleton_method(...) ), right?
sid_fules has quit [Remote host closed the connection]
<jhass> well there's nothing defined in Ruby code, stuff defined via the C API is as real as anything else though
hrob has quit [Quit: Page closed]
idle_task has quit [Ping timeout: 258 seconds]
<cs_0x6373> :) i'm still not sure if this is a problem with my self-compiled ruby or with the gcc i compiled to compile it...
ta_ has joined #ruby
jgt3 has joined #ruby
nerium has quit [Quit: nerium]
ramfjord has joined #ruby
infra-red has joined #ruby
matp has quit [Remote host closed the connection]
infra-red has quit [Client Quit]
<cs_0x6373> a simple "bla = File.open('/dev/null', 'r') fails with in "`initialize': Invalid argument @ rb_sysopen - /dev/null (Errno::EINVAL)", while a open of a real file works (no device).
<cs_0x6373> with an older ruby 2.0.0 it works for both...
fenre has quit [Ping timeout: 264 seconds]
jgt3 has quit [Ping timeout: 252 seconds]
LoneHermit has joined #ruby
NET||abu- is now known as NET||abuse
idle_task has joined #ruby
<jhass> well, have fun untangling io.c :P
Dysp has quit [Quit: Page closed]
<jhass> it's just a good 12.5kloc, piece of cake!
matp has joined #ruby
<cs_0x6373> this whole situation is just bad, since i already invested a huge amount of time to get it to build so that i can run a newer version of puppet.. :)
GodFather has quit [Quit: Ex-Chat]
CJKinni has quit [Remote host closed the connection]
skweek has joined #ruby
sameerynho has quit [Ping timeout: 264 seconds]
<jhass> stracing the relevant syscalls (open, uh fcntl? read/write?) with the working and not working version might give some difference to grep for
Madplatypus has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cs_0x6373> yeah, i already used truss, currently i'm just seeing kopen but not the open/open64 syscall and the difference is the mode-flag, which is why i'm looking for how the are generated...
ta_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 264 seconds]
van has joined #ruby
mattwashere has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
ta_ has joined #ruby
mistermocha has joined #ruby
ramfjord has joined #ruby
flashpoint9 has joined #ruby
kareeoleez has joined #ruby
<jhass> cs_0x6373: can you still reproduce with http://devdocs.io/ruby~2.3/io#method-c-sysopen ? might cut some slack
aganov has quit [Remote host closed the connection]
mattwashere has joined #ruby
<cs_0x6373> jhass: Yes, IO.sysopen("/dev/null") fails, with a normal file it works...
mistermocha has quit [Ping timeout: 250 seconds]
<cs_0x6373> Also, i wrote some simple c programm to do open() and open64() with the same compiler and both work, so i suspected the glue between ruby and the syscalls...
andrew___ has joined #ruby
startupality has quit [Quit: startupality]
ChiefAlexander has quit [Remote host closed the connection]
<cs_0x6373> jhass: btw, thx for the help...
ferr has quit [Quit: WeeChat 1.5]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<andrew___> Has anyone here every utilized GridFS with Ruby to store images? I am wondering what I am doing wrong in the code below, it comes basically straight from the documentation (https://docs.mongodb.com/ecosystem/tutorial/ruby-driver-tutorial/#gridfs), here is the code I have written (https://gist.github.com/terrabl/f0e6038cba2e210cf366cbbd5eb11e11) And I am getting a gridFS_test.insert | FAILED | wrong number of arguments (2 for 0..1) e
van has quit [Remote host closed the connection]
christianrojas has joined #ruby
kvrapo has joined #ruby
digneety has quit [Quit: digneety]
cdg has joined #ruby
<cs_0x6373> jhass: do you know where rb_scan_args is implemented?
Sembei has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<jhass> not quite having the latest version available, but should get you into the right area
ta_ has quit [Read error: Connection reset by peer]
madgen has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
Pisuke has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
fmcgeough has joined #ruby
agent_white has joined #ruby
kareeoleez has quit [Remote host closed the connection]
CJKinni has joined #ruby
tk___ has quit [Quit: ばいばい]
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
LoneHermit has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
<agent_white> Mornin'
lektrik has left #ruby ["Leaving"]
ramfjord has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
<cs_0x6373> jhass: great tool, i will post my finding when i have some...
hightower has joined #ruby
madgen has joined #ruby
dionysus69 has joined #ruby
DroidBurgundy has joined #ruby
aryaching has joined #ruby
futilegames has joined #ruby
Rodya_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
moty66_ has joined #ruby
schlauberg has joined #ruby
roamingdog has joined #ruby
giz|work has quit [Ping timeout: 240 seconds]
giz|work|2 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
moty66_ is now known as moty66
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cout_ is now known as cout
ramfjord has quit [Ping timeout: 258 seconds]
ornerymoose has quit [Quit: ornerymoose]
kvrapo has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
ChiefAlexander has joined #ruby
varesa_ is now known as varesa
Snowy has quit [Read error: Connection reset by peer]
rippa has joined #ruby
jgt3 has joined #ruby
Snowy has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
SilverKey has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
yardenbar has quit [Ping timeout: 251 seconds]
ornerymoose has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
vdamewood has quit [Quit: Life beckons.]
rodfersou is now known as rodfersou|lunch
aegis3121 has joined #ruby
Snowy has quit [Remote host closed the connection]
andrew___ has quit [Quit: Page closed]
mdw has quit [Quit: Sleeping Zzzzz]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
snath has joined #ruby
ljarvis has joined #ruby
chopin has joined #ruby
chopin is now known as Guest45029
banister has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
ornerymoose has quit [Quit: ornerymoose]
tubuliferous_ has quit [Ping timeout: 260 seconds]
jrafanie_ has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
tokynet has joined #ruby
RegulationD has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
diegoaguilar has joined #ruby
polishdub has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
jancel has joined #ruby
mdw has joined #ruby
jas02 has quit [Quit: jas02]
RegulationD has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
get_durnk has quit [Quit: Page closed]
Ebok has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
ornerymoose has joined #ruby
jgt3 has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
brendan- has joined #ruby
ornerymoose has quit [Ping timeout: 264 seconds]
ornerymoose has joined #ruby
mistermocha has joined #ruby
synthroid has quit [Remote host closed the connection]
xlegoman has joined #ruby
moonman has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
matp has quit [Excess Flood]
evidex has joined #ruby
alxgsv has quit [Quit: https://fnordserver.eu]
Yiota has joined #ruby
Guest23451 has quit [Quit: https://fnordserver.eu]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
nettoweb has joined #ruby
flopsec has quit [Quit: https://fnordserver.eu]
mistermocha has quit [Ping timeout: 250 seconds]
Satyajit has quit [Quit: https://fnordserver.eu]
Vingador has joined #ruby
cschneid has joined #ruby
joonty has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
aberen has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
aberen has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
jancel has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
Guest45029 has quit [Remote host closed the connection]
LoneHermit has joined #ruby
tjohnson has joined #ruby
saneax is now known as saneax_AFK
antgel has joined #ruby
shinnya has joined #ruby
evidex has quit [Ping timeout: 252 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
roamingdog has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
roamingdog has joined #ruby
AlexJakeGreen has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 258 seconds]
synthroid has joined #ruby
mattwashere has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 250 seconds]
zel has joined #ruby
mistermocha has joined #ruby
zel is now known as Guest17809
Es0teric has joined #ruby
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
flopsec has joined #ruby
kareeoleez has quit [Remote host closed the connection]
evidex has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
mistermocha has quit [Remote host closed the connection]
kareeoleez has joined #ruby
arlek has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
kareeoleez has quit [Remote host closed the connection]
ramfjord has joined #ruby
<Travis-42> I have a class constant that looks something like "FILTERS = { :existing => [ { missing: { field: 'deleted_at' } } ] }" -- I want in some particular cases get the :existing value from filters, and then modify the field value, but I keep modifying the actual class value. dup/clone only do shallow copies and so don't really help. What is an appropriate way to
<Travis-42> deal with this?
RegulationD has joined #ruby
evidex has quit [Ping timeout: 244 seconds]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
TomyWork has quit [Ping timeout: 244 seconds]
amclain has joined #ruby
johnbat26 has quit [Ping timeout: 276 seconds]
matp has joined #ruby
Guest96755 has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
<ljarvis> you shouldn't modify a constant
<ljarvis> that's why they're called constants
aegis3121 has quit [Ping timeout: 258 seconds]
giz|work|2 has quit [Ping timeout: 240 seconds]
dfockler has joined #ruby
<jhass> Hash#clone should deep copy, no?
rueben has joined #ruby
certainty has joined #ruby
<toretore> it doesn't, afaik
phutchins2 has joined #ruby
<phutchins2> Hi all
<christianrojas> Hi!
giz|work|2 has joined #ruby
<phutchins2> I'm looking for a good way to bundle ruby inside of my app's dir... I've used bundler in the past but that doesn't bundle actual ruby, jsut the Gems. So anyone know of anything that works well for this?
the_drow has quit [Quit: This computer has gone to sleep]
<Travis-42> ljarvis: I don't want to modify the constant, obviously, I want to take the value, which in this case is [ { missing: { field: 'deleted_at' } } ] and use a modified version of that
<phutchins2> I see traveling-ruby, but have not tried it
<adaedra> Seems not, jhass
<adaedra> >> a = {b: [1]}; b = a.clone; b[:b].clear; a
<ruby[bot]> adaedra: # => {:b=>[]} (https://eval.in/590379)
<jhass> meh
<jhass> how annoying
<Travis-42> right now, I'm basically calling dup at each level of nesting when I copy/modify it
<ljarvis> yeah unless you use activesupport you'll have to implement something yourself
<ljarvis> they use deep_dup iirc
diegoviola has joined #ruby
<Travis-42> ah, maybe I'll just leverage their method
kareeoleez has quit [Remote host closed the connection]
<toretore> Travis-42: here's what i do for deep merging: https://github.com/toretore/enkidu/blob/master/lib/enkidu/tools.rb - the reason it's not in stdlib is that there are different ways to do it that each have their gotchas
whathappens has joined #ruby
Muz_ is now known as Muz
certainty has quit [Ping timeout: 244 seconds]
<Travis-42> thank you tore
Es0teric has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
ereslibre_laptop is now known as ereslibre
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
kies has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
augcesar has joined #ruby
tildes has joined #ruby
ljarvis has quit [Quit: Lost terminal]
Ebok has quit [Quit: Leaving]
kareeoleez has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
danostrowski has joined #ruby
mtkd has quit [Ping timeout: 272 seconds]
mtkd has joined #ruby
krobzaur has joined #ruby
VeryBewitching has joined #ruby
rkazak has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
kies has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
giz|work|2 has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
elifoster has joined #ruby
xall has joined #ruby
[Butch] has joined #ruby
weckl has quit [Remote host closed the connection]
barajasfab has joined #ruby
ramfjord has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
andikr has quit [Remote host closed the connection]
willardg has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 258 seconds]
sphex has quit [Ping timeout: 244 seconds]
jetpackjoe has joined #ruby
xall has joined #ruby
jancel has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moredhel has quit [Quit: byee]
mistermocha has joined #ruby
sphex has joined #ruby
TomyLobo has joined #ruby
moredhel has joined #ruby
ornerymoose has joined #ruby
kareeoleez has joined #ruby
snath has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
snath has joined #ruby
giz|work|2 has joined #ruby
rodfersou|lunch is now known as rodfersou
startupality has quit [Client Quit]
mattwashere has joined #ruby
startupality has joined #ruby
choke has joined #ruby
nankyokusei has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathapp_ has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
choke has quit [Client Quit]
rodfersou has joined #ruby
sternj has joined #ruby
whathappens has quit [Ping timeout: 246 seconds]
iCHAIT has quit [Remote host closed the connection]
zacts has quit [Quit: WeeChat 1.4]
sternj has quit [Client Quit]
amsharma has quit [Quit: Going for now]
nankyokusei has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
sternj has joined #ruby
choke has joined #ruby
mistermocha has joined #ruby
<sternj> Anyone here familiar with Open Datamaker? It is an API that uses Ruby and, in attempting to run the bootstrap file associated with it, I am encountering some issues that I can't figure out
gagrio has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
dcunit3d has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood> sternj: Gist the code involved and errors you're getting?
tvw has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 246 seconds]
<sternj> Havenwood: The specific error that I am encountering is "cannot load such file --zlib". I've done my due dilligence in searching the web, I'm working on Ruby 2.2.4. Give me a sec to find to find the specific code
ta_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 260 seconds]
iCHAIT has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
giz|work|2 has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
startupality has joined #ruby
<sternj> havenwood: I can't quite figure out where the specicfic issue lies, I only have error printouts. They are as follows: Installing dependencies... ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass
alxgsv has joined #ruby
renderful has quit [Read error: Connection reset by peer]
<havenwood> sternj: Looks like a link is broken to the zlib library?: http://zlib.net
<havenwood> sternj: OS/distro?
<havenwood> sternj: How'd you install Ruby?
renderful has joined #ruby
kareeoleez has joined #ruby
Satyajit has joined #ruby
zacts has joined #ruby
xall has joined #ruby
<sternj> havenwood: zlib has been installed, running CentOS 7, Ruby built from source
platzhirsch has quit [Ping timeout: 246 seconds]
craigp has joined #ruby
<havenwood> sternj: I'd probably try rebuilding Ruby so it can statically link again, unless you just built it.
<havenwood> dynamically*
* havenwood tries to wake up
<sternj> Built today and reinstalled using RVM after installation of zlib
Chirimbolito has joined #ruby
startupality has quit [Quit: startupality]
get_durnk has joined #ruby
moeabdol has joined #ruby
<sternj> havenwood: another thing, the bootstrap seems to invoke linuxbrew, I'm attempting to install that and see if it does anything
<havenwood> sternj: you might try: rvm pkg install zlib
<get_durnk> if I have an object, and I've extended that object with a couple modules, how can I get a list of modules that have been mixed in
startupality has joined #ruby
<sternj> havenwood: Already done
<get_durnk> I did self.class.included_modules, but it doesnt seem to show modules that I .extend'd
<havenwood> sternj: hmm
<get_durnk> because its per instance
kareeoleez has quit [Ping timeout: 258 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
lsmola has quit [Ping timeout: 260 seconds]
<guardian> hello, is File.mv atomic?
<sternj> havenwood: Working on getting linuxbrew up and running, not sure if that will help but there are several lines of code dedicated to it in the bootstrap
krobzaur has quit [Quit: WeeChat 1.4]
<guardian> I meant is FileUtils.mv atomic?
<havenwood> get_durnk: (class << self.class; self end).included_modules
<havenwood> get_durnk: or just: class << self.class; self.included_modules end
startupality has quit [Client Quit]
<havenwood> get_durnk: There might be a prettier way. >.>
<get_durnk> what does that mean? is that like a singleton of that particular object?
mostlybadfly has joined #ruby
pawnbox has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
kareeoleez has joined #ruby
malconis has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
tubuliferous_ has joined #ruby
pawnbox has joined #ruby
giz|work|2 has joined #ruby
dfockler has quit [Quit: Leaving]
certainty has joined #ruby
rcvalle has joined #ruby
<Papierkorb> guardian: as long the source and destination directories lie on the same partition, the underlying filesystem should ensure this.
kareeoleez has quit [Ping timeout: 264 seconds]
<Papierkorb> guardian: if they do not, then no.
Vingador has quit [Ping timeout: 276 seconds]
RedNifre has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
DroidBur_ has joined #ruby
<havenwood> guardian: yup
<havenwood> get_durnk: ^
<get_durnk> alright, well that works I guess
<Papierkorb> guardian: Oh, and that only applies for a single file/directory, not for multiple file/directories.
certainty has quit [Ping timeout: 244 seconds]
iCHAIT has left #ruby [#ruby]
yqt has quit [Ping timeout: 264 seconds]
jackjackdripper has joined #ruby
<get_durnk> havenwood: some_obj.singleton_class.included_modules is a thing
superlou has joined #ruby
<get_durnk> which does what I was after. I'm not sure if that's the same operation, I wasn't explaining it very well anyways, but yeah
DroidBurgundy has quit [Ping timeout: 240 seconds]
<havenwood> get_durnk: ah, nice
blackmesa has quit [Ping timeout: 252 seconds]
willardg has quit [Ping timeout: 240 seconds]
<havenwood> guardian: Rails has a File.atomic_write you might like looking at. Dunno! https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/file/atomic.rb
<RedNifre> Hello. I'd like to install the ruby software "tracks" on my OpenBSD machine but I'm not clear on the details regarding gems and bundler. The install instructions say that I should install bundler with 'gem install bundler', which didn't work so I tried it as root which I think worked, but then I get problems in the next step "bundle install --without development test". I guess installing bundler as root was a
<RedNifre> mistake? What should I do?
willardg_ has joined #ruby
<RedNifre> My ruby knowledge is pretty minimal, I wrote tiny scripts with it but haven't used gem so far. I only know that it's a package manager.
LoneHermit has joined #ruby
jaguarmagenta has joined #ruby
<havenwood> RedNifre: Some OSes opt for a system gem install location by default. Then you need to prefix sudo. You can use the `--user-install` flag with RubyGems to do a local user install of gems. You can save that setting in a .gemrc file.
<havenwood> RedNifre: RubyGems (providing the `gem` binary) ships with Ruby. Bundler is itself a gem.
SilverKey has quit [Quit: Halted.]
roamingdog has quit [Read error: Connection reset by peer]
startupality has joined #ruby
isxek has quit [Quit: Leaving]
roamingdog has joined #ruby
the_drow has joined #ruby
aberen has joined #ruby
<RedNifre> Okay, thanks. Was installing bundler as root a good or bad idea? When I do "bundler install..." as non-root I get many errors like "Bundler::GemspecError: Could not read gem at /usr/local/lib/ruby/gems/2.3/cache/htmlentities-4.3.2.gem. It may be corrupted.".
<havenwood> While RubyGems ships with gem dependency resolver itself these days, Bundler is still quite popular. If it's a Rails app then I'd say use Bundler. If it's just a gem consider using `gem install -g` to build the Gemfile.lock and prefix `RUBYGEMS_GEMDEPS=~` to autodetect the Gemfile.lock and use it.
ReK2 has quit [Remote host closed the connection]
startupality has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 244 seconds]
pilne has joined #ruby
chopin has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
chopin is now known as Guest90519
<RedNifre> I'm trying to install the stable version of tracks, the install instructions is an older version of this: https://github.com/TracksApp/tracks/blob/master/doc/installation.md
<RedNifre> hmmmm...
ta_ has quit [Read error: Connection reset by peer]
<havenwood> RedNifre: Seems you have a borked gem cache. Maybe?: gem sources --clear-all && gem pristine htmlentities
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
<havenwood> sudo !!
sternj has quit [Ping timeout: 250 seconds]
giz|work|2 has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
mistermocha has quit [Remote host closed the connection]
whathapp_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
jancel has quit [Remote host closed the connection]
<RedNifre> I pasted the output here, what could be the problem?: http://pastebin.com/S1DcKtSj
<ruby[bot]> RedNifre: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7901716450a57edf859a611e583949c6
<ruby[bot]> RedNifre: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<RedNifre> havenwood oh sorry, I didn't notice that you answered...
kareeoleez has quit [Ping timeout: 244 seconds]
<havenwood> RedNifre: Ah, so it thinks all the gem caches are corrupted. Maybe Bundler just doesn't have permission and gives a weird error?
ta_ has joined #ruby
<RedNifre> well, I guess. I installed bundler as root because it didn't work without root. I guess that was wrong.
<havenwood> RedNifre: You might try --user-local with your gem installs. Avoid permissions issues by installing locally.
<RedNifre> How can I uninstall bundler and install it again without root?
<havenwood> sudo gem uninstall bundler
<havenwood> gem install bundler --user-local
<RedNifre> ah, how intuitive! one sec...
<get_durnk> I'm sure somebody has done this before, but I figured out how to extend objects with mixins that can be constrained by which modules have already been included, like traits https://repl.it/C2lF/4
startupality has quit [Quit: startupality]
<havenwood> RedNifre: Then prepend `~/.gem/ruby/<ruby-version-here>/bin` to your PATH so you can get at the gem binaries.
<havenwood> bbiab
aegis3121 has joined #ruby
whathappens has joined #ruby
czerasz has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
<RedNifre> hm, the --user-local flag seems to not exist.
flashpoint9 has quit [Remote host closed the connection]
chosen1 has joined #ruby
whathappens has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
whathappens has joined #ruby
pontiki has joined #ruby
<RedNifre> havenwood did you mean --user-install instead of --user-local?
<havenwood> RedNifre: yeah, sorry about that, i meant --user-install
<RedNifre> Hm. Or should I maybe set my GEM_HOME to ~/.gem or something?
mdw has quit [Quit: Sleeping Zzzzz]
<shevy> hmm if several different ruby files, all try to load the same base .rb file, via require... that file will only be loaded up once right? e. g. not evaluate more than once upon require-time
tubuliferous_ has quit [Ping timeout: 244 seconds]
aberen has quit [Ping timeout: 272 seconds]
<Papierkorb> correct
the_drow has quit [Read error: Connection reset by peer]
<RedNifre> Oh, or should I just create a .gemrc file in my home that only has "--user-install" in it? Or how would I put that setting there exactly?
daemoen_ is now known as Daemoen
rodfersou has quit [Ping timeout: 264 seconds]
marahin has joined #ruby
<pilne> i need to really drill a bit on the .each notation's syntax, as well as the scoping sigils, they aren't quite clicking yet but it's a syntax, not semantics issue for me at this point.
kareeoleez has joined #ruby
<shevy> Papierkorb okies ... I just (almost) finished rewriting some old code in the last 5 days ... lots of things had to be changed
<havenwood> RedNifre: echo 'gem: "--user-local"' >> ~/.gemrc
<havenwood> RedNifre: The syntax is like: gem: '--user-install'
<havenwood> RedNifre: Again, I typoed back to the wrong flag, but that's the idea.
<RedNifre> I just googled it and someone wrote that without the quotes, i.e. just 'gem: --user-install'.
jancel has joined #ruby
cdg has quit [Remote host closed the connection]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
rueben has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
flashpoint9 has joined #ruby
rodfersou has joined #ruby
SilverKey has quit [Client Quit]
arlek has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
miah_ is now known as miah
codecop has joined #ruby
SilverKey has quit [Client Quit]
aep-shoutlet has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work|2 has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
CSWookie has joined #ruby
Vingador has joined #ruby
<CSWookie> Hey all, if I catch an exception with a bare rescue, is there a way to find out what type of exception it was?
erlendf has joined #ruby
<adaedra> You can do .class on it
ornerymoose has quit [Quit: ornerymoose]
<CSWookie> How do I get it? I'm a ruby newb. Is there a special variable that gets set in the rescue block or something?
<adaedra> Ah, you just do `rescue`?
tubuliferous_ has joined #ruby
<adaedra> Maybe show a little more code to have full context
spider-mario has joined #ruby
<CSWookie> That's how I have it. I'm sure it's wrong, though.
<adaedra> But if you do `rescue => ex`, you'll access the exception in `ex`
<CSWookie> Oh, wait, maybe I figured out what the exception type was after all.
<RedNifre> Okay, it looks like it installed without root, but autocomplete says I have bundle23, bundler23. Is that normal or should I have a "bundle" command without a number?
kareeoleez has joined #ruby
<CSWookie> Setting up Vagrantfiles isn't the most friendly way to learn Ruby...
SilverKey has joined #ruby
<RedNifre> Hm, my ~.gem/ruby/2.3/bin/ only contains the numbered bundler thingies so I'll just assume that's how it's supposed to be...
rodfersou has joined #ruby
the_drow has joined #ruby
danostrowski has joined #ruby
A124 has quit [Ping timeout: 246 seconds]
gusrub has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
snath has quit [Ping timeout: 250 seconds]
gusrub has joined #ruby
blaxter has quit [Quit: foo]
tubuliferous_ has quit [Ping timeout: 276 seconds]
<RedNifre> Or should I put a symlink called "bundle" in my ~/bin that points to the bundle23 in .gems?
choke has joined #ruby
startupality has joined #ruby
<Jamo> whoops, wrong but still kinda correct channel... but paste on mistake
certainty has joined #ruby
duckpuppy has joined #ruby
<RedNifre> Do you use ruby for large scale projects or only for smaller things?
ornerymoose has joined #ruby
SilverKey has quit [Quit: Halted.]
<havenwood> RedNifre: Both.
duckpupp1 has quit [Read error: Connection reset by peer]
d5sx43 has joined #ruby
aberen has joined #ruby
snath has joined #ruby
robk has joined #ruby
robk has left #ruby [#ruby]
blaxter has joined #ruby
<RedNifre> hhrrrrrm... now "bundle23 install --without development test" has still the same error, why does bundler try to read /usr/local/lib/ruby/gems/2.3/cache... ?
certainty has quit [Ping timeout: 244 seconds]
<RedNifre> Or does bundler not read the --user-install setting from my .gemrc?
kareeoleez has joined #ruby
dionysus70 has joined #ruby
SilverKey has joined #ruby
giz|work|2 has quit [Ping timeout: 260 seconds]
zeroDi has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
kareeoleez has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
workmad3 has quit [Ping timeout: 276 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
willardg_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d5sx43 has quit [Quit: Leaving...]
wrkrcoop has joined #ruby
christianrojas has quit [Quit: Be back later ...]
DoubleMalt has joined #ruby
ddffg has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<shevy> RedNifre for everything
startupality has quit [Quit: startupality]
christianrojas has joined #ruby
startupality has joined #ruby
monod has joined #ruby
kareeoleez has joined #ruby
monod has quit [Read error: Connection reset by peer]
kirun has joined #ruby
giz|work|2 has joined #ruby
Vingador has quit [Remote host closed the connection]
xue has quit [Ping timeout: 240 seconds]
christianrojas has quit [Ping timeout: 272 seconds]
jordanm has joined #ruby
aep-shoutlet has quit [Ping timeout: 250 seconds]
xue has joined #ruby
nankyokusei has joined #ruby
nadir has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
rueben has joined #ruby
aep-shoutlet has joined #ruby
arlek has joined #ruby
<havenwood> RedNifre: Bundler has silly "remembered" options. Check: bundle config
JJM has joined #ruby
nadir has joined #ruby
choke has joined #ruby
aberen has quit [Ping timeout: 240 seconds]
JJM is now known as Guest22077
jetpackjoe has quit [Quit: WeeChat 1.5]
tubuliferous_ has joined #ruby
Guest22077 has quit [Client Quit]
smathy has joined #ruby
JeremyM_ has joined #ruby
sauvin has quit [Ping timeout: 240 seconds]
<michael_mbp> hi all o/
kareeoleez has joined #ruby
<michael_mbp> If anyone has any leads for any work, would appreciate if you could ping me please http://desilva.io
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
arlek has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
AoN has joined #ruby
johnbat26 has joined #ruby
<AoN> Is this a the right chat to ask a quick question regarding a ruby server?
the_drow has quit [Client Quit]
<havenwood> AoN: ask away!
<havenwood> michael_mbp: hi!
christianrojas has joined #ruby
arlek has joined #ruby
iCHAIT has joined #ruby
iCHAIT has left #ruby [#ruby]
yqt has joined #ruby
giz|work|2 has quit [Ping timeout: 240 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work|2 has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
k3rn31 has joined #ruby
<michael_mbp> hey havenwood
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
get_durnk has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
jancel has quit [Remote host closed the connection]
choke has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
antgel has joined #ruby
SilverKey has quit [Quit: Halted.]
nadir has quit [Ping timeout: 260 seconds]
saneax_AFK is now known as saneax
nadir has joined #ruby
[Butch] has joined #ruby
SilverKey has joined #ruby
whatelse has joined #ruby
minimalism has joined #ruby
whatelse has quit [Client Quit]
ryan_notabot has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
neha- has joined #ruby
e4xit has left #ruby [#ruby]
roamingdog has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
elifoster has quit [Ping timeout: 240 seconds]
choke has joined #ruby
centrx has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
roamingdog has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
rueben has quit [Ping timeout: 250 seconds]
DoubleMalt has joined #ruby
<wrkrcoop> should i say ‘raise an error’ or raise an exception'
sergio_101 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> wrkrcoop: fails
<wrkrcoop> havenwood: which is it
<havenwood> >> fail 'Oh my!'
<ruby[bot]> havenwood: # => Oh my! (RuntimeError) ...check link for more (https://eval.in/590430)
cdg has joined #ruby
<havenwood> wrkrcoop: There's a school of thought that one should `fail` initially and only re-rail with a `raise`.
<havenwood> re-fail*
<havenwood> raise within a fail
<shevy> you refailed there!
<havenwood> shevy: haha
<wrkrcoop> havenwood: makes sense, but should i say ‘raise an error’ or raise an exception
tubuliferous_ has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
spiette has quit [Ping timeout: 260 seconds]
<havenwood> wrkrcoop: raising an error causes an exception i suppose
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
<michael_mbp> havenwood: you can rescue and throw it again (re-raise the exception)
chouhou__ has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
<shevy> we must not teach havenwood - we must teach wrkrcoop
certainty has joined #ruby
saneax is now known as saneax_AFK
<havenwood> "Use fail to indicate failure. Use raise to indicate you are explicitly manipulating exceptions." ~@jimweirich
aberen has joined #ruby
chouhoul_ has quit [Ping timeout: 276 seconds]
christianrojas has quit [Quit: Be back later ...]
QORRiE has joined #ruby
bruce_lee has quit [Remote host closed the connection]
DroidBur_ has quit []
Rodya_ has quit [Remote host closed the connection]
<AoN> havenwood: I'm sorry for the slow reponse. Almost as soon as I posted I got pulled into a phone conference.
<AoN> My question is this: Is it possible to determine is a ruby server is pushing a cached version of a page from the client?
blaxter has quit [Quit: KTHXBYE]
certainty has quit [Ping timeout: 276 seconds]
tubuliferous_ has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
aberen has quit [Ping timeout: 246 seconds]
chip_ has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
CJKinni has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
pawnbox has quit [Remote host closed the connection]
vuoto has joined #ruby
<havenwood> AoN: Depends on how the caching is done. Something along these lines would be pretty telling: HTTP/1.1 304 Not Modified
tubuliferous_ has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
<havenwood> AoN: Say more about what you're doing?
chouhou__ has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
diegoviola has joined #ruby
<havenwood> AoN: Maybe compare a HEAD request for the resource when it is and isn't being cached.
<havenwood> What's the difference?
<havenwood> (In the response.)
troulouliou_div2 has joined #ruby
<AoN> I have a user that is not seeing updated content while everyone else is and it's happening for him from multiple computers/browsers and is persistent through the browser cache clearing.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jaguarmagenta has quit [Ping timeout: 264 seconds]
ta_ has quit [Read error: Connection reset by peer]
dsimon has joined #ruby
<dsimon> i've ran into a curiousity
startupality has quit [Quit: startupality]
<dsimon> why does `x = nil; x[:foo] = :bar` work?
sdothum has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<dsimon> or rather, why doesn't it raise anything? it seems to be ano-op
<havenwood> AoN: Can you find those requests and responses in your logs?
<havenwood> dsimon: What version of Ruby?
<dsimon> 2.3
<havenwood> dsimon: Upgrade to 2.3.1 for the bugfix.
<dsimon> oh, it's a bug?
davedev24 has quit []
<dsimon> ok
<havenwood> >> x = nil; x[:foo] = :bar
<ruby[bot]> havenwood: # => nil (https://eval.in/590437)
<AoN> havenwood: Do you want them from the server or browser? The server is outside my control.
biox has left #ruby ["Leaving"]
<havenwood> dsimon: Yeah, saw it on the bug tracker.
CJKinni has joined #ruby
<havenwood> AoN: Ah, I misunderstood.
<dsimon> havenwood, ah, ok, thanks :-)
<dsimon> i thought it was some obscure feature maybe
<dsimon> though i couldn't think of what help it would be
rueben has joined #ruby
<AoN> havenwood: From the browser, the user is getting 200 OK with Cache-Control: no-cache, no-store, max-age=0, must-revalidate
<havenwood> AoN: Do you have access to the user's computer?
ta_ has joined #ruby
<havenwood> AoN: Seems to not be cached, at least that's what the HTTP header is saying.
<AoN> Everything it should need to force it to pull the most recent content, yet I'm getting the old material. :S
agentmeerkat has joined #ruby
<havenwood> AoN: What type of Ruby app?
<AoN> havenword: I know apache servers can be configured to provide such headers while using server-side caching, but I don't know the first thing about Ruby servers. :S
czerasz has joined #ruby
<AoN> havenword: I don't know about a classification for it. It's a LMS called Canvas.
<AoN> havenword: I'm sorry if I'm not much help, I'm a PHP Developer. Ruby and its server requirements are all foreign to me, but I'm the closet thing to an expert on it that we have. ^^'
<AoN> closest*
Yiota has quit [Ping timeout: 240 seconds]
<havenwood> AoN: Looks like it's a Rails app. You might try asking in the #RubyOnRails channel as well.
<AoN> k
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
<AoN> Thank you for looking into it!
<havenwood> de nada
AoN has left #ruby ["Closing Window"]
zacts has quit [Ping timeout: 260 seconds]
smathy is now known as smathy_afk
jackjackdripper has joined #ruby
johnmilton has joined #ruby
tuelz has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
<tuelz> can bundler pull down branches from local git paths? `gem 'mygem', path: '/some/path', branch: 'a_branch'` ?
anisha has joined #ruby
<dsimon> tuelz, i think bundler treats paths as raw directories, doesn't even care if they're git repos or not
jschoolcraft has joined #ruby
<dsimon> maybe if you used :git with a local repo path?
Rodya_ has joined #ruby
<tuelz> oh ill try that thanks
smathy_afk is now known as smathy
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy is now known as smathy_afk
smathy_afk is now known as smathy
elifoster has joined #ruby
Guest90519 has quit [Remote host closed the connection]
wrkrcoop has quit [Quit: wrkrcoop]
chopin_ has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
cevett has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
choke has joined #ruby
giz|work|2 has quit [Ping timeout: 244 seconds]
dcunit3d has quit [Ping timeout: 264 seconds]
blasius has joined #ruby
chopin_ has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
codecop has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 240 seconds]
giz|work|2 has joined #ruby
chouhoulis has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Yiota has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxs_ has joined #ruby
ocbtec has quit [Quit: leaving]
whathappens has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
whathappens has joined #ruby
al2o3-cr has joined #ruby
Chirimbolito has quit [Quit: Leaving]
govg has quit [Quit: leaving]
Yiota has quit [Ping timeout: 250 seconds]
<RedNifre> Hm, bundle config has a BUNDLE_ORIG_PATH that looks fine I guess, no /usr/local/lib/ruby/gems/2.3/cache there.
chouhoulis has quit [Remote host closed the connection]
symm- has joined #ruby
joonty has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
<RedNifre> That's odd, all the gems needed by bundle install are in ~/.gem/ruby/2.3/cache, so why does bundle successfully put them in the local gem folder but then fails by looking for them in /usr...?
jancel has joined #ruby
danostrowski has joined #ruby
blasius has quit []
<havenwood> RedNifre: Gist the whole `bundle config`?
<RedNifre> okay, one moment...
flashpoint9 has quit [Remote host closed the connection]
jgt3 has joined #ruby
<RedNifre> btw shouldn't I be able to type "bundle" instead of "bundle23", just like I'm able to write "ruby" instead of "ruby23"?
<shevy> what the heck is bundle23
<havenwood> RedNifre: That's another optional RubyGems flag, that your distro saw fit to set.
<RedNifre> it's what autocomplete offers me after I installed the bundle gem.
skweek has joined #ruby
<shevy> how strange
<RedNifre> havenwood what do you mean?
christianrojas has joined #ruby
<shevy> bundler gem itself has these files in the bin/ directory: "bundle", "bundler" and "bundle_ruby"
<shevy> wait
centrx has quit [Quit: centrx]
<shevy> ugh
<shevy> 1.12.5 has ... "rake", "rspec", "rubocop", "with_rubygems"
<shevy> what the :)
aep-shoutlet has quit [Quit: Connection closed for inactivity]
elaptics is now known as elaptics`away
<RedNifre> Which bin? ~/.gem/ruby/2.3/bin only has bundle23 and bundler23.
centrx has joined #ruby
<shevy> lol
<shevy> that is even stranger
<shevy> looks as if some script appended some version to the filename there
<RedNifre> ...and the bundler-1.12.5/bin has what shevy said.
giz|work|2 has quit [Ping timeout: 276 seconds]
<shevy> 1.10.x had the "bundle", "bundler" and "bundle_ruby"
<havenwood> RedNifre: There's a `--format-exectuable` flag that makes the executable filename append the Ruby version.
blackgoat has joined #ruby
<havenwood> RedNifre: It's off by default. You can turn it off with: --no-format-executable
<shevy> ah, what bundler version do you actually have RedNifre?
truenito has quit [Ping timeout: 276 seconds]
<RedNifre> I guess it's 1.12.5 ?
nettoweb has joined #ruby
mistermo_ has joined #ruby
chouhoulis has joined #ruby
<RedNifre> I have the latest OpenBSD which comes with ruby 2.3.0p0 rev 53290 and I just installed bundler without specifying a version.
<havenwood> RedNifre: You may have to tell bundler the --path, so it can "remember" it >.>.
chip_ has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
<havenwood> RedNifre: Bundler *should* work with --user-install but I don't know that it does. Is this a Rails app you're bundling for?
<RedNifre> That's insane, it manages to download the gems into the gem folder in my home, how can it forget that? grrrr
<havenwood> Bundler doesn't really respect RubyGems options. Nor does it use the same flags.
<RedNifre> I think it might be, it's the getontracks.org todo list server.
<RedNifre> Bundler doesn't read the --user-install from the .gemrc? Then why are the required gems in ~/.gem...?
blackmesa has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
the_drow has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
certainty has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
the_drow has joined #ruby
mattwashere has quit [Remote host closed the connection]
<havenwood> RedNifre: So I suppose you could set the $GEM_HOME so Bundler has that to go off of. It's RubyGems installing the gems into the proper location.
<pilne> i'm doing very basic stuff still, and rvm is working quite well for my use case
lightt has joined #ruby
<havenwood> I for one look forward to the post-Bundler days! :)
<havenwood> pilne: Using gemsets?
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
<pilne> yes
mattwashere has joined #ruby
<pilne> but again, i just have a jekyll and global setup right now
<RedNifre> ah, makes sense.
<pilne> and a rails, but i haven't delved in there yet.
wrkrcoop has joined #ruby
<havenwood> These days for non-Rails stuff I just use `gem install -g` with `RUBYGEMS_GEMDEPS=~`. Can't beat shipping with Ruby.
wrkrcoop has quit [Client Quit]
moeabdol has joined #ruby
<RedNifre> sooo... I set the GEM_HOME env variable to $HOME/.gem ?
<pilne> the ubuntu spin i use doesn't ship with ruby, and i like using virtual environments for anything personal, separation of shit is something i'm kinda anal about.
wrkrcoop has joined #ruby
<bougyman> before all these goodies (rubygems, bundler, rvm, rbenv) we just used local rubies and one user per app.
<havenwood> RedNifre: Something like: export GEM_HOME="$HOME/.gem/ruby/2.3.1"
<bougyman> /home/app1 with ruby using --prefix /home/app1, etc.
<bougyman> it was very effective.
certainty has quit [Ping timeout: 276 seconds]
<havenwood> bougyman: chruby to set env vars and what ships with Ruby works well for me :P
<bougyman> havenwood: again, this was before any of these things existed.
<bougyman> ruby 1.6 and below
LoneHerm_ has joined #ruby
<havenwood> RedNifre: chruby is a short shell script that congures the Ruby-related env vars, including $GEM_HOME and setting up $PATH for gem binaries
<havenwood> bougyman: eek
<bougyman> thing is: it still works.
<havenwood> bougyman: <3 RubyGems though :)
<bougyman> though I use rvm these days.
Kneecaps has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<havenwood> RedNifre: But yeah, you can just set PATH, GEM_HOME and friends yourself.
<havenwood> chruby is nice if you want to switch Rubies
blackmesa has joined #ruby
wrkrcoop has quit [Client Quit]
moeabdol has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 240 seconds]
kies has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
CJKinni has quit [Ping timeout: 250 seconds]
<RedNifre> Oh my god, bundler install is outputting green lines!
antgel has quit [Ping timeout: 258 seconds]
maucar has quit [Read error: Connection reset by peer]
<RedNifre> ...and it ended with a red line. hmmm...
* RedNifre reads
<havenwood> christmasy
lightt has quit [Quit: exit()]
<RedNifre> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
lightt has joined #ruby
<RedNifre> Installing libv8 3.16.14.7 with native extensions
the_drow has joined #ruby
<RedNifre> uh... looks like it needs python? How strange.
<havenwood> RedNifre: I usually just install Node.
the_drow has quit [Max SendQ exceeded]
gizmore has joined #ruby
nerium has joined #ruby
<RedNifre> Why do I need python to build a ruby app?
the_drow has joined #ruby
<havenwood> RedNifre: Ask the #RubyOnRails folk! :P
<RedNifre> Heh, what would installing Node accomplish?
<havenwood> RedNifre: v8
<neha-> it needs a javascript runtime
<neha-> some gems need javascript
<havenwood> RedNifre: Node is the most straightforward way to get that runtime ^
<havenwood> RedNifre: Building the libv8 gem does require Python. But you don't need the gem if you have an alternative JavaScript runtime.
<RedNifre> but isn't installing node somewhat tricky itself? It's usually not in repositories, right?
<havenwood> Like Node!
<havenwood> RedNifre: pkg install node-devel
<RedNifre> I actually have python, it's just that it's called python3.5 or python2.7. Guess I'll just alias python to python3.5 and hope for the best?
<havenwood> RedNifre: I'd think it's pretty ubiquitously available by package manager these days.
symm- has quit [Ping timeout: 246 seconds]
<havenwood> RedNifre: I'd just install Node, since v8 isn't large (made to ship in a browser after all) and there's a package for it.
<RedNifre> Will that actually work? If I pkg_add node-devel and run bundle install, it will no longer ask for python?
GodFather has joined #ruby
vuoto has quit [Remote host closed the connection]
ur5us has joined #ruby
sameerynho has quit [Ping timeout: 272 seconds]
mattwashere has quit [Remote host closed the connection]
<RedNifre> Nope, no node-devel for openbsd.
dionysus69 has quit [Ping timeout: 250 seconds]
<havenwood> RedNifre: They mention here how to skip therubyracer if you have Node installed: https://github.com/TracksApp/tracks/blob/2.3_branch/doc/installation.md#install-dependencies
eljimmy has joined #ruby
<havenwood> RedNifre: How about just `node`?
mattwashere has joined #ruby
jenrzzz has joined #ruby
<RedNifre> oh, right. that one exists.
digneety has joined #ruby
<havenwood> (You can remove `therubyracer` from your Gemfile (or the weird subGemfiles they have in this project) or add the `--without therubyracer` to you bundle command)
synthroid has quit []
<RedNifre> Why do some gems need python or javascript? I thought python and javascript were kinda in the same category as ruby?
christianrojas has quit [Quit: Lingo: www.lingoirc.com]
<havenwood> RedNifre: The #rubyonrails channel is probably a better place to ask about why javascript is needed for the asset pipeline.
symm- has joined #ruby
<RedNifre> ah, so it's an unusual thing for a gem to need python and javascript, huh?
<havenwood> RedNifre: As far as depending on other languages as part of a gem's build, it's very rare but authors are free to do whatever.
<havenwood> RedNifre: Very.
bluOxigen has joined #ruby
<havenwood> RedNifre: It's more common for a gem to have C or Java extensions.
David27 has joined #ruby
adamf has left #ruby [#ruby]
miqlas-H has joined #ruby
swills has quit [Ping timeout: 264 seconds]
<havenwood> Less common yet to have a Crystal extension with MRuby embedded in it! :P
skweek has quit [Ping timeout: 244 seconds]
* havenwood plots things
nettoweb has quit [Ping timeout: 272 seconds]
chopin has joined #ruby
<RedNifre> Maybe I should switch to FreeBSD where they have Docker...
chopin is now known as Guest89600
sameerynho has joined #ruby
dcunit3d has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
wrkrcoop has joined #ruby
<adaedra> Calm down havenwood, they just started embedding rust extensions
bluOxigen has joined #ruby
<RedNifre> okay, here goes nothing...
chip_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Kneecaps has left #ruby [#ruby]
mdw has quit [Quit: Sleeping Zzzzz]
Kneecaps has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
<RedNifre> hm, same error. Should I really exclude "therubyracer"? Why not exclude libv8 if I have node? It's still the same error, it can't install libv8 because it wants python or python2 or python (???).
lightt has quit [Remote host closed the connection]
<havenwood> RedNifre: The #RubyOnRails folk will have more experience with this particular rabbit hole on average.
d0nn1e has quit [Ping timeout: 260 seconds]
ornerymoose has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 252 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
agentmeerkat has quit [Ping timeout: 244 seconds]
dcunit3d has quit [Ping timeout: 276 seconds]
<wrkrcoop> i’m trying to run rspec, but when i run it, its complaining because the file its testing doesn’t require a dependency. im not requiring those files because im using LazyRequire to load everything, how can iload all my files before running rspec
<havenwood> RedNifre: libv8 is a dependency of therubyracer
d0nn1e has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
sandstrom has joined #ruby
Kneecaps has left #ruby [#ruby]
chouhoulis has quit []
anisha has quit [Quit: Leaving]
eljimador has joined #ruby
whathappens has joined #ruby
Coldblackice has joined #ruby
aberen has joined #ruby
sandstrom has quit [Ping timeout: 272 seconds]
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
Es0teric has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
<wrkrcoop> how do i load all my files before running rspec?
<wrkrcoop> LazyRequire.require_all('../apps/asdfasdfad/apis/*.rb')
<wrkrcoop> doesn’t work
nankyokusei has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
arooni has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Max SendQ exceeded]
flashpoint9 has joined #ruby
kies has quit [Ping timeout: 252 seconds]
<RedNifre> havenwood if libv8 is only a dependency of therubyracer, why does bundler then try to install libv8 when I add therubyracer to --without?
pawnbox has quit [Remote host closed the connection]
<havenwood> RedNifre: Maybe they have it listed in the Gemfile explicitly as well? It's a bit hard to tell with the crazy Gemfile.d dir they have.
Dysp has joined #ruby
<Dysp> Mjello!
<RedNifre> Also, it truly is a rabbit hole, after I symlinked python and python2 I now get an error that I don't have a compiler that is officially supported by v8 because I have 5.9 and they want 4.4 or something. I'll check the rails channel...
jetpackjoe has joined #ruby
<havenwood> Dysp: hi!
<RedNifre> Hmpf, maybe I should give up on tracks and look for something else. Can anyone recommend a good GTD server software with a XML or JSON API? ;)
chouhoulis has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
<Dysp> I want to create a hash with an undefined number of elements (keys and corresponding value). It is based on elements in an array, which are iterated and then put into a hash. My problem is trying to figure out how to create a key automatically, lets call it r and then the number in the loop. How would one come around doing this?
flashpoint9 has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
juanfra_ has quit [Quit: juanfra_]
mistermocha has joined #ruby
<Dysp> Like r1 => [data], r2 => [data] etc.
neanderslob has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
juanfra has joined #ruby
<Dysp> Problem is; I don't know how many "r's" there will be.
hs366 has quit [Read error: Connection reset by peer]
<havenwood> Dysp: Show an example of the Array you're starting with and the Hash you'd like to end up with? Maybe a Gist?
hs366 has joined #ruby
<Dysp> Just did.
<Dysp> It's not more complex than that.
neanderslob has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<Dysp> [data1, data2, data3] should become {r1 => [data1], r2 => [data2], r3 => [data3] }
duckpuppy has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
digneety has quit [Quit: digneety]
<RedNifre> Strange... removing therubyracer from the Gemfile seems to do the trick. I wonder why --without therubyracer didn't work. Oh well.
workmad3 has joined #ruby
chip_ has quit [Ping timeout: 250 seconds]
<havenwood> >> %w[:data1 data2 data3].each.with_index(1).map { |data, index| ["r#{index}", data] }.to_h
<ruby[bot]> havenwood: # => {"r1"=>":data1", "r2"=>"data2", "r3"=>"data3"} (https://eval.in/590469)
<havenwood> Dysp: ^
jenrzzz has joined #ruby
<Dysp> That was exactly what I was looking for and thinking I should do, but couldn't figure out!
<Dysp> Thank you so much.
<havenwood> Dysp: You're welcome.
Gasher has joined #ruby
<Dysp> havenwood: One thing; what does the 1 do in each.with_index?
<Dysp> Oh. Got it.
<Dysp> Sets the offset.
<Dysp> thx.
the_drow has quit [Read error: Connection reset by peer]
<RedNifre> Ah, it's getting late. Bundler succeeded, but the installation manual has many more steps so I'll continue tomorrow. Thank you very much for your help, havenwood!
<wrkrcoop> anyone know how i can load all my files when i run rspec?
<havenwood> RedNifre: You're welcome, good luck!
agentmeerkat has joined #ruby
<RedNifre> Thanks, good night.
certainty has joined #ruby
firstdayonthejob has joined #ruby
RedNifre has quit [Quit: ZZ]
tubuliferous_ has joined #ruby
the_drow has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
the_drow has quit [Max SendQ exceeded]
skade has joined #ruby
Sembei has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
Madplatypus has joined #ruby
xlegoman has quit [Quit: Leaving]
the_drow has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
lightt has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
moeabdol has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
pwnd_nsfw has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
madgen has joined #ruby
the_drow has joined #ruby
jaguarmagenta has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
roamingdog has joined #ruby
Neon has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
lightt has quit [Remote host closed the connection]
<Neon> Let's say I want to make a module Foo for including in other scripts. That module includes a module Bar, because it needs it, but a common use case is that a script includes Bar and Foo. If such a script includes Bar, then Foo, Foo wouldn't actually need to include Bar as well, would it? How can I avoid that? Should I avoid double include at all?
futilegames has joined #ruby
tubuliferous_ has joined #ruby
johnbat26 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Neon> I tried include?(Bar), but that just gives me false, even if the including script includes Bar before that.
futilegames has quit [Client Quit]
Regulati_ has joined #ruby
swills has joined #ruby
diegoaguilar has joined #ruby
SilverKey has quit [Quit: Halted.]
agent_white has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
the_drow has quit [Read error: Connection reset by peer]
DoubleMalt has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<shevy> I don't know what your question is but you are asking for some conditional include right?
<Neon> shevy: Kind of. Like an include_once
<jhass> you probably should include less and instead move stuff to classes
diegoviola has quit [Quit: WeeChat 1.5]
* jhass never was a fan of include Foo into the toplevel for anything
<Neon> That's funny. I actually started using modules, because I read everywhere that modules are cool and flexible and I should use them. :/
the_drow has joined #ruby
<shevy> you can try to ask .ancestors whether, and if, something was already included
spiette has joined #ruby
<jhass> if you include them into the toplevel you're just trying to hide that you're still programming in a procedural style
the_drow has quit [Max SendQ exceeded]
JeremyM_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Neon> It's a Rakefile extension, so it is in fact procedural programming.
vjacob has joined #ruby
<jhass> modules are cool, but not for grouping your procedural methods just visually
<jhass> I have many rake tasks that just task :foo; Foo.new.run
<Neon> The plan is to just include the module in the Rakefile, then use its methods.
the_drow has joined #ruby
<Neon> I couldn't figure out how to access the Rake environment from classes without having to add much technical code again. After all it should be minimal and quick to use.
<Neon> But when I include the module it can just use the Rake methods.
Hiryu has joined #ruby
<jhass> anyway, to answer the question, you cam define def self.included(base) in module Foo; then check base.ancestors for Bar and call base.send(:include, Bar) if it's not there already
SilverKey has joined #ruby
<jhass> that'll prevent a double include on include Bar; include Foo; but not on include Foo; include Bar;
<shevy> wow
fflush has joined #ruby
<shevy> you managed to use the word include 5 times there
<Hiryu> fflush: hi!
<fflush> hi
Hiryu was kicked from #ruby by fflush [Hiryu]
Hiryu has joined #ruby
<Neon> Apart from that, there is no way to get the actual Rake object somehow, is there?
gizless has joined #ruby
<jhass> "Rake object"?
gizmore has quit [Ping timeout: 264 seconds]
postmodern has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
<Neon> To get an object for calling the Rake methods like rule or task.
dcunit3d has quit [Ping timeout: 244 seconds]
<Neon> Ah, no, I remember something. They are private anyway. Or protected.
<Hiryu> mwuhahaha
the_drow has joined #ruby
Dysp has quit [Quit: Page closed]
vjacob has quit [Ping timeout: 276 seconds]
<Neon> It appears to me as if Rake was not designed to be extended easily with functions that just serve as kind of rule generators or the like, is it?
<Hiryu> :(
shinnya has quit [Ping timeout: 272 seconds]
<shevy> Neon I think Rake just is similar to make with ruby-syntax
<Hiryu> I'm not a bot.
smathy is now known as smathy_afk
<havenwood> Hiryu: Sounds like what a bot would say.
<Hiryu> havenwood: what is this? The turing test?
whathappens has quit [Quit: Leaving...]
jxs_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
the_drow has quit [Read error: Connection reset by peer]
<Neon> shevy: Nah, it can do much more than make. Or at least much easier.
elektronaut has quit [Quit: ZNC - http://znc.in]
<Neon> Somehow, in the Foo module, ancestors just contains Foo.
<Neon> Even if the includer has Bar included beforehand.
SilverKey has quit [Quit: Halted.]
<Hiryu> fflush: thanks!
edwardly has quit [Ping timeout: 258 seconds]
the_drow has joined #ruby
centrx has quit [Quit: centrx]
<Radar> How about no?
<Neon> Maybe it's not worth the trouble at all. Let's just include it twice.
<Hiryu> ...
kareeoleez has quit [Remote host closed the connection]
<Radar> Hiryu: I don't know who you are.
diegoviola has joined #ruby
troulouliou_div2 has joined #ruby
* Hiryu sighs
<Radar> Hiryu: ID plz.
fflush has joined #ruby
<Hiryu> ...
<Neon> IRC Channel Operator rank - the best nerd toy since 1930.
<fflush> :)
whathappens has joined #ruby
<Radar> Hiryu: Last chance.
<fflush> Radar: ?
<Radar> fflush: Who is Hiryu?
<Radar> fflush: Why do you op randos?
<fflush> lastr chance for what ?
postmodern has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
biberu has quit []
<Hiryu> because I like Ruby.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mattwashere has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
oncall-pokemon has joined #ruby
the_drow has joined #ruby
<havenwood> Hiryu: That's what brings us here. Have any Ruby to share or any questions? :-)
czerasz has quit [Read error: Connection reset by peer]
<Hiryu> I was invited by the channel owner
startupality has joined #ruby
czerasz has joined #ruby
<havenwood> Hiryu: Welcome!
mattwashere has quit [Ping timeout: 240 seconds]
<havenwood> (However you came.)
<fflush> we will make #ruby great again
fflush has quit [Quit: bye]
jenrzzz has quit [Ping timeout: 276 seconds]
<Radar> !mute fflush
TomyLobo has quit [Ping timeout: 264 seconds]
Neon has quit [Quit: Leaving]
ta_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
lucky_rem has joined #ruby
<Hiryu> havenwood: thanks
eljimmy has quit [Quit: This computer has gone to sleep]
voodoofish430 has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
<lucky_rem> So I wrote a ruby executable. If I send it to someone without ruby, will they be able to run it if I don't write anything else except "#!/usr/bin/env ruby" at the top?
the_drow has joined #ruby
kies has joined #ruby
<havenwood> lucky_rem: Nope.
the_drow has quit [Max SendQ exceeded]
<Papierkorb> lucky_rem: they won't be able to run it without ruby at all, no matter what you write at the top
<lucky_rem> @havenwood ah poop, so they have to have ruby installed then?
the_drow has joined #ruby
<havenwood> lucky_rem: /usr/bin/env ruby #=> env: ruby: No such file or directory
flashpoint9 has joined #ruby
<havenwood> lucky_rem: You could ship it with something a la Traveling Ruby: http://phusion.github.io/traveling-ruby/
[Butch]_ has joined #ruby
<lucky_rem> havenwood: ah so they won't have that env and therefore it doesn't know what to do with it
<havenwood> lucky_rem: yup
yfeldblum has quit [Remote host closed the connection]
[Butch]_ has quit [Client Quit]
<lucky_rem> awesome, thanks for the advice - I'll take a look at traveling-ruby too
flashpoint9 has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 258 seconds]
<lucky_rem> Papierkorb: thanks for that, helped put a nail in that question
[Butch] has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
rffleiae has joined #ruby
Guest89600 has quit [Ping timeout: 252 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
the_drow has quit [Read error: Connection reset by peer]
mdw has joined #ruby
al2o3-cr has quit [Ping timeout: 264 seconds]
rueben has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
sepp2k has quit [Quit: Leaving.]
gizless has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
jancel has quit [Remote host closed the connection]
the_drow has quit [Max SendQ exceeded]
rodfersou has quit [Quit: leaving]
the_drow has joined #ruby
dcunit3d has joined #ruby
rffleiae has quit [Read error: Connection reset by peer]
rffleiae has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
nettoweb has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
certainty has joined #ruby
kobain has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
centrx has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
arooni has quit [Ping timeout: 250 seconds]
aberen has joined #ruby
neha- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 258 seconds]
moeabdol has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
sami has quit [Ping timeout: 250 seconds]
mrmortondk has joined #ruby
centrx has quit [Ping timeout: 240 seconds]
aberen has quit [Ping timeout: 250 seconds]
ta_ has quit [Read error: Connection reset by peer]
the_drow has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
voodoofish430 has joined #ruby
arooni has joined #ruby
<wrkrcoop> how do i test that my error is getting rescued? can’t find anything on the internet
kirun has quit [Quit: Client exiting]
ta_ has joined #ruby
<jhass> expect { ... }.not_to raise_error
edwinvdgraaf has joined #ruby
the_drow has joined #ruby
biox has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
flashpoint9 has joined #ruby
<wrkrcoop> jhass: oh ...
flashpoint9 has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 250 seconds]
<wrkrcoop> jhass: really? ok
flashpoint9 has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
tlaxkit has joined #ruby
nofxx has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Remote host closed the connection]
jschoolcraft has quit [Quit: peace]
blackgoat has quit [Quit: WeeChat 1.5]
flashpoint9 has joined #ruby
blackgoat has joined #ruby
arooni has quit [Ping timeout: 250 seconds]
zenlot has joined #ruby
zenlot6 has quit [Ping timeout: 252 seconds]
eljimmy has joined #ruby
flashpoint9 has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 264 seconds]
madgen has joined #ruby
danostrowski has joined #ruby
last_staff has quit [Quit: last_staff]
sp4rrow has joined #ruby
ocbtec has joined #ruby
gnufied has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
SilverKey has joined #ruby
cdg has joined #ruby
tessi_zz has joined #ruby
ocbtec has quit [Quit: leaving]
al2o3-cr has quit [Quit: WeeChat 1.5]
mattwashere has joined #ruby
startupality has quit [Quit: startupality]
workmad3 has quit [Ping timeout: 258 seconds]
saneax_AFK is now known as saneax
cdg has quit [Ping timeout: 276 seconds]
ta_ has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sash_ has quit [Quit: WeeChat 1.1.1]
yfeldblu_ has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
lightt has joined #ruby
arooni has joined #ruby
Gasher^ has joined #ruby
SenpaiSilver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ta_ has joined #ruby
Gasher has quit [Ping timeout: 258 seconds]
SenpaiSilver_ has quit [Quit: Leaving]
nankyokusei has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
lacuna has joined #ruby
GGMethos has quit [Quit: WeeChat 1.1.1]
aberen has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
augcesar has quit [Quit: Connection closed for inactivity]
chouhoulis has quit []
millerti has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
jgt3 has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jancel has joined #ruby
cschneid_ has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
lightt has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 246 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
tildes has joined #ruby
wrkrcoop has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 250 seconds]
Gasher^ has quit [Quit: Leaving]
superlou_ has joined #ruby
elifoster has quit [Ping timeout: 246 seconds]
superlou has quit [Read error: Connection reset by peer]
Asher has joined #ruby
smathy_afk is now known as smathy
GGMethos has joined #ruby
spider-mario has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
koochdog has joined #ruby
<koochdog> Can anyone point me in the right direction on testing threaded code?
danostrowski has joined #ruby
<koochdog> For example, I have a scheduler thread that polls from a queue and then offloads the work to a threadpool of worker threads
banister has joined #ruby
QORRiE has quit [Quit: Leaving]
certainty has joined #ruby
sp4rrow has joined #ruby
SenpaiSilver has quit [Client Quit]
lightt has joined #ruby
Uranio has joined #ruby
mattwashere has quit [Remote host closed the connection]
lightt has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
n_blownapart has quit []
mattwashere has joined #ruby
moeabdol has joined #ruby
arooni has quit [Ping timeout: 250 seconds]
certainty has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
blackmesa has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
Uranio has quit [Quit: Leaving]
the_drow has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
the_drow has quit [Max SendQ exceeded]
wrkrcoop has quit [Quit: wrkrcoop]
the_drow has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
tildes has quit [Read error: Connection timed out]
ddffg has quit [Quit: Leaving]
the_drow has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
tildes has joined #ruby
snath has joined #ruby
<jhass> there's no universal solution, it highly depends on what you want to test and how it's implemented
tokynet has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
smathy is now known as smathy_afk
mistermocha has joined #ruby
<koochdog> jhass: thanks, I'm just looking for anything to me started at this point
moeabdol has joined #ruby
<jhass> start with choosing a testing framework and learning how to test regular single threaded code
wrkrcoop has joined #ruby
the_drow has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<koochdog> Yeah, I started using rspec, and tested single threads is pretty easy for me
the_drow has quit [Max SendQ exceeded]
<koochdog> The hard part is I feel like I lose visiblity when the thread starts so I'm not sure how to test that
mistermocha has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
mistermocha has joined #ruby
koooge has joined #ruby
ornerymoose has joined #ruby
<jhass> I would try to define finite, quickly executing testcases, probably a bit higher level than regular unit tests
<jhass> and then it stays at the regular, setup, execute, assert desired result
Rodya_ has joined #ruby
<koochdog> ex: scheduler = Scheduler.new; scheduler.start; .start creates the thread and loops polling for jobs from the queue
whathappens has quit [Quit: Leaving...]
<jhass> how do you regularly terminate it?
<jhass> ideally you would have a kill job
mistermo_ has joined #ruby
<koochdog> yeah i can exit the schduler
<koochdog> so each scheduler object has its own threadpool of worker threads
<jhass> so start it, push some jobs, push the kill job, join it, assert it's no longer running and has done all its work properly
<koochdog> and when it finds a job it sends it off to the threadpool
<koochdog> I was thinking something like add a job to the queue, start the scheduler, sleep for 1second, see if job ran
<koochdog> just felt hacky
<jhass> that's definitely racy and inappropriate
lightt has joined #ruby
lightt has quit [Max SendQ exceeded]
<koochdog> yeah
misterm__ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
lightt has joined #ruby
<koochdog> but without something like futures I'm not sure how to test that
<jhass> you'll need a way to join all threads
mistermocha has quit [Ping timeout: 250 seconds]
<jhass> additionally to sending them a message to kill themselves
Rodya_ has quit [Ping timeout: 250 seconds]
the_drow_ has joined #ruby
<koochdog> why the kill if it's joining?
mistermocha has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
rffleiae has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
<jhass> I thought they loop endlessly?
<koochdog> good point ;-)
rffleiae has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
mistermo_ has joined #ruby
<koochdog> seems like even with killing and joining there is no guarantee that the racyness is gone
<koochdog> (if thread gets killed before it has scheduled work)
jgt3 has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
<jhass> thus kill job
Rodya_ has joined #ruby
<koochdog> yeah but what is even being tested at that point
mistermo_ has quit [Read error: Connection reset by peer]
smathy_afk is now known as smathy
<jhass> it does gets into being an integration test, yes
roamingdog has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<koochdog> yea that'd be like a feature spec i think
CloCkWeRX has joined #ruby
rueben has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
rffleiae has quit [Read error: Connection reset by peer]
diegoviola has quit [Read error: Connection reset by peer]
rffleiae has joined #ruby
the_drow_ has quit [Read error: Connection reset by peer]
mdw has joined #ruby
the_drow__ has joined #ruby
roamingdog has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
Ropeney has joined #ruby
mistermocha has joined #ruby
ElFerna has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
Amoeba has joined #ruby
marr has quit [Ping timeout: 244 seconds]
mistermo_ has joined #ruby
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
spiette has quit [Quit: :qa!]
mistermocha has quit [Ping timeout: 250 seconds]
RickHull has joined #ruby
mistermocha has joined #ruby
barajasfab has quit [Quit: Ex-Chat]
roamingdog has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
LoneHermit has quit [Ping timeout: 264 seconds]
tildes has quit [Read error: Connection timed out]
mistermocha has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
jancel has quit [Remote host closed the connection]
rueben has quit [Ping timeout: 246 seconds]
ornerymoose has quit [Quit: ornerymoose]