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
mlpinit has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
hasrb has quit [Remote host closed the connection]
sporkbomb has joined #ruby
bklane has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 264 seconds]
mengu has quit [Quit: This computer has gone to sleep]
fourq_ has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
fourq_ is now known as fourqq
sporkbomb has quit [Client Quit]
endash has quit [Quit: endash]
txdv has quit [Ping timeout: 264 seconds]
fourqq is now known as fourq
mlpinit has quit [Ping timeout: 245 seconds]
BRMatt has quit [Ping timeout: 245 seconds]
ssvo has quit [Ping timeout: 260 seconds]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
realDAB has quit [Quit: realDAB]
Nogbit has quit [Ping timeout: 245 seconds]
_veer has joined #ruby
txdv has joined #ruby
Stelian has joined #ruby
ferr has quit [Remote host closed the connection]
ZephiroMX has quit [Quit: Linkinus - http://linkinus.com]
i_s has quit [Remote host closed the connection]
Kelet_ has quit [Quit: Leaving]
_veer has quit [Ping timeout: 268 seconds]
mklappstuhl has joined #ruby
_veer has joined #ruby
brettnem has quit [Quit: brettnem]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
philcrissman_ has joined #ruby
mootpointer has joined #ruby
sarkis has quit [Ping timeout: 268 seconds]
brettnem has joined #ruby
Kelet has joined #ruby
_veer has quit [Ping timeout: 264 seconds]
freeayu has joined #ruby
lkba has joined #ruby
philcrissman_ has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
Sammael has joined #ruby
Lewix has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 240 seconds]
AzizLight has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
mlpinit has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
nari has quit [Ping timeout: 264 seconds]
rdxc has joined #ruby
markalanevans_ is now known as markalanevans
randomau_ has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
wmoxam has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
randomautomator has joined #ruby
johnnyfuchs has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
brettnem has quit [Quit: brettnem]
ndrei has joined #ruby
maxmanders has joined #ruby
maz-dev has joined #ruby
bubbajones has quit [Ping timeout: 256 seconds]
bubbajones has joined #ruby
lukec has quit [Quit: lukec]
sevenseacat has joined #ruby
SHyx0rmZ has quit [Ping timeout: 260 seconds]
apok has quit [Quit: apok]
aeontech has joined #ruby
hamakn has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
sergicles has quit [Quit: sergicles]
maz-dev has quit [Ping timeout: 264 seconds]
_veer has joined #ruby
_veer has joined #ruby
aeontech is now known as aeon
tabolario has joined #ruby
aeon is now known as Guest4216
i_s has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Guest4216 has quit [Client Quit]
reset has joined #ruby
_veer has quit [Ping timeout: 241 seconds]
chrisja has quit [Quit: leaving]
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
jjbohn has quit [Quit: Leaving...]
snath has joined #ruby
snovak has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
randomau_ has joined #ruby
Yarou has quit [Quit: Leaving]
Nogbit has joined #ruby
ndrei has joined #ruby
snovak has quit [Read error: Operation timed out]
randomautomator has quit [Ping timeout: 268 seconds]
mrsolo has joined #ruby
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
marius has quit [Quit: -]
sambao21 has quit [Quit: Computer has gone to sleep.]
scarolan has quit [Ping timeout: 268 seconds]
ndrei has quit [Ping timeout: 240 seconds]
JDHankle_ has joined #ruby
banister has joined #ruby
JDHankle has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Ping timeout: 264 seconds]
JDHankle_ is now known as JDHankle
maxmanders has quit [Ping timeout: 256 seconds]
johnnyfuchs has quit [Remote host closed the connection]
maxmanders has joined #ruby
jsatk has joined #ruby
stack has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
gr33n7007h has joined #ruby
stack has joined #ruby
danshultz has quit [Remote host closed the connection]
gr33n7007h has quit [Max SendQ exceeded]
gstamp has quit [Quit: Computer has gone to sleep.]
guiocavalcanti has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
mlpinit has quit [Remote host closed the connection]
diffkid_ has joined #ruby
maxmanders has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 245 seconds]
gstamp has joined #ruby
jsatk has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
lyanchih has joined #ruby
maxmanders has joined #ruby
fourq has quit [Ping timeout: 240 seconds]
quazimodo has quit [Remote host closed the connection]
i_s has joined #ruby
twoism_ has quit [Remote host closed the connection]
starship has joined #ruby
twoism has joined #ruby
c0rn has quit [Ping timeout: 245 seconds]
parzo has joined #ruby
lusory has joined #ruby
wmoxam has joined #ruby
twoism has quit [Ping timeout: 264 seconds]
Fuzai has quit [Ping timeout: 241 seconds]
Fuzai_ has quit [Ping timeout: 246 seconds]
reset has quit [Ping timeout: 240 seconds]
andbutsothen has quit [Quit: andbutsothen]
justsee has joined #ruby
justsee has joined #ruby
hasrb has joined #ruby
justsee has left #ruby [#ruby]
i_s has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
Stelian has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
pkrnj has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
AzizLight has joined #ruby
ryandeussing has quit [Remote host closed the connection]
digital-ghost has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
endash has joined #ruby
seich- has joined #ruby
hogeo has joined #ruby
havenwood has joined #ruby
narcan has joined #ruby
xiphffff4 has quit [Changing host]
xiphffff4 has joined #ruby
AzizLight has quit [Ping timeout: 264 seconds]
rcosta_ has quit [Remote host closed the connection]
mando has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
cajueiro has joined #ruby
caju has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
sarkis has joined #ruby
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
iliketur_ has joined #ruby
pen has quit [Remote host closed the connection]
_veer has joined #ruby
_veer has joined #ruby
hanmac has joined #ruby
pen has joined #ruby
brettnem has joined #ruby
fourq has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
mando_ has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
pencilcheck has joined #ruby
advorak has quit [Quit: Leaving]
Domon has joined #ruby
pen has quit [Ping timeout: 268 seconds]
mando has quit [Ping timeout: 248 seconds]
Jake232 has joined #ruby
randomau_ has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
Domon has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Domon has joined #ruby
snovak has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mansi has quit [Remote host closed the connection]
ewnd9 has joined #ruby
randomautomator has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
gildo has quit [Ping timeout: 245 seconds]
kumarat9pm has joined #ruby
hasrb has quit [Remote host closed the connection]
kumarat9pm has left #ruby [#ruby]
snovak has quit [Ping timeout: 256 seconds]
jjbohn is now known as jjbohn|afk
Voodoofish430 has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 264 seconds]
jbomo has quit [Ping timeout: 268 seconds]
biesiad has quit [Quit: biesiad]
Banistergalaxy has joined #ruby
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
mrbignum has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
pencilcheck has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
mansi has joined #ruby
weems has quit [Ping timeout: 245 seconds]
sarkis has joined #ruby
mando_ has quit [Remote host closed the connection]
fyz1x has joined #ruby
ewnd9 has joined #ruby
postmodern has quit [Quit: Leaving]
mando has joined #ruby
postmodern has joined #ruby
nso95 has joined #ruby
endash has quit [Read error: Connection reset by peer]
reactormonk_ is now known as reactormonk
endash has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
randomautomator has joined #ruby
randomau_ has joined #ruby
mlpinit has joined #ruby
adeponte has joined #ruby
randomautomator has quit [Ping timeout: 256 seconds]
mlpinit has quit [Ping timeout: 256 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
endash has quit [Quit: endash]
endash has joined #ruby
matiasevqz has quit [Read error: No route to host]
snath has quit [Ping timeout: 256 seconds]
endash has quit [Client Quit]
Targen has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
mary5030 has joined #ruby
weems has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
thesheff17 has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
weems has quit [Changing host]
weems has joined #ruby
maxmanders has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Banistergalaxy has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
Banistergalaxy has joined #ruby
pen has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
brennanMKE has quit [Remote host closed the connection]
argentum has joined #ruby
jamesaanderson has joined #ruby
radic_ has joined #ruby
ngoldman has joined #ruby
Vivekananda has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Remote host closed the connection]
philcrissman_ has joined #ruby
iamjarvo has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
JohnE has joined #ruby
radic has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
DanKnox is now known as DanKnox_away
mrbignum has quit []
mrsolo has quit [Quit: This computer has gone to sleep]
ericwood_ is now known as ericwood
krz has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
eka has joined #ruby
snath has joined #ruby
wallerdev has quit [Quit: wallerdev]
angela has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
<angela> hi I'm having problem installing certain packages, and I was required to do a bundle install
<angela> however, I got an error http://paste.ubuntu.com/6031046/
mansi has joined #ruby
snovak has joined #ruby
<angela> google says it's because of low memory
<angela> but I have about 270MB of it left
pierre1 has joined #ruby
Monie has joined #ruby
mansi has quit [Remote host closed the connection]
thesheff17 has joined #ruby
mansi has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
snovak has quit [Ping timeout: 268 seconds]
eka has quit [Quit: Computer has gone to sleep.]
Ripp__ has quit [Quit: Ripp__]
<sevenseacat> 'cannot allocate memory' seems pretty straightforward
<sevenseacat> and you might not have it left by the time bundle does its thing
viszu has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
fourq has quit [Quit: Lost terminal]
<angela> sevenseacat: but isn't it a bit weird that a process can eat up all 270 MB of memory?
<sevenseacat> you're using ruby, soooo.... no.
<angela> damn, I only have 500 MB in RAM in total
<angela> guess install it won't be an option them
nso95 has quit [Quit: Page closed]
Targen has joined #ruby
Neener54 has joined #ruby
buzzybron has joined #ruby
codezombie has joined #ruby
vlad_starkov has joined #ruby
<buzzybron> hi i'm using aptana and i was thinking of using the debug function to debug my ruby script, how do i do that? anyone knows? i have already installed the gems for ide debugging
<buzzybron> can't seem to find the debug functions like step in to or inspecting vars
ssvo has joined #ruby
mrsolo has joined #ruby
pwh has quit [Quit: pwh]
vlad_starkov has quit [Ping timeout: 264 seconds]
_1_EYADO has joined #ruby
jhn has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
parzo has quit [Remote host closed the connection]
aryaching has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
iamjarvo has quit [Remote host closed the connection]
parzo has joined #ruby
iamjarvo has joined #ruby
ryandeussing has joined #ruby
<_1_EYADO> hi
_1_EYADO has left #ruby [#ruby]
viszu has quit [Quit: Leaving.]
zachrab has joined #ruby
angela has left #ruby [#ruby]
jamesaanderson has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby
saarinen has quit [Client Quit]
ryandeussing has quit [Ping timeout: 256 seconds]
jarray52 has left #ruby [#ruby]
mrsolo has joined #ruby
viszu has joined #ruby
jbomo has joined #ruby
parzo_ has joined #ruby
diffkid_ has quit [Read error: Connection reset by peer]
parzo has quit [Ping timeout: 240 seconds]
ngoldman has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
anonymuse has joined #ruby
brettnem has quit [Quit: brettnem]
ssvo has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: io_syl]
Ripp__ has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 256 seconds]
cmarques has quit [Ping timeout: 264 seconds]
brettnem has joined #ruby
mando has joined #ruby
hadees has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
cajueiro has quit [Remote host closed the connection]
wesside has quit [Quit: Computer has gone to sleep.]
machuga is now known as machuga|away
splittingred has joined #ruby
rezzack has quit [Quit: Leaving.]
diegoviola has joined #ruby
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
lukec has joined #ruby
BizarreCake has joined #ruby
krz has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
vadelius has quit [Ping timeout: 240 seconds]
Heero has joined #ruby
sergicles has joined #ruby
splittingred has quit [Quit: splittingred]
lepht_afk is now known as lepht
ngoldman has joined #ruby
vadelius has joined #ruby
snovak has joined #ruby
viszu has quit [Quit: Leaving.]
<Rager> howdy folks
<Rager> I'm having a hell of a time with ruby redis.eval
<Rager> when I give it arguments like redis.eval(some_lua, 1, "key", "val")
<Rager> it complains that it can't call .length on the 1
<bnagy> so try '1'
<Rager> if I give it arguments like redis.eval(some_lua, ["key", "val"])
<Rager> it complains that args need to be strings and numbers
<sevenseacat> bnagy: psh, wheres your sense of adventure
<bnagy> here, with me, on an island in the middle of the pacific
viszu has joined #ruby
<sevenseacat> awesome.
viszu has quit [Client Quit]
Monie has joined #ruby
<Rager> bnagy: when I do that, it complains that it cannot convert string to array
<Rager> it seems like the redis gem hates me
<bnagy> seems unlikely
<bnagy> is the gem on github or something?
<Rager> it's the standard one
snovak_ has joined #ruby
<Rager> lemme paste my script
snovak has quit [Ping timeout: 268 seconds]
<bnagy> I don't need that, I need the code
<bnagy> so I can read it and tell you what it wants
<Rager> it's the standard redis gem you get from rubygems
<Rager> what it claims to want is (string, int, string...)
<Rager> or
mando_ has joined #ruby
<bnagy> yeah but I don't really want to install some random gem
<Rager> (string, array...)
<Rager> and here's the rb
iliketur_ has quit [Quit: zzzzz…..]
<Rager> line 2211 has the _eval that implements it
kilophoton has joined #ruby
vadelius has quit [Ping timeout: 240 seconds]
fsck3r has joined #ruby
io_syl has joined #ruby
<bnagy> ok
mando has quit [Ping timeout: 264 seconds]
<bnagy> looks like it wants [[keys here],[values here]]
bluOxigen has joined #ruby
girija_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<bnagy> so maybe try redis.eval( some_lua, [["key"],["arg"]]
<Rager> bnagy: that's what's freaking me out
<bnagy> it tries to work out the argv length
<bnagy> yeah but that is not the same
<Rager> hmm
aryaching has joined #ruby
soba has joined #ruby
<Rager> same thing
badabim has quit [Quit: Leaving...]
<Rager> I must be doing something dumb
vlad_starkov has joined #ruby
<bnagy> check the class of user.username
<Rager> ooh, there's a #redis-rb
<Rager> whoa
<Rager> you hit that one on the head
mootpointer has quit [Quit: ENOCAFFEINE.]
<Rager> I'm being incredibly silly, there
<Rager> the thing passed in is username
<Rager> and I was trying to use user.username
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rager> lol... it was in my class all along
jjbohn|afk has quit [Quit: Leaving...]
<Rager> or...
girija_ has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
aryaching has quit [Client Quit]
<Rager> at least, I thought you had - fixed that, same issues
vlad_starkov has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Rager> because user.username is a string that is set a few lines above
tommyvyo has joined #ruby
MrZYX is now known as MrZYX|off
<bnagy> check your lua maybe, or try one of the basic tests in the doc
classix has quit [Ping timeout: 264 seconds]
tommyvyo[cloud]_ has joined #ruby
classix has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
vadelius has joined #ruby
<Rager> the lua is stuff that worked before I moved it into that daoish class
mityaz has quit [Quit: See ya!]
<Rager> it's ok, bnagy
<Rager> this isn't your problem to fix
<Rager> I was just hoping there was someone who'd dealt with the oddities of redis-rb
blueOxigen has joined #ruby
tundrax has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 260 seconds]
Stelian has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
jhn has quit [Ping timeout: 256 seconds]
JDHankle has quit [Remote host closed the connection]
<Rager> thanks for trying to help, though
osvico has quit [Ping timeout: 245 seconds]
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
v0n has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx3 has joined #ruby
_veer has joined #ruby
lukec has quit [Quit: lukec]
graydot has joined #ruby
Stelian has quit [Ping timeout: 256 seconds]
Senjai has joined #ruby
Senjai has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
browndawg has joined #ruby
anonymuse has quit [Remote host closed the connection]
parzo_ is now known as parzo
ixti has quit [Quit: WeeChat 0.4.1]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
mando_ has quit [Remote host closed the connection]
starship has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
mootpointer has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
fyz1x has joined #ruby
freeayu__ has joined #ruby
St_Marx has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
sevenseacat is now known as sevenseaechidna
ananthakumaran has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
GeissT has joined #ruby
lemonsparrow has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
zoee has joined #ruby
Megtastique has quit [Quit: Megtastique]
BizarreCake has quit [Ping timeout: 240 seconds]
mootpointer has quit [Quit: ENOCAFFEINE.]
siera08 has joined #ruby
dhruvasagar has joined #ruby
codecop has joined #ruby
kraljev1 has joined #ruby
axeman- has joined #ruby
<kraljev1> How to skip next N iterations of each
<kraljev1> 100.times { |i|
<kraljev1> i += 5 if some_condition
<kraljev1> }
<kraljev1> this of course doesn't work
polysics has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
mootpointer has joined #ruby
polysics has quit [Client Quit]
jamesaanderson has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
<kraljev1> damn
<kraljev1> nobody?
polysics has joined #ruby
SeySayux_ has quit [Ping timeout: 264 seconds]
<zendeavor> next?
axeman- has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<zendeavor> next unless condition; i += 5 ?
sevenseaechidna is now known as sevenseacat
axeman- has joined #ruby
SeySayux has joined #ruby
eldariof has joined #ruby
mlpinit has joined #ruby
jamesaanderson has quit [Client Quit]
biesiad has joined #ruby
argentum has quit [Quit: argentum]
raul782 has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
mlpinit has quit [Ping timeout: 256 seconds]
girija_ has joined #ruby
iliketur_ has joined #ruby
<apeiros> kraljev1: use a different construct.
blueOxigen has quit [Ping timeout: 256 seconds]
blueOxigen has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
mary5030 has joined #ruby
apeiros has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
bricker has quit [Ping timeout: 240 seconds]
staafl has joined #ruby
tvw has joined #ruby
jamesaanderson has joined #ruby
mary5030 has quit [Remote host closed the connection]
siera08 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
jamesaanderson has quit [Client Quit]
siera08 has joined #ruby
MrZYX|off is now known as MrZYX
tagrudev has joined #ruby
Zolo has quit [Remote host closed the connection]
dash_ has joined #ruby
staafl has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
d45h has joined #ruby
thebastl has joined #ruby
krishnaveda has joined #ruby
siera08 has quit [Client Quit]
sayan has quit [Ping timeout: 268 seconds]
dash_ has quit [Ping timeout: 248 seconds]
jbomo has quit [Ping timeout: 241 seconds]
huoxito has quit [Quit: Leaving]
singularity9 has quit [Read error: Connection reset by peer]
bubbajones has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby
ananthakumaran has joined #ruby
singularity9 has joined #ruby
maxmanders has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
YaNakilon has joined #ruby
havenwood has quit [Remote host closed the connection]
biesiad has quit [Quit: biesiad]
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
pranny has joined #ruby
RichardBaker has joined #ruby
lyanchih has joined #ruby
JohnBat26 has joined #ruby
biesiad has joined #ruby
timonv has joined #ruby
Neener54 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcfox has joined #ruby
artm has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
browndawg has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
mansi has joined #ruby
brunoro has quit [Quit: WeeChat 0.3.8]
optimusprimem has joined #ruby
tonni_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
flughafen has quit [Quit: leaving]
michaeldeol has quit [Remote host closed the connection]
__Cr0 has joined #ruby
kraljev1 has left #ruby [#ruby]
lepht is now known as lepht_afk
<zendeavor> oh i just realised what he actually asked
lepht_afk is now known as lepht
browndawg has joined #ruby
<Orxata_> heh
lepht is now known as lepht_afk
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
ndrei has joined #ruby
noopq has joined #ruby
JohnE has quit [Read error: Connection reset by peer]
fbernier has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
artm has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has quit [Quit: Leaving.]
Matriks has joined #ruby
persand has joined #ruby
kobain has quit []
workmad3 has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
artm has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
fbernier has joined #ruby
jprovazn has joined #ruby
tonni has joined #ruby
afd__ has quit [Ping timeout: 264 seconds]
BRMatt has joined #ruby
ayaz has joined #ruby
intuxicated has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
artm has quit [Ping timeout: 264 seconds]
ngoldman has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
vlad_starkov has quit [Remote host closed the connection]
aryaching has joined #ruby
lyanchih has joined #ruby
dodosan has joined #ruby
jamesaanderson has joined #ruby
krishnaveda has quit [Quit: Page closed]
jamesaanderson has quit [Client Quit]
parzo has quit [Remote host closed the connection]
jds_ has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
biesiad has quit [Quit: biesiad]
jamesaanderson has joined #ruby
pwh has quit [Quit: pwh]
timonv has quit [Remote host closed the connection]
Quashie has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 256 seconds]
filipe has joined #ruby
Quashie has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
aryaching has joined #ruby
tonni has joined #ruby
pierre1 has quit [Ping timeout: 264 seconds]
Quashie has quit [Ping timeout: 248 seconds]
Quashie_ has joined #ruby
eldariof has quit [Read error: Operation timed out]
ssvo has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Read error: Operation timed out]
Quashie has joined #ruby
bluOxigen has joined #ruby
Quashie_ has quit [Ping timeout: 264 seconds]
Orxata_ has quit [Quit: Me'n vaig]
JohnBat26 has joined #ruby
Xeago has joined #ruby
brettnem has quit [Quit: brettnem]
pen has quit [Read error: Connection reset by peer]
parzo has joined #ruby
blueOxigen has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
dlind_ is now known as dlind
kaspergrubbe has joined #ruby
decoponio has joined #ruby
mansi has joined #ruby
senayar has joined #ruby
ahawkins has joined #ruby
<buzzybron> how do i do debugging for ruby?
echevemaster has quit [Quit: Leaving]
aganov has joined #ruby
cj3kim has joined #ruby
ahawkins has quit [Client Quit]
kritztopf has joined #ruby
ahawkins has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
tonni has quit [Ping timeout: 264 seconds]
bubbajones has joined #ruby
decoponio has quit [Quit: My PC restarting]
gr33n7007h has joined #ruby
artm has joined #ruby
jbpros has joined #ruby
senayar_ has joined #ruby
jonkri has joined #ruby
maz-dev has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
jds_ has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 264 seconds]
anderson has joined #ruby
jstephan has joined #ruby
jstephan has quit [Changing host]
jstephan has joined #ruby
Quashie has quit [Ping timeout: 245 seconds]
jstephan is now known as johest
mneorr has joined #ruby
iliketur_ has joined #ruby
<zendeavor> the same way you do in every language with a repl
<zendeavor> open the repl and start inspecting
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> look into Pry
<zendeavor> irb is shipped by default, pry is a popular alternative
<apeiros> you can use pry from within your app, use `binding.pry`
<apeiros> and with additional gems, you can step through code. ruby 1.8: pry-nav, 1.9: pry-debugger, 2.0: pry-byebug
MrZYX is now known as MrZYX|off
tonni has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
Senjai has quit [Ping timeout: 264 seconds]
fbernier has quit [Ping timeout: 268 seconds]
MrZYX|off is now known as MrZYX
decoponio has joined #ruby
m8 has joined #ruby
timonv has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
dodosan has quit [Remote host closed the connection]
GeissT has joined #ruby
sparq_ has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
aryaching has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
Zolo has joined #ruby
aryaching has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Coffers has joined #ruby
_JamieD_ has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
Anticom has joined #ruby
Wildhoney has joined #ruby
lepht_afk has quit [Quit: lepht->out]
lepht_afk has joined #ruby
kjellski has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
_JamieD_ has quit [Client Quit]
aryaching has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Quit: zzzzz…..]
dangerousdave has joined #ruby
blaxter_ has joined #ruby
Mon_Ouie has joined #ruby
maxmanders has joined #ruby
pen has joined #ruby
hamed_r has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
gr33n7007h has joined #ruby
starfox21 has joined #ruby
afd__ has joined #ruby
afd__ has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Max SendQ exceeded]
afd__ has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
gr33n7007h has joined #ruby
andikr has joined #ruby
tonni has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
camilasan has joined #ruby
jibi has joined #ruby
blackmesa has joined #ruby
starfox21 has quit [Quit: starfox21]
fbernier has joined #ruby
mklappstuhl has joined #ruby
cha1tanya has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
user258467 has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 256 seconds]
blackmesa has quit [Remote host closed the connection]
blackmesa has joined #ruby
Al_ has joined #ruby
troessner has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
greenysan has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
tvw has quit []
tvw has joined #ruby
d45h has quit [Quit: d45h]
ehaliewicz has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
ewnd9 has joined #ruby
tonni has joined #ruby
[[thufir]] has joined #ruby
camilasan has quit [Remote host closed the connection]
LMolr has joined #ruby
pen has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
AzizLight has joined #ruby
camilasan has joined #ruby
io_syl has quit [Quit: io_syl]
sergicles has quit [Quit: sergicles]
razi has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
tundrax has quit [Remote host closed the connection]
BrianJ has quit [Quit: Computer has gone to sleep.]
visof has joined #ruby
kilophoton has joined #ruby
thebastl has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
niceguyjames has joined #ruby
jonkri has quit [Quit: jonkri]
ghr has joined #ruby
_JamieD_ has joined #ruby
_JamieD_ has quit [Client Quit]
pen has joined #ruby
Wildhoney has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
anderson has quit [Ping timeout: 268 seconds]
starfox21 has joined #ruby
vlad_starkov has joined #ruby
mneorr has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 264 seconds]
obs has joined #ruby
thirdknife has joined #ruby
lepht_afk is now known as lepht
<thirdknife> hi
noname001 has joined #ruby
riginding has joined #ruby
<thirdknife> I have a string let say 1000 charcters of length, I want it to split in 10 lines 100 chars each. any suggestions>
timonv has quit [Remote host closed the connection]
<thirdknife> ?
<thirdknife> I have a string let say 1000 charcters of length,
anderson has joined #ruby
<thirdknife> I want it to split in 10 lines 100 chars each. any suggestions>
<hoelzro> you just want to split it into 10 separate strings?
mklappstuhl has quit [Remote host closed the connection]
rdark has joined #ruby
<thirdknife> no I want to add carriage return at the end
<thirdknife> after each 100 chars
fsck3r has quit [Quit: Leaving...]
<MrZYX> why \r, why not \n?
jefflyne has joined #ruby
<thirdknife> yeah \n
<thirdknife> but how do I append in between
<MrZYX> .scan(/.{1,100}/).join("\n") I'm sure there's a better way but I can't think of anything atm
Zai00 has joined #ruby
pen has quit [Remote host closed the connection]
<thirdknife> It didn't worked
<MrZYX> well, I tested it
companion is now known as Companion
adambeynon has joined #ruby
ryandeussing has joined #ruby
lepht is now known as lepht_afk
shredding has joined #ruby
<thirdknife> yeah in ruby repl it worked
jonkri has joined #ruby
<thirdknife> I am writing a pdf with prawn
dodosan has joined #ruby
shaunbaker has joined #ruby
ryandeussing has quit [Ping timeout: 245 seconds]
raar has quit [Ping timeout: 268 seconds]
* apeiros would use gsub instead of scan+join
<apeiros> won't change "didn't work" because that problem obviously lies elsewhere
pedda has joined #ruby
<apeiros> str.gsub(/.{1,100}/, "\\0\n")
user258467 has joined #ruby
_md has joined #ruby
<MrZYX> hm probably a bit faster but I always find gsub with reinserting matches a bit hard to read
<apeiros> matter of getting used to
<apeiros> I find reading two calls harder than one call ;-)
dodosan has quit [Ping timeout: 245 seconds]
lepht_afk is now known as lepht
saarinen has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: Leaving]
thebastl has joined #ruby
saarinen has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 240 seconds]
zachrab has quit [Remote host closed the connection]
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
ahawkins has quit [Ping timeout: 245 seconds]
ryandeussing has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
end_guy_ has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
weems has quit [Ping timeout: 256 seconds]
thelamest has quit [Quit: rebook]
lyanchih has quit [Quit: lyanchih]
Alina-malina has joined #ruby
nomenkun has joined #ruby
klaut has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
r0bglees0n has quit [Ping timeout: 264 seconds]
staafl has joined #ruby
Evixion has joined #ruby
agjacome has joined #ruby
<krz> ive got a method foo, which accepts arguments like (1,2,3). however, i have an array [1,2,3]. how do i pass the values of the array into the method?
<krz> as 1,2,3 instead of [1,2,3]
<hoelzro> krz: method(*array)
nomenkun has quit [Remote host closed the connection]
<krz> hoelzro: i have no access to the method
<krz> i need to work with the array
<hoelzro> could you paste some code?
blackmesa has joined #ruby
<hoelzro> that will help clarify things
AzizLight has quit [Ping timeout: 256 seconds]
<MrZYX> krz: in case that was not obvious for you: method(*array) is the method call, not the method definition
nomenkun has joined #ruby
<krz> foo accepts (1,2,3,etc) i need to feed it the values from an array. i have array: bar = [1,2,3]. i cant do foo(bar)
<krz> because that will interpret it as foo([1,2,3])
<tobiasvl> foo(*bar)
<krz> it needs to be foo(1,2,3)
<tobiasvl> like hoelzro said
<krz> i dont have access to the method foo
<apeiros> krz: that's how you *call* it
<tobiasvl> ?!?!?!?!?!?
<sevenseacat> lol
<apeiros> he's not telling you how to define it
<tobiasvl> "i cant do foo(bar)" <- no, but you can do foo(*bar)
<tobiasvl> i inserted a splat operator (*) into the method call you gave us
aaronmcadam has joined #ruby
<tobiasvl> so that should be straight forward
<apeiros> your method is defined as `def foo(a,b,c)`, ok, fine. and you call it like `x = foo(*array)`
<apeiros> no change of the implementation needed.
mansi has joined #ruby
<krz> ah! *bar
<tobiasvl> yes
Zolo has quit [Remote host closed the connection]
AzizLight has joined #ruby
mikecmpbll has joined #ruby
LMolr has quit [Ping timeout: 245 seconds]
<jrobeson> lol
<apeiros> it took only 3 people telling him the same thing for him to believe it :D
mansi has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Leaving.]
<apeiros> you know what that means, though, right? We all suck at explaining ;-D
BizarreCake has joined #ruby
guiocavalcanti has joined #ruby
<jrobeson> well just seeing method(*array) would have been confusing for me.. i might have assumed changing the method def also..
<jrobeson> but .. this was pretty clear
<jrobeson> <MrZYX> krz: in case that was not obvious for you: method(*array) is the method call, not the method definition
<apeiros> well, if you're around here for a while, you'll notice that you always get `def foo` for method definitions
<apeiros> also that :)
blackmesa has quit [Ping timeout: 240 seconds]
fixl has joined #ruby
lepht is now known as lepht_afk
marr has joined #ruby
thebastl has quit [Remote host closed the connection]
Wildhoney has quit [Quit: Wildhoney]
Es0teric has quit [Quit: Computer has gone to sleep.]
Wildhoney has joined #ruby
ahawkins has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
guiocavalcanti has quit [Ping timeout: 245 seconds]
tjad has joined #ruby
shredding has quit [Quit: shredding]
cj3kim has quit [Remote host closed the connection]
hamed_r has quit [Ping timeout: 268 seconds]
randomau_ has quit [Read error: Connection reset by peer]
lemonsparrow has quit [Ping timeout: 250 seconds]
SHyx0rmZ has joined #ruby
randomautomator has joined #ruby
<joshu> hi
<joshu> I have some code that looks like this https://gist.github.com/anonymous/c2edccf79192d7d8b5a6 Is it possible to get the method's named parameter when it is called? For instance on L4 when the method "call" named parameter :onAnswer is executed can I within the "onAnswer" do something like put #{method named parameter} ?
randomautomator has quit [Ping timeout: 264 seconds]
nari has joined #ruby
gildo has joined #ruby
kritztopf has quit [Quit: WeeChat 0.4.1]
lkba has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
sergicles has joined #ruby
ewnd9 has quit [Remote host closed the connection]
lepht_afk is now known as lepht
thebastl has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
Zolo has joined #ruby
freeayu3 has joined #ruby
freeayu__ has quit [Ping timeout: 245 seconds]
_axx_ is now known as _axx
maxmanders has quit [Ping timeout: 264 seconds]
anonymuse has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
SHyx0rmZ has joined #ruby
SHyx0rmZ has joined #ruby
maxmanders has joined #ruby
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
Dave is now known as Guest64823
ewnd9 has joined #ruby
kjellski has quit [Ping timeout: 264 seconds]
yojimbo_ has joined #ruby
cj3kim has joined #ruby
LMolr has joined #ruby
mengu has joined #ruby
mansi has joined #ruby
gr33n7007h has joined #ruby
persand has quit [Quit: persand]
basex has joined #ruby
lemonsparrow has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 264 seconds]
<joshu> maybe this example is clearer https://gist.github.com/anonymous/82acc8b69147561e4ddf
polysics has quit [Quit: Leaving.]
intuxicated has quit [Quit: Leaving]
gyzmodo has joined #ruby
dash_ has joined #ruby
mklappstuhl has joined #ruby
emergion has joined #ruby
diegoviola has joined #ruby
<shevy> joshu what is "call"
<joshu> hi shevy it's a method provided by Tropo. The ruby code is run in their cloud using JRuby if that helps
<joshu> shevy it places a call to a phone number
<shevy> I dont know Tropo
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> and I am unsure what call does
dash_ has quit [Ping timeout: 245 seconds]
<joshu> no worries I think I might have another way of doing what I want ;)
kaspergrubbe has quit [Remote host closed the connection]
dash_ has joined #ruby
Guest64823 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
maz-dev has quit [Remote host closed the connection]
haxrbyte has joined #ruby
tvw has quit []
Heero` has joined #ruby
SteveBenner9 has joined #ruby
yfeldblum has joined #ruby
ferr has joined #ruby
jprovazn has quit [Quit: Odcházím]
AzizLight has quit [Ping timeout: 245 seconds]
Heero has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
Ripp__ has quit [Quit: Ripp__]
Zolo has quit [Remote host closed the connection]
<shevy> hmm
<shevy> call() in your example seems to accept two arguments, with the second being a hash
<shevy> "named parameter" as you wrote seems to be the specific key in that hash you passed, a key named :onAnswer
<shevy> if you pass a proc/lambda, you should be able to evaluate it via .call
Fire-Dragon-DoL has joined #ruby
<shevy> so... I dunno... object.call if object.respond_to? :call, where object is your hash (or rather the specific key)
browndawg has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
zigomir has joined #ruby
cj3kim has joined #ruby
zoee has quit [Quit: zoee]
polysics has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
freeayu3 has quit [Quit: This computer has gone to sleep]
machuga|away is now known as machuga
vlad_starkov has joined #ruby
soba has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
Naoe-Kanno has joined #ruby
vadelius has quit [Remote host closed the connection]
browndawg has joined #ruby
polysics has quit [Read error: No route to host]
polysics1 has joined #ruby
SHyx0rmZ has quit [Ping timeout: 240 seconds]
cookiemonsta has joined #ruby
<SteveBenner9> anyone here familiar with Rhodes?
<SteveBenner9> *crosses fingers*
lkba has joined #ruby
dangerousdave has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
maz-dev has joined #ruby
jleishman has joined #ruby
lyanchih has joined #ruby
Domon has quit [Ping timeout: 245 seconds]
camilasan has quit [Remote host closed the connection]
MasterAsia has quit [Ping timeout: 276 seconds]
Matriks has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Matriks has joined #ruby
mansi has joined #ruby
lepht is now known as lepht_afk
MasterAsia has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
failshell has joined #ruby
maz-dev has quit [Remote host closed the connection]
cj3kim has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
greenrose1 has joined #ruby
mikecmpbll has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
dash_ has quit [Quit: dash_]
greenrose has quit [Ping timeout: 256 seconds]
anonymuse has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
osvico has quit [Ping timeout: 264 seconds]
<krz> class Foo has include Bar. in module Bar. how do i reference class Foo?
osvico has joined #ruby
<Olipro> is there any way to preserve YAML splat symbols when converting YAML to a hash, editing the hash and then converting back to YAML?
<MrZYX> krz: reference Foo in what way?
tk__ has joined #ruby
<krz> MrZYX: if Foo calls a method in Bar. how does Bar know which class called the method?
<krz> i.e. Foo
<MrZYX> why does Bar need to know?
<krz> because i need to do something with the class name
<krz> i.e. im creating a redis key based on which class called the method in module Bar
girija__ has joined #ruby
<MrZYX> sounds a bit like a broken design but self.class.name should do
JohnBat26 has joined #ruby
<apeiros> self.class actually
ewnd9 has quit [Ping timeout: 240 seconds]
<apeiros> self.class.name will be a String, not the class itself
<krz> ah. i tried with class.name. didnt know i needed self
<apeiros> class is a keyword
<apeiros> so you must make it explicitly a method call
<MrZYX> apeiros: he later said he "needs to do something with the class name"
<apeiros> which you do by either having an explicit receiver (self.) or by using parens (class())
<apeiros> MrZYX: ah, ok
<apeiros> in that case, I retract my first statement :)
<MrZYX> ;)
girija_ has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
vlad_starkov has joined #ruby
threeturn has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Xeago> but how does that solve his problem?
<Xeago> doesn't he want ton know about Foo within the method that is called on Bar?
<Xeago> never mind
<Xeago> I read his earlier question before he rephrased
Villadelfia has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
jefflyne has joined #ruby
vlad_starkov has joined #ruby
Villadelfia has joined #ruby
mengu has quit [Read error: Connection reset by peer]
thebastl has quit [Remote host closed the connection]
persand has joined #ruby
Villadelfia has quit [Client Quit]
girija__ has quit [Ping timeout: 256 seconds]
realDAB has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
Companion is now known as companion
haxrbyte_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
cads has joined #ruby
haxrbyte_ has joined #ruby
eka has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
mklappstuhl has quit [Read error: Operation timed out]
zoee has joined #ruby
cj3kim has joined #ruby
<shevy> krz you could try to get a backreference through caller()
vlad_starkov has joined #ruby
mlpinit has joined #ruby
yalue has joined #ruby
lucazi has joined #ruby
wmoxam has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
maz-dev has joined #ruby
__Cr0 has quit []
starship has joined #ruby
pranny has quit [Quit: Leaving.]
zarubin has joined #ruby
thebastl has joined #ruby
greenrose1 is now known as greenrose
<Xeago> why does this http://hastebin.com/pewolasoto give a SyntaxError: /vagrant/app/models/invoice.rb:14: syntax error, unexpected ':', expecting keyword_end
<Xeago> at ..return result_:_ result..
<apeiros> Xeago: I assume return being syntax does not accept braces-less hashes
<Xeago> its not even return
<apeiros> ?
<apeiros> line 8 is return
<apeiros> --> return result: result, transaction: transaction
<Xeago> testing it in my console, if foo is declared somewhere, 'foo: foo' gives a syntax error
<apeiros> that's invalid syntax. and I checked, it's indeed not accepted for return
<Xeago> "its not even return" => it happens in eval as well
<apeiros> yes, braces-less hash literals are only allowed as arguments of a method call
<Xeago> or whatever pry/irb use
<Xeago> how annoying >.<
girija__ has joined #ruby
<apeiros> I suggest you talk with language implementors about that, especially parser writers :-p
<Xeago> the rest of the language is so nice with syntax
parzo has quit [Remote host closed the connection]
k610 has joined #ruby
lemonsparrow has quit [Quit: Page closed]
lemonsparrow has joined #ruby
pen has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 264 seconds]
osvico has quit [Ping timeout: 245 seconds]
kjellski has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
<shevy> Xeago I think it came that way because people were tired of writing ({}) in method calls
polysics1 has left #ruby [#ruby]
vlad_starkov has joined #ruby
IceyEC has joined #ruby
s0ny123 has joined #ruby
mansi has joined #ruby
cmarques has joined #ruby
starship has quit [Ping timeout: 240 seconds]
cha1tanya has quit [Ping timeout: 248 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freeayu3 has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
threeturn has quit [Quit: threeturn]
mansi has quit [Ping timeout: 264 seconds]
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
[Goodoog] has joined #ruby
mark_locklear has joined #ruby
thelamest has joined #ruby
pipework has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
rcosta has joined #ruby
rcosta has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
zoee has quit [Quit: zoee]
danshultz has joined #ruby
breakingthings has joined #ruby
zaargy_ is now known as zaargy
niceguyjames has joined #ruby
dangerousdave has joined #ruby
flughafen has joined #ruby
alekst has joined #ruby
Villadelfia has joined #ruby
rcosta has joined #ruby
anonymuse has joined #ruby
dash_ has joined #ruby
mvangala has joined #ruby
zoee has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby
AlSquirrel has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL1 has joined #ruby
intuxicated has joined #ruby
hogeo has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
Fire-Dragon-DoL1 has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
ewnd9 has joined #ruby
rcosta has quit [Remote host closed the connection]
kaldrenon has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
diegoviola has quit [Quit: bbl]
ferr has joined #ruby
intuxicated has quit [Remote host closed the connection]
jjbohn has joined #ruby
intuxicated has joined #ruby
cj3kim has joined #ruby
AlSquire has quit [Remote host closed the connection]
AlSquire has joined #ruby
devoldmx has joined #ruby
krz has quit [Quit: krz]
mansi has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
devoldmx3 has quit [Ping timeout: 268 seconds]
philcrissman_ has joined #ruby
Megtastique has joined #ruby
rcosta has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
companion is now known as Companion
freeayu has joined #ruby
wallerdev has joined #ruby
Tricon has quit [Quit: Tricon]
freeayu3 has quit [Ping timeout: 248 seconds]
markalanevans has quit [Quit: markalanevans]
Nakilon has joined #ruby
sambao21 has joined #ruby
girija__ has quit [Ping timeout: 256 seconds]
girija__ has joined #ruby
YaNakilon has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
graydot has quit [Quit: graydot]
Nakilon has quit [Ping timeout: 248 seconds]
wesside has joined #ruby
splittingred has joined #ruby
wolcanus has joined #ruby
v0n has joined #ruby
k611 has joined #ruby
jjbohn has quit [Quit: Leaving...]
freeayu__ has joined #ruby
Hobogrammer has quit [Ping timeout: 268 seconds]
devoldmx has quit [Read error: Connection reset by peer]
YaNakilon has joined #ruby
cmarques has left #ruby [#ruby]
Wildhoney has joined #ruby
splittingred has quit [Client Quit]
k610 has quit [Ping timeout: 256 seconds]
raar has joined #ruby
freeayu has quit [Ping timeout: 248 seconds]
raar is now known as Guest69670
sarkis has joined #ruby
pranny has joined #ruby
jprovazn has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gyre007 has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mikecmpbll has joined #ruby
freeayu__ has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
tkuchiki has quit [Remote host closed the connection]
axl_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
kofno has joined #ruby
phantasm66 has joined #ruby
vlad_starkov has joined #ruby
freeayu has joined #ruby
scarolan has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
greenysan has quit [Quit: Lost terminal]
zets has quit []
blackmesa has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
relix has joined #ruby
girija__ has quit [Ping timeout: 245 seconds]
NealJ has joined #ruby
nemesit|znc has quit [Ping timeout: 248 seconds]
jaynewstrom has quit [Read error: Connection reset by peer]
yojimbo__ has joined #ruby
scarolan_ has joined #ruby
yojimbo_ has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
cookiemonsta has left #ruby [#ruby]
scarolan has quit [Ping timeout: 246 seconds]
brettnem has joined #ruby
kvirani has joined #ruby
philcrissman_ has joined #ruby
mansi has quit [Remote host closed the connection]
mmitchell has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
jaynewstrom has joined #ruby
poga has quit [Remote host closed the connection]
pipework has joined #ruby
Kabaka has joined #ruby
freeayu has joined #ruby
caju has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
tomzx_mac has quit [Ping timeout: 268 seconds]
parzo has joined #ruby
AzizLight has joined #ruby
iamjarvo has joined #ruby
jdenen has joined #ruby
AzizLight has quit [Read error: Connection reset by peer]
jbomo has joined #ruby
bluenemo has joined #ruby
shunt has joined #ruby
akells has joined #ruby
colonolGron has joined #ruby
Coffers has quit [Read error: No route to host]
tabolario has joined #ruby
Coffers has joined #ruby
anonymuse has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
anonymuse has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
habanany has joined #ruby
zoee has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Evixion has joined #ruby
cj3kim has joined #ruby
ravster has joined #ruby
pranny1 has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
blaxter_ has quit [Ping timeout: 264 seconds]
pranny has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
nemesit|znc has joined #ruby
I-saac has joined #ruby
ffranz has joined #ruby
Mon_Ouie has joined #ruby
geekbri has joined #ruby
r0bglees0n has joined #ruby
h8R has quit [Remote host closed the connection]
yojimbo__ has quit [Quit: Leaving]
ferr has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
Neomex has joined #ruby
browndawg has quit [Quit: Leaving.]
rdark has quit [Ping timeout: 240 seconds]
Neomex has quit [Client Quit]
sarkis has joined #ruby
plains has joined #ruby
habanany has quit [Read error: Connection reset by peer]
jleishman has quit [Read error: Connection reset by peer]
shredding has joined #ruby
jleishman has joined #ruby
rdark has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Kabaka has quit [Remote host closed the connection]
blaxter_ has joined #ruby
splittingred has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
siera08 has joined #ruby
elux has joined #ruby
tonni has quit [Remote host closed the connection]
Kabaka has joined #ruby
k611 has quit [Ping timeout: 260 seconds]
[Goodoog] has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Remote host closed the connection]
viszu has joined #ruby
mneorr has joined #ruby
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Quit: Leaving.]
gr33n7007h has quit [Ping timeout: 256 seconds]
yacks has joined #ruby
gr33n7007h has joined #ruby
blaxter_ has quit [Read error: Connection reset by peer]
blaxter_ has joined #ruby
mrsolo has joined #ruby
persand has quit [Read error: Connection reset by peer]
<shevy> hmm
devoldmx3 has joined #ruby
niceguyjames has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
wolcanus has quit [Read error: No route to host]
persand has joined #ruby
wolcanus has joined #ruby
lukec has joined #ruby
lurch_ has joined #ruby
gadgetoid is now known as Gadgetoid
devoldmx3 has quit [Read error: Connection reset by peer]
LMolr has quit [Read error: Operation timed out]
blaxter_ has quit [Read error: Operation timed out]
codecop has quit [Remote host closed the connection]
blaxter_ has joined #ruby
thesheff17 has joined #ruby
Tricon has joined #ruby
mando has joined #ruby
tricon_ has joined #ruby
devoldmx has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
tonni has joined #ruby
dangerousdave has joined #ruby
siera08 has quit [Ping timeout: 240 seconds]
kjellski has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Client Quit]
<shevy> this is odd
johest has quit [Quit: Konversation terminated!]
<shevy> rubygems, per project, has an entry field: "Bug Tracker URL"
<shevy> but I guess this means to an external URL right? I dont see a bug tracker integrated at rubygems
lurch_ has quit [Read error: Connection reset by peer]
<shevy> I could connect github with rubygems that way
cj3kim has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Guest60954 has quit [Changing host]
Guest60954 has joined #ruby
Guest60954 is now known as starship
rhys_ has joined #ruby
lurch_ has joined #ruby
St_Marx has joined #ruby
mansi has joined #ruby
snath has quit [Ping timeout: 240 seconds]
AlSquire has quit [Remote host closed the connection]
brotspinne has joined #ruby
Orxata_ has joined #ruby
<Orxata_> hiz
<zendeavor> herz
maroloccio has joined #ruby
<Orxata_> he
<brotspinne> hello. in ruby it's possible to call a class as a method like Array(42). is it possible to enable this for my own class?
AlSquire has joined #ruby
fyz1x has joined #ruby
<hoelzro> well
devoldmx has quit [Read error: Connection reset by peer]
<brotspinne> or for an object?
* hoelzro thinks for a second
<hoelzro> as well as a method on Object
<hoelzro> I think that Array is both a class object bound to a constant
cj3kim has quit [Read error: Connection reset by peer]
<MrZYX> Array is a method
<shevy> yeah they cheat
io_syl has joined #ruby
<brotspinne> (nevermind the second question. class is already an object)
<hoelzro> >> method :Array
<hoelzro> =(
<MrZYX> on Kernel
<eval-in> hoelzro => #<Method: Object(Kernel)#Array> (https://eval.in/45213)
<hoelzro> there you are!
devoldmx has joined #ruby
<brotspinne> ok Array is a method. but what happens when I call Array.new?
<MrZYX> Array is also a constant
tonni has quit [Ping timeout: 245 seconds]
jjbohn has joined #ruby
<shevy> huh
<brotspinne> how can it be two thing at the same time?
<MrZYX> >> Object.const_get(:Array)
<eval-in> MrZYX => Array (https://eval.in/45214)
<shevy> Kernel::Array() # ArgumentError: wrong number of arguments(0 for 1)
tagrudev has quit [Remote host closed the connection]
<shevy> Object::Array() # NoMethodError: private method `Array' called for Object:Class
Jake232 has joined #ruby
<shevy> brotspinne why do you have such a strange nick! I hate spiders
braoru has quit [Read error: Connection reset by peer]
<MrZYX> shevy: it's probably also a module_function on Kernel so the :: there is a method call
realDAB has quit [Quit: realDAB]
<hoelzro> it's kind of like how x can be a local variable or a method call
<hoelzro> depending on context
kpshek has joined #ruby
<hoelzro> Array is both a method and a constant
<brotspinne> ok so how to do this? I do Kernel.define_method :MyClass …but what is with MyClass.new?
<hoelzro> it has nothing to do with the method
cody-- has joined #ruby
<hoelzro> they're unrelated
<hoelzro> other than in name and that one uses the other
<brotspinne> hoelzro: so you mean when the class is there and I call a class method (or new) on it ruby thinks I call the class instead of the method with the same name defined on kernel?
<hoelzro> hmm
interactionjaxsn has joined #ruby
<hoelzro> I believe so
browndawg has joined #ruby
<hoelzro> I'm not sure what the resolution rule is
<hoelzro> I wrote it down in a notebook once
tricon- has joined #ruby
blackmesa has joined #ruby
<brotspinne> hmm
Tricon has quit [Read error: Connection reset by peer]
tricon_ has quit [Read error: Connection reset by peer]
<brotspinne> so that implies that it would never be possible to do things like @foo(42) right?
jerius has quit [Ping timeout: 246 seconds]
<hoelzro> correct
<brotspinne> instead I could go with @foo[42]
<brotspinne> ok
<hoelzro> @foo.(42), yes
<brotspinne> what is @foo.(42)?
dangerousdave has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
intuxicated has quit [Remote host closed the connection]
<hoelzro> it calls the () method on whatever object is referred to by @foo
jerius has joined #ruby
<hoelzro> foo = proc { puts 'hi' } foo.()
<hoelzro> >> foo = proc { puts 'hi' } foo.()
tonni has joined #ruby
<eval-in> hoelzro => /tmp/execpad-e09bb16e1ac8/source-e09bb16e1ac8:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/45215)
<hoelzro> ugh.
<hoelzro> >> foo = proc { puts 'hi' } ; foo.()
<eval-in> hoelzro => hi ... (https://eval.in/45216)
lukec has quit [Quit: lukec]
jefflyne has joined #ruby
<banister> brotspinne it actually calls #call
<hanmac> >> Array 42
<eval-in> Hanmac => [42] (https://eval.in/45217)
<banister> brotspinne .() is just sugar for .call()
jacktrick has joined #ruby
<banister> if you define #call on any of your objects you can use .() to invoke it ;)
<hoelzro> I thought it was just an alias?
<banister> nah
<brotspinne> ok
<banister> >> o = Object.new; def o.call() "sup baby" ; end; o.()
<eval-in> banister => "sup baby" (https://eval.in/45218)
johest has joined #ruby
johest has quit [Changing host]
johest has joined #ruby
<hoelzro> nice
<brotspinne> banister: any thoughts on the conflict class vs. global method with same name resolution?
bondar has joined #ruby
<banister> brotspinne not sure what u mean
ewnd9 has quit [Ping timeout: 248 seconds]
rh1n0 has joined #ruby
twoism has joined #ruby
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
_maes_ has joined #ruby
johnnyfuchs has joined #ruby
<banister> banister you mean like Array() vs Array ?
vlad_starkov has joined #ruby
<banister> err, brotspinne
<brotspinne> yes ;D
twoism has quit [Remote host closed the connection]
pentameter has joined #ruby
AlSquire has quit [Remote host closed the connection]
dustin1 has joined #ruby
twoism has joined #ruby
brennanMKE has joined #ruby
rcosta has quit [Ping timeout: 248 seconds]
<banister> brotspinne can you explain the situation when there'd be a conflict?
rh1n0 has quit [Client Quit]
intuxicated has joined #ruby
hogeo has joined #ruby
<hoelzro> I think the confusion is in statements like this:
blaxter_ has quit [Read error: Connection reset by peer]
<hoelzro> puts(Array)
rh1n0 has joined #ruby
<hoelzro> is the class object used, or is the method called?
<brotspinne> banister: the question is about if ruby does first resolve the identifier ("MyClass") or first looks how it is invoked (MyClass.foo vs MyClass())
blaxter_ has joined #ruby
<banister> brotspinne it would look at how it's invoked
<banister> to determine if it's a method call and so on
<brotspinne> ok makes sense
<lupine> that's used in more than no libraries. IPAddress(string) for instance
<lupine> (in conjunction with the existence of an IPAddress class)
<lupine> as an idiom, I don't really like it
mary5030 has joined #ruby
<banister> brotspinne it's basically a fake constructor
<banister> that can look prettier than MyClass.new()
GeissT has quit [Quit: MillBroChat AdIRC User]
rh1n0 has quit [Client Quit]
<brotspinne> yeah the usability is clear to me
I-saac has quit [Ping timeout: 248 seconds]
jjbohn is now known as jjbohn|afk
sambao21 has joined #ruby
<brotspinne> I guess there's only one case in which it makes sense to use Array() and this is when you want to wrap something into an array. because [foo] looks unintended. but rails already has a nicer Array.wrap() method
brennanMKE has quit [Ping timeout: 276 seconds]
<brotspinne> which does not rewrap
Evixion has quit [Read error: Connection reset by peer]
rrichardsr3 has joined #ruby
axl__ has joined #ruby
twoism_ has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
axl_ has quit [Ping timeout: 240 seconds]
axl__ is now known as axl_
<hanmac> brotspinne & lupine & Banister & hoelzro: if there is a Constant and a method with the same name, without parameters and without () the const is returned, if there are parameters or () then the method is called
Yakko has joined #ruby
<hoelzro> thanks Hanmac
Evixion has joined #ruby
turduks has joined #ruby
jjbohn|afk is now known as jjbohn
<brotspinne> Hanmac: nice
freerobby has joined #ruby
twoism has quit [Ping timeout: 264 seconds]
noopq has quit [Ping timeout: 240 seconds]
poga has joined #ruby
twoism has joined #ruby
twoism_ has quit [Read error: Connection reset by peer]
<hanmac> addional info: ::Array always return the constant with :: you cant get the method (parameter and () makes syntax error)
<brotspinne> so would you consider not to using this idiom for custom classes because it would be required to clutter the kernel class?
anonymuse has quit [Remote host closed the connection]
<thirdknife> I want to generate a random string with capital letter only of length 10
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
cj3kim has joined #ruby
<hanmac> im i did something in my subnamespace ... like NameSpace::Class123(args) redirects to NameSpace::Class123.new(args)
lurch__ has joined #ruby
lurch__ has quit [Client Quit]
nari has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
wolcanus has quit [Remote host closed the connection]
BRMatt has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
YaNakilon has joined #ruby
zoee has quit [Ping timeout: 248 seconds]
wolcanus has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
lurch_ has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
VTLob has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
blaxter_ has quit [Read error: Connection reset by peer]
twoism_ has joined #ruby
bluenemo has quit [Remote host closed the connection]
sailias has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
AlSquire has quit [Remote host closed the connection]
AlSquire has joined #ruby
niceguyjames has joined #ruby
ahawkins has joined #ruby
persand has quit [Quit: persand]
niceguyjames has quit [Client Quit]
twoism_ has quit [Read error: Connection reset by peer]
twoism has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
girija__ has joined #ruby
jjbohn is now known as jjbohn|afk
twoism has joined #ruby
BRMatt has joined #ruby
wolcanus has quit [Remote host closed the connection]
turduks has quit [Ping timeout: 260 seconds]
<Orxata_> Question: Is there a way to parse a file with N lines, each line with the format <a atr1="ble" atr2="bla"... href="https://bli" atrN="blo"> and only retrieve the href atribute?
<hoelzro> use an HTML parser?
rippa has joined #ruby
mary5030 has quit [Read error: Operation timed out]
viszu has quit [Quit: Leaving.]
wolcanus has joined #ruby
<Orxata_> hm...
maz-dev has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
<Orxata_> like nokogiri?
realDAB has joined #ruby
pranny1 has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
endash has joined #ruby
<hanmac> Orxata_: yeah
viszu has joined #ruby
mrsolo has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
zoee has joined #ruby
S0da has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Orxata_> also I have a problem which is not directly related with ruby
<brisbin> Orxata_: if it's that well formed, and not actually html... sed 's/.*\(href=".*"\).*/!d; //\1' file
<Orxata_> oh
brennanMKE has joined #ruby
<Orxata_> thank you very much, I was looking for a RegExp
<brisbin> sorry, sed '/.*\(href=".*"\).*/!d; s//\1/g'
Hobogrammer has joined #ruby
AlSquire has quit [Quit: Quitte]
Anticom has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
blaxter_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
blaxter_ is now known as blaxter
hasrb has joined #ruby
sevenseacat has quit [Quit: Leaving.]
v0n has joined #ruby
wolcanus has joined #ruby
lunaphyte_ has joined #ruby
jjbohn|afk is now known as jjbohn
jarray52 has joined #ruby
i_s has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
twoism_ has joined #ruby
mikecmpbll has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
sailias has joined #ruby
thebastl has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
aryaching has joined #ruby
tonni has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
ntus1017 has joined #ruby
brotspinne has left #ruby [#ruby]
devoldmx has quit [Read error: Connection reset by peer]
jlast has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
snath has joined #ruby
twoism has quit [Ping timeout: 276 seconds]
twoism_ has quit [Ping timeout: 245 seconds]
i_s has quit [Ping timeout: 260 seconds]
pel_daniel has joined #ruby
AlSquire has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
seich- has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
cj3kim has joined #ruby
<Orxata_> hmmm brisbin, didn't worked. It says syntax error, unexpected '!', expecting ']'
blaxter has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
blaxter has joined #ruby
ssvo has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<brisbin> Orxata_: trying on my end, one sec
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cj3kim has quit [Ping timeout: 240 seconds]
<brisbin> Orxata_: http://sprunge.us/WVad works fine here, probably a typo on your end
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
girija__ has left #ruby ["Ex-Chat"]
seich- has joined #ruby
<Orxata_> oh xD I'm so stupid. I was doing it directly on ruby
<Orxata_> thanks
viszu has quit [Quit: Leaving.]
freeayu has quit [Write error: Broken pipe]
<lunaphyte_> hi. given http://dpaste.com/1358088/ - what is the term for doing #{foo}? i'd like to read more about it, but don't know the terminology
tk__ has quit [Quit: ばいばい]
<hoelzro> lunaphyte_: interpolation
<brisbin> lunaphyte_: interpolation
devoldmx has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
ezra has joined #ruby
adeponte has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 264 seconds]
seich- has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<lunaphyte_> great, thanks.
sayan has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
<lunaphyte_> oh, is it simply the equivalent of ${foo} in sh/bash?
<hoelzro> same idea
<hoelzro> but slightly different
<hoelzro> ex. foo='bar baz'
browndawg has joined #ruby
<hoelzro> ls ${foo} vs ls "${foo}"
ssvo_ has joined #ruby
sporkbomb has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
ldnunes has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Neener54 has joined #ruby
thebastl has joined #ruby
Neener54 has quit [Client Quit]
MarioEIU has joined #ruby
iPhoneMRZ has joined #ruby
rrichardsr3 has quit [Quit: -- I'm out --]
lukec has joined #ruby
hogeo has joined #ruby
jsatk has joined #ruby
jacktrick has quit [Quit: Leaving]
MarioEIU has left #ruby [#ruby]
jacktrick has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
AlSquire has quit [Remote host closed the connection]
RichardBaker has joined #ruby
poga has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
turduks has joined #ruby
poga has joined #ruby
sambao21 has joined #ruby
<tbrock> hey do you guys know the best way to blow away bundler
<tbrock> so that `bundle` generates dependencies from scratch?
bklane has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<lunaphyte_> hoelzro: which is the slightly different part in terms of ruby?
kaspergrubbe has joined #ruby
pitzips has joined #ruby
pwh has joined #ruby
jefflyne has joined #ruby
bondar has quit []
Criztian has joined #ruby
jprovazn is now known as jprovazn_afk
jerius has quit [Quit: jerius]
rippa has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby
rippa has joined #ruby
<YaNakilon> parse html with regex FTW!
realDAB has quit [Quit: realDAB]
turduks has quit [Ping timeout: 245 seconds]
<Orxata_> xD
<Orxata_> it is NOT html
<Orxata_> it's just a file with lines
Nogbit has quit [Read error: Operation timed out]
splittingred has quit [Ping timeout: 245 seconds]
turduks has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
stkowski has quit [Quit: stkowski]
devoldmx has joined #ruby
user258467 has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
<ravster> hey all, I want to check the response body in capybara to make sure that its a pdf document. How do I do that?
aganov has quit [Remote host closed the connection]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
alup has quit [Quit: Leaving]
bookmage has joined #ruby
enjoi has joined #ruby
<enjoi> Hello, I was trying to run ruby update and I got this message: It seems your ruby installation is missing psych (for YAML output)
devoldmx has quit [Ping timeout: 240 seconds]
nanashi_615 has joined #ruby
jdenen has quit [Quit: Leaving.]
<enjoi> any idea why this might be occuring?
haxrbyte has joined #ruby
tylersmith has joined #ruby
thirdknife has quit [Ping timeout: 268 seconds]
nanashi_615 has quit [Client Quit]
jerius has joined #ruby
freerobby has quit [Quit: Leaving.]
dodosan has joined #ruby
kilophoton has joined #ruby
tylersmith has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
suffix has joined #ruby
tkuchiki has joined #ruby
<suffix> so, why is this incorrect ruby syntax? secondaryrole = (primaryrole.gsub(/\d/, "")) + (if (primaryrole.gsub(/\D/, "").to_i + 1) < 10 puts "0" + (primaryrole.gsub(/\D/, "").to_i + 1).to_s else puts (primaryrole.gsub(/\D/, "").to_i + 1).to_s )
maxmanders has quit [Ping timeout: 240 seconds]
basex has quit [Quit: basex]
digital-ghost has joined #ruby
DrCode has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
cody-- has quit [Quit: Computer has gone to sleep.]
<ccooke> suffix: well, for a start there's no end to that if
<suffix> ok
maxmanders has joined #ruby
<suffix> would it work otherwise?
<ccooke> Possibly. I think it's too ugly to stand as-is, tbh
tylersmith has quit [Ping timeout: 246 seconds]
enaqx has joined #ruby
<ccooke> suffix: it's doing some very odd things, tbh
<suffix> I basically need to add a 0 to a number if it's less than 10
<ccooke> okay, that's definitely not the right way
dustin1 has left #ruby ["WeeChat 0.4.0"]
Fractional has joined #ruby
<suffix> this werks
<suffix> secondaryrole = (primaryrole.gsub(/\d/, "")) + ((primaryrole.gsub(/\D/, "").to_i + 1) < 10 ? "0" + (primaryrole.gsub(/\D/, "").to_i + 1).to_s : (primaryrole.gsub(/\D/, "").to_i + 1).to_s )
<suffix> yolo#
<Aloysius1> Hey, all...I'm trying to build an Rspec for testing a matrix of values. Looking for an elegant way to do it. So, if I have matrix m, I can go through all the rows and columns and test for "my_test_object.value.should eq(matrix[x,y])". Looking for a standard/elegant way to do this rather than just matrix["row1", "col1"] = "expected value".
soulcake has quit [Read error: Connection reset by peer]
clov3r has quit [Remote host closed the connection]
<Fractional> Hi everybody. I've a question. How do I make a object that I can access within another class without making it global?
soulcake has joined #ruby
cek has joined #ruby
<cek> how do i "should_eventually" in rspec?
mansi has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
<ccooke> suffix: well, for instance, this should do it:
<ccooke> suffix: primaryrole.gsub(/\D/, "").gsub(/^\d$/) { |i| "0#{i}" }
mansi has joined #ruby
Lewix has joined #ruby
DrCode has joined #ruby
<Aloysius1> Fractional: I think you have to be more specific. Do you mean any other class at all?
<Fractional> Is there a way to send private messages here?
<cek> xit
cek has quit [Client Quit]
mikepack has joined #ruby
jacktrick has quit [Quit: Leaving]
biesiad has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
<Fractional> Aloysius1: I
<ezra> suffix: sprintf("%02d", num) ?
<Fractional> Aloysius1: I'm writing up an example.
<ccooke> suffix: but that will be a little dangerous, since gsub(/\D/,"") will not always do the right thing if your input string isn't formatted exactly right
<ccooke> suffix: for instance, what if the input string contained a number with a decimal point? Or two numbers with some text between?
<Fractional> Aloysius1: http://pastebin.com/7Z6MjDS9
<Fractional> How can I do this?
<suffix> lol that would neve rhappen
realDAB has joined #ruby
baroquebobcat has joined #ruby
splittingred has joined #ruby
aryaching has quit []
aryaching has joined #ruby
<Aloysius1> Fractional: You would either pass the player to the Game, or create the player within the game. There are other, subtler or more complex answers, but a lot would have to do with what your goal with Game and Player are.
hogeo has quit [Ping timeout: 245 seconds]
<Fractional> That's just a example of how I want it. What would the best way be to do this?
iamjarvo has quit [Remote host closed the connection]
<Aloysius1> well, with what you have, not knowing anything about the design, why not "def intiialize player" and force the player to be passed to the game?
iamjarvo has joined #ruby
<Fractional> Can a object pass itself through a method to another class?
anderson has quit [Ping timeout: 240 seconds]
basex has joined #ruby
zeade has joined #ruby
adeponte has joined #ruby
Elhu has joined #ruby
<Aloysius1> Sure.
<Fractional> Ok. I'm quite new to Ruby and not very familiar with it.
<Fractional> What's this called (:name)?
<Aloysius1> The colon before unquoted text indicates a symbol.
apeiros has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<digital-ghost> I am trying to understand symbols better right now.
<Fractional> So, if I would like to look into them, what should I search for? Symbols in Ruby?
iamjarvo has quit [Ping timeout: 245 seconds]
<Aloysius1> That'd work. Symbols are a very simple concept; they just seem mysterious at first.
ffranz has quit [Quit: Leaving]
tonni has joined #ruby
sayan has joined #ruby
snath has quit [Ping timeout: 248 seconds]
noname001 has quit [Ping timeout: 245 seconds]
Monie has joined #ruby
sailias has joined #ruby
<Fractional> Thank you very much my friend!
<digital-ghost> How do you use symbols with the new replacement for hash rockets? Like 'class: :some_symbol'
<digital-ghost> That syntax always seems to error.
dhruvasagar has joined #ruby
jonkri has quit [Quit: jonkri]
<ayonix> it's generally correct though
devoldmx3 has quit [Read error: Connection reset by peer]
lunaphyte_ has left #ruby [#ruby]
<Fractional> So a symbol is a value with a name? :P
<Aloysius1> A symbol is an identity. It is what it says on the tin. Heh.
shredding has quit [Quit: shredding]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
twoism has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
snath has joined #ruby
<Aloysius1> digital-ghost: Don't use the : before the key. That's implied.
raul782_ has joined #ruby
iamjarvo has joined #ruby
sporkbomb has quit [Quit: leaving]
lukec has quit [Quit: lukec]
havenwood has joined #ruby
<Aloysius1> digital-ghost: Which also means that the hashrocket-free syntax requires symbols for keys.
<Aloysius1> digital-ghost: That's what it's for, really. If you're using a non-symbol key, you're back to hashrockets.
<havenwood> >> {{}=>{}}[{}]
<eval-in> havenwood => {} (https://eval.in/45219)
ffranz has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
visof has quit [Remote host closed the connection]
aaronmcadam has quit [Quit: Linkinus - http://linkinus.com]
<Fractional> How can I add a parameter to a method that is optional?
dankest has joined #ruby
<Aloysius1> Fractional: Optional parameters must be the last ones in a method, and you assign a value, like "def fn parm=0"
<Aloysius1> Fractional: More idiomatically, accept a hash and you can pretend Ruby has named parameters.
Targen has quit [Ping timeout: 264 seconds]
<Mon_Ouie> Ruby does have named parameters now
Nogbit has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<Aloysius1> Mon_Ouie: Good point. In 2.0.
<MrZYX> can't you have optional params in the middle or beginning now as long as they're grouped?
<havenwood> I have yet to actually use kwargs in 2.0, need to jump on that bandwagon.
kaspergrubbe has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<havenwood> Still hashes underneath in 2.1?
<Mon_Ouie> That too (since 1.9)
ntus1017 has quit [Remote host closed the connection]
<Fractional> def dosomething(p1, p2) - Would that make the parameter p2 optional?
<Mon_Ouie> No
<Mon_Ouie> def dosomething(p1, p2 = some_default_value) will
maz-dev has joined #ruby
turduks has quit [Remote host closed the connection]
<Fractional> Do I need to set it to a default value?
<MrZYX> what would be the value you expect if you wouldn't and it's not given?
danshultz has joined #ruby
<havenwood> Fractional: If there is an arg, you've got to set a value if you want it to not throw an error when no args are provided when the method is called. Set the default to make providing that argument optional.
camilasan has quit [Remote host closed the connection]
<Fractional> Ok. Thanks a bunch guys! Really appreciated! :)
benlieb has joined #ruby
zoee has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
<banister> Mon_Ouie 'alut
<banister> Mon_Ouiewhat is 'allspice' (a spice) in dutch/flemish?
<banister> Mon_Ouie
mansi has quit [Remote host closed the connection]
Nogbit has quit [Ping timeout: 260 seconds]
Nogbit1 has joined #ruby
chrisja has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
ghr has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
itcharlie has joined #ruby
turduks has joined #ruby
colonolGron has quit [Quit: Lost terminal]
turduks has quit [Client Quit]
timonv has joined #ruby
spider-mario has joined #ruby
caju has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
<Mon_Ouie> No clue
<havenwood> piment
wallerdev has quit [Read error: Connection reset by peer]
Davey has joined #ruby
wallerdev has joined #ruby
devoldmx has joined #ruby
trinode_away has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
<banister> havenwood thanks
lukec has joined #ruby
<banister> havenwood i was convinced google translate wouldn't be able to help me, but turns out it did have a word for it ;)
mansi has joined #ruby
mityaz has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
trinode_away has joined #ruby
trinode_away is now known as trinode
<havenwood> banister: Google Translate is getting better, I swear!
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
cha1tanya has joined #ruby
iliketur_ has joined #ruby
<havenwood> I should use allspice more. Would be fun to make jerk chicken or mole.
<Olipro> is there a more efficient way than using each_slice on [1,2,3,4,5,6] to convert it to [[1,2],[3,4],[5,6]]
huoxito has joined #ruby
shaunbaker has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 245 seconds]
<banister> havenwood well it needs to if things like google glass are really going to take over the world :) I've seen some interesting augmented reality apps where you look at a sign written in one language and google glass rewrites the word in the destination language, using the same font, and superimposes it on the sign (replacing the original text)
<banister> Olipro arr.each_slice(2).to_a
<havenwood> banister: Yeah, got that on my phone - but it would be actually more than a parlor trick in augmented reality form.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox_away is now known as DanKnox
benlieb has quit [Quit: benlieb]
realDAB has quit [Quit: realDAB]
pen has quit [Remote host closed the connection]
freerobby has joined #ruby
<banister> havenwood you got yourself a chrome cast yet btw?
hogeo has joined #ruby
snovak has joined #ruby
blaxter has quit [Quit: foo]
<havenwood> banister: Nope, actually haven't ordered one. Almost did when you mentioned it the other week but didn't click buy.
tjad has joined #ruby
ColKurtz has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
andikr has quit [Remote host closed the connection]
ebobby has joined #ruby
dankest has quit [Quit: Peace]
basex has quit [Quit: basex]
<banister> havenwood do u have a paypal? i could send u the money and if it's not too much effort you could send me one ? :) I'd include some extra $ for a beer for your troubles :)
snovak_ has quit [Ping timeout: 268 seconds]
jongilbraith has joined #ruby
chrisja has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
<havenwood> banister: Sure, i'll order ya one. Pretty sure i've got a PayPal but I never use it.
sambao21 has quit [Quit: Computer has gone to sleep.]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
ebobby has left #ruby [#ruby]
apeiros has joined #ruby
Voodoofish430 has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
Wildhoney has quit [Quit: Wildhoney]
lucazi has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: Leaving...]
Elhu has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
jongilbraith has quit [Client Quit]
emergion has quit [Ping timeout: 260 seconds]
wolcanus has quit [Read error: Connection reset by peer]
bw_ has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
wolcanus has joined #ruby
JDHankle has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
danshultz has joined #ruby
<Eiam> oh man ,allspice gag
Al_ has quit [Quit: Al_]
tylersmith has joined #ruby
troessner has quit [Quit: Leaving]
<Eiam> I tried some allspice + green chartreuse concoction.. it smelled like Fall & thanksgiving..
<Eiam> tasted like assess =(
thirdknife has joined #ruby
bw_ has joined #ruby
<Eiam> banister: what stops you from making the order yourself?
suffix has quit [Ping timeout: 248 seconds]
<Eiam> (my curiosity)
<banister> Eiam i don't live in USA
<banister> and they don't ship outside USA afaik
<Eiam> they don't sell them to people outside the USA?
<Eiam> typical google, ignores international customers.
<banister> based on a quick google i did the other day, they don't yet
<Eiam> and I was just talking to localization about my features and ensuring they had done some looking into things =)
<Eiam> cause I CARE ABOUT INTERNATIONAL USERS!
Targen has joined #ruby
suffix_ has joined #ruby
wolcanus has quit [Read error: Connection reset by peer]
<havenwood> banister: Yeah, on the order form they have phone number i18n but the country pulldown is greyed out on US.
biesiad has quit [Quit: biesiad]
wolcanus has joined #ruby
Trynemjoel has joined #ruby
<Eiam> bummer
tommyvyo[cloud]_ is now known as tommyvyo
<Eiam> well, I'm happy to help if havenwood gets pre occupied
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
wolcanus has left #ruby [#ruby]
futilegames has quit [Quit: futilegames]
brennanM_ has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
aetaric has quit [Ping timeout: 264 seconds]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aetaric has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
brennanMKE has quit [Ping timeout: 276 seconds]
bricker`away is now known as bricker`work]
i_s has joined #ruby
iliketur_ has joined #ruby
dkamioka has joined #ruby
apeiros has quit [Remote host closed the connection]
<bricker`work]> Has anyone seen this error before? "JSON::GeneratorError: only generation of JSON objects or arrays allowed" - it's only happening when Travis CI or Circle CI run my tests... I can't reproduce it locally, even with the same patch version of Ruby (1.9.3-p448)
<bricker`work]> https://travis-ci.org/SCPR/outpost/jobs/10638893 The tests pass on 2.0.0
aeontech has joined #ruby
reset has joined #ruby
hogeo has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
rdark has quit [Quit: leaving]
futilegames has joined #ruby
aryaching has quit []
tkuchiki has quit [Remote host closed the connection]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
noopq has joined #ruby
c0rn has joined #ruby
hasrb has quit [Remote host closed the connection]
acrussell has joined #ruby
ahawkins has joined #ruby
seich- has joined #ruby
c0rn has quit [Client Quit]
epta has quit [Ping timeout: 268 seconds]
centr0 has joined #ruby
centr0 has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
<suffix_> anyone know of any good twerkin channels?
hasrb has joined #ruby
intuxicated has quit [Ping timeout: 260 seconds]
Zai00 has quit [Quit: Zai00]
timonv has quit [Remote host closed the connection]
<bricker`work]> Huh... upgrading execjs to the latest version fixed that JSON error.
<bricker`work]> :/
Wildhoney has joined #ruby
devoldmx has joined #ruby
rupee has joined #ruby
acrussell has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
cads has quit [Ping timeout: 248 seconds]
buibex has joined #ruby
basex has joined #ruby
maletor has joined #ruby
<maletor> Does ruby support something like this already? https://gist.github.com/maletor/6356577
tjbiddle has joined #ruby
_md has quit [Quit: Leaving...]
Morrolan has quit [Ping timeout: 277 seconds]
Ripp__ has joined #ruby
dhruvasagar has joined #ruby
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
Myk267 has left #ruby [#ruby]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hasrb has quit [Remote host closed the connection]
bricker`work] is now known as bricker`work
brennanM_ has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
cody-- has joined #ruby
kvirani has joined #ruby
aedorn has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
aedorn has joined #ruby
jjbohn is now known as jjbohn|afk
superscott[8] has joined #ruby
<havenwood> >> Array.new(5) { [*'a'..'f'].sample }
<eval-in> havenwood => ["c", "f", "a", "f", "c"] (https://eval.in/45223)
cody-- has quit [Client Quit]
<havenwood> maletor: You can pass Array.new the number of elements as an argument, followed by a block like your example.
S0da has joined #ruby
ixti has joined #ruby
<havenwood> maletor: ^ just an example, there you'd really do: [*'a'..'f'].sample(5)
devoldmx has joined #ruby
baordog has joined #ruby
graydot has quit [Quit: graydot]
jjbohn|afk is now known as jjbohn
cody-- has joined #ruby
ehaliewicz has joined #ruby
workmad3 has joined #ruby
the_mentat has quit [Quit: ZNC - http://znc.in]
kvirani has quit [Ping timeout: 276 seconds]
Morrolan has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Lewix> really'
ldnunes has joined #ruby
Xeago has joined #ruby
<Mon_Ouie> Not the same thing
<Lewix> havenwood: How does does the block of the new constructor work
<Mon_Ouie> As you can see in your example, two 'f' have been generated
<Mon_Ouie> sample(n) won't generate the same item twice
buibex has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<havenwood> Mon_Ouie: Ooh, good point!
niceguyjames has joined #ruby
<Lewix> >> ['a'..'f'].sample(5)
<eval-in> Lewix => ["a".."f"] (https://eval.in/45224)
devoldmx has joined #ruby
iamjarvo has joined #ruby
<havenwood> Lewix: You forgot the splat.
<canton7> >> [*'a'..'f'].sample(5)
<eval-in> canton7 => ["f", "b", "e", "d", "a"] (https://eval.in/45226)
the_mentat has joined #ruby
Senjai has joined #ruby
<canton7> alternatively
<canton7> >> ('a'..'f').to_a.sample(5)
<eval-in> canton7 => ["c", "f", "a", "b", "e"] (https://eval.in/45227)
<Lewix> havenwood: what does the splat to
<Lewix> do*
epta has joined #ruby
<Lewix> I thought it flattened the array
caju has joined #ruby
<maletor> Ummmm [Toe.new, Toe.new, Toe.new].sample(3)
<havenwood> Lewix: In this usage it splits the range out to array elements.
buibex has joined #ruby
<havenwood> s/splits/explodes
jamesaanderson has joined #ruby
<maletor> Array.new(5) { 'foo' }
<maletor> That's nice
hadees has quit [Quit: hadees]
devoldmx has quit [Read error: Connection reset by peer]
Bry8Star{T2 has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 245 seconds]
<canton7> Array.new(5, 'foo'), too. Every so subtly different
<canton7> s/every/ever
c0rn has joined #ruby
snovak has quit [Remote host closed the connection]
devoldmx has joined #ruby
freerobby has quit [Quit: Leaving.]
snovak has joined #ruby
raul782_ has quit [Remote host closed the connection]
freerobby has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
jonkri has quit [Quit: jonkri]
Bry8Star{T2 has joined #ruby
mikepack has quit [Remote host closed the connection]
zigomir_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjbohn is now known as jjbohn|afk
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
ahawkins has quit [Quit: leaving]
zigomir has quit [Ping timeout: 245 seconds]
jjbohn|afk is now known as jjbohn
chrisja has joined #ruby
splittingred has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
havenwood has quit [Remote host closed the connection]
jonkri has joined #ruby
havenwood has joined #ruby
SHyx0rmZ has joined #ruby
Naoe-Kanno has quit [Ping timeout: 245 seconds]
aeontech has quit [Quit: aeontech]
artm has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
maz-dev has quit [Remote host closed the connection]
ebobby has joined #ruby
S0da has quit [Remote host closed the connection]
alvaro_o has joined #ruby
ebobby has left #ruby [#ruby]
ianbrandt has joined #ruby
havenn has joined #ruby
sambao21 has joined #ruby
maz-dev has joined #ruby
artm has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
dankest has joined #ruby
Jake232 has joined #ruby
yacks has quit [Quit: Leaving]
weems has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
Ripp__ has quit [Quit: Ripp__]
mrsolo has quit [Quit: Leaving]
seich- has quit [Ping timeout: 240 seconds]
volty has joined #ruby
<volty> hi, i'm using CGI just to generate html files, how can I avoid CGI, when run with this purpose (standalone script) reading standard input on CGI.new ?
sambao21 has joined #ruby
brettnem has quit [Quit: brettnem]
devoldmx has joined #ruby
Monie has quit [Ping timeout: 245 seconds]
<Todd> volty: a better explaination would be helpful.. you can use something like nokogiri to build html: http://nokogiri.org/Nokogiri/HTML/Builder.html
artm has quit [Ping timeout: 264 seconds]
pel_daniel1 has joined #ruby
JadedEvan has joined #ruby
saarinen has joined #ruby
Monie has joined #ruby
pel_daniel has quit [Ping timeout: 245 seconds]
<volty> Todd: thx, i needed something very very simple, but I'll try nokogiri anyway; // i found what i needed: $stdin = ""; <cmd> ; $stdin = STDIN
timonv has joined #ruby
sam113101 is now known as sam113101_afk
saarinen has quit [Client Quit]
mikepack has joined #ruby
sam113101_afk is now known as sam113101
atyz has joined #ruby
Senjai has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
_md has joined #ruby
<Eiam> ho hum, pasting this data into pry was not a good idea. Its been pasting for 3 minutes =(
<Eiam> should have just dropped it into a file & read it in!
jbpros has joined #ruby
reset has quit [Quit: Leaving...]
<Todd> volty: an erb template maybe?
rickmasta has joined #ruby
<workmad3> Eiam: that does frequently work better :)
fsck3r has joined #ruby
<Eiam> yeah.. its still going.. damn.
<Eiam> it didn't look like that..
Nogbit1 has quit [Quit: Leaving.]
fsck3r has quit [Client Quit]
<Eiam> guess ill write the code to read it from a file while its still trying to finish pasting =p
volty has quit [Ping timeout: 240 seconds]
jaynewstrom has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
cads has joined #ruby
weems has joined #ruby
kirun has joined #ruby
maz-dev has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<banister> Eiam does ^C kill it?
<Eiam> psh only 15,069
<Eiam> banister: it just finished =)
itcharlie has left #ruby [#ruby]
<banister> k00
<Eiam> it was a CSV of ID's, and it was just easier to say x = [<insert huge paste here>]
<Eiam> easier than File.read("data.csv").split(",").map(&:strip) =p
mary5030 has quit [Ping timeout: 245 seconds]
weems has quit [Changing host]
weems has joined #ruby
<Eiam> File.read(pbpaste) would be pretty cool
wildekek has left #ruby [#ruby]
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel2 has joined #ruby
jamesaanderson has joined #ruby
<banister> Eiam nice idea
<Lewix> >> ['a','bang!'].map(&:strip)
<eval-in> Lewix => ["a", "bang!"] (https://eval.in/45243)
jaynewstrom has joined #ruby
<Lewix> what's strip
<Eiam> Returns a copy of str with leading and trailing whitespace removed.
devoldmx has joined #ruby
breakingthings has quit [Quit: breakingthings]
volty has joined #ruby
<Lewix> oh
<Eiam> one of those "just in case" things when importing data
Nogbit has joined #ruby
breakingthings has joined #ruby
tjad has quit [Remote host closed the connection]
iamjarvo_ has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
_md has quit [Quit: Leaving...]
iamjarvo has joined #ruby
ejnahc has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby
tomstuder has quit [Quit: leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mary5030 has joined #ruby
basex has quit [Quit: basex]
Xeago has joined #ruby
ejnahc has joined #ruby
ebouchut has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
ebouchut has quit [Client Quit]
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
ebouchut has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
anonymus_ has joined #ruby
ebouchut has quit [Client Quit]
reset has joined #ruby
<maletor> Does ruby (maybe activesupport) support transform_selected already? https://gist.github.com/maletor/6357333 I am aware of slice in ActiveSupport, but how would you do transform_selected?
anonymu__ has joined #ruby
zeade has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anonymuse has quit [Read error: Connection reset by peer]
<Eiam> NAME
<Eiam> pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard) from command line
waxjar has quit [Ping timeout: 256 seconds]
<Eiam> yeah i love them, I used to have a helper for IRB that implemented pbcopy & pbpaste as functions
Guest53117 has quit [Ping timeout: 256 seconds]
devoldmx3 has joined #ruby
zeade has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tjbiddle has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zarubin has quit [Ping timeout: 268 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
artm has joined #ruby
anonymus_ has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
maz-dev has joined #ruby
agjacome has joined #ruby
kvirani has quit [Remote host closed the connection]
Davey has joined #ruby
kvirani has joined #ruby
maz-dev has quit [Remote host closed the connection]
_md has joined #ruby
graft has joined #ruby
graft has joined #ruby
Spami has joined #ruby
axeman- has quit [Remote host closed the connection]
Zeeraw has joined #ruby
vlad_starkov has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
maz-dev has joined #ruby
kvirani has joined #ruby
axeman- has joined #ruby
fflush has joined #ruby
<fflush> salut bonjour
jbpros has quit [Quit: jbpros]
relix has joined #ruby
jbpros has joined #ruby
graft has quit [Ping timeout: 245 seconds]
defaultro has joined #ruby
<yfeldblum> maletor, Hash[{:a=>3,:b=>4,:c=>5}.slice(:a, :c).map{|k, v| [k, v*2]}]
thirdknife has quit [Ping timeout: 264 seconds]
failshell has quit [Remote host closed the connection]
<defaultro> hey folks, how do I pass a different tcp port to backup?
<defaultro> rackup
r4nd0m1 has joined #ruby
<defaultro> oops, looks like -p
rupee has quit [Quit: Leaving]
pwh has quit [Quit: pwh]
starfox21 has quit [Quit: starfox21]
ryandeussing has quit [Remote host closed the connection]
pothibo has joined #ruby
<defaultro> yup, -p worked
pothibo has quit [Client Quit]
relix has quit [Client Quit]
Lewix has quit [Read error: Connection reset by peer]
Lewix_ has joined #ruby
artm has quit [Ping timeout: 264 seconds]
pothibo has joined #ruby
ryandeussing has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emergion has joined #ruby
mansi has quit [Read error: Connection reset by peer]
relix has joined #ruby
mduarte has joined #ruby
rezzack has joined #ruby
anderson has joined #ruby
mansi has joined #ruby
mneorr_ has joined #ruby
hasrb has joined #ruby
<Lewix_> salut fflush
jsatk has quit [Remote host closed the connection]
Coolhand has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Coolhand has joined #ruby
<Lewix_> >> Hash[{:a=>3,:b=>4,:c=>5}.slice(:a, :c).map{|k, v| [k, v*2]}]
c0rn has joined #ruby
<eval-in> Lewix_ => undefined method `slice' for {:a=>3, :b=>4, :c=>5}:Hash (NoMethodError) ... (https://eval.in/45253)
_md has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Quit: Leaving.]
<Lewix_> >> Hash[{:a=>3,:b=>4,:c=>5}.map{|k, v| [k, v*2]}]
<eval-in> Lewix_ => {:a=>6, :b=>8, :c=>10} (https://eval.in/45254)
sambao21 has quit [Quit: Computer has gone to sleep.]
jbomo has quit [Ping timeout: 245 seconds]
Coolhand has quit [Client Quit]
Coolhand has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
RichardBaker has quit [Quit: RichardBaker]
BizarreCake has quit [Ping timeout: 264 seconds]
emergion has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 264 seconds]
brennanMKE has joined #ruby
Coolhand has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
i_s has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
devoldmx3 has joined #ruby
jamesaanderson has joined #ruby
senayar_ has quit [Remote host closed the connection]
apeiros has joined #ruby
devoldmx27 has joined #ruby
devoldmx has quit [Read error: No route to host]
jhn has joined #ruby
jokke has quit [Quit: WeeChat 0.4.1]
mansi has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
devoldmx3 has quit [Ping timeout: 240 seconds]
ryandeussing has quit [Ping timeout: 264 seconds]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Elhu has joined #ruby
jamesaanderson has quit [Client Quit]
Heskie has joined #ruby
patrick85 has quit [Remote host closed the connection]
enaqx has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
ryandeussing has joined #ruby
splittingred has joined #ruby
iamjarvo has quit [Remote host closed the connection]
noopq has quit [Ping timeout: 276 seconds]
cha1tanya has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
pothibo has quit [Quit: pothibo]
jsatk has joined #ruby
jsatk has quit [Remote host closed the connection]
Lewix_ is now known as Leewix
Leewix is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
Notte has joined #ruby
geekbri has quit [Remote host closed the connection]
brettnem has joined #ruby
jsatk has joined #ruby
iamjarvo_ has joined #ruby
rickmasta has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
iamjarvo has quit [Read error: Connection reset by peer]
JadedEvan has quit [Quit: This computer has gone to sleep]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
vlad_starkov has joined #ruby
brettnem has quit [Client Quit]
ffranz has quit [Quit: Leaving]
decoponio has quit [Quit: Leaving...]
mansi has joined #ruby
ffranz has joined #ruby
seich- has joined #ruby
saarinen_ has joined #ruby
mansi_ has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
saarinen_ is now known as saarinen
JadedEvan has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Client Quit]
mduarte has quit [Quit: Leaving...]
giarc has quit [Quit: Leaving.]
Astralum has joined #ruby
abstractj has joined #ruby
k611 has joined #ruby
Liquid-- has joined #ruby
devoldmx has joined #ruby
I-saac has joined #ruby
devoldmx27 has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
<graft> is there an easy way to turn on/off irb's inspection?
artm has joined #ruby
caju has quit [Ping timeout: 245 seconds]
<graft> it gets annoying when you're dealing with, say, a huge nokogiri-parsed document
jsatk has quit [Remote host closed the connection]
Doc_X has quit [Remote host closed the connection]
caju has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
kidoz has joined #ruby
jsatk has joined #ruby
<hanmac> graft you could add ;0 at the end of the line
<Morrolan> Or use pry, and simply add a semicolon. :D
Mon_Ouie has quit [Ping timeout: 264 seconds]
mando has quit [Remote host closed the connection]
scriabin has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<banister> Morrolan +1 ;)
<scriabin> if I have two versions listed in gem list, how do I tell ruby to use one version over another? i.e. I see jruby-openssl (0.8.8, 0.7.7) - how do I get ruby to use 0.7.7 ?
St_Marx has quit [Remote host closed the connection]
<banister> scriabin use a Gemfile
artm has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<banister> and specify the version
<scriabin> if not, it just takes the latest version?
<banister> scriabin yes, pretty much
<scriabin> I mean if the gem is not listed in my Gemfile
St_Marx has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
<banister> if it's not listed in your Gemfile (and you do have a Gemfile) then it won't be able to use that gem at all
Spami has quit [Quit: This computer has gone to sleep]
<hanmac> you can also use the "gem" command inside ruby
saarinen has quit [Quit: saarinen]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<scriabin> ok cool
jamesaanderson has joined #ruby
<scriabin> thanks guys - always helpful
robustus has joined #ruby
I-saac has quit [Ping timeout: 245 seconds]
browndawg has left #ruby [#ruby]
mary5030 has quit [Ping timeout: 245 seconds]
joonty_ has joined #ruby
ianbrandt_ has joined #ruby
joonty has quit [Read error: Operation timed out]
<[[thufir]]> how do I install the ssh gem? I installed with sudo, but the user doesn't seem to have access to that? there are various gems I'll need to install with "gem install <some gem>" http://pastebin.com/ytw2i9Cw
yxhuvud has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fyz1x has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
vlad_starkov has quit [Write error: Connection reset by peer]
vlad_starkov has joined #ruby
blackmesa has joined #ruby
<fryguy> [[thufir]]: show a log of installing it with sudo
JadedEvan has quit [Quit: This computer has gone to sleep]
ianbrandt has quit [Ping timeout: 264 seconds]
ianbrandt_ is now known as ianbrandt
yxhuvud2 has quit [Ping timeout: 260 seconds]
<Morrolan> Installing gems with sudo? What's that, 2010? :P
mary5030 has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
<fryguy> yah it's not great
relix has joined #ruby
futilegames has quit [Quit: futilegames]
iamjarvo has joined #ruby
<[[thufir]]> fryguy: I'm currently removing ruby, I found rbenv which sounds like rvm without the compiling...
frozenfoxx has joined #ruby
<frozenfoxx> Super quick syntax question
<frozenfoxx> I want to assign a variable based upon a case/switch.
<Morrolan> [[thufir]]: It's not.
<Morrolan> Any ruby version manager will need to compile ruby if there's no binaries available.
<frozenfoxx> Depending on an expression/other variable's value, I'd like to assign different values. Anyone got a quick link on where to find that?
<[[thufir]]> ohhh
<Morrolan> (Respectively, you'll have to compile it, if it's just a version manager, and not an installer)
<Morrolan> But compiling Ruby should be pretty straight-forward. :)
relix has quit [Client Quit]
<postmodern> [[thufir]], rvm supports binary installs btw
<[[thufir]]> yeah, could've done that by now. I just didn't want to. (older hardware). in the past I've had to use cpulimit because it pegs the cpu.
<[[thufir]]> postmodern: oooh, interesting. maybe I'll look into rvm again, thx
iamjarvo_ has quit [Ping timeout: 256 seconds]
fyz1x has joined #ruby
iamjarvo has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
buibex has quit [Remote host closed the connection]
iamjarvo has joined #ruby
waxjar has joined #ruby
saarinen has joined #ruby
rads has joined #ruby
jokke has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
buibex has joined #ruby
yalue has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
Es0teric has joined #ruby
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
pipework has quit [Remote host closed the connection]
buibex_ has joined #ruby
rcosta has joined #ruby
kofno has quit [Remote host closed the connection]
kidoz has quit [Quit: Ухожу я от вас]
buibex has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
sambao21 has joined #ruby
Fractional has quit []
geekbri has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
randomautomator has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
mary5030 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Yakko has quit [Remote host closed the connection]
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
Zai00 has joined #ruby
jarray52 has left #ruby [#ruby]
weems has quit [Ping timeout: 276 seconds]
volty has quit [Ping timeout: 260 seconds]
Liquid-- has quit [Ping timeout: 256 seconds]
brettnem has joined #ruby
weems has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 240 seconds]
mando has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
brettnem has quit [Client Quit]
echevemaster has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
starfox21 has joined #ruby
allsystemsarego has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
Iszak has joined #ruby
r4nd0m1 has quit []
basex has joined #ruby
rickmasta has joined #ruby
reset has joined #ruby
blackmesa has joined #ruby
akells has quit [Remote host closed the connection]
brennanMKE has joined #ruby
devoldmx has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
ianbrandt has joined #ruby
jan1337z has quit [Quit: ZNC - http://znc.in]
jan1337z has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
k612 has joined #ruby
jan1337z has quit [Changing host]
jan1337z has joined #ruby
JadedEvan has joined #ruby
eoinkelly has joined #ruby
reset has quit [Ping timeout: 256 seconds]
basex has quit [Quit: basex]
nickbender has joined #ruby
ferr has quit [Ping timeout: 260 seconds]
kpshek has quit []
k611 has quit [Ping timeout: 245 seconds]
<onewheelskyward> rbenv compiles the rubies, but doesn't pollute your shell environment quite as much.
<onewheelskyward> I've found it easier to use on servers than rvm, personally.
vlad_starkov has quit [Read error: Connection reset by peer]
zigomir_ has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
cody-- has joined #ruby
phracker has joined #ruby
razi has quit [Ping timeout: 248 seconds]
sethetter has joined #ruby
amacgregor has joined #ruby
RichardBaker has joined #ruby
kilophoton has quit [Ping timeout: 276 seconds]
<sethetter> Can I require something in that is beign held in a string variable?
<apeiros> sethetter: no
<apeiros> require is about files
reset has joined #ruby
<apeiros> you're probably looking for the various forms of eval
<apeiros> (Kernel#eval, Module#class_eval, Object#instance_eval - also see *_exec)
<sethetter> so something like `require eval($SOMETHING)` ?
<sethetter> ah ok, will check those out, thanks
<apeiros> again, require is about files
jsatk has quit [Remote host closed the connection]
<apeiros> require <expression> only makes sense if <expression> evaluates to a file
<apeiros> (path)
<sethetter> gotcha
<sethetter> thanks
<apeiros> as usual: eval is potentially dangerous
<apeiros> do NOT use it on a string which contains user input
<sethetter> of course
<sethetter> this is an env setting, but should load a different lib based on the configuration.
<nickbender> why are you storing that env setting in a string?
Zai00 has quit [Quit: Zai00]
devoldmx has quit [Read error: Connection reset by peer]
<sethetter> seemed easiest?
<sethetter> i just assumed since i give a string to require, i could store it in a string and give that to require
<sethetter> clearly my assumption was incorrect. i need a file path instead.
<sethetter> what if it's included in the load path already though?
poga has quit [Ping timeout: 240 seconds]
<nickbender> the part on figaro
<nickbender> may help
<sethetter> nickbender: thanks, i'll check them out
ZephiroMX has joined #ruby
scarolan has joined #ruby
<Orxata_> TCPSocket works with domain names?
kaspergrubbe has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
rcosta has quit [Ping timeout: 264 seconds]
Matriks has quit [Remote host closed the connection]
scarolan_ has quit [Ping timeout: 276 seconds]
Companion is now known as companion
phantasm66 has quit [Quit: *sleeeep….]
blackmesa has joined #ruby
<nickbender> Awesome potential for localmotion blog post: http://artoo.io/
kilophoton has joined #ruby
<nickbender> I might do that tonight
nickbender has left #ruby [#ruby]
<apeiros> sethetter: I don't see why env settings would require eval
macbook has joined #ruby
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> also, env is a form of user-input
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
macbook has left #ruby [#ruby]
geekbri has quit [Remote host closed the connection]
defaultro has quit [Quit: defaultro]
mengu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
jsatk has joined #ruby
kpshek has joined #ruby
rcosta has joined #ruby
IceyEC has quit [Quit: IceyEC]
Elhu has joined #ruby
_Bravado_ has joined #ruby
emergion has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
kaspergrubbe has quit [Remote host closed the connection]
sambao21 has joined #ruby
Notte has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 240 seconds]
mansi_ has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
kaldrenon has quit [Remote host closed the connection]
jbomo has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
kaldrenon has joined #ruby
mansi has quit [Read error: Connection reset by peer]
rdxc has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
emergion has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
rickmasta has quit [Quit: Leaving...]
crus` has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
crus has joined #ruby
danshultz has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
airtonix has quit [Read error: Connection reset by peer]
airtonix has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
MissionCritical has quit [Ping timeout: 246 seconds]
swordsmanz has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
frozenfoxx has left #ruby [#ruby]
devoldmx has joined #ruby
kaldrenon has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
drPoggs has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Quit: Ex-Chat]
kirun has quit [Quit: Client exiting]
mark_locklear has quit [Read error: Operation timed out]
volty has joined #ruby
reset has quit [Quit: Leaving...]
devoldmx has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
jbpros has quit [Quit: jbpros]
pwh has joined #ruby
fsck3r has joined #ruby
caju has quit [Remote host closed the connection]
cliffstah has quit [Ping timeout: 245 seconds]
drPoggs has joined #ruby
suffix_ has quit [Ping timeout: 260 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
sarkis has quit [Ping timeout: 264 seconds]
dash_ has quit [Ping timeout: 264 seconds]
jokke has quit [Quit: WeeChat 0.4.1]
devoldmx has joined #ruby
rezzack has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has quit [Quit: Leaving]
c0rn has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
dash_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
IceyEC has joined #ruby
crus has quit [Ping timeout: 260 seconds]
IceyEC has quit [Client Quit]
MissionCritical has joined #ruby
devoldmx has joined #ruby
crus has joined #ruby
artm has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
brennanMKE has quit [Remote host closed the connection]
<digital-ghost> Anyone able to explain the example on #3 here? http://www.randomhacks.net/articles/2007/01/20/13-ways-of-looking-at-a-ruby-symbol
superscott[8] has quit [Quit: superscott[8]]
mansi has quit [Ping timeout: 256 seconds]
<digital-ghost> "foo"[0] = ?b <--- what is the ?b doing here?
breakingthings has quit [Quit: breakingthings]
sambao21 has joined #ruby
cliffstah has joined #ruby
jokke has joined #ruby
zeade has quit [Quit: Leaving.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<digital-ghost> If I try to assign just 'b' it errors out with undefined local var.
v0n has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby
buibex_ has quit [Remote host closed the connection]
caju has joined #ruby
rcosta has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
Monie has joined #ruby
Quashie has joined #ruby
seich- has joined #ruby
axeman- has quit [Remote host closed the connection]
artm has quit [Ping timeout: 246 seconds]
atyz has quit [Quit: Linkinus - http://linkinus.com]
<pontiki> ?b is the same as 'b'
<digital-ghost> Why does one bomb and the other not?
freerobby has quit [Quit: Leaving.]
<pontiki> but when you're assigning it to a single slot in a string, it's better to make sure you've only got a single character
<pontiki> plain b is a local variable, which you probably don't have defined at that point.
crus has quit [Read error: Connection reset by peer]
dkamioka has quit [Read error: Connection reset by peer]
pierre1 has joined #ruby
<digital-ghost> yeah, there's no plain b defined
<pontiki> so ?b means the single character 'b' and b means the local variable named b
<digital-ghost> So in that case, what does the "?" do
caju has quit [Remote host closed the connection]
<pontiki> denotes the following item as a single character
<digital-ghost> just saw that heh
<digital-ghost> typed it into irb with .class
<digital-ghost> one shows as a string
<digital-ghost> So this was so difficult to google for some reason
<digital-ghost> everything I kept hitting didn't help
Elhu has joined #ruby
<pontiki> the "some reason" is because google tends to discard puncutation
<digital-ghost> I still am trying to find out where ? is defined
<digital-ghost> In this context
<digital-ghost> I see it used for one line if statements, and things like ".blank?"
<pontiki> it's part of ruby syntax
k612 has quit [Ping timeout: 245 seconds]
<pontiki> ah, that is a different use
<pontiki> there, the ? is part of the method name
<digital-ghost> exactly, (am learning) so the problem is how I identify the different usages
<digital-ghost> and where I can look them up to really understand their purposes
x1337807x has joined #ruby
Xaitec has joined #ruby
<digital-ghost> right, only by convention right? (for the .blank?) it just makes it easier to read as a sentence would be.
<digital-ghost> If I understand it correctly.
<digital-ghost> I believe .blank works the same
codecop has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 260 seconds]
Heskie has quit []
Nanuq has joined #ruby
Vivekananda has joined #ruby
JDHankle has quit [Remote host closed the connection]
<apeiros> no
<apeiros> digital-ghost: .blank? is not syntax sugar. .blank and .blank? are two different methods
<apeiros> they only work the same if somebody actually created an alias
superscott[8] has joined #ruby
ffranz has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
akells has joined #ruby
<digital-ghost> hmm.
devoldmx3 has joined #ruby
mansi has joined #ruby
asobrasil has left #ruby [#ruby]
slyv has joined #ruby
<digital-ghost> I didn't know that .blank? is a rails extension
<digital-ghost> That explains why it wasn't working in irb
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
reset has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
akells has quit [Ping timeout: 276 seconds]
S0da has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
freerobby has joined #ruby
zarubin has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
nickbender has joined #ruby
reset has quit [Ping timeout: 256 seconds]
crus has joined #ruby
emergion has joined #ruby
parzo has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
iliketur_ has joined #ruby
gyzmodo has quit [Ping timeout: 264 seconds]
jhn has quit [Ping timeout: 264 seconds]
Megtastique has quit [Quit: Megtastique]
sambao21 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
rcosta has joined #ruby
iamjarvo has joined #ruby
c0rn has joined #ruby
cody-- has joined #ruby
s0ny123 has quit [Quit: Lost terminal]
elux has quit [Quit: Leaving...]
jerius has quit [Quit: jerius]
snovak has quit [Remote host closed the connection]
jalcine has quit [Excess Flood]
iamjarvo has quit [Ping timeout: 245 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
jibi has quit [Quit: .]
wmoxam has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
kpshek has quit []
baordog has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
cody-- has quit [Quit: Computer has gone to sleep.]
<cpruitt> I'm having a heck of a time figuring out how to mock/stub a module method in an spec test. I'm using .stub(:method).and_return("val") but the original module method continues to be executed. Shouldn't my stub override it? https://gist.github.com/anonymous/e393e24f4af4379992b1
apeiros has quit [Remote host closed the connection]
JadedEvan has quit [Quit: This computer has gone to sleep]
apeiros has joined #ruby
mary5030 has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 245 seconds]
splittingred has quit [Ping timeout: 264 seconds]
splittingred has joined #ruby
jalcine has joined #ruby
devoldmx3 has quit [Ping timeout: 240 seconds]
Nanuq has joined #ruby
Yakko has joined #ruby
sergicles has quit [Quit: sergicles]
mmitchell has quit [Ping timeout: 245 seconds]
thesheff17 has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
kpshek has joined #ruby
basex has joined #ruby
thebastl has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
wmoxam has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
viszu has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
x1337807x has joined #ruby
havenwood has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
dankest has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
jonkri has quit [Quit: jonkri]
JadedEvan has joined #ruby
snath has quit [Ping timeout: 240 seconds]
<Aloysius1> cpruitt: I'm not sure you can layer like that.
mary5030 has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
<Aloysius1> cpruit: It wouldn't seem to make sense.
tricon- has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
virt|a|work has quit [Ping timeout: 256 seconds]
staafl has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
staafl has joined #ruby
virtualize has joined #ruby
virt|a has joined #ruby
caju has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
ebobby has joined #ruby
kpshek has quit []
rhys_ has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
starfox21 has quit [Quit: starfox21]
ebobby has left #ruby [#ruby]
JadedEvan has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 248 seconds]
hashpuppy_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
snovak has joined #ruby
SteveBenner9 has joined #ruby
nari has joined #ruby
hasrb has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 276 seconds]
artm has joined #ruby
Quashie has quit [Quit: Leaving]
pvizcay has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
weems has quit [Ping timeout: 245 seconds]
zeade has quit [Quit: Leaving.]
anonymu__ has quit [Remote host closed the connection]
mlpinit has quit [Read error: Operation timed out]
Speed has joined #ruby
Guest69670 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
bean has joined #ruby
rcosta has joined #ruby
kaspergrubbe has joined #ruby
mansi has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
mansi has joined #ruby
atno is now known as atno|Zzz
Evixion has quit [Ping timeout: 264 seconds]
julian-delphiki has quit [Ping timeout: 264 seconds]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
shunt has quit [Quit: leaving]
kaspergrubbe has quit [Ping timeout: 245 seconds]
cads has quit [Ping timeout: 245 seconds]
randomautomator has quit [Remote host closed the connection]
weems has joined #ruby
randomautomator has joined #ruby
covi has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 245 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mansi has quit [Remote host closed the connection]
artm has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
randomautomator has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
_md has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fsck3r has quit [Quit: Leaving...]
x1337807x has joined #ruby
tomzx_mac has joined #ruby
JDHankle has joined #ruby
thesheff17 has joined #ruby
yxhuvud has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
JDHankle has quit [Ping timeout: 245 seconds]
nickbender has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
Tricon has joined #ruby
pel_daniel1 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 256 seconds]
TheFuzzball has joined #ruby
Davey has joined #ruby
fsck3r has joined #ruby
havenwood has quit [Remote host closed the connection]
snovak has joined #ruby
hell_lord has joined #ruby
jbomo has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
agjacome has quit [Quit: leaving]
gstamp has joined #ruby
<hell_lord> how is .descendants supposed to behave? is it expected that it returns empty until the sub classes have been instantiated once, or is this a quirk of working in an environment where the ruby is loading files on demand?
wmoxam has joined #ruby
dankest has joined #ruby
osvico has joined #ruby
rburton- has joined #ruby
graft has quit [Ping timeout: 245 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<[[thufir]]> I can inspect the conn for the values: conn = YAML.load_file('conn.yml') but I want to assign them to values. host = conn[host] or something like that. what's the syntax please?
snath has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<hell_lord> [[thufir]]: well, i'm a ruby noob, but that seems like a pretty ridiculously basic question. did you try conn[:host] ?
havenwood has joined #ruby
mneorr_ has quit [Remote host closed the connection]
<[[thufir]]> hell_lord: no, I didn't know that was the syntax. t hanks.
<sam113101> unless you do ":itthis: 'way'" you'll need to access them as strings
<sam113101> I think
snovak has quit [Ping timeout: 246 seconds]
<sam113101> conn['host']
ebouchut has joined #ruby
<[[thufir]]> yeah, I was wondering about that. In the yaml, I had to put the host like 'foo.com' with quotes to get it to parse. also on the port number.
ZephiroMX has quit [Quit: Linkinus - http://linkinus.com]
ffranz has quit [Quit: Leaving]
kayloos has joined #ruby
<sam113101> that's not what I meant though
c0rn has joined #ruby
<hell_lord> [[thufir]]: you should read about ruby hashes and symbols
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sam113101> if you want to retrieve it as conn[:host] you'll need to write it as :host in your yaml file as well, if I'm not mistaken
<[[thufir]]> h = conn['host'] works for getting the values.
<sam113101> if you write host only it's going to be a string instead
Xaitec has quit [Read error: Connection reset by peer]
<sam113101> (which might be what you want)(
<[[thufir]]> in the yaml it's as so: port: '6789' and also with '' for the host. however, for user and password, it's just user: some_user without the single quote. I want to use the port and so forth to connect with ssh.
Fin1te has joined #ruby
<sam113101> I wouldn't use the 's for the port, unless you want a string instead of an integer
ebouchut has quit [Quit: This computer has gone to sleep]
mengu_ has joined #ruby
Es0teric has joined #ruby
wems has joined #ruby
<[[thufir]]> ok, well I don't know why I was using the single quotes. I removed them and it still runs, so that was a red herring.
mengu has quit [Ping timeout: 245 seconds]
<[[thufir]]> I want pass them into something like this: Net::SSH.start('host', 'user', password => "pword") do |ssh|
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
_Bravado_ has quit [Quit: _Bravado_]
<sam113101> amazing
Guedes has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
<[[thufir]]> well, for the syntax I'm not sure how pass the port. I have: http://paste.ubuntu.com/6034664/ but when I look at http://net-ssh.github.io/net-ssh/ it's not clear how to pass all four connection parameters.
vlad_starkov has joined #ruby
reset has joined #ruby
x1337807x has joined #ruby
<sam113101> ":port => the port to use when connecting to the remote host"
tylersmith has quit [Ping timeout: 264 seconds]
<sam113101> start (host, user, options={}, &block)
<sam113101> in options
nari has quit [Ping timeout: 264 seconds]
Es0teric has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
<[[thufir]]> why does password have to be a symbol, though, where host and user are just string values?
randomautomator has joined #ruby
volty has quit [Quit: Konversation terminated!]
nfk has quit [Quit: yawn]
Davey has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
hashpuppy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
poga has joined #ruby
end_guy_ is now known as end_guy
Es0teric has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fin1te has quit [Quit: Later tater.]
mlpinit has joined #ruby
iliketur_ has joined #ruby
huoxito has quit [Quit: Leaving]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
emergion has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
havenwood has joined #ruby
Guest62936 has quit [Ping timeout: 264 seconds]
sergicles has joined #ruby
predator217 has joined #ruby
bio has joined #ruby
bio is now known as Guest8962
predator117 has quit [Ping timeout: 256 seconds]
sergicles has quit [Ping timeout: 245 seconds]
chrisja has quit [Quit: leaving]
<pontiki> [[thufir]]: Net::SSH.new is kind of a hybrid. The username and host are required parameters, password and port are not. So as rubyists of old have often done, the first two parameters are given explicitly, while the optional ones are given in a Hash
kilophoton has quit [Ping timeout: 245 seconds]
bzitzow has joined #ruby
slabserif has joined #ruby
slabserif has quit [Remote host closed the connection]
<pontiki> the prototype for Net::SSH.start is: https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh.rb#L171
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
cpruitt has quit [Quit: cpruitt]
sarkis has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
graft has joined #ruby
graft has joined #ruby
<[[thufir]]> pontiki: thanks.
marr has quit [Ping timeout: 240 seconds]
sergicles has joined #ruby
pothibo has joined #ruby
<[[thufir]]> actually, I think I want to use telnet, it's a MUD game server and It's giving errors of "Servname not supported for ai_socktype" which I take to mean that it doesn't like ssh connections (?).
BRMatt has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]