apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nateberkopec has quit [Quit: Leaving...]
dcope has joined #ruby
<dcope> is there a clever way to only insert a hash key / value if the value is not nil?
<dcope> other than wrapping it in a conditional ?
<volty> h[k]||=
<volty> ops
<volty> sorry :)
<dcope> volty: can that be done using the shorthand constructor? hash = {:foo => bar} ?
<dcope> oh
sam113101 is now known as sam113101_afk
sdouglas has quit [Quit: sdouglas]
PhilK_ has joined #ruby
<volty> h[k] &&=
coderhs has joined #ruby
PhilK has quit [Ping timeout: 264 seconds]
<volty> no
nateberkopec has joined #ruby
verazabeida has quit [Remote host closed the connection]
verazabeida has joined #ruby
DonRichie has quit [Ping timeout: 245 seconds]
verazabeida has quit [Read error: No route to host]
nateberkopec has quit [Client Quit]
havenwood has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
erinb has quit [Quit: My MacBook has gone to sleep. ZzZzZz…]
twoism has joined #ruby
havenwood has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
dayepa has joined #ruby
<volty> how that you need that in a shorthand constructor ?
bklane_ has joined #ruby
<havenwood> &&= seems right to me, caveat being false as well as nil
samsonasu has joined #ruby
jeskola has joined #ruby
bklane has quit [Read error: Connection reset by peer]
<bnagy> smells like weird logic though
<volty> 'no' was to " can that be done using the shorthand constructor? hash = {:foo => bar} ? "
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> quite weird
swordsmanz has joined #ruby
Beoran_ has joined #ruby
SeySayux has quit [Ping timeout: 268 seconds]
<volty> if he has something to interpret then he'd better use other means than that of shorthand
deens has joined #ruby
SeySayux has joined #ruby
mixel has quit [Quit: mixel]
jeskola has quit [Quit: Leaving]
Beoran__ has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
<volty> yes, I forget about that caveat, for granted that non bool values
Lewix has joined #ruby
alx- has quit [Quit: Linkinus - http://linkinus.com]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
petey_ has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo has quit [Ping timeout: 265 seconds]
Lewix has quit [Ping timeout: 245 seconds]
gyre007 has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 248 seconds]
heidi has quit [Ping timeout: 248 seconds]
heidi has joined #ruby
newbiehacker has quit [Ping timeout: 248 seconds]
sam113101_afk is now known as sam113101
mrsolo has quit [Quit: This computer has gone to sleep]
ehc has joined #ruby
failshell has joined #ruby
theoretick has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Ahti333 has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
Skylab has joined #ruby
t_p has joined #ruby
ananthakumaran has joined #ruby
havenwood has quit [Remote host closed the connection]
t_p has quit [Client Quit]
micho has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 248 seconds]
v0n has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
astrobunny has joined #ruby
vipjun has joined #ruby
bklane_ has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
Davey has joined #ruby
havenwood has joined #ruby
orien has joined #ruby
pinage404 has quit [Ping timeout: 248 seconds]
ssvo has joined #ruby
zz_michael_mbp is now known as michael_mbp
petey_ has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
petey_ has joined #ruby
jonahR has joined #ruby
bionoid has joined #ruby
hogeo has joined #ruby
heftig has quit [Quit: Quitting]
gyre007 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
shevy has quit [Read error: Operation timed out]
AlSquire has quit [Quit: This computer has gone to sleep]
michael_mbp is now known as zz_michael_mbp
roolebo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
bionoid has quit [Read error: No route to host]
ntzrmtthihu777 has joined #ruby
narcan has joined #ruby
tkuchiki has joined #ruby
ananthakumaran has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
bionoid has joined #ruby
tkuchiki has joined #ruby
twoism_ has joined #ruby
t_p has joined #ruby
blastDAbLast has joined #ruby
_dma has quit []
Tearan has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
roolebo has quit [Ping timeout: 272 seconds]
<Tearan> can someone tell me why I'm getting an undeclared variable error in my Proc? https://gist.github.com/fmorales/4cbb29a4dca6ce1f7d56
gyre007 has quit [Ping timeout: 248 seconds]
alexju has joined #ruby
twoism has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
twoism_ has quit [Ping timeout: 256 seconds]
<havenwood> Tearan: You forgot the do/end block after #each: under_100 = Proc.new{ages.each { |x| x < 100 } }
sevenseacat has joined #ruby
Bry8Star{T2 has joined #ruby
<Tearan> Umm? It's wrapped in {}
<Tearan> OH!
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<Tearan> Thank you
<havenwood> Tearan: My usual mistake is I do it double, like `do {` :P
alexju has quit [Ping timeout: 248 seconds]
<havenwood> Tearan: np
DropsOfSerenity has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
dhruvasagar has joined #ruby
zz_tsykoduk is now known as tsykoduk
<Tearan> Now I just need to figure out the math problem
lyanchih has joined #ruby
shevy has joined #ruby
postmodern has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
lembacon has joined #ruby
kazuuu has joined #ruby
deens has quit [Remote host closed the connection]
lukec has joined #ruby
nari has joined #ruby
twoism has joined #ruby
Ahti333 has quit [Quit: Computer has gone to sleep.]
Ox6abe_ has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
Ox6abe has joined #ruby
DanKnox is now known as DanKnox_away
_dma has joined #ruby
Ox6abe_ has joined #ruby
jhn has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
kazuuu has quit [Remote host closed the connection]
sam113101 is now known as sam113101_afk
blastDAbLast has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
lfox has joined #ruby
kazuuu has joined #ruby
Ox6abe has quit [Ping timeout: 272 seconds]
mojjoujo has quit [Ping timeout: 248 seconds]
kazuuu has quit [Ping timeout: 272 seconds]
ner0x has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 272 seconds]
weems has quit [Read error: Connection reset by peer]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
volty has quit [Quit: Konversation terminated!]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
weems has joined #ruby
samsonasu has quit [Quit: samsonasu]
narcan has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
twoism_ has joined #ruby
theoretick has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
hamakn has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 240 seconds]
_dma has quit [Remote host closed the connection]
theoretick has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 272 seconds]
blischalk has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
T__T has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
twoism has quit [Ping timeout: 256 seconds]
Zesty has joined #ruby
twoism_ has quit [Ping timeout: 256 seconds]
dorei has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
rgbdev has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
hamakn has joined #ruby
kazuuu has joined #ruby
astrobunny has joined #ruby
DanKnox_away is now known as DanKnox
Xiti` has joined #ruby
Ox6abe_ has quit [Remote host closed the connection]
matchaw_ has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
xxpor_ has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
diegoviola has joined #ruby
Ox6abe has joined #ruby
justinmc_ has joined #ruby
justinmc_ has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
xxpor has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 248 seconds]
matchaw has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has joined #ruby
Ox6abe has quit [Ping timeout: 256 seconds]
kazuuu has quit [Remote host closed the connection]
kazuuu has joined #ruby
Domon has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
sam113101_afk is now known as sam113101
kazuuu has quit [Ping timeout: 245 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
sam113101 is now known as sam113101_afk
sam113101_afk is now known as sam113101
burgess has joined #ruby
astrobunny has joined #ruby
nisstyre has quit [Quit: Leaving]
ZhBPi has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
<csffsc_> hey
endash has quit [Quit: endash]
DropsOfSerenity has joined #ruby
i_s has joined #ruby
havenwood has joined #ruby
fuhgeddaboudit has joined #ruby
jonathanwallace has quit [Ping timeout: 248 seconds]
samsonasu has joined #ruby
rorra has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
heftig has joined #ruby
Xaitec has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
Monie has quit [Ping timeout: 272 seconds]
blischalk has joined #ruby
nari has quit [Ping timeout: 256 seconds]
Xaitec has quit [Remote host closed the connection]
marcdel has joined #ruby
marcdel_ has joined #ruby
varfoo has joined #ruby
marcdel_ has quit [Max SendQ exceeded]
T__T has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
stkowski has quit [Quit: stkowski]
gja has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
rm_dro has joined #ruby
xxpor__ has joined #ruby
<csffsc_> Anyone around? I need some advice on converting my procedural (5-6 function) script into an object oriented setup
alexju has joined #ruby
petey_ has quit [Remote host closed the connection]
Zesty has joined #ruby
Zesty has quit [Client Quit]
mobileblue has quit [Ping timeout: 248 seconds]
xxpor_ has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
mobileblue has joined #ruby
Zesty has joined #ruby
justsee has joined #ruby
blischalk has quit [Ping timeout: 272 seconds]
Monie has quit [Ping timeout: 245 seconds]
justsee has quit [Changing host]
justsee has joined #ruby
kil0byte has joined #ruby
Gooder has quit [Remote host closed the connection]
T__T has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
Koshian has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
i_s has joined #ruby
Skylab has quit [Quit: Skylab]
Aryasam has joined #ruby
Monie has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
reppard has joined #ruby
<reppard> hello all
Koshian has joined #ruby
<reppard> i am a chronic non tester trying to reform my evil ways
macuser has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
gja has quit [Quit: This computer has gone to sleep]
<reppard> could someone give me a recommendation on stubbing TCPSocket
macuser is now known as Guest96218
aspires has joined #ruby
Tarential has quit [Excess Flood]
Guest96218 has quit [Remote host closed the connection]
<reppard> i have a class that opens a TCPSocket object and I would like to test without actually hitting tcpsockets constructor method
Tarential has joined #ruby
i_s_ has joined #ruby
<reppard> i am going at this with minitest
i_s has quit [Ping timeout: 256 seconds]
<csffsc_> cool
<csffsc_> I haven't done what you are trying to do..
<csffsc_> but I'm learning OO, trying to convert a 7-8function script
|jemc| has quit [Ping timeout: 256 seconds]
zz_tsykoduk is now known as tsykoduk
Davey has quit [Quit: Computer has gone to sleep.]
<reppard> csffsc_: good luck =)
<csffsc_> not particularly sure how to group things - some variables need to be made availiable
<csffsc_> to other functions
<csffsc_> yeah
<csffsc_> I'm reading a pragmatic object oriented design book
<reppard> i recommend the ruby pickaxe book
<csffsc_> ah yes, only have the electronic copy
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<reppard> i read the whole chapter on testing today but the examples are really simplistic. i don't really know how to apply that info to more complicated classes that construct standard lib objects
<reppard> which i guess...could me i am going at the design all wrong
osvico has joined #ruby
ChronocityLC has joined #ruby
<reppard> i have a SocketReader class. In the initialize method i set @socket = TCPSocket.new(host,port)
<reppard> which will obviously try to open a socket
<reppard> how do i mock or stub that? =)
marcdel has joined #ruby
habanany has joined #ruby
habanany has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
<csffsc_> uh
rm_dro is now known as obs
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
<csffsc_> along those lines?
Lewix has quit [Remote host closed the connection]
nkts has quit [Quit: x]
radic has joined #ruby
Lewix has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
stkowski has joined #ruby
lfox has quit [Quit: ZZZzzz…]
DonRichie has quit [Quit: Verlassend]
<reppard> well, i know how to use sockets. i am trying to test classes that open sockets...without having to hit an actual server or open a local server
<csffsc_> yeah, understand why you want to test it, however I dont have any experience with it
radic_ has quit [Ping timeout: 272 seconds]
<csffsc_> I'm sure there are gems that automate network / socket testing
tsykoduk is now known as zz_tsykoduk
<reppard> i guess i sorta just wanted to take the pure approach and stick with testing everything with minitest
gyzmodo has joined #ruby
|jemc| has joined #ruby
nari has joined #ruby
Aryasam has quit [Ping timeout: 265 seconds]
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
nari has quit [Ping timeout: 240 seconds]
i_s_ has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
<csffsc_> any luck?
araujo has quit [Quit: Leaving]
<reppard> nah
<reppard> not yet
<reppard> haha
<reppard> i mean
<reppard> i could easily create a port to connect to locally
<reppard> something just feels hacky about that
T__T has joined #ruby
Bira has joined #ruby
<jrobeson> reppard, i'm only familiar with web based service testing atm in ruby :(
astrobunny has joined #ruby
Bira has quit [Remote host closed the connection]
<jrobeson> like via webmock or similiar
einarj has quit [Ping timeout: 240 seconds]
<reppard> jrobeson: might endup using something like that
<csffsc_> does that code help
vlad_starkov has joined #ruby
<reppard> csffsc_: i saw that gist =)
<reppard> only thing is that required mock
<csffsc_> haha yeah.. good ol google
<jrobeson> well i think you do need to mock it.. or mirror it
<jrobeson> or rather.. and mirror it..
<jrobeson> probably would be best to look up some existing software
<reppard> yeah
juarlex_ has joined #ruby
<reppard> minitest has Minitest::Mock
noop has joined #ruby
<jrobeson> oh.. you can't just use pure minitest i doubt
<reppard> i didn't see any implementations that seemd similar to what i want to do
<jrobeson> if you wanna do it right
<jrobeson> its' like how is minitest gonna help you with something that say timecop does
Aryasam has joined #ruby
<jrobeson> it has the name mini for a reason
_br_ has quit [Ping timeout: 248 seconds]
<reppard> very true
Hganavak has joined #ruby
<jrobeson> although it would be nicer if it had a plugin framework
ShinySides has quit [Ping timeout: 248 seconds]
samuelkadolph has quit [Ping timeout: 248 seconds]
mattyohe has quit [Ping timeout: 248 seconds]
cool has quit [Ping timeout: 248 seconds]
pleal_ has joined #ruby
randym_ has quit [Ping timeout: 248 seconds]
wereHamster has quit [Ping timeout: 248 seconds]
Gnubie_ has quit [Read error: Connection reset by peer]
<reppard> jrobeson: its ruby, you could just extend the class =)
Gnubie has joined #ruby
<jrobeson> not for my own personal use.
pleal has quit [Ping timeout: 248 seconds]
BombStrike has quit [Ping timeout: 248 seconds]
juarlex has quit [Ping timeout: 248 seconds]
<jrobeson> and personally that's not my favorite feature of ruby anyways
wereHamster has joined #ruby
mattyohe has joined #ruby
cool has joined #ruby
Gnubie is now known as Guest31084
cool has quit [Changing host]
cool has joined #ruby
cool has joined #ruby
cool has quit [Changing host]
randym_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
BombStrike has joined #ruby
_br_ has joined #ruby
ShinySides has joined #ruby
<reppard> aw come on
<reppard> who doesn't want to redefine method missing
<reppard> ??
drumsrgr8forn8 has joined #ruby
zeade has joined #ruby
samuelkadolph has joined #ruby
noop has quit [Ping timeout: 265 seconds]
peterdecroos has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
joast has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
rorra has quit [Quit: rorra]
reppard has quit [Quit: leaving]
intuxicated has quit [Ping timeout: 272 seconds]
burgess has quit [Quit: ^zzz]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_michael_mbp is now known as michael_mbp
estebanrules has joined #ruby
<estebanrules> l
Aryasam has quit [Ping timeout: 272 seconds]
pleal_ has quit [Remote host closed the connection]
pleal has joined #ruby
estebanrules has quit [Read error: Connection reset by peer]
estebanrules has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 265 seconds]
mrsolo has joined #ruby
pleal has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
soba has joined #ruby
astrobun_ has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ssvo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
marcdel has joined #ruby
vlad_starkov has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
fridim_ has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
n_blownapart has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
yano has quit [Read error: Connection reset by peer]
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby
aryaching has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
IceDragon has quit [Quit: Space~~~]
fuhgeddaboudit has joined #ruby
lyanchih has quit [Quit: lyanchih]
yano has joined #ruby
tjad has joined #ruby
joast has joined #ruby
Deele has joined #ruby
Nogbit has joined #ruby
sorbo_ has quit [Quit: sorbo_]
mikemac has quit [Remote host closed the connection]
s3itz has joined #ruby
mikemac has joined #ruby
Michael_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
Davedo has quit [Ping timeout: 264 seconds]
pranny has quit [Quit: Leaving.]
scottstamp is now known as zz_scottstamp
Vivekananda has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
BizarreCake has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deception has joined #ruby
sepp2k has quit [Read error: Operation timed out]
tomzx_mac has quit [Ping timeout: 256 seconds]
Davedo has joined #ruby
ananthakumaran has joined #ruby
roolebo has joined #ruby
patjoh has joined #ruby
sbos99 has quit [Quit: Leaving]
roolebo has quit [Ping timeout: 240 seconds]
idiocrash has quit [Remote host closed the connection]
Davey_ has joined #ruby
ssvo has joined #ruby
fridim_ has quit [Ping timeout: 248 seconds]
michael_mbp is now known as zz_michael_mbp
nomenkun has joined #ruby
mary5030 has quit [Remote host closed the connection]
T__T has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
pranny has joined #ruby
pranny1 has joined #ruby
lukec has quit [Quit: lukec]
bionoid has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
pranny has quit [Ping timeout: 245 seconds]
aspires has quit [Quit: sudo making a sandwich]
aspires has joined #ruby
tough_griff has joined #ruby
tough_griff has left #ruby [#ruby]
pontiki has joined #ruby
<pontiki> passing this along in case anyone is interested: https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
<jonahR> cool, thanks
rkk_ has joined #ruby
rkk_ has quit [Client Quit]
fuhgeddaboudit has joined #ruby
nomenkun has joined #ruby
ahawkins has joined #ruby
Spami has joined #ruby
larissa has quit [Quit: Leaving]
marcdel has joined #ruby
ehc has quit [Quit: ehc]
tharindu has joined #ruby
Michael_ has quit [Remote host closed the connection]
patjoh has quit [Quit: Computer has gone to sleep.]
ssvo has quit [Ping timeout: 248 seconds]
Michael_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Ping timeout: 256 seconds]
SilverKey has quit [Quit: Cheers]
mrsolo has joined #ruby
SilverKey has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
Spleeze has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
timonv has joined #ruby
chrishough has joined #ruby
bubbajoness has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
Michael_ has quit [Read error: Connection reset by peer]
SilverKey has quit [Client Quit]
Michael_ has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
SilverKey has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
girija has joined #ruby
girija has left #ruby [#ruby]
Davey_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
T__T has joined #ruby
alexju has quit [Ping timeout: 248 seconds]
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
osvico has quit [Ping timeout: 265 seconds]
ChronocityLC has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
marcdel has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
bubbajones has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcope has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
havenwood has quit [Remote host closed the connection]
ananthakumaran has quit [Max SendQ exceeded]
dcope has joined #ruby
ananthakumaran has joined #ruby
havenwood has joined #ruby
objectiveous has joined #ruby
samsonasu has quit [Quit: samsonasu]
zarubin has joined #ruby
kil0byte has quit [Remote host closed the connection]
kil0byte has joined #ruby
ewnd9 has joined #ruby
tagrudev has joined #ruby
devoldmx3 has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
marcdel has quit [Client Quit]
mengu has joined #ruby
mengu has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
zoee has joined #ruby
ShoyaIshimaru has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
zz_michael_mbp is now known as michael_mbp
timonv has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
krz has joined #ruby
Jetchisel has joined #ruby
gverri has joined #ruby
sdouglas has joined #ruby
objectiveous has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
zz_tsykoduk is now known as tsykoduk
ShoyaIshimaru is now known as ishimaru
gstamp has quit [Quit: Computer has gone to sleep.]
pwh has quit []
frustrum has quit [Ping timeout: 245 seconds]
stkowski has quit [Quit: stkowski]
tobago has joined #ruby
dzhulk has joined #ruby
spike|spiegel has joined #ruby
Michael_ has quit [Remote host closed the connection]
siwica has joined #ruby
tsykoduk is now known as zz_tsykoduk
RORgasm has quit [Read error: Connection reset by peer]
n_blownapart has quit [Remote host closed the connection]
Michael_ has joined #ruby
leonidlm has joined #ruby
RORgasm has joined #ruby
orien has joined #ruby
maZtah is now known as Guest
justsee has quit [Ping timeout: 265 seconds]
agjacome has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
Michael_ has quit [Ping timeout: 272 seconds]
agjacome has quit [Client Quit]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
vipjun has quit [Ping timeout: 272 seconds]
n_blownapart has joined #ruby
Guest is now known as maZtah
aapzak has joined #ruby
justsee has joined #ruby
<heidar> Is there a way of getting this on one line? count = ARGV[3] || 10; count = count.to_i
<sam113101> count = (ARGV[3] || 10).to_i
bigkevmcd has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
<heidar> cheers
vipjun has joined #ruby
WillAmes has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
WillAmes has joined #ruby
tomoyuki28jp has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<tomoyuki28jp> I've been trying to install ruby 2.0.0-p247 on my Mac 10.8.5 by using rbenv 0.4.0. I've tried all the ways found online, but readline does not work fine. (I cannot type utf-8 characters on irb) Any idea how I can make it work?
vlad_starkov has joined #ruby
chrishough has quit [Quit: chrishough]
thesheff17 has quit [Ping timeout: 272 seconds]
gmas has quit [Ping timeout: 272 seconds]
ayaz has joined #ruby
DanKnox is now known as DanKnox_away
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonidlm has joined #ruby
<tobiasvl> tomoyuki28jp: sounds like it's just a charset mismatch somewhere?
ewnd9 has quit [Read error: Operation timed out]
<tobiasvl> or that
* agent_white shrugs
vlad_starkov has quit [Ping timeout: 265 seconds]
n_blownapart has quit [Remote host closed the connection]
<tomoyuki28jp> tobiasvl: agent_white: thanks for your reply, I tried pry, but the same, not working.
<tomoyuki28jp> I've tried many CONFIGURE_OPTS and RUBY_CONFIGURE_OPTS.
TTilus has quit [Remote host closed the connection]
dzhulk has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
DanKnox_away is now known as DanKnox
rjhunter has quit [Remote host closed the connection]
lurch_ has joined #ruby
maz-dev has joined #ruby
<jrobeson> tomoyuki28jp, but did you do brew link readline before compiling it?
skaflem has joined #ruby
<jrobeson> i haven't even tried any utf8 chars on my pry console yet.. hmm
<tomoyuki28jp> jrobeson: thanks for your reply. I think so, but let me try it again and see how it works.
soheil has joined #ruby
<tomoyuki28jp> jrobeson: yes, I've already done that before.
<tomoyuki28jp> but still not working
<jrobeson> ah.. so much easier on linux
dagobah has joined #ruby
<jrobeson> tomoyuki28jp, in the ./configure output does it say it can find readline?
<tomoyuki28jp> jrobeson: how can I check it?
<tomoyuki28jp> jrobeson: installation output?
<jrobeson> not sure how much you see in the output by default
ishimaru has quit [Remote host closed the connection]
jprovazn has joined #ruby
ishimaru has joined #ruby
maz-dev has quit [Ping timeout: 245 seconds]
_HolyCow1 has joined #ruby
<jrobeson> tomoyuki28jp, so what command exactly did you type?
aspires has quit [Quit: sudo making a sandwich]
devoldmx has joined #ruby
<tomoyuki28jp> jrobeson: I've tried all the ways I found online. ex:) https://gist.github.com/joneslee85/5025635 https://github.com/sstephenson/ruby-build/issues/185
_HolyCow has quit [Ping timeout: 264 seconds]
michael_mbp is now known as zz_michael_mbp
<jrobeson> ah.. i'm not a mac user ..
<jrobeson> but i do wonder what brew --prefix readline says
ishimaru has quit [Client Quit]
ItSANgo has quit [Ping timeout: 268 seconds]
ishimaru has joined #ruby
relix has joined #ruby
vlad_starkov has joined #ruby
<jrobeson> i say that in that i don't know how much more help i can specifically offer
<jrobeson> i just know what i know about brew due to all the people talking about it all the time
<tomoyuki28jp> jrobeson: thanks for trying to help me out!
soheil has quit [Ping timeout: 265 seconds]
<jrobeson> so what does brew --prefix readline say?
dhilipsiva has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
noop has joined #ruby
dhilipsiva has joined #ruby
ishimaru has left #ruby [#ruby]
<jrobeson> tomoyuki28jp, i think to see whether it actuall yfoudn readline you'd want to run ruby-build with -v
Mrk1868 has joined #ruby
Mrk1868 has quit [Client Quit]
<jrobeson> it should show the configure output, however i've never done it myself as everything has just worked for me on linux
Mrk1868 has joined #ruby
blaxter_ has joined #ruby
JohnBat26 has joined #ruby
Mrk1868 has left #ruby [#ruby]
dEPz has joined #ruby
csffsc_ has quit [Remote host closed the connection]
tjad has quit [Ping timeout: 256 seconds]
msuszczy has quit [Quit: Lost terminal]
<tomoyuki28jp> jrobeson: what the exact command?
csffsc has joined #ruby
<jrobeson> the same ruby-build command you typed earlier, just with --verbose also
araujo has joined #ruby
bwarkee has joined #ruby
amritanshu_RnD has joined #ruby
<jrobeson> it'll print out a lot of output... and you can see if it found readline
bwarkee has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jrobeson> oh.. but then it'll be lost in your scroll buffer.. i wonder if there's a way to keep it without running source
sensen has joined #ruby
<jrobeson> err without using --keep
Mrk1868 has joined #ruby
<jrobeson> tomoyuki28jp, perhaps it is best to run it with --keep instead of verbose, then the entire sourcce of ruby will live in ~/.rbenv/sources
Mrk1868 has left #ruby [#ruby]
<jrobeson> that is.. if you use rbenv to install ruby and not ruby-build directly
vlad_starkov has quit [Remote host closed the connection]
<tomoyuki28jp> jrobeson: sorry, I didn't get what you mean.. so how can I check it?
flops has joined #ruby
<jrobeson> tomoyuki28jp, paste the command you did just use already
<tomoyuki28jp> jrobeson: I've tried 20-30 ways already.
<jrobeson> show me the last one
peterdecroos has quit [Remote host closed the connection]
csffsc has quit [Ping timeout: 272 seconds]
<tomoyuki28jp> jrobeson: UBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p247
<tomoyuki28jp> s/UBY_CONFIGURE_OPTS/RUBY_CONFIGURE_OPTS/
peterdecroos has joined #ruby
<jrobeson> add --keep
<jrobeson> run again
<postmodern> jrobeson, consider using ruby-install to install ruby 2.0.0 into ~/.rbenv/versions
<jrobeson> postmodern, i'm just going with the tools already in use.. if you can help better go ahead
Mrk1869 has joined #ruby
<jrobeson> it's not for me it's for tomoyuki28jp and getting UTF8 input to work in irb
<postmodern> jrobeson, ruby-install will make sure to dependencies are installed via homebrew, and tells ruby to compile against them
<jrobeson> you're telling the wrong person
<postmodern> jrobeson, otherwise you have to use RUBY_CONFIGURE_OPTS
lyanchih has quit [Ping timeout: 248 seconds]
<postmodern> oops
<jrobeson> i'm not the one who could stand to use a mac :) hehe
lyanchih has joined #ruby
<postmodern> tomoyuki28jp, https://github.com/postmodern/ruby-install#integration using ruby-install might be easier than futzing with ruby-build
flower-pot has joined #ruby
<jrobeson> postmodern, i never did really look into the differences between ruby-install and ruby-build
<jrobeson> i just used what rbenv suggested and had no problem
<tomoyuki28jp> postmodern: thanks a lot, I will try that way.
<jrobeson> tomoyuki28jp, it's his problem.. so he'll know a lot better :)
<jrobeson> err
<jrobeson> s/problem/project/
<jrobeson> err.. i made a gender assumption.. :(
dzhulk has quit [Ping timeout: 248 seconds]
dzhulk1 has joined #ruby
dash_ has joined #ruby
Senjai_ has quit [Remote host closed the connection]
amacgregor has joined #ruby
peterdecroos has quit [Ping timeout: 272 seconds]
colonolGron has joined #ruby
amacgregor__ has joined #ruby
monkegjinni has joined #ruby
Xeago has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
julweber has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
varfoo has joined #ruby
funburn has quit [Quit: funburn]
jhaals has joined #ruby
peterdecroos has joined #ruby
kaspergrubbe has joined #ruby
lsmola has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
deception has quit [Quit: Goodbye]
aganov has joined #ruby
sergicles has quit [Quit: sergicles]
Mrk1869 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
ItSANgo has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
jonahR has quit [Quit: jonahR]
vlad_starkov has quit [Remote host closed the connection]
hogeo has joined #ruby
rahulkmr has joined #ruby
justsee has joined #ruby
<tomoyuki28jp> postmodern: I've tried ruby-install but not working..
tjad has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
hogeo has quit [Remote host closed the connection]
<tomoyuki28jp> I've been spending a half day for this so far..
jhaals has quit [Quit: Textual IRC Client: www.textualapp.com]
jhaals has joined #ruby
marcdel has quit [Ping timeout: 248 seconds]
h_kon has joined #ruby
dcope has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Remote host closed the connection]
dcope has joined #ruby
AxonetBE has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alup has joined #ruby
roolebo has joined #ruby
JohnBat26 has joined #ruby
tjad has quit [Remote host closed the connection]
LarsSmit has joined #ruby
astrobun_ has quit [Ping timeout: 272 seconds]
stef_204 has quit [Ping timeout: 272 seconds]
justsee has quit [Quit: leaving]
roolebo has quit [Ping timeout: 272 seconds]
tomoyuki28jp has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
astrobunny has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Nogbit has left #ruby [#ruby]
T__T has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
neo_ has joined #ruby
roolebo has joined #ruby
hogeo has joined #ruby
wildroman has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcope has quit [Ping timeout: 256 seconds]
roolebo has quit [Ping timeout: 245 seconds]
roolebo has joined #ruby
flops has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
jbpros has joined #ruby
flops has joined #ruby
marcdel has joined #ruby
agent_white has quit [Quit: leaving]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
a1ph4g33k has quit [Quit: Leaving]
roolebo has quit [Ping timeout: 272 seconds]
soheil has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
roolebo has joined #ruby
jrhe has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
gyre007 has joined #ruby
astrobunny has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
sensen_ has joined #ruby
Lewix has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
julweber has joined #ruby
MrV has joined #ruby
coderhs has joined #ruby
gverri_ has joined #ruby
ghr has joined #ruby
gverri_ has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 248 seconds]
soheil has quit [Ping timeout: 272 seconds]
csffsc has joined #ruby
tvw has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
<MrV> Hiya, I have a fresh install of ruby/rbenv etc on my OSX, and am getting sudo password prompt on bundle install, anyone got any ideas on why?
Lewix has quit [Ping timeout: 272 seconds]
csffsc has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
<pontiki> hi jrobeson o/
<jrobeson> pontiki!
dcope has joined #ruby
<jrobeson> are you unsick yet?
<pontiki> yeah
<pontiki> thanks :)
<jrobeson> ok.. well let's try to reach a bit farther then
<jrobeson> are you well? :)
<pontiki> as well as can be expected :)
MrV has quit [Ping timeout: 272 seconds]
|jemc| has quit [Ping timeout: 248 seconds]
<jrobeson> i wish i could say the same .. soon i hope
flops has quit [Read error: Connection reset by peer]
<jrobeson> assuming that "as well as can be expected" is better than how i'm doing
flops has joined #ruby
<pontiki> hope so!
<jrobeson> up to any shenanigans ?
<pontiki> meh, not really
<pontiki> this past week has been pretty lazy
<jrobeson> maybe you need some :)
<pontiki> i sorted through my paintings
<pontiki> decided i am going to make a sort of art blog
<pontiki> jekyll-based, so far
<jrobeson> neat
<jrobeson> reminds me to check if they ever finished octopress 3..
<pontiki> i put my stuff on DA mostly, but i don't like their UI
<pontiki> not yet, still in the works
<pontiki> sooonnn....
<pontiki> i might bump the art blog to octopress
<pontiki> right now i'm spending most of my time playing with semantic-ui
<jrobeson> octopress blog hasn't been updated since 2011 :(
<jrobeson> hmm?
<pontiki> it's a ui toolkit like twitter bootstrap
Lewix has joined #ruby
<jrobeson> assuming it's better than jquery-ui then?
<pontiki> but the classes are a bit more semantic
<pontiki> not sure yet
timonv has joined #ruby
julweber has joined #ruby
<pontiki> lemme throw it out so you can see what the class names look like
<pontiki> if you're interested...
<jrobeson> sure why not
<pontiki> k, one sec
julweber has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
amacgregor__ has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<jrobeson> i was so disheartened that i put a project aside for a few days because i coudn't get my live/push updates to work .. after they had been working fine
tharindu has quit [Quit: Leaving...]
sevenseacat has quit [Quit: Leaving.]
<jrobeson> i had refactored some of the internals and thought that was causing it.. instead it looks like i had commented out a module include :(
<jrobeson> fooey :(
sevenseacat has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
crus` has quit [Read error: Connection reset by peer]
<pontiki> ok, there: http://art.tamouse.org/
<pontiki> no content as yet
<pontiki> but check the source
sambao21 has quit [Quit: Computer has gone to sleep.]
hakunin has joined #ruby
<pontiki> it's kinda verbose? but it's understandable i think
avril14th has joined #ruby
hakunin_ has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
<jrobeson> colors don't seem very semantic?
<pontiki> purple?
Stygia has joined #ruby
elaptics`away is now known as elaptics
<pontiki> no, they aren't
<jrobeson> it's not bad except the icon bit .. i think i prefer font-awesome style
himsin has joined #ruby
<pontiki> "ui purple inverted center aligned segment" is very much not semantic for "footer"
tobyo has quit [Quit: WeeChat 0.3.8]
<jrobeson> perhaps just something to get used to
<jrobeson> lol pontiki :)
crus has joined #ruby
<pontiki> idk, i just started playing with it
<pontiki> it's also written in less, like tbs
<pontiki> which means more hacking if i go to OP
<jrobeson> oh tiny mouses
<jrobeson> meeces :)
<pontiki> :)
<pontiki> i don't know if i'm going to stick with this or not
monkegjinni has quit [Remote host closed the connection]
<pontiki> just heard of it last week, thought i'd play with it a bit
skaflem has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<jrobeson> hey.. if you're a cartoon character.. meeces is in fact the correct plural!
<pontiki> yus!
skaflem has joined #ruby
<jrobeson> so what would you use otherwise?
wallerdev has quit [Quit: wallerdev]
<jrobeson> bootstrap-sass ? jquery-ui ? neat/bourbon ?
<jrobeson> i am assuming that they have expanded jquery-ui beyond widgets since the last time i looked
<jrobeson> perhaps that is actually not the case
monkegjinni has quit [Read error: No route to host]
havenwood has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
<avril14th> Hello, why is super call not working in that case: https://gist.github.com/muichkine/2d3ed53da383b036950d ?
julweber has joined #ruby
tvw has quit []
<pontiki> i have been using bootstrap-sass
blackmesa has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
obs has joined #ruby
bricker`LA has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<jrobeson> pontiki, now if only bootstrap-sass with bootstrap 3 could happen :(
<jrobeson> officially..
<pontiki> yeah
zigomir has joined #ruby
rdark has joined #ruby
<pontiki> i was donking with tbs3 too
<jrobeson> but still.. i'm having enough trouble figuring out how to make it work nice with simple_form :(
<pontiki> but just using the cdn and modifying on the fly, so to speak
<jrobeson> it does work ok with source from github
<pontiki> oh, i haven't tried it with rails yet
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dweeb_ has joined #ruby
maz-dev has joined #ruby
<pontiki> anyway, i'm to bed
noop has quit [Ping timeout: 272 seconds]
funburn has quit [Quit: funburn]
astrobunny has quit [Ping timeout: 248 seconds]
<jrobeson> night pontiki
<jrobeson> lemme see your art blog when you got something going with it
vipjun has quit [Ping timeout: 248 seconds]
Tearan has quit [Quit: Sleepy Badger....]
andikr has joined #ruby
<pontiki> sure
timonv has quit [Read error: Connection reset by peer]
<pontiki> here's the end of what i did today sorting... the wall of (f|sh)ame: https://plus.google.com/104157810059860300833/posts/EyNmPft3sUC
maz-dev has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
vlad_starkov has joined #ruby
astrobunny has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
einarj has joined #ruby
wildroman has quit []
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
wildroman has joined #ruby
ephemerian has joined #ruby
wildroman has quit [Client Quit]
KevinSjoberg has joined #ruby
tziOm has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
wildroman has joined #ruby
dennus has joined #ruby
zz_michael_mbp is now known as michael_mbp
sergicles has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
funburn has joined #ruby
soheil has joined #ruby
sergicles has quit [Remote host closed the connection]
sergicles has joined #ruby
sensen_ is now known as sensen
funburn has quit [Client Quit]
fixl has joined #ruby
<sergicles> how can i setup a ruby project directory, or config rather that would make all gems to do with this project to be installed into "this" directory
<sergicles> ?
<sergicles> (not rails)
dhruvasagar has joined #ruby
yacks has quit [Quit: Leaving]
tjad has joined #ruby
Nolic has quit [Quit: Quitte]
<flops> sergicles: you could do rvm use 2.0.0@the_project_name --create
adambeynon has joined #ruby
<sergicles> flops: not quite what i mean, but it'll do
timonv has quit [Remote host closed the connection]
<flops> sergicles: So you want to install the gems into the same directories as the app?
noop has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<sergicles> flops: ye, just a small throwaway projects, don't really need the gems pass that… p.s. ruby newbie here. o essentially create a dir, write come code, have gems install in same dir, maybe dir/vendor or whatever
vlad_starkov has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
blackmesa has joined #ruby
<sergicles> flops: actually, nm, go the different route, bundler will do
havenwood has joined #ruby
<flops> ok
<flops> you can set the gemdir with rvm though
sayan has quit [Remote host closed the connection]
gokul has joined #ruby
<flops> sergicles: ^
gokul is now known as Guest23901
soheil has quit [Ping timeout: 245 seconds]
<sergicles> flops: thanks, will investigate
AxonetBE has quit [Quit: AxonetBE]
Guest23901 has left #ruby [#ruby]
workmad3 has joined #ruby
funburn has joined #ruby
peterdecroos has quit [Remote host closed the connection]
noname001__ has joined #ruby
peterdecroos has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
tomoyuki28jp has joined #ruby
rickruby has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
bluenemo has joined #ruby
peterdecroos has quit [Ping timeout: 272 seconds]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
gyre007 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
maZtah is now known as Guest
astrobunny has joined #ruby
julweber has quit [Ping timeout: 241 seconds]
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
sr78ger has joined #ruby
Kneferilis has joined #ruby
aryaching has quit []
MrV has joined #ruby
gja has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
barratt has joined #ruby
soba_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
soba has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
mengu has quit [Remote host closed the connection]
includex has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ewnd9 has joined #ruby
rickruby has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
dv__ is now known as dv_
heftig has quit [Quit: Quitting]
svector has joined #ruby
mengu has quit [Ping timeout: 265 seconds]
relix has joined #ruby
gverri has joined #ruby
gverri has quit [Client Quit]
BizarreCake has quit [Ping timeout: 248 seconds]
<leonidlm> Hi folks. I have a design question - I want to implement a class which will help my program to access hdfs filesystem.
<leonidlm> Should I extend the ruby's File class or write from scratch / other preferred ways ?
<hoelzro> I would *not* extend the File class
<hoelzro> I would, however, implement the same interface that File exposes
threesome has joined #ruby
<hoelzro> does anyone know if there are helper mixins for such a thing?
<workmad3> leonidlm: as hoelzro says, make use of the IO interface
<leonidlm> hoelzro, I see. thanks!
<workmad3> leonidlm: in fact, if you want to subclass from something, subclass from IO ;)
syltm has joined #ruby
<leonidlm> workmad3, thx. How in ruby I "implement the same interface"? Just do it, or I need to set like in java that it "implements" ...
Guest is now known as maZtah
<hoelzro> leonidlm: you just define the same methods
<workmad3> leonidlm: just have the same methods with the same signatures
<avril14th> BTW: Can anyone confirm that ruby methods signatures do not include parameters? Can't figure out why https://plus.google.com/104157810059860300833/posts/EyNmPft3sUC is failing
<workmad3> :)
ananthakumaran has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<avril14th> this turns me nuts
<workmad3> avril14th: you've just run foul of ActiveSupport::Concern doing dependency management behind the scenes
Faris has quit [Ping timeout: 272 seconds]
<avril14th> that's a lot of concepts I don't get in one single sentance
<avril14th> what am I doing wrong? :)
<workmad3> avril14th: when you use 'included do ... end', that block gets captured and then evalled at the right place in a dependency tree with 'base.class_eval(&blk)'
<workmad3> avril14th: it's not you doing anything wrong
<workmad3> avril14th: well... maybe it is, sort of ;)
<avril14th> OKAY
<workmad3> avril14th: but basically... that 'def' is happening as though it's being written directly in the base class
<avril14th> ooooh
<avril14th> get it
<avril14th> so I overwrite
<avril14th> and so no super
<avril14th> makes super sense
<avril14th> thanks workmad3
germanstudent has quit [Quit: bye]
<workmad3> avril14th: you're sort of doing it wrong because all you really want for your case is https://gist.github.com/workmad3/e8fa087cd87580219b94
ananthakumaran1 has quit [Ping timeout: 272 seconds]
<avril14th> yes, figured it out
<avril14th> I have some code though that still needs to be in the included do
<avril14th> so I need to separate from the other
<avril14th> but now I get it
<avril14th> thanks workmad3
<workmad3> avril14th: also, updated the 'require'
<avril14th> well that require fails here
<avril14th> never got it why
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<workmad3> avril14th: hmm... something's screwed up in your rails env then... 'lib' should be on your load path
end_guy has joined #ruby
<avril14th> that's what I think too
<avril14th> never found what though :)
Xeago has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
havenwood has joined #ruby
Xeago has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
VTLob has joined #ruby
soheil has joined #ruby
mengu has joined #ruby
claymore has joined #ruby
<avril14th> but anyway, thanks a lot workmad3, I wished you woke up earlier this morning I would have gained time en masse!
vince_prignano has joined #ruby
<workmad3> avril14th: heh :) sorry
vince_prignano has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 272 seconds]
tesuji has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
dangerousdave has joined #ruby
rahulkmr has quit [Ping timeout: 272 seconds]
jbpros has quit [Quit: jbpros]
vince_prignano has joined #ruby
shashin has joined #ruby
<shevy> yeah workmad3
<shevy> stop sleeping!!!
soheil has quit [Ping timeout: 256 seconds]
sensen has quit [Quit: leaving]
<workmad3> shevy: :P
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
rahulkmr has joined #ruby
dayepa has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
sergicles has quit [Quit: sergicles]
dayepa has joined #ruby
sayan has quit [Max SendQ exceeded]
kitak has quit [Remote host closed the connection]
sayan has joined #ruby
khushildep has joined #ruby
Astralum has joined #ruby
mobileblue has quit [Max SendQ exceeded]
kirun has joined #ruby
mobileblue has joined #ruby
lyanchih has quit [Quit: lyanchih]
maz-dev has joined #ruby
sayan has quit [Excess Flood]
Squarepy has joined #ruby
sayan has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
sergicles has joined #ruby
h_kon has quit [Remote host closed the connection]
Astralum has joined #ruby
newbiehacker has joined #ruby
kil0byte has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
sensen has joined #ruby
Astralum has joined #ruby
sayan has quit [Excess Flood]
t_p has quit [Quit: Computer has gone to sleep.]
siwica has quit [Quit: siwica]
siwica has joined #ruby
sayan has joined #ruby
flops has quit [Read error: Connection reset by peer]
Guest77625 has joined #ruby
kitak has joined #ruby
lkba has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
monkegjinni has joined #ruby
kitak has quit [Remote host closed the connection]
xk_id has joined #ruby
sayan has quit [Excess Flood]
colonolGron has quit [Quit: Lost terminal]
sayan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: jrhe]
monkegjinni has joined #ruby
Michael_ has joined #ruby
wildroman has quit [Remote host closed the connection]
sayan has quit [Max SendQ exceeded]
wildroman has joined #ruby
sayan has joined #ruby
nomenkun has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 256 seconds]
kaspergrubbe has joined #ruby
TMM has quit [Read error: Operation timed out]
wildroman has quit [Ping timeout: 240 seconds]
TMM has joined #ruby
jonathanwallace has joined #ruby
aagdbl has joined #ruby
_JamieD_ has joined #ruby
Giorgio has quit [Ping timeout: 256 seconds]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
siwica has quit [Remote host closed the connection]
lembacon has quit [Quit: Leaving...]
pschneider has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
mercwithamouth has joined #ruby
dv__ has joined #ruby
Michael_ has quit [Ping timeout: 272 seconds]
Giorgio has joined #ruby
dv_ has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
tkuchiki has quit [Remote host closed the connection]
klaut has joined #ruby
MrZYX|off is now known as MrZYX
eka has joined #ruby
noop has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
tkuchiki has joined #ruby
ravster has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
rickruby has quit [Remote host closed the connection]
mercwithamouth has quit [Client Quit]
heftig has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
jrhe has joined #ruby
dEPz has quit [Remote host closed the connection]
ldnunes has joined #ruby
ehaliewicz has quit [Ping timeout: 248 seconds]
ij has joined #ruby
<ij> How do I prevent methods defined in a .rake's namespace do task do #here end end from leaking into global namespace?
julweber has joined #ruby
stunthamster has joined #ruby
flops has joined #ruby
tomoyuki28jp has quit [Ping timeout: 240 seconds]
objectiveous has joined #ruby
Domon has quit [Remote host closed the connection]
noop has joined #ruby
rahulkmr has quit [Ping timeout: 240 seconds]
Desert_eagle has quit [Remote host closed the connection]
objectiveous has quit [Client Quit]
xk_id has quit [Quit:
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
rahulkmr has quit [Max SendQ exceeded]
dzhulk has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
niklasb has joined #ruby
kaspergrubbe has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby
rahulkmr has joined #ruby
phantomcircuit has quit [Ping timeout: 248 seconds]
dzhulk1 has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
objectiveous has joined #ruby
krz has joined #ruby
phantomcircuit has joined #ruby
rahulkmr1 has joined #ruby
amacgregor has joined #ruby
xk_id has joined #ruby
end_guy has joined #ruby
krz has quit [Client Quit]
rahulkmr has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Ping timeout: 272 seconds]
objectiveous has quit [Client Quit]
rickmasta has quit [Quit: Leaving...]
jhaals has joined #ruby
postmodern has quit [Quit: Leaving]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
bluenemo has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
krz has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
funburn has joined #ruby
dzhulk has joined #ruby
rahulkmr1 has quit [Ping timeout: 256 seconds]
funburn has quit [Client Quit]
Astral_ has joined #ruby
bigkevmcd has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
skaflem has quit [Quit: This computer has gone to sleep]
user258467 has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
wildroman has joined #ruby
wildroman has quit [Read error: Connection reset by peer]
skaflem has joined #ruby
pschneider has left #ruby [#ruby]
wildroman has joined #ruby
Giorgio has quit [Ping timeout: 248 seconds]
Astralum has joined #ruby
Ox6abe has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
hogeo has quit [Read error: Connection reset by peer]
Astral_ has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
hogeo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
hogeo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
bluenemo has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
himsin has quit [Quit: himsin]
hogeo has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
hogeo has joined #ruby
ewnd9 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
mercwithamouth has joined #ruby
rahulkmr has quit [Ping timeout: 248 seconds]
drumsrgr8forn8 has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
ewnd9 has joined #ruby
tomoyuki28jp has joined #ruby
<tomoyuki28jp> I've been trying to install ruby 2.0 on my mac by rbenv. When I run irb with the '--noinspect' option, I can use utf-8 characters, otherwise I cannot. How can I fix it?
hogeo has quit [Ping timeout: 248 seconds]
user258467 has quit [Quit: Leaving...]
<tomoyuki28jp> Printing utf-8 characters from a ruby script also not working properly.
gja has quit [Quit: This computer has gone to sleep]
kil0byte has quit [Ping timeout: 272 seconds]
jrhe has joined #ruby
SilverKey has quit [Quit: Sleep now]
ChronocityLC has quit [Ping timeout: 272 seconds]
dbRenaud has quit [Changing host]
dbRenaud has joined #ruby
nomenkun has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
osvico has quit [Ping timeout: 245 seconds]
xk_id has quit [Quit:
ewnd9 has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
ewnd9 has joined #ruby
<ij> tomoyuki28jp, add that # encoding: utf-8 line at the beginning or after shebang
<tomoyuki28jp> ij: It's already there.
<ij> hmm
<workmad3> tomoyuki28jp: what does 'not working properly' mean?
<tomoyuki28jp> workmad3: p "日本語" => "\u65E5\u672C\u8A9E"
<Xeago> would you recommend ruby-install or ruby-build when using chruby?
<Xeago> workmad3: ^^?
<workmad3> tomoyuki28jp: that's correct
<workmad3> Xeago: I use ruby-install
<workmad3> tomoyuki28jp: you're inspecting the output... the output of inspect on UTF-8 characters shows the unicode escape codes, not the glyphs themselves
dhilipsi_ has joined #ruby
Liothen has quit [Quit: System of a down……]
<tomoyuki28jp> workmad3: uhm? ruby 1.9 + readline used to output the original characters.
<workmad3> tomoyuki28jp: hmm... pass then
<workmad3> tomoyuki28jp: it's not a ruby problem though
tatsuya_o has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Remote host closed the connection]
<tomoyuki28jp> workmad3: Whose problem is that then?
Hanmac has joined #ruby
ewnd9 has joined #ruby
<workmad3> tomoyuki28jp: your terminals
allsystemsarego has joined #ruby
dhilipsiva has quit [Ping timeout: 256 seconds]
rorra has joined #ruby
<tomoyuki28jp> workmad3: So should I change my terminal setting?
<workmad3> tomoyuki28jp: probably... but you'd be better off googling that
<tomoyuki28jp> workmad3: my terminal's character encoding is set to utf-8 already though.
mvangala has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
svector has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Remote host closed the connection]
mvangala has joined #ruby
ewnd9 has joined #ruby
havenwood has joined #ruby
ewnd9 has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
ewnd9 has joined #ruby
svector has joined #ruby
julweber has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
<tomoyuki28jp> workmad3: ah, p '日本語' does not work, but puts '日本語' works
Ox6abe has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
svector has joined #ruby
<tomoyuki28jp> I spent a whole day...
Ox6abe has joined #ruby
<tomoyuki28jp> Thanks a lot for your help.
svector has quit [Max SendQ exceeded]
<workmad3> tomoyuki28jp: difference between "str" and "str".inspect ;)
havenwood has quit [Ping timeout: 248 seconds]
svector has joined #ruby
<tomoyuki28jp> workmad3: thanks a lot for your help!
sensen has quit [Ping timeout: 272 seconds]
svector has quit [Max SendQ exceeded]
siwica has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
svector has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
syltm has quit [Ping timeout: 248 seconds]
<apeiros> tomoyuki28jp, workmad3: "str".inspect depends on some settings too, though. i.e. for me p '日本語' is just the same as puts (with added " quotes)
jhaals has joined #ruby
<workmad3> apeiros: yeah, it did for me too, which confused me when I checked it out :)
<apeiros> wouldn't remember on what it depends. my first guess would have been $stdout.external_encoding, but then why does puts work fine?
havenwood has joined #ruby
<apeiros> tomoyuki28jp: what do `$stdout.external_encoding` and `Encoding.default_external` return for you?
Ox6abe has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
mklappstuhl has joined #ruby
<apeiros> wow, this is IMO buggy though: `Encoding.default_external = 'binary'; p '日本語'` !> Encoding::CompatibilityError: inspected result must be ASCII only or use the same encoding with default external
sayan has joined #ruby
<tomoyuki28jp> apeiros: $stdout.external_encoding => nil
<tomoyuki28jp> Encoding.default_external => #<Encoding:ASCII-8BIT>
tharindu has quit [Quit: Leaving...]
<apeiros> tomoyuki28jp: try what happens with p if you set Encoding.default_external to utf-8
juan__ has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
gja has joined #ruby
<tomoyuki28jp> apeiros: wow, works as I expected!
heftig has quit [Ping timeout: 272 seconds]
Ox6abe has joined #ruby
r0bby_ has quit [Ping timeout: 248 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
fafa has joined #ruby
<apeiros> weird that changing it from utf-8 to binary does not let mine behave like yours…
<tomoyuki28jp> apeiros: How can I globally set the Encoding.default_external value?
<fafa> any good gems for sentiment analysis ?
<apeiros> tomoyuki28jp: I think it's inferred from the LANG env
<apeiros> ENV["LANG"] # => "en_US.UTF-8"
rgbdev has quit [Ping timeout: 265 seconds]
garbagecollectio has joined #ruby
<apeiros> (even though I'm not in US and my lang is not en :-/)
<tomoyuki28jp> apeiros: thanks, let me try that.
<garbagecollectio> any jasmine uses in here?
<garbagecollectio> users*
varfoo has quit [Quit: WeeChat 0.4.0]
havenwood has quit [Ping timeout: 256 seconds]
varfoo has joined #ruby
Hganavak has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
jkamenik has joined #ruby
michael_mbp is now known as zz_michael_mbp
h_kon has joined #ruby
Ahti333 has joined #ruby
<tomoyuki28jp> apeiros: I think this is the problem. ENV['LANG'] => "ja_JP.UTF-8"
<tomoyuki28jp> Encoding.default_external => #<Encoding:ASCII-8BIT>
<tomoyuki28jp> It used to work fine on ruby 1.9
mklappstuhl has quit [Ping timeout: 245 seconds]
polaco_zZz is now known as polaco
decoponio has joined #ruby
jrhe has quit [Quit: jrhe]
amacgregor has quit [Ping timeout: 272 seconds]
cads has quit [Ping timeout: 272 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<tomoyuki28jp> Is there a way to directly specify Encoding.default_external value for my global ruby?
pranny1 has quit [Quit: Leaving.]
jrhe has joined #ruby
theRoUS has quit [Client Quit]
cads has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
<apeiros> tomoyuki28jp: weird… it should pick up the UTF-8 part…
<tomoyuki28jp> I finally found it.
<tomoyuki28jp> export RUBYOPT=-Ku
<tomoyuki28jp> this works..
<tomoyuki28jp> spent a whole day.
<tomoyuki28jp> apeiros: thanks a lot for your help.
includex has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tomoyuki28jp> Everything is working as I expect now.
<ij> How do I use carrierwave uploaders to manually store a file?
zz_michael_mbp is now known as michael_mbp
<apeiros> tomoyuki28jp: weirder yet - -K flag should be deprecated as of 1.9
svector has quit [Remote host closed the connection]
garbagecollectio has quit [Quit: garbagecollectio]
nateberkopec has joined #ruby
mklappstuhl has joined #ruby
MrV has quit [Quit: MrV]
<workmad3> tomoyuki28jp: you want the second one btw ;) -E utf-8:utf-8
<tomoyuki28jp> workmad3: The first one works fine somehow though.
<tomoyuki28jp> Second one also works fine.
dhruvasagar has joined #ruby
breakingthings has joined #ruby
eregon has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
eregon has joined #ruby
soba has joined #ruby
mark_locklear has joined #ruby
theRoUS has joined #ruby
cads has quit [Ping timeout: 272 seconds]
Memphizzzzzz has quit [Read error: Connection reset by peer]
soba_ has quit [Ping timeout: 272 seconds]
dEPz_ has joined #ruby
kaldrenon has joined #ruby
soba has quit [Ping timeout: 245 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sayan has quit [Ping timeout: 245 seconds]
Rashmi has joined #ruby
boxmein has joined #ruby
pleal has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
prophile has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
roolebo has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
AlSquire has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
Ox6abe has quit [Ping timeout: 272 seconds]
svector has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
vpretzel has joined #ruby
cads has joined #ruby
ephemerian has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
iamjarvo_ has joined #ruby
mobileblue has quit [Max SendQ exceeded]
mobileblue has joined #ruby
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
darrik has joined #ruby
julweber has joined #ruby
ce_afk is now known as cescalante
dhruvasagar has quit [Ping timeout: 272 seconds]
<Hanmac> apeiros: did you know that Object does not raise an wrong superclass error?
jibi has joined #ruby
dhruvasagar has joined #ruby
<Hanmac> >> class A;end; class B < A;end; class B < Object;end
<eval-in> Hanmac => nil (https://eval.in/56186)
<Hanmac> >> class A;end; class B < A;end; class C < B;end; class C < A;end
<eval-in> Hanmac => superclass mismatch for class C (TypeError) ... (https://eval.in/56187)
prophile has joined #ruby
<tobiasvl> all objects extend Object already, don't they?
<apeiros> hanmac: no, didn't know that
<apeiros> tobiasvl: please don't use the term 'extend'
<tobiasvl> noted
larissa has joined #ruby
tatsuya_o has joined #ruby
dEPz_ has quit [Remote host closed the connection]
<Hanmac> apeiros: https://github.com/ruby/ruby/blob/trunk/insns.def#L912-L929 there is the code line that marks that special case
leokaito has joined #ruby
pleal has quit [Read error: Connection reset by peer]
pleal has joined #ruby
jrhe has joined #ruby
Xeago has joined #ruby
svector has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
cescalante is now known as ce_afk
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhe has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
svector has joined #ruby
xeon_ has joined #ruby
snappy has joined #ruby
xeon_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
<snappy> it is not clear to me, but does OptionParser support optional options?
jrhe has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
<snappy> i read the docs, but it doesnt say anything about optional options -- and im tending towards a no
nomenkun has joined #ruby
Seus has quit []
<jsaak> all options are optional
Uranio has joined #ruby
<snappy> oh right, duh
<jsaak> if you need a sample app i can show one: https://github.com/jsaak/locale_assistant/blob/master/lib/locale_assistant.rb line 45
shashin has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 256 seconds]
<andrewvos> snappy: Try using slop. It's pretty amazing
tomoyuki28jp has quit [Ping timeout: 272 seconds]
includex has joined #ruby
timonv has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
sayan has joined #ruby
jdenen has joined #ruby
mojjoujo has joined #ruby
timonv has joined #ruby
juan_ has joined #ruby
MrV has joined #ruby
shashin has joined #ruby
ewnd9 has joined #ruby
shredding has joined #ruby
Rashmi has quit [Quit: Leaving]
aagdbl has quit [Ping timeout: 272 seconds]
ij has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
neonlex has joined #ruby
astrobunny has joined #ruby
neonlex has quit [Client Quit]
svector has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
endash has joined #ruby
jlebrech has joined #ruby
Soda has quit [Remote host closed the connection]
svector has joined #ruby
jbpros has joined #ruby
sdouglas has quit [Quit: sdouglas]
burlyscudd has joined #ruby
sayan has quit [Quit: Leaving]
cads has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
sr78ger has quit [Ping timeout: 248 seconds]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
gja has quit [Quit: This computer has gone to sleep]
iamjarvo_ has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
<avril14th> workmad3: maybe one question about the help you gave me this morning on ActiveSupport::Concern. A behavior I don't understand: https://gist.github.com/muichkine/693304c71f9c7be888af (forked from your gist)
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
angusiguess has joined #ruby
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
burlyscudd has joined #ruby
pranny has joined #ruby
tomzx_mac has joined #ruby
<avril14th> If I may
tvw has joined #ruby
T__T has joined #ruby
Mon_Ouie has joined #ruby
rorra has quit [Quit: rorra]
fuhgeddaboudit has joined #ruby
<Hanmac> avril14th: #rubyonrails ?
<avril14th> true
rickmasta has joined #ruby
jerius has joined #ruby
garbagecollectio has joined #ruby
fafa has quit [Ping timeout: 248 seconds]
garbagecollectio has quit [Client Quit]
LeBop has joined #ruby
mklappst_ has joined #ruby
tvw has quit []
samsonasu has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
dv__ is now known as dv_
Giorgio has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
T__T has quit [Read error: Connection reset by peer]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<LeBop> Hi guys.. I have a stupid question ...
<LeBop> plain = "sudo chef-solo -c #{vm.config.recipe.chef} -j #{vm.config.recipe.json} --override-runlist
<LeBop> I have this variable
mklappstuhl has quit [Ping timeout: 272 seconds]
<LeBop> which transforms to sudo chef-solo -c #<Vagrant::Config::V2::DummyConfig:0x0000000454eb48> -j #<Vagrant::Config::V2::DummyConfig:0x00000004550650> --override-runlist
sensen has joined #ruby
<LeBop> instead of my variables, I get those references....
<LeBop> how do I replace the references with the actual variable value?
h_kon has quit [Remote host closed the connection]
<workmad3> avril14th: a method in a module doesn't override a method in a class
lfox has joined #ruby
ij has joined #ruby
<Hanmac> avril14th: thats the difference between "include" & "prepend"
devdazed has joined #ruby
* avril14th kernels error with no dump
ananthakumaran has quit [Quit: Leaving.]
ehc has joined #ruby
blaxter_ is now known as blaxter
<avril14th> isn't include "like if the module was your parent class"
<avril14th> that's how I got it
<workmad3> LeBop: why aren't you letting vagrant kick off chef-solo?
<workmad3> avril14th: yes
<workmad3> avril14th: so think... if you define a method 'foo' in a parent class, then define a method 'foo' in a child class then call 'foo' on an instance of the child class... which one gets called? ;)
fgo has joined #ruby
alexju has joined #ruby
<avril14th> the children one
<avril14th> ?
asobrasil has joined #ruby
<workmad3> avril14th: yes
<avril14th> well that's exactly why I don't get my problem
<avril14th> I get parent one called
<avril14th> and children one never
shredding has quit [Quit: shredding]
<avril14th> but I guess my problem lies in my use of instance.class.send(:include)
xk_id has joined #ruby
<workmad3> avril14th: err no
g0bl1n has joined #ruby
<workmad3> avril14th: you're getting the child one called
snovak has joined #ruby
<avril14th> well I breakpoint the children one it gets never called
<avril14th> worse
<workmad3> avril14th: the module plays the role of the parent, the included class the role of the child
<Hanmac> >> module P; end; module I;end; class C; include I;prepend P; self.ancestors end;
<eval-in> Hanmac => [P, C, I, Object, Kernel, BasicObject] (https://eval.in/56213)
<avril14th> I tried instance.method(:organizations).source_location and got the parent one
NinjaPenguin has joined #ruby
<workmad3> avril14th: and your comment is '#This never calls TwoPartiesTransaction::organizations but Transaction::organizations even though it should have been overrode. Why?'
<workmad3> avril14th: the 'parent' is the module
<Hanmac> avril14th: as you see, Prepended modules are before, included modules are after the class
<workmad3> avril14th: the 'child' is Transaction
<avril14th> that is damn right
msuszczy has joined #ruby
<workmad3> avril14th: and your comment says that Transaction::organizations (the 'child') gets called
<Hanmac> avril14th: dont use class.include …. use tr.extend
<workmad3> hanmac: because blowing your ruby method lookup cache on every object instantiation is fun, right? :)
<avril14th> and we agree that if I include the model in a children class of Transaction (SomeTransaction < Transaction), Transaction is parent to module?
<workmad3> avril14th: no
sailias has joined #ruby
<workmad3> avril14th: other way around
phantasm66 has joined #ruby
<avril14th> module is parent to SomeTransaction
<avril14th> but child to Transaction
<avril14th> or parent to both?
jrhe has joined #ruby
<workmad3> avril14th: look at .ancestors
<workmad3> avril14th: and that doesn't match what your gist shows ;)
rickmasta has quit [Quit: Be back later]
<workmad3> avril14th: or even what your gist says ;)
<avril14th> yes that's an extra question
<avril14th> :)
rickmasta has joined #ruby
rcedillor has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<workmad3> avril14th: right... the module will be inserted into ancestors between SomeTransaction and Transaction
<avril14th> agreed
<workmad3> (moving away from 'parent' and 'child' now :) )
varfoo has quit [Quit: WeeChat 0.4.0]
<avril14th> so I get it now
rahulkmr has joined #ruby
<Hanmac> workmad3 if he only uses for one object its ok
rahulkmr has quit [Max SendQ exceeded]
<workmad3> hanmac: :)
ValicekB has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<avril14th> (1..BigDecimal('+Infinity')).each{ |workmad| workmad.send("Tĥank you so much.") }
<blackmesa> Hi all. anyone can help me on using File.open.readlines to read the contents into a variable https://gist.github.com/anonymous/b928a85eb999a8db88e3
gja has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
<blackmesa> it should ignore if the word starts with a "#"
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
cody-- has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
qinix has joined #ruby
rahulkmr has joined #ruby
fgo has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 256 seconds]
rahulkmr has quit [Max SendQ exceeded]
<workmad3> avril14th: np
banghouse2 has joined #ruby
rahulkmr has joined #ruby
ffranz has joined #ruby
MrZYX|off is now known as MrZYX
tobago has quit [Remote host closed the connection]
mrnugget has joined #ruby
Bira has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
Xeago has quit [Remote host closed the connection]
<shevy> blackmesa why dont you use File.readlines directly
<shevy> and use .reject {|word| word[0,1] == '#' }
<shevy> blackmesa, something like this: array = %w( word1 word2 word3 word4 ); array.each {|entry| File.readlines(entry).reject {|word| word[0,1] == '#' }}
<shevy> actually
<shevy> it's better if you write a method that does that
kobain has joined #ruby
<shevy> and let the method return which entries are correct
<blackmesa> shevy: thx will check this out. what does the word[0.1] mean
<shevy> no
<shevy> noone typed this
<shevy> word[0,1]
<shevy> anyway, you use [] on the string, or in this case the variable
<shevy> so [0,1] specifies the char at position 0, length 1
<shevy> which means one char length
<shevy> >> "abc"[0,1]
<eval-in> shevy => "a" (https://eval.in/56224)
<shevy> >> "#hello world abc"[0,1]
<eval-in> shevy => "#" (https://eval.in/56225)
<shevy> >> "#hello world abc"[1,4]
<eval-in> shevy => "hell" (https://eval.in/56226)
<blackmesa> thx for your help shevy
<shevy> I love this bot :)
<shevy> blackmesa, you can use the bot to test short snippets
shredding has quit [Quit: shredding]
joaoh82 has joined #ruby
shredding has joined #ruby
kazuuu has joined #ruby
<blackmesa> shevy: works fine. I use KEYWORDS = IO.readlines("testme.txt").reject {|word| word[0,1] == '#'}
ce_afk is now known as cescalante
shashin has quit [Quit: shashin]
<shevy> cool
<shevy> ruby is like Lego building blocks
<blackmesa> I cant find readlines() for File.class, only for IO
<shevy> I think it gets mixed in blackmesa
momomomomo has joined #ruby
xk_id has quit [Quit:
drumsrgr8forn8 has joined #ruby
<shevy> let me try to find out, how to find out what gets mixed in and what does not, from the docu ...
peterdecroos has joined #ruby
<shevy> oh
<shevy> I know one thing, look:
<shevy> >> File.ancestors
peterdecroos has quit [Remote host closed the connection]
<eval-in> shevy => [File, IO, File::Constants, Enumerable, Object, Kernel, BasicObject] (https://eval.in/56227)
<shevy> so at least it is in the ancestor chain
havenwood has joined #ruby
bean_ has joined #ruby
<shevy> huh
peterdecroos has joined #ruby
<shevy> >> File::Constants.constants
<eval-in> shevy => [:RDONLY, :WRONLY, :RDWR, :APPEND, :CREAT, :EXCL, :NONBLOCK, :TRUNC, :NOCTTY, :BINARY, :SYNC, :DSYNC, :RSYNC, :NOFOLLOW, :NOATIME, :DIRECT, :LOCK_SH, :LOCK_EX, :LOCK_UN, :LOCK_NB, :NULL, :FNM_NOESCAPE, ... (https://eval.in/56228)
momomomomo has quit [Client Quit]
<shevy> is WRONLY a typo for WRONGLY? :P
leonidlm has joined #ruby
vince_prignano has quit []
zeade has quit [Quit: Leaving.]
<blackmesa> hehe
flops has quit [Ping timeout: 272 seconds]
[boxmein] has joined #ruby
<blackmesa> .reject() is great thx
<Hanmac> blackmesa: use File.foreach(path).reject {|line| line.start_with?("#")}
grn has quit [Quit: ZNC - http://znc.in]
TheNumb has quit [Quit: ZNC - http://znc.sourceforge.net]
[boxmein] has quit [Client Quit]
flower-pot has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
<blackmesa> hanmac: works fine too
ij has quit [Ping timeout: 248 seconds]
shashin has joined #ruby
<shevy> isn't this bad english?
<shevy> .starts_with? should read better
<shevy> File.exist? vs. File.exists?
<shevy> matz wants us to pick up japanese english
havenwood has quit [Ping timeout: 256 seconds]
sensen has quit [Quit: Lost terminal]
peterdecroos has quit [Ping timeout: 272 seconds]
<Hanmac> shevy: make an alias request or something like that
<blackmesa> Id like starts_with too
Emmanuel_Chanel has joined #ruby
frustrum has joined #ruby
ValicekB has quit [Remote host closed the connection]
<shevy> hanmac hmm
* workmad3 waits for starts_with and then rspec to have 'expect(line).to start_with("foobar")'
<shevy> hanmac ok
pleal has quit [Remote host closed the connection]
Faris has joined #ruby
<Hanmac> workmad3 imo there is nothing wrong with that line ;D
pleal has joined #ruby
mrsolo has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
noname001__ has quit [Quit: Konversation terminated!]
thesheff17 has joined #ruby
kpshek has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
<apeiros> shevy: no, matz wants us to speak to objects in 2nd person
<apeiros> "File, do you exist?"
<shevy> hmm
pleal has quit [Ping timeout: 272 seconds]
mklappst_ has quit [Remote host closed the connection]
kil0byte has joined #ruby
Faris has quit [Ping timeout: 272 seconds]
<shevy> File.do_you_exist?
<shevy> File.exist?
<shevy> :\
<andrewvos> POMSM
interactionjaxsn has joined #ruby
<shevy> why does File.exists? exist though if it is the 2nd person?
<andrewvos> Principle Of Most Spelling Mistake
bean_ has quit [Quit: Computer has gone to sleep.]
cody-- has quit [Ping timeout: 272 seconds]
sdouglas has joined #ruby
kil0byte_ has quit [Ping timeout: 272 seconds]
<terrellt> In your guys' gems, where do you usually put your error classes?
failshell has joined #ruby
Bira has joined #ruby
__nh__ has joined #ruby
Banistergalaxy has joined #ruby
__nh__ has quit [Remote host closed the connection]
cody-- has joined #ruby
__nh__ has joined #ruby
bean_ has joined #ruby
jbpros has quit [Quit: jbpros]
cody-- has quit [Max SendQ exceeded]
mmitchell has joined #ruby
mklappstuhl has joined #ruby
<shevy> terrellt I don't make errors
Faris has joined #ruby
ValicekB has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
<terrellt> Me either, but sometimes people who use the gem do.
<terrellt> Alas.
aryaching has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
sambao21 has joined #ruby
sorbo_ has joined #ruby
tatsuya_o has joined #ruby
fuhgeddaboudit has joined #ruby
headius has joined #ruby
tkuchiki has joined #ruby
tagrudev has quit [Remote host closed the connection]
Xeago has joined #ruby
cody-- has joined #ruby
flops has joined #ruby
sjltaylo_ has joined #ruby
__nh__ has quit []
__nh__ has joined #ruby
heftig has joined #ruby
astrobunny has joined #ruby
__nh__ is now known as preview
sevenseacat has quit [Remote host closed the connection]
cody-- has quit [Client Quit]
boxmein has joined #ruby
tatsuya_o has quit [Ping timeout: 240 seconds]
sdouglas has quit [Quit: sdouglas]
sdouglas has joined #ruby
mercwithamouth has joined #ruby
user258467 has joined #ruby
maoko has joined #ruby
Spami has joined #ruby
cody-- has joined #ruby
<qubit> Is there a simple way to have `gem` provide a list of executables it installed in my bin directory for a certain gem?
qinix has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<qubit> the only way I can see is to do `gem specification GEMNAME`, grab 'bindir' and look through 'files' for anything in that bindir
mrsolo has quit [Quit: This computer has gone to sleep]
enebo has joined #ruby
mary5030 has joined #ruby
jhaals has joined #ruby
guns has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<bean_> qubit: "gem spec gemname executables"
<bean_> should do it
endash_ has joined #ruby
<qubit> empty list :-(
coderhs has quit [Quit: Leaving]
IceyEC has joined #ruby
<qubit> no, youre right
joaoh82 has quit [Remote host closed the connection]
<qubit> I just chose the wrong gem, (tried with bundle, instead of bundler).
<qubit> thank you :-P
lurch_ has quit [Quit: lurch_]
krz has joined #ruby
flower-pot has joined #ruby
<bean_> np
joaoh82 has joined #ruby
rickmasta has quit [Quit: Leaving...]
momomomomo has joined #ruby
camilasan has quit [Remote host closed the connection]
LarsSmit has left #ruby [#ruby]
Faris has quit [Read error: Operation timed out]
astrobunny has quit [Ping timeout: 240 seconds]
leonidlm has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
ValicekB has quit [Remote host closed the connection]
havenwood has joined #ruby
ravster has quit [Quit: Leaving.]
jprovazn has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
Ahti333 has quit [Ping timeout: 240 seconds]
momomomomo has quit [Client Quit]
leokaito has quit [Remote host closed the connection]
Ahti333 has joined #ruby
kevind has joined #ruby
Anderson has quit [Quit: Leaving]
lxsameer has joined #ruby
asym has joined #ruby
r0bby_ has joined #ruby
johnnyfuchs has joined #ruby
robbyoconnor has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
<lxsameer> what is the replacement solution for autoload ?
iamjarvo has joined #ruby
<Hanmac> lxsameer: there is not … use require_relative
<cout> lxsameer: you could always roll your own using const_missing
<lxsameer> hanmac: i want to port an old code which contains lots of autoloads,
<cout> but I wouldn't recommend it
leokaito_ has joined #ruby
<lxsameer> cout: but would it be thread safe ?
<cout> lxsameer: do you care if it's not?
<cout> I mean, does your code use threads?
paolooo has joined #ruby
Faris has joined #ruby
<lxsameer> cout: it's a rails app. so i don't think so
guns has quit [Quit: guns]
<cout> ok then it probably doesn't matter
Ox6abe has joined #ruby
wallerdev has joined #ruby
<lxsameer> cout: thanks buddy
rickmasta has joined #ruby
ValicekB has joined #ruby
dennus has quit []
elux has joined #ruby
shashin has quit [Quit: shashin]
dennus has joined #ruby
DropsOfSerenity has joined #ruby
boxmein is now known as [boxmein]
kil0byte has quit [Remote host closed the connection]
samsonasu has quit [Quit: samsonasu]
[boxmein] has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
shashin has joined #ruby
radic has quit [Ping timeout: 248 seconds]
Skylab has joined #ruby
astrobunny has joined #ruby
rickmasta has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
dash_ has quit [Quit: dash_]
ValicekB has quit [Remote host closed the connection]
leokaito_ is now known as leokaito
tatsuya_o has joined #ruby
acrussell has joined #ruby
Giorgio has quit [Ping timeout: 272 seconds]
dzhulk has quit [Quit: Leaving.]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
jlast has quit [Remote host closed the connection]
leonidlm has joined #ruby
jlast has joined #ruby
nisstyre has joined #ruby
Xeago has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
robbyoconnor has quit [Max SendQ exceeded]
rins has joined #ruby
julweber has quit [Remote host closed the connection]
xxpor__ has quit [Ping timeout: 248 seconds]
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
interactionjaxsn has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
julweber has joined #ruby
robbyoconnor has joined #ruby
ahawkins has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
weems has quit [Quit: Leaving]
robbyoconnor has quit [Client Quit]
tesuji has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
freezey has joined #ruby
samsonasu has joined #ruby
Ox6abe has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
taion809 is now known as zzz_taion809
jlast has quit [Ping timeout: 272 seconds]
kpshek has quit []
burlyscudd has quit [Quit: Leaving.]
tatsuya_o has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<LeBop> Hi, can someone help me please with a problem? I have this variable
<LeBop> but when I print it, it returns
<LeBop> sudo chef-solo -c #<Vagrant::Config::V2::DummyConfig:0x0000000454eb48> -j #<Vagrant::Config::V2::DummyConfig:0x00000004550650> --override-runlist
<LeBop> plain = "sudo chef-solo -c #{vm.config.recipe.chef} -j #{vm.config.recipe.json} --override-runlist
julweber has quit [Read error: No route to host]
ValicekB has joined #ruby
<LeBop> does anyone know how to get the actual value?
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
julweber has joined #ruby
<shevy> no idea with chef
dhruvasagar has joined #ruby
<LeBop> I don;t think it has to do with chef...
jlast has joined #ruby
<shevy> if you can, run .methods on that object
<LeBop> It seems that my variables are actually pointers or something
<LeBop> I need the actual value
<shevy> looks like a class
Spami has quit [Quit: This computer has gone to sleep]
radic has joined #ruby
jkamenik has quit [Quit: Leaving.]
<shevy> perhaps you can do it in irb... Vagrant::Config::V2::DummyConfig.new
svector has quit [Ping timeout: 256 seconds]
sniffingcats has joined #ruby
bline79 has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
julweber has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
asym has quit [Ping timeout: 248 seconds]
|jemc| has joined #ruby
raphaelivan has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jprovazn has joined #ruby
iamjarvo has quit [Read error: Operation timed out]
andikr has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
kil0byte has joined #ruby
zeropx has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
<bean_> LeBop: I'd ask in #chef maybe.
jrhe has quit [Quit: jrhe]
dweeb_ has quit [Quit: Computer has gone to sleep.]
kobain_ has joined #ruby
kobain has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
DonRichie has joined #ruby
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: zigomir]
Lewix has joined #ruby
mj12albert has joined #ruby
astrobunny has quit [Ping timeout: 248 seconds]
sensen has joined #ruby
<workmad3> LeBop: why are you invoking chef-solo manually?
mengu has quit [Remote host closed the connection]
v0n has joined #ruby
<workmad3> LeBop: vagrant already has a chef-solo provisioner that works fine
snovak_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
snovak_ has quit [Remote host closed the connection]
<LeBop> I'm invoking that manually because I want to run a single recipe at any time
snovak has quit [Read error: No route to host]
tharindu has joined #ruby
snovak_ has joined #ruby
<workmad3> LeBop: right... and how are you planning on producing the json file?
<LeBop> I want to run this:
<LeBop> sudo chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json --override-runlist \"recipe[SystemSetup::default]\"
<LeBop> when i do
qinix has joined #ruby
<LeBop> vagrant run-recipe SystemSetup
<LeBop> /tmp/vagrant-chef-1/solo.rb and /tmp/vagrant-chef-1/dna.json are 2 configurable variables actually
<LeBop> you can find the code here
ananthakumaran has joined #ruby
aganov has quit [Remote host closed the connection]
patjoh has joined #ruby
amacgregor has joined #ruby
Ox6abe has joined #ruby
jprovazn has quit [Quit: Odcházím]
michael_mbp is now known as zz_michael_mbp
<workmad3> LeBop: meh, looks like a really weird way to use chef IMO... however, you'll likely need to either dig through vagrant source or ask in #vagrant
astrobunny has joined #ruby
mengu has quit [Ping timeout: 248 seconds]
<LeBop> well... I want to simulate aws OpsWorks
<workmad3> LeBop: and possibly look at some other vagrant plugins to see how they get that sort of info
<LeBop> where you can run a command manually at any time
slashdot has joined #ruby
<LeBop> my project is a fork from vagrant-exec
<workmad3> LeBop: that still seems like a weird way to use chef :)
<LeBop> changed just a few lines
dzhulk has joined #ruby
kil0byte_ has joined #ruby
noop has quit [Ping timeout: 240 seconds]
Tamal has joined #ruby
Xeago has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
rahulkmr has quit [Ping timeout: 265 seconds]
zeade has joined #ruby
<workmad3> LeBop: right... so #vagrant, or dig through vagrant code
wildroman has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LeBop> ok, thanks
Koshian is now known as Koshian
TheNumb has joined #ruby
Mon_Ouie has joined #ruby
nisstyre has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
sniffingcats has quit [Read error: Operation timed out]
ldnunes has quit [Quit: Leaving]
carlyle has joined #ruby
pleal has joined #ruby
wildroma_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
Intrepidd has quit [Remote host closed the connection]
dhilipsi_ has quit [Remote host closed the connection]
cescalante is now known as ce_afk
qinix has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
dhilipsiva has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 248 seconds]
csffsc has joined #ruby
freezey has quit [Remote host closed the connection]
slashdot has quit [Quit: Leaving]
LeBop has left #ruby [#ruby]
cooldman224 has joined #ruby
NinjaPenguin has left #ruby ["Leaving"]
goto has joined #ruby
freezey has joined #ruby
alup has quit [Quit: Leaving]
csffsc has quit [Ping timeout: 240 seconds]
mrnugget has quit [Quit: mrnugget]
csffsc has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
csffsc has quit [Remote host closed the connection]
smoothbutta has quit [Remote host closed the connection]
habanany has joined #ruby
csffsc has joined #ruby
joaoh82 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
csffsc_ has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
whunt has joined #ruby
sniffingcats has joined #ruby
astrobun_ has joined #ruby
iamjarvo has joined #ruby
jerrad has joined #ruby
jerrad has quit [Client Quit]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
csffsc has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
ghargoil has joined #ruby
coderhs has joined #ruby
tharindu has quit [Quit: Leaving...]
kil0byte_ has quit [Ping timeout: 265 seconds]
<ghargoil> I have a noob question regarding ruby modules -- I defined a module Xyz, included it in another file, but I want to access a method in Xyz called abc
<ghargoil> how do I do that?
<ghargoil> (cause right now, it says no such method Xyz::abc )
vky has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
nari has joined #ruby
<hoelzro> did you require() the file?
klaut has quit [Remote host closed the connection]
<hoelzro> >> module Foo def bar() puts 'hello'; end; end; Foo::bar()
<eval-in> hoelzro => undefined method `bar' for Foo:Module (NoMethodError) ... (https://eval.in/56273)
<hoelzro> bwah
tjad has quit [Remote host closed the connection]
<Hanmac> you are looking for module_function ?
<hoelzro> oh, because it's an instance method
<hoelzro> ghargoil: what hanmac said
andikr has quit [Remote host closed the connection]
T__T has joined #ruby
<ghargoil> oops looked away for a sec
<ghargoil> reading
<ghargoil> so I required the file, yes
<workmad3> ghargoil: did you include the module in a class?
<ghargoil> nope
volty has joined #ruby
<csffsc_> I have a procedural script, inside one of my functinos I need to make two objects available globally.. Ruby tends to make the last object available - how can I make more?
<workmad3> >> module Foo; def bar(); puts "hello"; end; end; class Bar; include Foo; end; Bar.new.bar
<eval-in> workmad3 => hello ... (https://eval.in/56274)
akemrir has joined #ruby
<workmad3> ghargoil: 'instance' methods of a module are available to instances of any classes the module is mixed into ;)
<ghargoil> hrmm
<ghargoil> Im trying to run some test cases
<ghargoil> so there's no way to just er
<ghargoil> call Foo::bar() ?
apeiros has quit [Remote host closed the connection]
ce_afk is now known as cescalante
<csffsc_> specifically what I'm refering to; the royals object on line 10
<volty> csffsc_: you are confusing return values with 'objects available globally'
kaspergr_ has joined #ruby
<hoelzro> ghargoil: use module_function
lurch_ has joined #ruby
<hoelzro> >> module Foo def bar() puts 'hello'; end; module_function :bar; end; Foo::bar()
<eval-in> hoelzro => hello ... (https://eval.in/56275)
<volty> that said i have no more to say to you, because, excuse me, you miss too much the basics
<ghargoil> aha!
kaspergrubbe has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
vipjun has joined #ruby
<csffsc_> volty: so, would returning two objects be possible?
sambao21 has quit [Quit: Computer has gone to sleep.]
joaoh82 has quit [Remote host closed the connection]
digital-ghost has joined #ruby
<volty> >> def two; [:one, :two]; end; two
<eval-in> volty => [:one, :two] (https://eval.in/56276)
habanany has quit [Ping timeout: 248 seconds]
Jehanzaib has joined #ruby
MrZYX is now known as MrZYX|off
<Jehanzaib> ANYONE AWAKE HERE
habanany has joined #ruby
* workmad3 snores
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csffsc_> okay, I sopose I'll read up elsewhere then
* shevy pokes workmad3
bricker`LA has joined #ruby
<Jehanzaib> hello
<shevy> ghargoil Foo::bar() is really ugly, Foo.bar() is a bit better, Foo.bar is picture perfect
mercwithamouth has joined #ruby
Xeago has joined #ruby
sambao21 has joined #ruby
<shevy> I keep on mixing up hoelzro and havenwood ... :\
<havenwood> :O
burlyscudd has joined #ruby
* Jehanzaib poke shevy
kpshek has joined #ruby
<shevy> csffsc_ you can do explicit returns, you can return anything from within a method. volty showed the example with arrays. but you could also return a hash, and that hash stores your objects, for instance
radic has quit [Disconnected by services]
radic_ has joined #ruby
iamjarvo_ has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
MrBoolean has joined #ruby
* Jehanzaib greets everyone in the channel
rahulkmr has joined #ruby
<havenwood> helloo
rahulkmr has quit [Max SendQ exceeded]
ldnunes has joined #ruby
* Jehanzaib hello havenwood
gyre007 has joined #ruby
<csffsc_> shevy: okay, I would be returning a hash & array, so if those two were combined, I would need to modify anotherpart of the code I would assume
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
Jehanzaib has left #ruby [#ruby]
<shevy> well can you not store your objects in a reference csffsc_ ?
rahulkmr has joined #ruby
wildroma_ has quit [Remote host closed the connection]
rahulkmr has quit [Max SendQ exceeded]
bricker`1A has joined #ruby
<shevy> @array = []; @array << object1; @array << object2
bricker`LA has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
lfox has quit [Quit: ZZZzzz…]
weems has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
mercwithamouth has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
<havenwood> csffsc_: get your code refactored?
<havenwood> csffsc_: You were going to put it in a module or class, right?
goto has quit [Changing host]
goto has joined #ruby
ssvo has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
<havenwood> mm, coffee... ;)
iamjarvo has joined #ruby
rahulkmr has joined #ruby
<volty> Curious, after having read, time ago, in this chan, talking without nor head nor tail, about 'design patterns' i got the book (not paid). To me it seems full of nonsense, of programming techniques repackaged under new terms, a book that stars with a very stupid pretext about a very very stupid man that could make thousands of classes instead of handling the variations (of value-attribute) and behavior just with data (
<volty> associations, hashes, arrays ...)
rahulkmr has quit [Max SendQ exceeded]
<csffsc_> havenwood: I was reading about it last night yes - (Practical Object-Oriented Design in Ruby)
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<havenwood> haven't read it, but sounds like something i've heard recommended
wildroman has joined #ruby
duke_nukem has quit [Quit: leaving]
dagobah has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 245 seconds]
<volty> there I read a very dishonest premise that decorator is not inheritance (since the behavior isn't in the base class!!!!?) but composition
MrBoolean has quit [Read error: Connection reset by peer]
MrBoolean has joined #ruby
<csffsc_> havenwood: it's good, however, it's not written so one can simply convert a procedural script to OO... so I was following the examples in the book instead
<csffsc_> for instance, I'm not sure if the entire script would be one class, or if I would have 3, Formatting input, Hnadling Data, Formatting output
iamjarvo has quit [Remote host closed the connection]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
jhaals has joined #ruby
habanany has quit [Ping timeout: 265 seconds]
rahulkmr has joined #ruby
iamjarvo has joined #ruby
aapzak has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<volty> so have you any url for me that could 'enlighten' me about all this that I just call ' hype about patterns ', pompous classifying and renaming of the common sense ?
<havenwood> csffsc_: I guess first pick if module or class is appropriate. Use a module, unless you need to initialize and use some instance specific state, then class.
habanany has joined #ruby
rahulkmr has joined #ruby
<terrellt> volty: ...I'm sorry, are you suggesting that the design patterns written by "The Gang of Four" are bad?
DanKnox_away is now known as DanKnox
Xeago has quit [Remote host closed the connection]
<csffsc_> havenwood: I'm 99% sure I want a class..
<volty> «Head First Design Patterns»
<volty> going to see the gang of four
cody-- has quit [Quit: derp]
<terrellt> I haven't read that one, but "Design Patterns: Elements of Reusable Object-Oriented Software" is pretty fantastic.
<havenwood> csffsc_: Okay, so start by putting your existing methods in that class namespace.
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<havenwood> class BlackJack; ...; end
ghr has quit [Quit: Computer has gone to sleep.]
<csffsc_> okay
lurch_ has quit [Quit: lurch_]
iamjarvo has quit [Ping timeout: 272 seconds]
habanany has quit [Read error: Operation timed out]
Spami has joined #ruby
<havenwood> csffsc_: And make a new `def initialize` method where you initialize the instance methods that are the reason you're using a class not a module.
echevemaster has joined #ruby
boxmein has joined #ruby
habanany has joined #ruby
kofno has joined #ruby
gverri_ has joined #ruby
gverri_ has quit [Client Quit]
<volty> terrellt: thx, going to see
<havenwood> csffsc_: Then fix up the existing methods to use the new @royals (or whatever) instance variables.
<havenwood> csffsc_: And shorten all lines to 80 or fewer characters. Once it is working again, you'll be in a place to start thinking about refactoring.
AndChat|87561 has joined #ruby
<havenwood> csffsc_: Having tests makes refactoring much easier!
AndChat|87561 has quit [Remote host closed the connection]
<csffsc_> I created the class; Class BlackJack
<havenwood> class BlackJack
<csffsc_> although I'm getting errors; uninitialized constant BlackJack (NameError)
rgbdev has joined #ruby
<csffsc_> ah
blaxter has quit [Quit: foo]
dash_ has joined #ruby
leonidlm has quit [Read error: Operation timed out]
habanany has quit [Read error: Operation timed out]
<havenwood> csffsc_: `class Array` is syntactic sugar, on the next line indent and put all your methods, then follow with an unindented `end`. Like: https://gist.github.com/havenwood/7059881
jrhe has joined #ruby
moted has quit [Quit: moted]
interactionjaxsn has quit [Remote host closed the connection]
asym has joined #ruby
interactionjaxsn has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<csffsc_> yeah, I'm getting errors whenever the methods are relying upon an object that is being served from outside of the class (I think thats the proper way to describe it)
zeade has quit [Quit: Leaving.]
<havenwood> csffsc_: conference call, be back later
<csffsc_> ok
<havenwood> nvm, held off for 10min
<havenwood> csffsc_: Show the code where you've wrapped your methods in the new class namespace?
enebo has quit [Quit: enebo]
zeade has joined #ruby
<havenwood> csffsc_: Name it with `.rb` for syntax highlighting. :P
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
Tearan has joined #ruby
mrsolo has joined #ruby
<havenwood> csffsc_: no parens on methods without arguments in Ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csffsc_> okay
moted has joined #ruby
varfoo has joined #ruby
rgbdev has quit [Ping timeout: 272 seconds]
<Morrolan> Line 31 will fail. Calls a function which is defined inside the class, you can't just call that one.
DropsOfSerenity has joined #ruby
nari has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
akemrir has quit [Quit: WeeChat 0.4.2]
seanz has joined #ruby
<seanz> Potentially heated question: python is known as a "batteries included" language. Does ruby have a similar reputation?
khushildep has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
<seanz> Things like python's built-in iterators. I'm considering ruby as a language, but I want to know what to expect when switching.
<havenwood> csffsc_: And when you then call those methods down below outside the class, you'll need to do something like: black_jack = BlackJack.new; hand = black_jack.format_input(ARGV[0])
<canton7> I think you'll struggle to find much in core python which isn't in core ruby (or doesn't have an alternative)
<havenwood> canton7: Blocks?
TMM has quit [Quit: Ex-Chat]
<havenwood> canton7: Oh, i read that wrong. Hehe.
<canton7> havenwood, that's in ruby, not python?
<canton7> :P
<havenwood> canton7: I thought you were saying other way around.
lfox has joined #ruby
bean_ has quit [Quit: Computer has gone to sleep.]
<canton7> like ruby doesn't have list comprehensions... but it has Enumerable, which provides an arguably shorter and cleaner alternative
<havenwood> seanz: Ruby has what Python does plus more. Maybe not quite as easy to learn, but quite powerful. Ruby, you'll shoot your eye out!
<RubyPanther> seanz: Ruby tries to do what is expected, "the principle of least surprise." So if not having batteries would be surprising, then they're included. Personally, I've never used batteries in my code.
<canton7> (bear in mind that the "principle of least surprise" applies to someone versed in the language, not a notice. Matt's point was that, even after 3 years of full-time use, C++ still surprised him)
MrBoolean has quit [Quit: Linkinus - http://linkinus.com]
NealJ has joined #ruby
<seanz> RubyPanther havenwood canton7: Interesting.
<havenwood> RubyPanther: Yeah, i'd worry about a battery dependency, cause then i gotta worry about charging it, and is it safe to throw them in the garbage collector?
<RubyPanther> Yeah, also note that the Ruby stdlib is designed to be least surprising... on unix
jbpros has quit [Client Quit]
timonv has quit [Remote host closed the connection]
<volty> on the «reputation» (of ruby) you can talk with your gossiping neighbur
<RubyPanther> which often means being a very thin wrapper around the C lib
dhruvasagar has joined #ruby
sdouglas has quit [Quit: sdouglas]
apeiros has joined #ruby
<volty> www.google..com/search?q="ruby vs python"
catphish has joined #ruby
<RubyPanther> canton7: C++ is still surprising to people who use it for 10+ years and are experts, because everybody agrees using all of it is bad and nobody agrees which parts are good
vky has quit [Remote host closed the connection]
robawt has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<catphish> does anyone know if it's possible to set the source IP of a udp packet when a udp socket is bound to 0.0.0.0
<havenwood> seanz: I'd for sure recommend Ruby! Wonderful lang and easy to be productive, lots of gems, good community.
heftig has quit [Quit: Quitting]
barratt has quit [Ping timeout: 272 seconds]
<volty> I like ruby as much as I like the pythoners
lyanchih has joined #ruby
<volty> but you cannot have everything :( :)
MrV has quit [Quit: MrV]
beilabs has quit [Ping timeout: 265 seconds]
<RubyPanther> catphish: possible is a strong word
<havenwood> Rubyists, Clojurians, Pythonistas, Scalites, oh my! (Rank them, be careful, there are right and wrong answers. Grading will be severe.)
<seanz> havenwood: I've seen some really nice web products come out of ruby, which caught my attention.
<seanz> GitHub, GitLab being two of them.
<havenwood> seanz: mmm, <3 Githubs
<robawt> also logstash (jruby) chef's DSL & puppet
sambao21 has quit [Quit: Computer has gone to sleep.]
<catphish> ruby is responsible for a lot of SaaS
chrisja has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Remote host closed the connection]
shashin has quit [Quit: shashin]
boxmein is now known as [boxmein]
Voodoofish430 has joined #ruby
<volty> the mine was only about chan people, about common sense and humanity
freezey has joined #ruby
MrZYX|off is now known as MrZYX
iamjarvo has joined #ruby
mansi has joined #ruby
vky has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
visof has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
<robawt> what's a good way to get started with gems?
dhruvasagar has joined #ruby
[boxmein] has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<catphish> making them>
<catphish> *?
sniffingcats has quit [Quit: Til rivido Idisti!]
lfox has left #ruby [#ruby]
leokaito has quit []
sambao21 has joined #ruby
astrobun_ has quit [Ping timeout: 240 seconds]
<catphish> RubyPanther: yes it is :)
carlyle has quit [Remote host closed the connection]
visof has quit [Remote host closed the connection]
Soda has joined #ruby
froy has joined #ruby
bean_ has joined #ruby
Giorgio has joined #ruby
aapzak has joined #ruby
<RubyPanther> catphish: one way to achieve the effect would be to bind to the IP you want, and then redirect the inbound traffic on the other ones
stunthamster has quit [Quit: Linkinus - http://linkinus.com]
momomomomo has quit [Quit: momomomomo]
wallerdev has quit [Quit: wallerdev]
<RubyPanther> in the firewall
kil0byte has joined #ruby
kpshek has quit []
<catphish> RubyPanther: that makes sense, it's for DNS though so the NAT table might be a bit bug
<catphish> *big
<billiam> Anybody aware of somewhere I could paste a ruby snippet and see output in multiple ruby versions?
saarinen has joined #ruby
astrobunny has joined #ruby
ahawkins has joined #ruby
monkegjinni has quit [Remote host closed the connection]
beilabs has joined #ruby
sambao21 has quit [Client Quit]
monkegjinni has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
csffsc_ has quit [Remote host closed the connection]
<havenwood> billiam: https://eval.in/
<RubyPanther> catphish: a Ruby DNS server
twoism has joined #ruby
<RubyPanther> ?
<catphish> RubyPanther: yes
carlyle has joined #ruby
csffsc has joined #ruby
<preview> billiam: maybe a shell script that switches ruby versions with rbenv/rvm and runs the same script with each
stkowski has joined #ruby
<havenwood> preview: chruby!
<billiam> havenwood: thanks.
<billiam> preview: yeah, using chruby now, it's just tedious getting all these ruby versions installed for a one-time test.
<preview> havenwood: oh shit, chruby is post-rbenv? I hadn't heard of it.
carraroj has joined #ruby
<RubyPanther> catphish: I'd worry about Ruby being poorly suited for that before I'd worry about a big NAT table. And anyways, NAT shouldn't mean you have lots of extra interfaces... usually it means you have less. And you can use wildcards in the firewall, assuming IP tables or something with modern features
mac_ has joined #ruby
tatsuya_o has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
<volty> terrellt: thx, gang of four's is very clean and straitforward, I'll have only to get used to terms - if I read it (to find something new or just survay) // «Head First Design Patterns» is rubbish, starting with their stupid starting example (extended 'drinks' and 'coffees') and the starting, pompous, wrong, premises (it's not inheritance because the behavior is defined later - extremelly stupid assertion)
<volty> thx again
alex__c2022 has joined #ruby
<havenwood> preview: Yup, indeed. Really nice combo is ruby-install with chruby. Here's a little review (except he's using ruby-build not ruby-install): http://pbrisbin.com/posts/chruby/
<catphish> RubyPanther: not sure why ruby would be poorly suited, dns is very simple :)
stonecolddevin has joined #ruby
kpshek has joined #ruby
codelette has joined #ruby
csffsc has quit [Ping timeout: 272 seconds]
pwh has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
p8952 has joined #ruby
<volty> maybe the correct question should be: purely suited rispect to what (else lang) ?
T__T has quit [Remote host closed the connection]
kaspergr_ has quit [Read error: Connection reset by peer]
bean_ has quit [Quit: Computer has gone to sleep.]
<preview> havenwood: Wow, it doesn't get much simpler than that.
kaspergrubbe has joined #ruby
Stygia has quit [Quit: Leaving]
sambao21 has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
<havenwood> preview: Yup. :) Compared to RVM's ~20,000 lines of code chruby's ~90 lines seems itsy bitsy.
polaco is now known as polaco_zZz
kaspergrubbe has quit [Read error: Operation timed out]
heidi has quit [Quit: Leaving.]
pleal_ has joined #ruby
polaco_zZz is now known as polaco
s0ber has quit [Remote host closed the connection]
jrhe has quit [Ping timeout: 245 seconds]
<yxhuvud> catphish: depends on use case. We implement dns servers that we expect to be required to be able to use up a gigabit line.. scaling ruby to that point for dns would take a bit too much work.
pleal has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 240 seconds]
<catphish> yxhuvud: i agree, i don't expect ruby to be able to push a gig of dns packets, but i'm inclined to try now :)
enebo has joined #ruby
ahawkins has quit [Quit: leaving]
DrShoggoth has joined #ruby
iamjarvo has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
ccooke_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
p8952 has quit [Ping timeout: 272 seconds]
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
verazabeida has joined #ruby
cody-- has joined #ruby
ccooke has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
lyanchih has quit [Quit: lyanchih]
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
pwh has joined #ruby
Underbyte has quit [Quit: Leaving...]
thirdender has joined #ruby
nobitanobi has joined #ruby
echevemaster has quit [Quit: Leaving]
p8952 has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
T__T has joined #ruby
<thirdender> Looking to install Ruby on a Centos 6.4 machine... Looking at https://gist.github.com/premist/1601228, he shows downloading the .tar.gz and compiling. Looking at https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-centos-6, they use yum. Is there a preferred method of Ruby installation (versions aside)?
tkuchiki has joined #ruby
theoretick has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
freezey has joined #ruby
asym has quit [Ping timeout: 248 seconds]
<nobitanobi> Hi. I am trying to use Image Science gem in my Ruby 2.0.0 - I have added a Gemfile in my project with image_science and I am doing a test where I just do a require 'rubygems'; require 'image_science' and when trying to run it I get: https://gist.github.com/novito/7087466
<nobitanobi> any thoughts?
cody-- has quit [Ping timeout: 256 seconds]
Monie has joined #ruby
pleal_ has quit [Read error: Connection reset by peer]
heidi has joined #ruby
pleal has joined #ruby
pragmatism has joined #ruby
<Mon_Ouie> FreeImage.h: No such file or directory — looks like you didn't install FreeImage
rezzack has joined #ruby
<havenwood> nobitanobi: After adding it to your Gemfile, did you?: bundle
<nobitanobi> havenwood: yes.
shaunbaker has quit [Ping timeout: 272 seconds]
<nobitanobi> I'm looking at what Mon_Ouie suggested.
<nobitanobi> I thought adding the image_science gem would install all dependencies
volty has quit [Quit: the log file is growing too much :)]
<Mon_Ouie> It can't install a C library
<nobitanobi> right...
<yxhuvud> thirdener: I'd look at chruby if I were you, and at rebuilding the versions that fedora packages for centos if you *really* cannot stand having non-rpm installations. whatever you do, don't use the 1.8.7 that is preinstalled.
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
Astralum has quit [Ping timeout: 240 seconds]
<nobitanobi> thanks Mon_Ouie
<thirdender> got it... thanks yxhuvud :-)
<havenwood> thirdender: I'd recommend using ruby-install to install the Ruby of your choice. Then use chruby to select that Ruby as your default or switch to others if you wanna have moar Rubies.
dhruvasagar has joined #ruby
<thirdender> is chruby related to RVM?
tkuchiki has quit [Ping timeout: 272 seconds]
<yxhuvud> no, it is a competitor.
p8952 has quit [Read error: Operation timed out]
<thirdender> okay, cool... seen RVM mentioned multiple times, first time hearing about chruby
iamjarvo has joined #ruby
<havenwood> thirdender: RVM does ship with a MRVM (mini-rvm) that installs Rubies for use with chruby.
<thirdender> havenwood: is https://github.com/postmodern/ruby-install the ruby-install you were mentioning?
<havenwood> thirdender: RVM and chruby are friendly and devs share ideas, but yeah, competitors in terms of which to choose.
<havenwood> thirdender: Yup, exactly.
iamjarvo has quit [Remote host closed the connection]
<thirdender> friendly open source competition is good :-)
<thirdender> cool, thanks all :-)
mark_locklear has quit [Ping timeout: 245 seconds]
<thirdender> company server, don't want to screw it up... :-p
c0rn has joined #ruby
cads has joined #ruby
iamjarvo has joined #ruby
jmccune has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
random_ has joined #ruby
rgbdev has joined #ruby
jmccune has quit [Client Quit]
random_ has left #ruby [#ruby]
freezey has quit [Ping timeout: 265 seconds]
theoretick is now known as theoretick_
p8952 has joined #ruby
theoretick_ is now known as theoretick
<havenwood> Need to add JEG's endorsement of chruby to the Endorsements section. Think if a Ruby Rogue chooses chruby/ruby-install as a 'pick' you should ask permission to use the quote?
theoretick is now known as theoretick_
jkline has joined #ruby
ccooke_ is now known as ccooke
Hobogrammer has joined #ruby
danman has joined #ruby
dorei has joined #ruby
sambao21 has joined #ruby
<havenwood> kinda a public endorsement, but don't wanna go rampaging about quoting people without permission
<havenwood> or do i... :O
* havenwood rampages off in search of coffee.
lethjakm1 has joined #ruby
catphish has quit [Quit: Leaving]
<lethjakm1> hey, does anyone know of a good bluetooth gem that I can communicate with bluetooth devices?
tharindu has quit [Quit: Leaving...]
lethjakm1 is now known as lethjakman
soheil has joined #ruby
PhilK_ is now known as PhilK
cody-- has joined #ruby
theoretick_ has quit [Ping timeout: 245 seconds]
jlebrech has quit [Quit: Konversation terminated!]
rgbdev has quit [Ping timeout: 272 seconds]
<nobitanobi> Somebody can help me out trying to figure out how to use the method 'with_crop' from ImageScience? I am trying to crop a png file like this: https://gist.github.com/novito/7087749 --- and the rdocs say 'with_crop' yields the new image: http://docs.seattlerb.org/image_science/ImageScience.html
dennus has quit []
carraroj has quit [Quit: Konversation terminated!]
csffsc has joined #ruby
theoretick has joined #ruby
fmcgeough has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
atno has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 260 seconds]
bricker`away is now known as bricker
freezey has joined #ruby
Skylab has quit [Quit: Skylab]
atno has joined #ruby
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
intuxicated has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Es0teric has joined #ruby
jrhe has joined #ruby
burlyscudd has joined #ruby
ericmathison has joined #ruby
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
estebanrules has quit [Remote host closed the connection]
stringoO has joined #ruby
bricker has quit [Quit: leaving]
Tuxist has joined #ruby
bricker has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
jkamenik has joined #ruby
vlad_starkov has joined #ruby
zz_michael_mbp is now known as michael_mbp
mark_locklear has joined #ruby
Guest77625 has quit [Remote host closed the connection]
snath has joined #ruby
SilverKey has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<shevy> hanmac yeah, I have no idea why taxpayer money is channeled into a private organisation
emmanuelux has joined #ruby
vlad_starkov has joined #ruby
michael_mbp is now known as zz_michael_mbp
rickmasta has joined #ruby
coderhs has quit [Quit: Leaving]
lurch_ has joined #ruby
mklappstuhl has joined #ruby
JohnBat26 has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
Sauvin has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
lurch_ has quit [Client Quit]
Ox6abe has joined #ruby
twoism_ has joined #ruby
avril14th has quit [Remote host closed the connection]
bricker_ has joined #ruby
wildroman has quit [Remote host closed the connection]
TTilus has joined #ruby
pwh has quit []
jmccune has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Giorgio has quit [Ping timeout: 240 seconds]
Zolo has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
theRoUS has quit [Quit: Leaving]
mklappstuhl has quit [Read error: Operation timed out]
theRoUS has joined #ruby
jprovazn has joined #ruby
twoism has quit [Read error: Operation timed out]
<relix> is there a inverse of StringIO?
bricker has quit [Ping timeout: 272 seconds]
aryaching has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
<relix> or actually, a StringIO that actually writes to a file, then executes a command, and then reads the file back in again
aryaching has joined #ruby
<relix> I've got some data and would like an external binary to be run on it, but that bin only takes a path and rewrites the file in place
<relix> I guess that's too specific for there to be a class taht does that, but I thought I might try my luck here :)
bricker_ is now known as bricker
saarinen has joined #ruby
Ox6abe has quit [Ping timeout: 268 seconds]
hakunin has quit [Read error: Operation timed out]
theRoUS has quit [Client Quit]
twoism_ has quit [Read error: Connection reset by peer]
twoism has joined #ruby
wildroman has joined #ruby
verazabeida has quit [Remote host closed the connection]
dkamioka has joined #ruby
pleal_ has joined #ruby
<Hanmac> relix you could open the file in "rw" mode, that read and write to the file at the same time
hakunin has joined #ruby
xk_id has joined #ruby
Ox6abe has joined #ruby
iamjarvo_ has joined #ruby
<havenwood> nobitanobi: Ah, so you don't want a square crop?: https://github.com/seattlerb/image_science/blob/master/lib/image_science.rb#l68-85
<relix> hanmac, so basically open a TempFile, write data out, execute binary, rewind, read data, close?
mercwithamouth has joined #ruby
<nobitanobi> havenwood: I moved to Chunky PNG. Thanks :)
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<havenwood> nobitanobi: Good deal. :)
pleal has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
twoism has quit [Remote host closed the connection]
<Hanmac> relix i think that would be the best, you come back again if it does not fit what you want
twoism has joined #ruby
asym has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
theRoUS has quit [Client Quit]
Uranio has quit [Quit: while you reading this, a kitty dies]
fuhgeddaboudit has joined #ruby
nomenkun_ has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
ewnd9 has quit [Ping timeout: 272 seconds]
centipedefarmer has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
nomenkun_ has quit [Remote host closed the connection]
IceDragon has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
<relix> hanmac yep, thanks!
end_guy has joined #ruby
zz_michael_mbp is now known as michael_mbp
Uranio has joined #ruby
colonolGron has joined #ruby
31NAART4C has joined #ruby
31NAART4C has quit [Max SendQ exceeded]
shredding has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Client Quit]
theRoUS has joined #ruby
kaspergrubbe has joined #ruby
Squarepy has quit [Ping timeout: 245 seconds]
Squarepy_ has joined #ruby
<lethjakman> what's the difference between rc2 and -p247?
monkegjinni has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
<Hanmac> lethjakman: rc means release canidate … so its < p0 < p247
rgbdev has joined #ruby
krz has quit [Quit: krz]
gioele has joined #ruby
theRoUS has quit [Client Quit]
Astral_ has quit [Read error: Operation timed out]
Quest has joined #ruby
<Quest> whats the correct command. sass --watch --expanded file.scss?
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
wildroman has quit [Remote host closed the connection]
spider-mario has joined #ruby
theRoUS has quit [Client Quit]
nilved has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Skylab has joined #ruby
<gioele> hi, I have a problem with encodings: I have a file `enc.rb` with just `p 'è'`, encoded in UTF-8. When I run `ruby -E utf-8:utf-8 enc.rb` it fails with a "invalid multibyte char (US-ASCII)" error. Instead, if I use the old `ruby -Ku enc.rb` it works fine
<gioele> isn't `-E utf-8:utf-8` equivalent to `-Ku`?
<Quest> whats the correct command. sass --watch --expanded file.scss?
c0rn has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Ping timeout: 252 seconds]
<Hanmac> Quest: the correct command is "/join #sass"
<Quest> did that
<apeiros> gioele: -E is only about input/output, not the source file itself
<dorei> gioele: try putting # encoding: UTF-8 at the top of the file
<apeiros> gioele: put # encoding: UTF on top
<Quest> there is no man. no docs. nothing. no one in #sass
<apeiros> blah, what dorei said :)
<lethjakman> hanmac: oh so it's older!
<lethjakman> or newer?
c0rn has joined #ruby
theRoUS has quit [Client Quit]
<lethjakman> what does p stand for?
<gioele> apeiros, dorei: I am just trying to understand, I do not want to modify the file or add a BOM
nilved has joined #ruby
theRoUS has joined #ruby
astrobunny has joined #ruby
<Hanmac> lethjakman: rc is older, try to use an higher "patch"-version … (or do it like me and use daily)
<apeiros> gioele: that's not a BOM
<lethjakman> ahh ok thank you
Tuxist has quit [Remote host closed the connection]
verazabeida has joined #ruby
<dorei> gioele: your .rb file contains utf-8 chars, u have to inform mri about that
<apeiros> gioele: BOM means "Byte Order Mark", and is something completely different.
<apeiros> and for the rest, again what dorei said :)
<gioele> apeiros: "or" a BOM. Using a BOM works as well
jblack has joined #ruby
<gioele> dorei: in 1.8.7 you did inform ruby using -K, now -K has been removed, how do you do that from the command line
<apeiros> gioele: anyway, you must. it's not valid.
<apeiros> gioele: you can't.
aspires has joined #ruby
jrhe has quit [Read error: Operation timed out]
<apeiros> with 2.0, utf-8 is the default, but for 1.9, you have to specify it.
<shredding> does anyone know guard?
<apeiros> that is - either you specify the encoding or you use escape sequences (\uHHHH)
segfalt has joined #ruby
verazabeida has quit [Remote host closed the connection]
<apeiros> though, with the latter the encoding of the string will be set wrongly
jkline has quit [Quit: jkline]
rahulkmr has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
centipedefarmer has quit [Remote host closed the connection]
ShellFu has joined #ruby
amacgregor has joined #ruby
deception has joined #ruby
momomomomo has joined #ruby
zigomir has joined #ruby
theRoUS has quit [Quit: Leaving]
kil0byte has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ghargoil has left #ruby [#ruby]
Xeago has joined #ruby
<sorbo_> can you not set a default value for the last parameter in a method? I can't tell if ruby is yelling at me for that, or something unrelated (but making it _look_ like it's taht)
<sorbo_> s/taht/that
cooldman224 has quit [Ping timeout: 272 seconds]
<sorbo_> e.g. my_meth(one, two, three='')
momomomomo has quit [Client Quit]
<DropsOfSerenity> sorbo_ def my_method(one, two, three = "")
<apeiros> >> def my_meth(one, two, three=''); end
<eval-in> apeiros => nil (https://eval.in/56331)
<apeiros> no error, works fine
<apeiros> so your problem is elsewhere sorbo_.
<sorbo_> yeah that's what I thought. cool, thanks
vlad_starkov has quit [Remote host closed the connection]
paolooo has quit [Quit: Page closed]
<Hanmac> you can also add costom errrors like def abc(a,b,c=raise "this is my error")
vlad_starkov has joined #ruby
<apeiros> hanmac: haha, nice use of how default values work in ruby :)
postmodern has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
<shredding> I want to trigger a guard on a specific set of files in a rake task.
MrPoT4tO has joined #ruby
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
<apeiros> def abc(a=raise RTFM, "Read the F'ing manual you slob")
<shredding> More specifc: I want to pass all files that are committed to a git repo.
Squarepy_ has quit [Quit: Leaving]
Dave is now known as Guest94402
aetaric has quit [Ping timeout: 240 seconds]
* Hanmac - missuses parameters since '88
<shredding> I'm not really sure how to do this, I walked through the source of guard but do not really find a hook point where to give the files.
Xeago has quit [Ping timeout: 252 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
mrpot4to_ has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
mansi has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
ArchBeOS is now known as ArchWallnutCreek
mansi has joined #ruby
rahulkmr has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
rahulkmr has quit [Max SendQ exceeded]
sambao21 has joined #ruby
aetaric has joined #ruby
jblack has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
spider-mario has joined #ruby
mansi has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
ArchWallnutCreek is now known as ArchBlooupers
diegoviola has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
kenneth has joined #ruby
brianpWins has joined #ruby
<sorbo_> oh weird
ArchBlooupers is now known as ArchBeOS
<sorbo_> I figured it out
sorbo_ has quit [Quit: sorbo_]
pushpak has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
orien has joined #ruby
cooldman224 has joined #ruby
brianpWins has quit [Ping timeout: 248 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
akemrir has joined #ruby
brianpWins has joined #ruby
guillaum has joined #ruby
guillaum has quit [Client Quit]
estebanrules has joined #ruby
Quest has left #ruby ["Leaving"]
chief_ has joined #ruby
atmosx has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
chief_ has left #ruby [#ruby]
babonk_ has joined #ruby
<babonk_> Hey guys I'm trying to extend an array defined previously in a .yaml? How to do that?
brandon_ has quit [Quit: Changing server]
<nilved> the same way you'd extend any array, presumably!
Michael__ has joined #ruby
<nilved> push, unshift, +, <<? or is there something that complicates things.
<babonk_> i couldn't get it to work with <<
<babonk_> base_array: &base_array
<babonk_> - whatever
<babonk_> then how do i extend base_array with another one?
<babonk_> with more elements
diegoviola has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
<nilved> sorry, misunderstood. not sure.
RORgasm has joined #ruby
rgbdev has quit [Quit: rgbdev]
amacgregor has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
Memphizzzzzz has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
carlyle has joined #ruby
spider-mario has joined #ruby
xk_id has quit [Quit:
snath has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
raphaelivan has quit [Quit: Leaving.]
zigomir has quit [Quit: zigomir]
skaflem has quit [Quit: Leaving]
acrussell has left #ruby [#ruby]
jkline has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
timonv has joined #ruby
buibex has joined #ruby
DropsOfSerenity has joined #ruby
nilved has quit [Ping timeout: 260 seconds]
atno has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
twoism_ has joined #ruby
DropsOfSerenity has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
SilverKey has quit [Remote host closed the connection]
geekbri has joined #ruby
nilved has joined #ruby
saarinen has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.2]
twoism_ has quit [Remote host closed the connection]
brandon_ has joined #ruby
freezey has quit [Remote host closed the connection]
twoism_ has joined #ruby
sambao21 has joined #ruby
<csffsc> havenwood: I stepped out, and lost your last message in the chat history
freezey has joined #ruby
kil0byte has joined #ruby
SilverKey has joined #ruby
gioele has quit [Quit: P]
twoism has quit [Read error: Connection reset by peer]
rahulkmr has quit [Ping timeout: 264 seconds]
akemrir has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
sayan has quit [Ping timeout: 252 seconds]
shaunbaker has joined #ruby
SilverKey has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
freezey has quit [Ping timeout: 252 seconds]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
buibex has quit [Remote host closed the connection]
olleicua has joined #ruby
buibex has joined #ruby
Faris has quit [Ping timeout: 248 seconds]
nkts has joined #ruby
burlyscudd has quit [Quit: Leaving.]
sunnymolini1 has joined #ruby
snath has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
Memphizzzzzz has quit [Ping timeout: 252 seconds]
Jake232 has joined #ruby
buibex has quit [Ping timeout: 264 seconds]
Zolo has quit [Remote host closed the connection]
<babonk_> Hey guys I'm trying to extend an array defined previously in a .yaml? How to do that? I'm trying to do it in the YAML itself, not in ruby
iamjarvo_ has quit [Remote host closed the connection]
Zolo has joined #ruby
iamjarvo has joined #ruby
luckyruby has joined #ruby
alvaro_o has joined #ruby
nomenkun has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
rahulkmr has joined #ruby
ehaliewicz has joined #ruby
ArchBeOS has quit [Quit: Peace Out, jerks!]
xk_id has joined #ruby
shaunbaker has joined #ruby
JohnBat26|2 has joined #ruby
Zolo has quit [Ping timeout: 248 seconds]
nouitfvf has joined #ruby
Jetchisel has joined #ruby
freezey has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
JohnBat26|3 has joined #ruby
frustrum has quit [Ping timeout: 272 seconds]
atno has joined #ruby
mlpinit has joined #ruby
frustrum has joined #ruby
JohnBat26 has quit [Ping timeout: 272 seconds]
akemrir has quit [Quit: WeeChat 0.4.2]
LocutusOfBorg has joined #ruby
pen has joined #ruby
brianpWins has quit [Quit: brianpWins]
pwh has joined #ruby
brain_shim has joined #ruby
brain_shim has quit [Max SendQ exceeded]
<MrZYX> add a new line with the same indentation that starts with a -
brain_shim has joined #ruby
LocutusOfBorg is now known as ArchBeOS
bean_ has joined #ruby
<Mon_Ouie> YAML isn't supposed to be a fully-fledged programming language — just to be able to represent data
brain_shim has quit [Max SendQ exceeded]
brain_shim has joined #ruby
lxsameer has quit [Quit: Leaving]
JohnBat26|2 has quit [Ping timeout: 245 seconds]
<apeiros> Mon_Ouie, MrZYX: I think he means e.g. from a reference. And while I know how to do that with hashes, I don't know it for arrays.
<apeiros> (with hashes it's `<<: *ref`)
<MrZYX> I don't think it's possible with arrays
brain_shim has quit [Max SendQ exceeded]
<MrZYX> but we're just speculating what he means actually
brain_shim has joined #ruby
<apeiros> yepp. lack of examples, as usual.
brain_shim has quit [Max SendQ exceeded]
brain_shim has joined #ruby
kevind_ has joined #ruby
brain_shim has quit [Max SendQ exceeded]
c0rn has joined #ruby
brain_shim has joined #ruby
cloaked1 has joined #ruby
brain_shim has quit [Max SendQ exceeded]
ephemerian has joined #ruby
brain_shim has joined #ruby
diegoviola has quit [Ping timeout: 268 seconds]
brain_shim has quit [Max SendQ exceeded]
kevind has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
kevind_ is now known as kevind
brain_shim has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
brain_shim has quit [Max SendQ exceeded]
<babonk_> why should it only be possible with hashes?
brain_shim has joined #ruby
brain_shim has quit [Max SendQ exceeded]
senayar has joined #ruby
elux has quit [Quit: Leaving...]
brain_shim has joined #ruby
brain_shim has quit [Max SendQ exceeded]
juzemack has joined #ruby
brain_shim has joined #ruby
<apeiros> babonk_: you want a philosophic discourse on why the spec was defined the way it is?
diegoviola has joined #ruby
brain_shim has quit [Max SendQ exceeded]
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0a2/20131021004002]]
brain_shim has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
brain_shim has quit [Max SendQ exceeded]
<babonk_> i just wish i could write abstracted ymls like i already do with hashes
brain_shim has joined #ruby
<babonk_> kind of shitty that you have to repeat yourself or otherwise go outside of spec and add ruby code because you're using arrays
brain_shim has quit [Max SendQ exceeded]
jibi has quit [Ping timeout: 272 seconds]
brain_shim has joined #ruby
<apeiros> babonk_: instead of swearing, you could also go and read the yaml spec…
brain_shim has quit [Max SendQ exceeded]
<csffsc> well this has turned into a friendly conversation..
brain_shim has joined #ruby
<apeiros> csffsc: hm?
<babonk_> is there a purpose to read the whole spec? I was under the impression that it can't do anything in this case
<apeiros> nobody insulted anyone
brain_shim has quit [Max SendQ exceeded]
<apeiros> babonk_: nobody said it was not possible. somebody said he thinks it's not possible.
brain_shim has joined #ruby
<apeiros> babonk_: also I didn't say you should read *the whole* spec. that'd be rather stupid. I'd read the part about arrays.
lethjakman has joined #ruby
SHyx0rmZ has joined #ruby
brain_shim has quit [Max SendQ exceeded]
kil0byte has quit [Ping timeout: 248 seconds]
aspires has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
brain_shim has joined #ruby
decoponio has quit [Quit: Leaving...]
brain_shim has quit [Max SendQ exceeded]
juzemack has left #ruby [#ruby]
brain_shim has joined #ruby
kevinykchan has joined #ruby
kil0byte_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
brain_shim has quit [Max SendQ exceeded]
jibi has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brain_shim has joined #ruby
theoretick has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brain_shim has quit [Max SendQ exceeded]
brain_shim has joined #ruby
<MrZYX> and the part about refs
colonolGron has quit [Quit: leaving]
kevind has quit [Quit: kevind]
colonolGron has joined #ruby
DropsOfSerenity has joined #ruby
Mitchellvanw has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
brain_shim has quit [Max SendQ exceeded]
relix has joined #ruby
flops has quit [Read error: Connection reset by peer]
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
brain_shim has joined #ruby
benlieb has joined #ruby
flops has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
DropsOfSerenity has joined #ruby
benlieb has quit [Client Quit]
vlad_starkov has joined #ruby
buibex has joined #ruby
tsykoduk is now known as zz_tsykoduk
pwh has quit []
robustus has joined #ruby
claymore has quit [Quit: Leaving]
braincrash has quit [Read error: Operation timed out]
buibex has quit [Remote host closed the connection]
petey_ has joined #ruby
buibex has joined #ruby
segfalt has left #ruby [#ruby]
havenwood has quit [Remote host closed the connection]
pleal has joined #ruby
pleal has quit [Read error: Connection reset by peer]
lfox has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pleal has joined #ruby
<cloaked1> anyone able to look at this for me? http://tinyurl.com/k8j6cjg
patjoh has quit [Quit: Computer has gone to sleep.]
rgbdev has joined #ruby
<cloaked1> an SO question of mine
lethjakman has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
elux has joined #ruby
pleal__ has joined #ruby
T__T has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 248 seconds]
buibex has quit [Ping timeout: 252 seconds]
Faris has joined #ruby
pleal_ has quit [Ping timeout: 264 seconds]
drumusician has joined #ruby
verazabeida has joined #ruby
carraroj has joined #ruby
micho has joined #ruby
cody-- has quit [Quit: derp]
kpshek has quit []
rotor has quit [Ping timeout: 272 seconds]
<matti> cloaked1: There should be a simpler way.
rotor has joined #ruby
<micho> I need to get a DateTime object, with current time - 1 hour. Is there a way to do it more elegant, than (Time.now - 60*60).to_datetime ?
pleal has quit [Ping timeout: 268 seconds]
<matti> cloaked1: Check what resides in /proc and/or /sys
sambao21 has joined #ruby
kevind has joined #ruby
jokke has quit [Quit: WeeChat 0.4.1]
<apeiros> micho: depends on your taste - `DateTime.now - Rational(1,24)`
siwica has quit [Ping timeout: 240 seconds]
<micho> apeiros: oh, that's awful
<micho> shouldn't there be something similar to Time.now - 60*60?
<micho> DateTime.now - 60*60 doesn't works this way
jokke has joined #ruby
centipedefarmer has joined #ruby
samsonasu has quit [Quit: samsonasu]
mercwithamouth has joined #ruby
timonv has quit [Remote host closed the connection]
Speed has joined #ruby
timonv has joined #ruby
<apeiros> micho: yes, there is. what I showed you is.
ghr has joined #ruby
<apeiros> Rational(1,24) is 1/24 - Date#- works with days. so 1/24 is 1h
mrsolo has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
Jake232 has quit [Ping timeout: 248 seconds]
mark_locklear has quit [Ping timeout: 248 seconds]
<micho> apeiros: thanks, I just thought that there is something... much...much more rubyway
siwica has joined #ruby
<cloaked1> matti: already checked /proc and /sys.
kpshek has joined #ruby
<cloaked1> unless its in some archaic location, I can't find anything in the sysfs or procfs
<cloaked1> however, /me googles really fast again.
Taranis has joined #ruby
kpshek has quit [Client Quit]
<apeiros> micho: well, in rails you can do DateTime.now - 1.hour
mercwithamouth has quit [Ping timeout: 256 seconds]
<matti> cloaked1: I cannot too. Sucks.
timonv has quit [Ping timeout: 256 seconds]
<micho> apeiros: sinatra app, I'll stay with my solution for now :) thank you!
mlpinit has quit [Remote host closed the connection]
cloaked1 has quit [Ping timeout: 250 seconds]
mlpinit has joined #ruby
mark_locklear has joined #ruby
mercwithamouth has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
malcolmva has joined #ruby
allsystemsarego has quit [Quit: Leaving]
gyre007 has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 246 seconds]
gebbione has joined #ruby
ph8 has joined #ruby
gyre007 has joined #ruby
<gebbione> hi all, i m seeing this problem when i run capistrano ... http://pastebin.com/4Hrdsbz9
ldnunes has quit [Quit: Leaving]
<ph8> hi all. I'm a passing ruby enthusiast, i work as a .NET developer so that's where most of my focus is day-to-day. I'm debugging someone else's Ruby app, without them around to help me. It all comes down to a 'check_setup?' call that i can't find anywhere - i want to know what it's checking! I think it might have something to do with rake, but i can't find any rakefiles in the app directory, is there anywhere t
<ph8> his magic 'check_setup' method might be hiding, or is it some kind of default?
shaunbaker has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
<flops> ph8: find . | xargs grep check_setup
brianpWins has joined #ruby
marcdel has joined #ruby
dzhulk has joined #ruby
<flops> If this doesn't find it, it's most likely in a 'required' gem...
Skylab has quit [Quit: Skylab]
<ph8> aha, required gem sounds right
orien has quit [Quit: Computer has gone to sleep.]
<ph8> where might i find where those are stored?
zz_tsykoduk is now known as tsykoduk
<flops> this depends on your setup
gyre007 has quit [Ping timeout: 245 seconds]
<ph8> that cmd returned loads of references like :flags => [:check_setup, :check_upgrade]
Michael__ has quit [Remote host closed the connection]
<ph8> but no 'def check_setup' lines
<ph8> like this: def_command :set_basedir_permissions, :flags => [:check_setup, :check_upgrade, :allow_while_disabled]
<flops> ph8: find . | xargs grep check_setup?
allaire has joined #ruby
<ph8> yes that command
<flops> I forgot the '?'
Michael__ has joined #ruby
<ph8> ohhh
<flops> You should add the ?
<ph8> sec
<ph8> oh that returns nothing
<ph8> maybe i'll go lower! do it from /
tatsuya_o has quit [Remote host closed the connection]
<flops> nooooop
<flops> sure you can do it but it will take some tinme
jhaals has joined #ruby
tatsuya_o has joined #ruby
<SloggerKhan> I'm having a problem where, when I assign a model instance to a foreign key has_one relation name, it tries to update the wrong table with bad SQL. http://pastebin.com/Fdj4x0NK
<flops> the file which is referencing the check_setup? does it 'require' something or does it inherit from another class?
krawchyk has quit [Ping timeout: 248 seconds]
<ph8> sec i'll look, there is some inheritance going on but not too crazy
perl9 has joined #ruby
adambeynon has joined #ruby
MrWharfsnort has joined #ruby
<ph8> so i'm in a 'QuestionnaireController' which inherits from 'Controller' it has a line 'delegate_to_model :needs_setup?, :needs_update?' - does delegate_to_model mean anything special in ruby-land?
<flops> Is it a rails application? Seems like...
<ph8> it it has only 3 requires and includes' 'Abstract'
<ph8> i think it is, but i'm running it from the command line, it's possible this is a shared class with the web ui
<ph8> (as in there is a built in command line utility using this code)
julweber has joined #ruby
T__T has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
Michael__ has quit [Ping timeout: 264 seconds]
Michael__ has joined #ruby
SilverKey has joined #ruby
nateberkopec has quit [Quit: Leaving...]
tatsuya_o has quit [Ping timeout: 268 seconds]
perl9 has left #ruby [#ruby]
<flops> ph8: I think the easiest way is to find out where your gems are stored and grep again there
<flops> most likely in /usr/lib/ruby/1.9..../gemsets
<ph8> i think this all ships as a package, it doesn't use OS packages - i'll look under the install dir sec
<ph8> (thanks for your help btw)
sniffingcats has joined #ruby
sambao21 has joined #ruby
<flops> actually /usr/lib/ruby/.../rubygems
<flops> well ok
<flops> maybe you are using rvm
<flops> if that's the case it's probably in your home dir (~/.rvm/)
cody-- has joined #ruby
jkline has quit [Quit: jkline]
<ph8> i didn't see the installer using any package managers, it's a very 'controlled' product - i found /opt/product/common/ruby/rubygems
<ph8> but this would have been in my previous grep
flower-pot has quit [Quit: leaving]
<ph8> so not very hopefuly
<ph8> * hopeful
carraroj has quit [Quit: Konversation terminated!]
KayJails has joined #ruby
kil0byte has joined #ruby
<flops> can't help you then
<ph8> guess i'll have to call support!
<ph8> many thanks for your efforts
<ph8> really hard to find
dash_ has quit [Quit: dash_]
Spami has quit [Ping timeout: 272 seconds]
Al_ has joined #ruby
<andrewvos> Is default create for touch 0644?
<ph8> iirc yes
mayorga has joined #ruby
<andrewvos> Thanks
Uranio has quit [Quit: while you reading this, a kitty dies]
buibex has joined #ruby
gyzmodo has quit []
zarubin has joined #ruby
<ph8> i think it might depend on your 'umask' andrewvos
aspires has joined #ruby
buibex has quit [Remote host closed the connection]
<andrewvos> ph8: Yeah but just wondering about the default
nomenkun has quit [Ping timeout: 252 seconds]
<ph8> type 'umask'
<andrewvos> Actually, a better question is: I'm storing a file in ~/.SOMEFILENAMEEE mask should I give it?
<andrewvos> (It's not a script, it's config)
michael_mbp is now known as zz_michael_mbp
<ph8> so it's not executable
fmcgeough has quit [Quit: fmcgeough]
<ph8> who do you want to read it? only the owner?
xk_id has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
<andrewvos> Yeah
<ph8> 600 sounds ok then right? read+write from owner only
asobrasil has left #ruby [#ruby]
geekbri has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<andrewvos> I suppose yeah
<andrewvos> Hmm
<andrewvos> Yeah I guess so
<andrewvos> Thanks
<ph8> set the most restrictive permissions for your purpose
<ph8> as a guide
<ph8> np
bean_ is now known as Guest94987
Guest94987 has quit [Killed (brooks.freenode.net (Nickname regained by services))]
burlyscudd has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
SilverKey has quit [Remote host closed the connection]
bean__ has joined #ruby
MrWharfsnort has quit [Ping timeout: 245 seconds]
rahulkmr has quit [Ping timeout: 252 seconds]
funburn has joined #ruby
xk_id has joined #ruby
snovak_ has quit [Remote host closed the connection]
SilverKey has joined #ruby
snovak has joined #ruby
snovak has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
samsonasu has joined #ruby
zz_michael_mbp is now known as michael_mbp
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
SilverKey has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
SilverKey has joined #ruby
havenwood has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPoT4tO has quit [Read error: Connection reset by peer]
asym has quit [Quit: leaving]
siwica has quit [Read error: Operation timed out]
sunnymolini1 has quit [Quit: Leaving]
zarubin has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
weems has quit [Read error: Connection reset by peer]
phantasm66 has quit [Quit: *sleeeep….]
julweber has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
SilverKey has quit [Remote host closed the connection]
julweber has joined #ruby
johnnyfuchs has quit [Ping timeout: 272 seconds]
siwica has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 256 seconds]
mr_red has quit [Quit: Bye :)]
s2013 has joined #ruby
<s2013> whats the best way to intall ruby 2.0? rvm?
nobitanobi has quit [Ping timeout: 250 seconds]
<bean__> source?
<bean__> what os are you on
<s2013> ubuntu
<s2013> i have ruby 1.9.3
<s2013> most of my apps are in that but this one i need to modify is 2.0
gyre007 has joined #ruby
funburn has quit [Quit: funburn]
sam113101 is now known as sam113101_afk
RichardBaker has joined #ruby
tsykoduk is now known as zz_tsykoduk
julweber has quit [Ping timeout: 256 seconds]
KayJails has quit [Quit: Linkinus - http://linkinus.com]
SilverKey has joined #ruby
kazuuu has quit [Remote host closed the connection]
kazuuu has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
randomnick_ has joined #ruby
<matti> cloaked1: Gone?
<matti> Darn.
Faris has joined #ruby
IceyEC has quit [Quit: IceyEC]
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
Elhu has joined #ruby
mr_red has joined #ruby
zz_tsykoduk is now known as tsykoduk
kazuuu has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
m8 has joined #ruby
twoism has joined #ruby
lukec has joined #ruby
kiku has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
Underbyte has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
wallerdev has joined #ruby
<bean__> s2013: It'll prly run on 1.9.3 ;)
twoism_ has quit [Ping timeout: 248 seconds]
funburn has quit [Client Quit]
capicue has joined #ruby
<andrewvos> s2013: You could try something like chruby
<s2013> its fine i got it. thanks
<andrewvos> s2013: If you know your way around the terminal
<andrewvos> k
Ahti333 has quit [Read error: Operation timed out]
aapzak has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
swordsmanz has joined #ruby
kaldrenon has quit [Ping timeout: 256 seconds]
Coolhand has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Deele has quit [Ping timeout: 260 seconds]
jibi has quit [Quit: .]
SloggerKhan has left #ruby [#ruby]
Ahti333 has joined #ruby
Al___ has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
hatsune has joined #ruby
filipe__ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
filipe__ has quit [Client Quit]
aapzak has joined #ruby
spider-mario has quit [Remote host closed the connection]
Elhu has joined #ruby
mojjoujo has quit [Ping timeout: 240 seconds]
Elhu has quit [Client Quit]
rins has quit [Ping timeout: 240 seconds]
c0rn has joined #ruby
kevind has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
tsykoduk is now known as zz_tsykoduk
kevind has joined #ruby
Elhu has joined #ruby
orien has joined #ruby
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
breakingthings has quit []
kazuuu has joined #ruby
Hanmac has quit [Quit: Leaving.]
mac_ has quit [Remote host closed the connection]
Elhu has quit [Client Quit]
verazabeida has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
mac_ has joined #ruby
vlad_starkov has joined #ruby
hatsune has quit []
kaspergrubbe has joined #ruby
mansi has quit [Remote host closed the connection]
benwoody has joined #ruby
mansi has joined #ruby
mixel has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 245 seconds]
benwoody has quit [Client Quit]
mansi has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
sniffingcats has quit [Quit: Til rivido Idisti!]
Liothen has joined #ruby
michael_mbp is now known as zz_michael_mbp
tylersmith has joined #ruby
zz_tsykoduk is now known as tsykoduk
k610 has joined #ruby
mercwithamouth has joined #ruby
workmad3 has joined #ruby
benwoody has joined #ruby
mojjoujo has joined #ruby
cooldman224 has quit [Remote host closed the connection]
TheAscender has joined #ruby
Senjai_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
TheAscender is now known as bdnchr
russCloak has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
allaire has quit []
benwoody has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
pwh has joined #ruby
interactionjaxsn has joined #ruby
pwh has quit [Max SendQ exceeded]
stringoO has quit [Quit: stringoO]
alex__c2022 has quit [Quit: alex__c2022]
sam113101_afk is now known as sam113101
pwh has joined #ruby
bdnchr is now known as huxton
huxton has quit []
cescalante is now known as ce_afk
pragmatism has quit [Read error: Connection reset by peer]
huxton has joined #ruby
huxton has quit [Client Quit]
huxton has joined #ruby
huxton is now known as bdnchr
verazabeida has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
interactionjaxsn has quit [Ping timeout: 268 seconds]
kiku has left #ruby ["Closing Window"]
kevinykchan has joined #ruby
RantriX has joined #ruby
ericmathison has quit [Ping timeout: 272 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
mac_ has quit [Remote host closed the connection]
mac_ has joined #ruby
mac_ has quit [Read error: Connection reset by peer]
Tearan has quit [Quit: Sleepy Badger....]
mac_ has joined #ruby
MrZYX is now known as MrZYX|off
snovak has joined #ruby
alx- has joined #ruby
pragmatism has joined #ruby
vky has joined #ruby
flops has quit [Quit: leaving]
samsonasu has quit [Quit: samsonasu]
julweber has joined #ruby
Guest94402 has quit [Quit: Leaving...]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnnyfuchs has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
mmitchel_ has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
pragmatism has quit [Quit: Peace]
sniffingcats has joined #ruby
failshell has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
snovak has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
threesome has quit [Read error: Operation timed out]
Underbyte has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
mmitchell has quit [Ping timeout: 248 seconds]
sniffingcats has quit [Client Quit]
bdnchr has quit [Remote host closed the connection]
mmitchel_ has quit [Ping timeout: 246 seconds]
pwh has quit []
Al___ has quit [Quit: Al___]
astrobunny has joined #ruby
_dma has joined #ruby
sambao21 has joined #ruby
Vivekananda has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 248 seconds]
RichardBaker has quit [Quit: RichardBaker]
sambao21 has quit [Client Quit]
lurch_ has joined #ruby
danman has quit [Quit: danman]
jdenen has quit [Quit: Leaving.]
RichardBaker has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
kevinykchan has quit [Quit: Computer has gone to sleep.]
iamjarvo_ has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
kevinykchan has joined #ruby
danielfr_ has joined #ruby
gstamp has joined #ruby
peterhu has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
danielfr_ has left #ruby [#ruby]
peterhu has quit [Read error: Connection reset by peer]
iamjarvo has quit [Ping timeout: 268 seconds]
eichenwald has quit [Quit: WeeChat 0.3.8]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
rgbdev has quit [Quit: rgbdev]
iamjarvo_ has quit [Ping timeout: 240 seconds]
atno has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
Spami has quit [Read error: Connection timed out]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
pragmatism has joined #ruby
mengu has quit [Remote host closed the connection]
verazabeida has quit [Remote host closed the connection]
<csffsc> if I had a basic hash
peterhu has joined #ruby
_dv_ has joined #ruby
weems has joined #ruby
<csffsc> and wanted to return an array with only keys * values.. how would I do this?
JMcAfreak has joined #ruby
<csffsc> ex. {"a"=>2, "b"=>1} would become [a,a,b]
_HolyCow1 is now known as _HolyCow
mercwithamouth has quit [Ping timeout: 248 seconds]
astrobunny has joined #ruby
dv_ has quit [Ping timeout: 272 seconds]
shevy has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
lurch_ has quit [Quit: lurch_]
<shevy> long live ruby!
kirun has quit [Quit: Client exiting]
samsonasu has joined #ruby
<havenwood> >> {"a"=>2, "b"=>1}.map { |k, v| (k * v).split('') }
<eval-in> havenwood => [["a", "a"], ["b"]] (https://eval.in/56376)
ssvo_ has joined #ruby
samsonasu has quit [Client Quit]
<havenwood> csffsc: well, flatten it
<havenwood> flat_map
<havenwood> shevy: Ruby is dead. Long live the Ruby!!
atno has joined #ruby
<shevy> hehe
ssvo has quit [Ping timeout: 245 seconds]
<havenwood> shevy: Excited for 2.1, i've heard contrary rumors of Christmas and Ruby's twenty-first birthday...
<shevy> it'll be at xmas 2013?
<havenwood> shevy: aye, or Feb 2013
Underbyte has quit [Quit: Leaving...]
<havenwood> Feb 2014**
<havenwood> I mean...
jrhe has left #ruby [#ruby]
atmosx has joined #ruby
<shevy> hey
<shevy> that's almost 3 months difference!
<atmosx> hello
enebo has quit [Quit: enebo]
<shevy> hey atmosx
<havenwood> shevy: But 12/25/2013 or 02/24/2014 is a good bet!
<havenwood> atmosx: heya
aspires has quit [Quit: sudo making a sandwich]
<atmosx> :-D
<havenwood> I'm hoping for a Christmas present.
visof has joined #ruby
<atmosx> havenwood: a kindle FDX?
<havenwood> I'm not *that* fancy! :P
mercwithamouth has joined #ruby
<atmosx> havenwood: I'd like a chromebook :-P
nisstyre has joined #ruby
<havenwood> I've only virtualized.. would love to try out.
Xeago has quit [Remote host closed the connection]
<shevy> I want instant rails knowledge for xmas
<shevy> so that I dont have to work through all these tutorials...
<havenwood> shevy: The Ghost of Rails of Christmas Past will visit you first...
m8 has quit [Quit: Sto andando via]
jerius has quit [Ping timeout: 248 seconds]
<shevy> hmm
astrobunny has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
<shevy> does one of you guys have a good .gemspec file for me to take a peek at?
micho has quit [Quit: Leaving]
babonk_ has left #ruby [#ruby]
carlyle has quit [Remote host closed the connection]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
ldnunes has joined #ruby
cody-- has quit [Quit: derp]
astrobunny has joined #ruby
ner0x has joined #ruby
Memphizzzzzz has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
senayar has quit [Quit: Quitte]
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
ewnd9 has joined #ruby
Xeago has joined #ruby
peterhu has quit [Read error: Connection reset by peer]
<shevy> hmm ... s.license = 'GPL-2.0'
babinho_ has joined #ruby
Memphizzzzzz has left #ruby [#ruby]
mayorga has quit [Ping timeout: 265 seconds]
peterhu has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
babinho_ has quit [Client Quit]
vipjun has quit [Ping timeout: 240 seconds]
swingha has joined #ruby
<shevy> guess I found it: guides.rubygems.org/specification-reference/
havenwood has joined #ruby
petey_ has quit [Remote host closed the connection]
smoothbutta has joined #ruby
mac_ has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
vipjun has joined #ruby
petey_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mitchellvanw has quit [Quit: Dozing off...]
Michael__ has quit [Ping timeout: 245 seconds]
jalcine_ is now known as jalcine
mklappstuhl has quit [Remote host closed the connection]
mac_ has joined #ruby
brain_shim has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
petey_ has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
marcdel has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 264 seconds]
centipedefarmer has joined #ruby
mrsolo has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
runnyspot has quit [Changing host]
runnyspot has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Jake232 has joined #ruby
snovak has joined #ruby
sergicles has joined #ruby
jlast has quit [Remote host closed the connection]
danman has joined #ruby
danman has quit [Client Quit]
Michael__ has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
petey_ has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
boxmein has joined #ruby
havenwood has joined #ruby
headius has quit [Quit: headius]
tomzx_mac has joined #ruby
randomnick_ has quit [Quit: Leaving]
snovak has quit [Ping timeout: 246 seconds]
Senjai_ has quit [Changing host]
Senjai_ has joined #ruby
c0rn has joined #ruby
Senjai_ is now known as Senjai
robbyoconnor has quit [Ping timeout: 248 seconds]
kitak has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
orien has joined #ruby
Es0teric has quit [Ping timeout: 248 seconds]
awarner has joined #ruby
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
kazuuu has quit [Remote host closed the connection]
Giorgio has joined #ruby
kazuuu has joined #ruby
zzz_taion809 is now known as taion809
luckyruby has quit [Remote host closed the connection]
gebbione has quit [Remote host closed the connection]
awarner_ has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Ping timeout: 272 seconds]
luckyruby has joined #ruby
RantriX has quit [Remote host closed the connection]
codelette has quit [Remote host closed the connection]
kazuuu has quit [Ping timeout: 240 seconds]
Tamal is now known as Tamal_Away
dv__ has joined #ruby
SpNg has joined #ruby
mansi has quit [Remote host closed the connection]
_dv_ has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
shevy has joined #ruby
<csffsc> havenwood: are you around?
dv__ has quit [Client Quit]
<havenwood> aye
<csffsc> I'm been working on formatting the output, so royality cards are added back in
<csffsc> for a while now
dv__ has joined #ruby
<csffsc> .. soleved the global variable issue
<csffsc> but I"m just creating/changing datastructures in an effort to swap 10's for J/Q/K (which the royals hash has the values of)
SpNg has left #ruby [#ruby]
<csffsc> and I have no idea how to handle this
<havenwood> code?
funburn has joined #ruby
<csffsc> picking the first key, works on the first iteration, but if J =>1, and K =>2, I'll either be adding extra jacks or queens
mansi has quit [Ping timeout: 246 seconds]
dv__ is now known as dv_
mansi has joined #ruby
<havenwood> csffsc: Instead of `royal_keys = royals.map { |k, v| (k * v).split('') }.flatten` try `royal_keys = royals.flat_map { |k, v| (k * v).split('') }`
mrsolo has quit [Quit: This computer has gone to sleep]
<havenwood> csffsc: ah
<csffsc> it comes down to be not knowing howto use datastrutures
<csffsc> or using the improperly
<csffsc> im not sure which
<csffsc> proably both
pleal__ has quit [Ping timeout: 252 seconds]
<csffsc> so I"m creating 'secondary' ones for card counts, or to keep track of how many 10's exist
<csffsc> there are a few
<havenwood> csffsc: Not sure what your Jack Queen issue is. Only one i'd think would require extra permutations is Ace.
<csffsc> well
<havenwood> csffsc: Just map J & Q to 10?
<csffsc> right, but the input string
<csffsc> could only have Kings
diegoviola has joined #ruby
<csffsc> or maybe its a J and a K
allaire has joined #ruby
<dorei> it's being said that only after french revolution the Aces were promoted above Kings xD
ewnd9 has quit [Ping timeout: 240 seconds]
<havenwood> and after the corporate revolution to 1's
<csffsc> for example, what if the highest sum is 20
<csffsc> and that is two 10's
<csffsc> of which I findout from the orginal input string, is really a two Queens
MrWharfsnort has joined #ruby
<csffsc> I need to effectively convert those back
vky has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> csffsc: mm, well if you need to preserve rank you'll need to come up with a way of doing it - not just blanket convert to num
Michael__ has quit [Remote host closed the connection]
<csffsc> havenwood: when royals leaves format_input function
tsykoduk is now known as zz_tsykoduk
<csffsc> I have a hash, with J=>V,Q=>V,K=>V
Michael__ has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
<csffsc> and if either of those values is less than 1, I eliminate it
saarinen has quit [Ping timeout: 268 seconds]
zz_michael_mbp is now known as michael_mbp
zz_tsykoduk is now known as tsykoduk
<shevy> huh ... etc is a gem? https://rubygems.org/gems/etc
sepp2k1 has joined #ruby
gebbione has joined #ruby
<shevy> oh... or is this something else
tsykoduk is now known as zz_tsykoduk
<shevy> seems to be ETC rather than Etc
visof has quit [Quit: Leaving]
<csffsc> hm?
<gebbione> do you usually need sudo to do stuff like gem update? or install?
<shevy> but if I add 'etc' as my project in a gem, it links to this module
<dorei> gebbione: it depends on your setup, no need for sudo when using rvm
<Mon_Ouie> gebbione: Not unless you need to install the gems system-wide
sepp2k has quit [Ping timeout: 256 seconds]
<gebbione> i tried to install capistano
<Mon_Ouie> (There's --user-install if you want to install in your home directory rather than in the default path)
<gebbione> but i get errors like this https://github.com/capistrano/capistrano/issues/496
pwh has joined #ruby
<havenwood> gebbione: User installs don't need sudo system installs do. How did you install Ruby?
<gebbione> havenwood, i dont remember
<gebbione> but to do any install or update i have to provide sudo or i get permission error
pleal has joined #ruby
kofno has joined #ruby
Michael__ has quit [Remote host closed the connection]
kreeves has joined #ruby
swingha has quit [Quit: WeeChat 0.4.2]
nateberkopec has joined #ruby
<havenwood> gebbione: Do a user install imho.
Michael__ has joined #ruby
<havenwood> gebbione: Use RVM if you want kitchen sink or ruby-install with chruby otherwise.
michael_mbp is now known as zz_michael_mbp
workmad3 has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
_JamieD_ has quit [Ping timeout: 245 seconds]
SilverKey has quit [Quit: Sleep now]
nisstyre has quit [Quit: Leaving]
<gebbione> i installed rvm
sambao21 has quit [Client Quit]
<gebbione> made no difference for capistrano
saarinen has joined #ruby
<havenwood> gebbione: rvm current
<gebbione> installed with apt-get
<havenwood> boo hiss
<gebbione> current is system
<havenwood> gebbione: then you're not using an rvm ruby
<havenwood> gebbione: if you're on debian, can use update-alternatives - or you should simply not use apt
SilverKey has joined #ruby
mrsolo has joined #ruby
<havenwood> gebbione: Basically, chruby + ruby-install is preferred, rvm is pretty simple but if you go this way don't involve apt, or apt-get with update-alternatives.
nisstyre has joined #ruby
juarlex_ has quit [Read error: Connection reset by peer]
<havenwood> ^ imho
Michael__ has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
fenec2 has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
juarlex has joined #ruby
ninegrid has quit [Ping timeout: 272 seconds]
Michael__ has joined #ruby
<gebbione> ruby -v
<gebbione> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
mansi has quit [Remote host closed the connection]
<gebbione> i think that made it go back to 1.8
<havenwood> gebbione: Old Ruby past End of Life
ninegrid has joined #ruby
<gebbione> should i go for 1.9.1?
mansi has joined #ruby
<havenwood> gebbione: update-alternatives lets you select the apt installed Ruby you want
<gebbione> thats what i get with update-alternative by default
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> gebbione: right, debian Ruby is bizarre and scares me
SilverKey has quit [Client Quit]
gyre007 has joined #ruby
<gebbione> mhhh supposed to be simple :/
sailias has joined #ruby
<havenwood> gebbione: Well they chose not to include a simple package of stable Ruby in all distros. So use a sane tool or suffer.
<gebbione> ruby 1.9.3 doesnt fix capistrano's error
<havenwood> gebbione: Stable Ruby is 2.0.0-p247. I have no idea where cap bugs lie. Using latest cap?
kofno has joined #ruby
<gebbione> yes i just installed it
<gebbione> i also tried 3.... pre
<gebbione> after i saw that bug on their forum
<gebbione> saying pre was fixing it
<gebbione> but i m not familiar with this ruby/gems dependencies stuff
<havenwood> gebbione: maybe try #capistrano - i'm not a user so i'm afraid i've got nothing
apeiros has quit [Ping timeout: 260 seconds]
awc737 has quit [Excess Flood]
mansi has quit [Ping timeout: 256 seconds]
<shevy> I finally realized... in case I have a faulty backup or something and my ruby source files get scrambled, it's best to always update the latest ruby projects to rubygems.org
luckyruby has quit [Remote host closed the connection]
Xeago has joined #ruby
luckyruby has joined #ruby
_JamieD_ has joined #ruby
paddyez has joined #ruby
<paddyez> hi
marcdel has joined #ruby
<paddyez> if I have a partial is there some way to determine the number of the loop?
mac_ has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 240 seconds]
awc737 has joined #ruby
kevind has quit [Quit: kevind]
<sam113101> rails?
<paddyez> yes rails
ffranz has quit [Ping timeout: 272 seconds]
<havenwood> #rubyonrails
<paddyez> thanks
peterhu has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 248 seconds]
gstamp has joined #ruby
<nilved> paddyez: even if there isn't, you could just unroll it to an each loop.
peterhu has joined #ruby
awarner has quit [Remote host closed the connection]
siwica has joined #ruby
estebanrules has quit [Read error: Connection reset by peer]
awarner has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has joined #ruby
<shevy> what even is a partial
mac_ has joined #ruby
johnnyfuchs has joined #ruby
<nilved> shevy: a rails contruct for small HTML files that you include in other, larger ones.
diegoviola has quit [Ping timeout: 248 seconds]
<shevy> hmm
peterhu has quit [Read error: Connection reset by peer]
estebanrules has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
predator117 has joined #ruby
carlyle has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
peterhu has joined #ruby
apeiros has joined #ruby
_JamieD_ has quit [Ping timeout: 264 seconds]
cads has quit [Ping timeout: 272 seconds]
<csffsc> havenwood: I'm trying to replace an item inside an array from another
_dma has quit [Remote host closed the connection]
<csffsc> array[1] = second_array.pop
pleal has quit [Remote host closed the connection]
<csffsc> it works, but doesnt seem to make the change permant?
<havenwood> csffsc: the change in second_array?
pleal has joined #ruby
<csffsc> changing the first
<csffsc> changing position1 of array
<havenwood> csffsc: Array[1]'s value doesn't change?
<csffsc> with whats comming out of the second
<csffsc> the opposite
<csffsc> when you change an array
<csffsc> you do
<havenwood> csffsc: you're pop isn't modifying the receiver?
krawchyk has joined #ruby
<csffsc> array[position] = "newvalue"
<havenwood> your*
<csffsc> right?
<havenwood> yup
<csffsc> cards: [11, 10]
<csffsc> C: 1
<csffsc> Royal_keys ["J"]
<csffsc> Cards: [11, "J"]
<csffsc> Cards: [nil, "J"]
<havenwood> brb
<csffsc> so it works, and on the second call, it's lost
kayloos has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
peterhu has quit [Read error: Connection reset by peer]
ericmathison has joined #ruby
peterhu has joined #ruby
<gebbione> havenwood, btw in the capistrano channel they told me to fix it this way
<gebbione> update-alternatives --set gem /usr/bin/gem1.9.1
carlyle has quit [Ping timeout: 245 seconds]
mlpinit has joined #ruby
pleal has quit [Ping timeout: 248 seconds]
snovak has joined #ruby
sensen has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 272 seconds]
headius has joined #ruby
matchaw has joined #ruby
_dma has joined #ruby
mac_ has quit [Remote host closed the connection]
<csffsc> problem is my control loop
<csffsc> not the pop
NealJ has quit [Quit: :c]
<havenwood> gebbione: makes sense if you opt for update-alternatives route
asteros has joined #ruby
mac_ has joined #ruby
<havenwood> gebbione: Good to know that is their specific suggestion, thx.
peterhu has quit [Read error: Connection reset by peer]
<havenwood> gebbione: i'd have set rubby
<havenwood> ruby
Aryasam has joined #ruby
sergicles has quit [Quit: sergicles]
peterhu has joined #ruby
samsonasu has joined #ruby
sam113101 is now known as sam113101_afk
snovak has quit [Ping timeout: 268 seconds]
sam113101_afk is now known as sam113101
mac_ has quit [Ping timeout: 246 seconds]
peterhu has quit [Read error: Connection reset by peer]
aspires has joined #ruby
<gebbione> havenwood, apparently the ubuntu peculiarity
xk_id has quit [Quit:
sailias has quit [Ping timeout: 268 seconds]
<gebbione> but i cannot be too bothered ... now capistrano works so i should be set to go
peterhu has joined #ruby
aryaching has joined #ruby
dkamioka has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
shevy has joined #ruby
zeade has quit [Quit: Leaving.]
kayloos has quit [Read error: Connection reset by peer]
fuhgeddaboudit has quit [Ping timeout: 268 seconds]
kayloos has joined #ruby
mansi has joined #ruby
thesheff17 has quit [Ping timeout: 256 seconds]
peterhu has quit [Read error: Connection reset by peer]
peterhu has joined #ruby
<csffsc> havenwood: .. Got it working with one flaw
stkowski has quit [Quit: stkowski]
kayloos has quit [Remote host closed the connection]
<csffsc> "royals.flat_map { |k, v| (k * v).split('') }"
<csffsc> is destroying my hash when a 10 exists
<csffsc> (i'm keeping track of 10, j, q, k)
asteros has quit [Quit: asteros]
<csffsc> and that map, is returning the 10 as a 0