ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
drumond19 has quit [Ping timeout: 244 seconds]
savage- has quit [Quit: savage-]
CaptainJet has joined #ruby-lang
toretore has quit [Quit: Leaving]
kurko_ has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
stardiviner has joined #ruby-lang
samuelkadolph has quit [Quit: Quitting]
kurko_ has joined #ruby-lang
samuelkadolph has joined #ruby-lang
sailias has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Aria has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
drumond19 has joined #ruby-lang
sailias has quit [Quit: Leaving.]
drumond19 has quit [Remote host closed the connection]
drumond19 has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
brianpWins has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
brianpWins has quit [Client Quit]
kurko_ has joined #ruby-lang
Madis has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
gix has joined #ruby-lang
kurko_ has joined #ruby-lang
qpingu has joined #ruby-lang
AndChat| has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 252 seconds]
chimkan has quit [Quit: chimkan]
anachronistic has joined #ruby-lang
chendo_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
sepp2k1 has quit [Remote host closed the connection]
jmeeuwen has quit [Ping timeout: 248 seconds]
kurko_ has quit [Ping timeout: 255 seconds]
uuair has joined #ruby-lang
kurko_ has joined #ruby-lang
savage- has joined #ruby-lang
swarley has quit [Ping timeout: 240 seconds]
xalei has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
swarley has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
earthquake has quit [Quit: earthquake]
jmeeuwen has joined #ruby-lang
blazes816 has joined #ruby-lang
havenn has quit [Remote host closed the connection]
chendo_ has quit [Quit: Leaving...]
spuk has quit [Changing host]
spuk has joined #ruby-lang
wyhaines has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
chendo_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
justinmc_ has joined #ruby-lang
uuair has quit [Remote host closed the connection]
uuair has joined #ruby-lang
VegetableSpoon has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
justinmcp has quit [Ping timeout: 276 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
swarley has quit [Ping timeout: 248 seconds]
qwerxy has quit [Quit: offski]
swarley has joined #ruby-lang
mantono has quit [Quit: Don't panic]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
rue has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
Nisstyre-laptop has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 260 seconds]
sn0wb1rd has joined #ruby-lang
kjr has joined #ruby-lang
kurko_ has joined #ruby-lang
sailias has joined #ruby-lang
dous has quit [Remote host closed the connection]
justinmc_ has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
roadt has joined #ruby-lang
gsav has joined #ruby-lang
kurko_ has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav_ has quit [Client Quit]
justinmcp has quit [Ping timeout: 268 seconds]
uuair has quit [Quit: uuair]
savage- has quit [Quit: savage-]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Client Quit]
kjr has quit [Quit: kjr]
swarley has quit [Ping timeout: 252 seconds]
sailias has quit [Ping timeout: 240 seconds]
asasin1234 has joined #ruby-lang
anachronistic has left #ruby-lang [#ruby-lang]
asasin1234 has quit [Client Quit]
asasin1234 has joined #ruby-lang
CaptainJet has quit []
Nisstyre-laptop has quit [Quit: Leaving]
asasin1234 has quit [Read error: Connection reset by peer]
asasin1234 has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
asasin1234 has quit [Client Quit]
asasin1234 has joined #ruby-lang
stardiviner has joined #ruby-lang
<stardiviner> What's the difference between this two style of symbole key hashes ? Here is the code example: https://gist.github.com/4009956
<apeiros_> only the syntax
asasin1234 has quit [Read error: Connection reset by peer]
<stardiviner> apeiros_: I see, thanks
asasin1234 has joined #ruby-lang
dous has joined #ruby-lang
asasin1234 has quit [Read error: Connection reset by peer]
dous has quit [Changing host]
dous has joined #ruby-lang
asasin1234 has joined #ruby-lang
asasin1234 has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
rue has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
kurko_ has joined #ruby-lang
rue has quit [Ping timeout: 248 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
xalei_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
xalei has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
Serial_Killer_C has joined #ruby-lang
kurko_ has joined #ruby-lang
anannie has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
faces has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
savage- has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
chimkan has joined #ruby-lang
wyhaines has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby-lang
Dreamer3 has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
methods has quit [Read error: Operation timed out]
apeiros_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
wyhaines has quit [Read error: No route to host]
wyhaines has joined #ruby-lang
apeiros_ has quit [Ping timeout: 255 seconds]
kurko_ has quit [Ping timeout: 260 seconds]
methods has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
anannie has quit [Ping timeout: 244 seconds]
wyhaines has joined #ruby-lang
gsav has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chimkan has quit [Quit: chimkan]
davidbalbert is now known as davidbalber|away
slyphon has quit [Ping timeout: 245 seconds]
nertzy has joined #ruby-lang
phaedrix has joined #ruby-lang
bluepojo has joined #ruby-lang
chimkan has joined #ruby-lang
xalei_ has left #ruby-lang [#ruby-lang]
xalei has joined #ruby-lang
earthquake has joined #ruby-lang
chimkan has quit [Quit: chimkan]
ivanoats has quit [Remote host closed the connection]
ryanf_ has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 244 seconds]
svyatov has quit [Quit: svyatov]
r0bby_ has joined #ruby-lang
r0bby has quit [Ping timeout: 264 seconds]
Aria has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
ryanf_ has quit [Quit: broken pipes |||]
sush24 has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
Torrieri has quit [Quit: Saliendo]
ivanoats has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
Swimming_Bird has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
<Swimming_Bird> Is there a programatic way to determine if a class is within a particular namespace
ivanoats has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
gsav has joined #ruby-lang
wyhaines_ has quit [Ping timeout: 264 seconds]
earthquake has quit [Quit: earthquake]
charliesome has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
wyhaines has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
irclog0 has quit [Read error: Connection reset by peer]
irclog0 has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
fsvehla has joined #ruby-lang
ivanoats has quit [Ping timeout: 276 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
gregmoreno has quit [Ping timeout: 246 seconds]
ivanoats has quit [Read error: Connection reset by peer]
sustainableweb has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
gregmoreno has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sustainableweb has quit [Ping timeout: 256 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
ivanoats has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
tenderlove has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
tenderlove has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
tenderlove has quit [Ping timeout: 255 seconds]
tenderlove has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
methods has quit [Quit: Leaving.]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby-lang
rue has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
datanoise has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
areil has joined #ruby-lang
datanoise has quit [Ping timeout: 245 seconds]
ivanoats has quit [Ping timeout: 252 seconds]
Stereoki1sune has quit [Remote host closed the connection]
cschwartz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
Stereokitsune has joined #ruby-lang
solars has joined #ruby-lang
Stereokitsune has quit [Client Quit]
Stereokitsune has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Stereokitsune has quit [Client Quit]
Stereokitsune has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 248 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
solars has quit [Ping timeout: 276 seconds]
savage- has quit [Quit: savage-]
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
solars has joined #ruby-lang
sush24 has joined #ruby-lang
dc5ala has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
cschwartz has quit [Ping timeout: 246 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Guest15771 has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sustainableweb has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
datanoise has joined #ruby-lang
sush24 has quit [Quit: Leaving]
sustainableweb has quit [Ping timeout: 260 seconds]
datanoise has quit [Ping timeout: 265 seconds]
sush24 has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
gsav has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
blacktulip has joined #ruby-lang
justinmcp has quit [Ping timeout: 260 seconds]
ivanoats has quit [Ping timeout: 264 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
qwerxy has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
kitallis has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
cschwartz has joined #ruby-lang
irleif has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
dhruvasagar has joined #ruby-lang
workmad3 has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
kjr has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby-lang
Madis has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
ivanoats has quit [Read error: Operation timed out]
kjr has quit [Quit: kjr]
sush24 has joined #ruby-lang
swarley has joined #ruby-lang
irleif has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
justinmcp has joined #ruby-lang
lele has quit [Quit: Coyote finally caught me]
jxie has quit [Quit: leaving]
lele has joined #ruby-lang
swarley has quit [Read error: Connection reset by peer]
datanoise has joined #ruby-lang
ruurd has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
jarib has quit [Excess Flood]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
jarib has joined #ruby-lang
slyphon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ivanoats has quit [Ping timeout: 252 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
jxie has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby-lang
poga has quit [Remote host closed the connection]
cschwart1 has joined #ruby-lang
Assurbanipal has joined #ruby-lang
cschwartz has quit [Ping timeout: 255 seconds]
cyri_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
cschwart1 has quit [Ping timeout: 248 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
qwerxy has quit [Quit: offski]
apeiros_ has joined #ruby-lang
justinmcp has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby-lang
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
ivanoats has joined #ruby-lang
Mchl has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
Guest15771 has left #ruby-lang [#ruby-lang]
ivanoats has quit [Ping timeout: 252 seconds]
qwerxy has joined #ruby-lang
cschwartz has joined #ruby-lang
yorickpeterse is now known as yorick-test
yorick-test is now known as yorickpeterse
dhruvasagar has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
slyphon has joined #ruby-lang
Assurbanipal has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sustainableweb has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
sustainableweb has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
ivanoats has quit [Ping timeout: 248 seconds]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
<manveru> Swimming_Bird: like?
<manveru> iota ~ % ruby -e 'p Module.constants.include?(:Process)'
<manveru> true
<manveru> better late than never :)
dhruvasagar has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
slyphon has joined #ruby-lang
cschwartz has quit [Ping timeout: 264 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
slyphon has quit [Ping timeout: 245 seconds]
slyphon has joined #ruby-lang
mhag has quit [Read error: Connection reset by peer]
mhag has joined #ruby-lang
kitallis has joined #ruby-lang
rolfb has joined #ruby-lang
justinmcp has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
justinmc_ has joined #ruby-lang
datanoise has joined #ruby-lang
justinmcp has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
ivanoats has joined #ruby-lang
datanoise has quit [Ping timeout: 248 seconds]
ivanoats has quit [Ping timeout: 260 seconds]
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
roadt_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
roadt has quit [Ping timeout: 256 seconds]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
justinmc_ has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby-lang
justinmcp has quit [Ping timeout: 240 seconds]
cyri_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Axsuul has quit [Ping timeout: 246 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
toretore has joined #ruby-lang
ivanoats has quit [Ping timeout: 246 seconds]
cschwartz has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
slyphon has quit [Ping timeout: 245 seconds]
cyri_ has quit [Quit: cyri_]
slyphon has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all, with pry with ruby-1.8.7.p358-1.1.mga2 on Mageia Linux 2 x86-64 I get: [62] pry(main)> help break
<rindolf> Error: No help found for 'break'
<rindolf> How do I use break?
<rindolf> I tried break 570 and got LocalJumpError: unexpected break
davidbalber|away is now known as davidbalbert
<apeiros_> break is syntax, which is probably why pry's help doesn't tell you anything about it
<rindolf> apeiros_: ah, how do I set a breakpoint?
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
<apeiros_> you use break to return from a block. break (unlike next) does not give back control to the yielding method.
<apeiros_> ah, break has *nothing* to do with debugging
<apeiros_> and no idea, how to set a breakpoint would depend on the tool you use to debug
<tocki_> put binding.pry where you want to invoke console
<tocki_> make sure 'pry' is required beforehand
<rindolf> tocki_: so I need to change the code?
<tocki_> yes
<tocki_> hmmz.. you can monkey patch this call too
<rindolf> tocki_: that sucks.
<tocki_> maybe someone here knows more
<rindolf> tocki_: OK, I set up a breakpoint, how do I tell pry to just run?
<rindolf> I tried "run" , "r", "c", "continue" - nada.
<sandbags> rindolf: try the "help" command for pry
<rindolf> sandbags: tried it - did not find anything there.
<rindolf> tocki_: I think ruby-debug does not work properly in ruby-1.9.x
<tocki_> pry is better with introspection
<rindolf> tocki_: ah, OK, let me try.
<sandbags> if you're in basic pry i don't think you can step so you just use "exit" to pop the pry
<rindolf> tocki_: OK, one problem solved.
<tocki_> there you go :)
<rindolf> sandbags, tocki_ : now when I run pry with an rspec script it terminates without running the code, and does not reach the breakpoint, and when I exit it, only *then* it runs all the tests.
cschwartz has quit [Ping timeout: 255 seconds]
<tocki_> how do you run pry with rspec script ?
<tocki_> binding.pry ?
<ttilley> rindolf: tocki_: pry-debugger uses debugger, which is an actively maintained ruby-debug for ruby 1.9.2 and 1.9.3. https://github.com/nixme/pry-debugger
<tocki_> ttilley, cool
<rindolf> tocki_: I didn't try - I used a different debugger until now.
<rindolf> ttilley: is it pry-debugger or pry_debug?
adambeynon has quit [Quit: Computer has gone to sleep.]
<ttilley> pry-debugger
<tocki_> rindolf, try binding.pry
<tocki_> hmmz.. seems that pry-debugger is not thread safe
laszlokorte_ has joined #ruby-lang
cyri_ has joined #ruby-lang
ivanoats has joined #ruby-lang
<rindolf> tocki_: I tried -seems like pry_debug was unloaded when it reached that.
ivanoats has quit [Read error: Connection reset by peer]
sustainableweb has joined #ruby-lang
sustainableweb has quit [Read error: Connection reset by peer]
<tocki_> have you required 'pry' ?
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
laszlokorte has quit [Ping timeout: 256 seconds]
laszlokorte_ is now known as laszlokorte
rolfb has quit [Quit: Leaving...]
<rindolf> tocki_: I required both "pry" and "pry_debug".
<rindolf> If someone has a suggestion for a test unit framework that is more pry friendly and works on ruby-1.8.7 and ruby-1.9.x, I'm open for suggestions.
svyatov has joined #ruby-lang
<rindolf> tocki_: with both "pry" and "pry_debug", required I'm still getting the same problem.
mwjcomputing has joined #ruby-lang
ivanoats has quit [Ping timeout: 244 seconds]
slyphon has quit [Ping timeout: 245 seconds]
<tocki_> rindolf, works on my box, just tested
<rindolf> tocki_: are you using ruby-1.9.x?
<tocki_> yes
<rindolf> tocki_: OK, I'm using ruby-1.8.x
<rindolf> tocki_: maybe I should upgrade.
<rindolf> ruby-1.8.x seems FUBAR.
rolfb has joined #ruby-lang
Kichael has quit [Ping timeout: 260 seconds]
<tocki_> yep, its getting older
<tocki_> you might be interested with ruby-debug on 1.8.x
Nisstyre-laptop has joined #ruby-lang
xalei has quit [Remote host closed the connection]
<rindolf> tocki_: thanks.
<rindolf> tocki_: that's OK, I'll install ruby-1.9.3.
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Hakon has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
Kichael has joined #ruby-lang
qwerxy has quit [Quit: offski]
irleif has quit [Quit: Computer has gone to sleep.]
svyatov has quit [Quit: svyatov]
<rindolf> Wow, doxygen consume 17% of my RAM.
<rindolf> Wow, doxygen consumes* 17% of my RAM.
<rindolf> Now gem gives me: It seems your ruby installation is missing psych (for YAML output).
<rindolf> To eliminate this warning, please install libyaml and reinstall your ruby.
<rindolf> I installed libyaml-devel and rebuilt ruby and I'm still getting that. Why???
wyhaines has joined #ruby-lang
irleif has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
KU0N has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
savage- has joined #ruby-lang
<tocki_> is there a way to add a method to object without using singleton-methods ?
<rindolf> tocki_: ttilley : thanks! I Figured everything out now. I installed ruby-1.9.x and now pry works fine with pry-debugging.
<ttilley> rindolf: glad to be of service
<tocki_> np rindolf :)
<ttilley> rindolf: now look at pry-remote and have your mind blown. connecting to a remote process and debugging it that way, with all the conveniences of pry (i love show-source, etc)
<ttilley> there's a cute little extension that pretty prints numbers in ruby compatible syntax for you... forget the name. so any output like 12345 will be 12_345
<ttilley> easier to read
<tocki_> thats very nice
<apeiros_> tocki_: Object#extend + modules
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
<tocki_> it still adds singleton_methods
Hakon has quit [Ping timeout: 244 seconds]
<tocki_> is there a way to do what Class object does... inject another object with methods, directly into 'methods' list ?
<apeiros_> tocki_: no
<apeiros_> it does not
<tocki_> hmmz.. actually the question is - can Class object be implemented in pure ruby
<apeiros_> …
<tocki_> ok
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 265 seconds]
<tocki_> besides evals, lambdas, methods and procs/blocks is there any other way to invoke (or pass) code in ruby ?
ivanoats has joined #ruby-lang
<rindolf> Hi all, is it possible to somehow print more diagnosis traces in rspec? Like diag() in Test::More in Perl? See https://metacpan.org/module/Test::More#Diagnostics . If it's not possible can anyone recommend a Ruby test framework where it *is* possible? I tried using puts and it didn't work.
<tocki_> also, check ruby command line params
<rindolf> tocki_: that's not what I want.
<rindolf> tocki_: I want to emit stuff to the stderr/stdout/anything.
<rindolf> tocki_: arbitrary text (that won't affect the tests' results).
ivanoats has quit [Ping timeout: 260 seconds]
<burgestrand> puts work.
<rindolf> burgestrand: I don't see it when I run make teset
<rindolf> burgestrand: I don't see it when I run make test
<burgestrand> I do.
<burgestrand> rspec does not block your stdout, nor stderr, for printing.
<tocki_> rindolf, check rake too
<rindolf> Or maybe it throws an exception?
<rindolf> tocki_: I'll get to rake some day.
<burgestrand> But what you linked to look more like an additional description for a spec that is only shown if the spec fails.
justinram has joined #ruby-lang
<burgestrand> I’m not aware of something like that for ruby. Don’t see the necessity of it either, most of your specs should be fairly small, so small that a description is borderline superfluous.
<burgestrand> (an additional description, that is)
<tocki_> still, there is more than one way to do it
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
gareth- has joined #ruby-lang
<rindolf> OK, turns out it does throw an exception. After I wrapped it inside begin/rescue it is OK.
<rindolf> Thanks all.
GarethAdams has quit [Read error: Connection reset by peer]
ddd has joined #ruby-lang
<rindolf> tocki_: thanks.
<rindolf> tocki_: is should == an operator matcher?
<tocki_> it checks if left & right are 'equal'
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
savage- has quit [Quit: savage-]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Mchl has joined #ruby-lang
ivanoats has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
ivanoats has quit [Ping timeout: 260 seconds]
Carnage\ has quit [Ping timeout: 248 seconds]
icooba has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
* cinch is learning ruby
<cinch> dang that sudoku solver is hardcore in the introduction :P
icooba has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<cinch> but pretty enlightening
sush24 has joined #ruby-lang
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
sush24 has quit [Client Quit]
tenderlo_ has joined #ruby-lang
sush24 has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
tenderlo_ has quit [Ping timeout: 264 seconds]
<Swimming_Bird> manveru: thanks, i should have thought of that
uuair has joined #ruby-lang
wyhaines_ has joined #ruby-lang
dabradley has quit [Ping timeout: 260 seconds]
wyhaines has quit [Ping timeout: 244 seconds]
<tocki_> cinch, what sudokusolver ?
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dabradley has joined #ruby-lang
qwerxy has joined #ruby-lang
drumond19 has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
ivanoats has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby-lang
<tsou> cinch: have a look at this, completely different, and not ruby-ish, but enlightening indeed:  
<tsou> cinch: https://encrypted.google.com/url?sa=t&rct=j&q=bird%20sudoku&source=web&cd=1&cad=rja&ved=0CB8QFjAA&url=http%3A%2F%2Fwww.cs.tufts.edu%2F~nr%2Fcomp150fp%2Farchive%2Frichard-bird%2Fsudoku.pdf&ei=042WUMPdK8mxhAfHk4HgCg&usg=AFQjCNE8mMU5_SqUajDHPeHj1ffFG2gjJA
<tsou> whoops, ugly paste..
<tsou> there you go :)
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby-lang
ivanoats has quit [Ping timeout: 260 seconds]
qwerxy has quit [Quit: offski]
dabradley has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
datanoise has joined #ruby-lang
uuair has quit [Ping timeout: 260 seconds]
qwerxy has joined #ruby-lang
ivanoats has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
uuair has joined #ruby-lang
dabradley has joined #ruby-lang
CaptainJet has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 244 seconds]
<andrewvos> Wow, RubyTapas is pretty damn good. http://devblog.avdi.org/2012/10/08/rubytapas-episode-7-constructors/
earthquake has joined #ruby-lang
irleif has joined #ruby-lang
<yorickpeterse> beating a dead horse here but modules are pretty sweet
uglybandersnatch has joined #ruby-lang
<andrewvos> yorickpeterse: Why?
<yorickpeterse> TIL that you can use `super` when including modules when re-defining a method with the same name
<yorickpeterse> I always thought that would just overwrite it
<andrewvos> Wow cool, didn't know that.
<yorickpeterse> It makes it quite easy to write helper modules that can still be customized *without* having to redefine the content of such a helper module
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sustainableweb has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
sustainableweb has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
datanoise has joined #ruby-lang
ivanoats has quit [Ping timeout: 251 seconds]
uglybandersnatch has left #ruby-lang [#ruby-lang]
tenderlove has joined #ruby-lang
TheDracle has quit [Ping timeout: 260 seconds]
tenderlove has quit [Remote host closed the connection]
TheDracle has joined #ruby-lang
laszlokorte has quit [Ping timeout: 244 seconds]
<andrewvos> yorickpeterse: Yeah I can't really imagine a situation where it would be a good thing to do.
<andrewvos> yorickpeterse: But I suppose in that situation it is alright
<andrewvos> yorickpeterse: Just, it would kind of hide behaviour.
uglybandersnatch has joined #ruby-lang
<apeiros_> yorickpeterse: hm? overwrite? the module's method definition comes after the class' method definition…
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
datanoise has quit [Read error: Operation timed out]
<apeiros_> i.e., `module X; def bar; "X#bar"; end; end; class Y; include X; def bar; "Y#bar"; end; end; Y.new.bar # => 'Y#bar'`
<apeiros_> or did I misunderstand what you said?
<andrewvos> I think you may have
<andrewvos> `module X; def bar; "X#bar"; end; end; class Y; include X; def bar; super; end; end; Y.new.bar # => 'X#bar'
<andrewvos> Is my interpretation.
<andrewvos> apeiros_: ^
<apeiros_> ah, so he meant that the class' definition would overwrite the module's definition
<apeiros_> yorickpeterse: modules are put into the ancestry of the class which includes them
<apeiros_> which explains the super and the order
ivanoats has quit [Ping timeout: 240 seconds]
<yorickpeterse> apeiros_: yeah
<apeiros_> also nice: defined? super
<yorickpeterse> I didn't expect include/extend to basically behave like extending a class
<yorickpeterse> Damn you matz and your cleverness
<apeiros_> for the cases where you want to "hook" into a chain and not interrupt the original methods, but can't be sure whether there's an original method in the first place
methods has joined #ruby-lang
kjr has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
qwerxy has quit [Quit: offski]
sustainableweb has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
KU0N has quit [Quit: Linkinus - http://linkinus.com]
sustainableweb has quit [Ping timeout: 244 seconds]
gareth- has left #ruby-lang [#ruby-lang]
GarethAdams has joined #ruby-lang
intellitech has joined #ruby-lang
cschwartz has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
lcdhoffman has joined #ruby-lang
datanoise has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
irleif has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
sustainableweb has joined #ruby-lang
irleif has quit [Client Quit]
sustainableweb has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby-lang
rushanuk has joined #ruby-lang
ruurd has quit [Client Quit]
workmad3 has quit [Ping timeout: 255 seconds]
fsvehla has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
justinram has quit [Read error: Connection reset by peer]
justinra_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
anannie has joined #ruby-lang
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
areil has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
adambeynon has quit [Client Quit]
sepp2k has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby-lang
kurko_ has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
kurko_ has quit [Client Quit]
earthquake has quit [Quit: earthquake]
ruskie has quit [Read error: Operation timed out]
KA_ has joined #ruby-lang
rushanuk has left #ruby-lang [#ruby-lang]
<tocki_> apeiros_, i found way to insert stuff into .methods list
<tocki_> http://pastebin.com/WKVQ6W8w -- works in jruby
<tocki_> is this jruby bug or some kind of undefined behavior ?
<tocki_> cuz, MRI behaves differently
ruskie has joined #ruby-lang
<methods> hoping this is for ruby rvm ? I noticed that I don't seem to have `ri` docs for built in types like Array
<methods> oops ignore that first part copy/paste fail
<methods> I just notice that my rvm install, `ri Array` doesn't show me built in Array docs
earthquake has joined #ruby-lang
banisterfiend has joined #ruby-lang
<apeiros_> tocki_: I don't think that does what you think it does.
<apeiros_> but differences in behavior between mri and jruby should be reported to jruby
adambeynon has joined #ruby-lang
adambeynon has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
wyhaines has joined #ruby-lang
<tocki_> i did.. it seems that 1.9.3 mri behaves the same :S (but not 1.9.2 -- which throws error)
<tocki_> apeiros_, is it supposed to execute without error ?
<apeiros_> I think not
<apeiros_> methods defined on main should only be callable from main
<apeiros_> iirc
* apeiros_ rarely defines methods on main, as it's rarely the right thing to do
wyhaines has quit [Read error: Connection reset by peer]
<tocki_> what is main ?
<apeiros_> ruby -e 'p self'
wyhaines has joined #ruby-lang
<tocki_> ok.. how would you expect this to work ?
<tocki_> what is expected behavior ?
<tocki_> this _sure_ looks like a bug
aetcore has quit [Remote host closed the connection]
wyhaines has quit [Read error: Connection reset by peer]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> hm, either that changed or I misremember (entirely possible, since, as said, I rarely define methods on main)
wyhaines has joined #ruby-lang
<apeiros_> in that case, expected behavior is that any call on define_method_meth simply defines a new method 'meth1' on main
aetcore has joined #ruby-lang
<apeiros_> and that's the case:
<apeiros_> ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; p bar'
<tocki_> so method definitions have lexical, rather than dynamic scoping ?
krz has joined #ruby-lang
<apeiros_> yes, def's are lexically bound
<apeiros_> nesting method defs will retain the lexical scope
dous has quit [Ping timeout: 256 seconds]
sandbags has quit [Remote host closed the connection]
<tocki_> apeiros_, try this: ruby -e 'def foo; def bar; :x; end; end; class X; foo; public :bar; end; x = X.new; p x.bar'
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
thinkdevcode has joined #ruby-lang
<tocki_> in jruby they say its all ok.. since latest mri behaves the same
anannie has quit [Remote host closed the connection]
<tocki_> how strange..
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
<tocki_> i'd really like to understand this one ?
krz has quit [Quit: krz]
anannie has quit [Remote host closed the connection]
<tocki_> it seems that everything defined in main is part of every other object
<tocki_> are there visibility restrictions for namespaces (private, public, protected)
<apeiros_> why the public :bar? it works without too
<apeiros_> but you should pay close attention to the output of this:
<apeiros_> ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.method(:bar)'
<apeiros_> as said, the method is defined on main, not on X
cyri_ has quit [Quit: cyri_]
<banisterfiend> apeiros_: methods defined at top-level become private instance methods of Object, but i'm sure you knew that ;) (is that what you mean by define on main, or are you meaning singleton methods defined on main?)
<apeiros_> banisterfiend: afaik it wasn't always that way
<apeiros_> also it seems they're now public
<banisterfiend> really?
<banisterfiend> in ruby 2.0 ?
<apeiros_> 1.9.3
<apeiros_> p286
<banisterfiend> weird, let me checkx0r
<apeiros_> banisterfiend: ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.bar'
<apeiros_> iirc it was originally so, that a method defined on main was only available on main, not on Object
<apeiros_> i.e., you could only use it at top-level. but I might misremember.
<apeiros_> it might be that I did that specifically in a place, using class <<self within main
<tocki_> apeiros_, -e:1:in `<main>': private method `bar' called for #<X:0x9d7daa8> (NoMethodError)
<tocki_> apeiros_, ruby 1.9.2dev (2010-07-02) [i486-linux]
<banisterfiend> apeiros_: oh you mean nested methods?
<tocki_> that example does not work on older mri
<apeiros_> seems mri is inconsistent with nested methods
<banisterfiend> apeiros_: cos 'bar' will be public, but foo will be private
chimkan has joined #ruby-lang
thinkdevcode has quit [Read error: No route to host]
dous has joined #ruby-lang
<tocki_> why is bar public ?
dous has joined #ruby-lang
dous has quit [Changing host]
thinkdevcode has joined #ruby-lang
<banisterfiend> tocki_: so, when you run apeiros_'s code here: ` ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.bar'` are you saying you get that error about x.bar being private?
<tocki_> yes - on older version of mri
<banisterfiend> interesting
<banisterfiend> tocki_: what patch level is your 1.9.2 ?
<banisterfiend> tocki_: what the heck u're running 1.9.2dev ?
<banisterfiend> tocki_: you seriously need to upgrade ;)
<apeiros_> anyway, who uses nested methods? and who uses methods on main? both are rarely a good idea. or rather: I haven't ever seen a situation where it'd have been a good idea.
<banisterfiend> yeah they probably dont even have specs for them
<banisterfiend> so they dont care to maintain the behaviour across ruby versions
<tocki_> apeiros_, you think ruby should not have nested methods & methods in main ?
<apeiros_> tocki_: nested methods, yes, off with their heads
<apeiros_> methods in main: usable in scripting situations
<apeiros_> also no methods in main would break consistency
banisterfiend has quit [Read error: Connection reset by peer]
<tocki_> its so strange to have these meths available _everywhere_ as private
savage- has quit [Quit: savage-]
<tocki_> strange solution for scoping
methods has left #ruby-lang [#ruby-lang]
<tocki_> apeiros_, nested methods can be useful for redefining existing methods.. some logic could choose which execution path to take, and how to define given set of methods
<tocki_> it can be useful in situations where... say.. State pattern would apply
gsav has joined #ruby-lang
tonni has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
tonni has joined #ruby-lang
<tocki_> i'd say this is bug, rather than 'undefined behavior'
<tocki_> i didn't even know ruby has 'undefined behavior' as concept.. i thought only c/c++ suffers from this
<tocki_> does ruby have 'undefined behavior' ?
<apeiros_> tocki_: show me an actual use case of nested methods
<apeiros_> and I'll show you how you can do it with less insanity.
<tocki_> and you won't have trouble showing right_way to every ruby developer that comes across nested methods ?
<apeiros_> and "methods available everywhere as private is strange" - so you find puts strange?
<apeiros_> or for that matter - *all* Kernel methods
banisterfiend has joined #ruby-lang
<tocki_> hmmz.. true
<apeiros_> 19:48 tocki_: and you won't have trouble showing right_way to every ruby developer that comes across nested methods ?
<apeiros_> no idea what you're asking there
<apeiros_> Errno::EDOESNTPARSE
<banisterfiend> tocki_: btw, it's probably better to use pry-debugger than pry_debug
<tocki_> but Kernel is inherited unlike main..
<tocki_> banisterfiend, probably :)
<banisterfiend> apeiros_: iirc ruby 2.0 had a way of getting the attached object for a singelton class, do u remember the method?
<apeiros_> banisterfiend: haven't played with ruby 2 yet
<tocki_> in any case, thanks for clarifying example
<banisterfiend> tocki_: btw if you want pry to automatically kick-in for failed tests there are two tools out there that do that: https://github.com/banister/plymouth and https://github.com/conradirwin/pry-rescue
<banisterfiend> (just reading through channel logs :P)
<tocki_> cool - i'll keep that it mind
<tocki_> though, rspec error messages are usually very informative
<banisterfiend> yeah, i dont use plymouth that much, but it's pretty useful in some circumstances
<tocki_> i believe it is (i usually change code to add binding.pry statements)
banisterfiend has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
cyri_ has joined #ruby-lang
ryanf has joined #ruby-lang
<tocki_> yes.. since methods are not closures, their nested use is limited
<tocki_> how to get list of classes and modules defined within class ?
davidbalber|away is now known as davidbalbert
AlexDenisov has joined #ruby-lang
havenn has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
banisterfiend has joined #ruby-lang
datanoise has joined #ruby-lang
erichmenge has joined #ruby-lang
zarubin has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 276 seconds]
thone has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
<apeiros_> tocki_: classes and modules aren't defined within a module, constants are. and that should lead you to the answer.
thinkdevcode has quit [Remote host closed the connection]
AlexDenisov has quit [Quit: AlexDenisov]
<banisterfiend> tocki_: in pry, use ls -c YourModule
chimkan has quit [Quit: chimkan]
<banisterfiend> tocki_: classes/modules are colored blue
yalue has joined #ruby-lang
<banisterfiend> tocki_: http://cl.ly/image/2O0M0a2v2P0U
<tocki_> cool, thanks
wyhaines has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<tocki_> hmmz.. it would be cool to be able to easily spawn some kind of pry web interface
Dreamer3 has joined #ruby-lang
<tocki_> heh.. every number has object_id
<banisterfiend> tocki_: that exists
<tocki_> but object_ids for floating point numbers seem to increase, for every number used
<tocki_> its not like some hashed value of number.. every floating point number is treated like object 4 real
<tocki_> banisterfiend, thanks!
<banisterfiend> tocki_: because floating points are objects allocated on the heap
<banisterfiend> fixnums are immediate values, stored in the VALUE itself
<tocki_> heh, using floats must be costly
<banisterfiend> tocki_: yeah there's a significant performance impact using floats rather than fixnums in a tight loop, u should def. switch to fixnums if u can
cyri_ has quit [Quit: cyri_]
<tocki_> i like arbitrary precision arithmetics that comes with ruby
<tocki_> i certainly gives it edge over php/js
rindolf has quit [Quit: Leaving]
jamjam has joined #ruby-lang
wyhaines has joined #ruby-lang
anannie has joined #ruby-lang
shinnya has quit [Quit: ZNC - http://znc.sourceforge.net]
cyri_ has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all. Can anyone vouch for this tutorial for creating and publishing a gem? http://guides.rubygems.org/make-your-own-gem/
My_Hearing has joined #ruby-lang
KU0N has joined #ruby-lang
rindolf has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 252 seconds]
yalue has quit [Quit: Leaving]
rindolf has joined #ruby-lang
<steveklabnik> it is pretty godo
<steveklabnik> i wrote this: http://timelessrepo.com/making-ruby-gems
<rindolf> steveklabnik: OK, let me check.
datanoise has joined #ruby-lang
<rindolf> steveklabnik: "a few additional concens" - s/concens/concerns/
<steveklabnik> ty
<rindolf> steveklabnik: you're welcome .
cyri_ has quit [Quit: cyri_]
datanoise has quit [Ping timeout: 255 seconds]
xalei has joined #ruby-lang
<Spaceghostc2c> rindolf: Considering that it's written by the place you get your gems from, I'd say it has a chance of being alright.
<rindolf> Spaceghostc2c: thanks for the input.
<rindolf> steveklabnik: I read your tutorial and it is nice.
<steveklabnik> thanks.
<rindolf> steveklabnik: thanks for that - I will get going now.
<rindolf> I mean working on my gem.
<steveklabnik> :) awesome
qwerxy has quit [Quit: offski]
Axsuul has joined #ruby-lang
cyri_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
<wasnotrice> steveklabnik: Do you have a minute to talk in #shoes?
<steveklabnik> sure
KA_ has quit [Quit: KA_]
banisterfiend has quit [Ping timeout: 256 seconds]
bfreeman has quit [Quit: bfreeman]
sn0wb1rd has quit [Quit: sn0wb1rd]
KA_ has joined #ruby-lang
My_Hearing is now known as Mon_Ouie
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
qwerxy has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
Aria has joined #ruby-lang
svyatov has joined #ruby-lang
workmad3 has joined #ruby-lang
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
qwerxy has quit [Quit: offski]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
roadt_ has quit [Ping timeout: 268 seconds]
ttilley has quit [Quit: ttilley]
fsvehla has joined #ruby-lang
KA_ has quit [Quit: KA_]
datanoise has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Quit: Leaving.]
blacktulip has quit [Read error: Connection reset by peer]
Nisstyre has quit [Quit: Leaving]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
Nisstyre has joined #ruby-lang
swarley has joined #ruby-lang
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
clementine has joined #ruby-lang
<andrewvos> The way avdi executes Ruby code and has the output appear after #=> is pretty cool. Anyone know how to do this in vim?
<zzak> andrewvos: you execute code in vim?
<andrewvos> zzak: Well not really. I use vimux.
clementine has quit [Remote host closed the connection]
<andrewvos> zzak: I use VimuxPromptCommand and I have <leader>r mapped to VimuxRunLastCommand. Works quite well.
<andrewvos> zzak: But the idea of executing the current code and putting the result of every line that has a #=> is pretty cool.
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<zzak> never heard of it, i just use vim with a screen split for irb or whatever
KA_ has joined #ruby-lang
savage- has joined #ruby-lang
bfreeman has joined #ruby-lang
justinmcp has joined #ruby-lang
rindolf has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
nyuszika7h has quit [Remote host closed the connection]
<matti> Ohai zzak
nyuszika7h has joined #ruby-lang
senekis has joined #ruby-lang
justinra_ has quit [Remote host closed the connection]
methods has joined #ruby-lang
Kingy has joined #ruby-lang
justinram has joined #ruby-lang
apeiros_ has joined #ruby-lang
<zzak> matti: hi!
<andrewvos> zzak: If you use tmux give vimux a try. It doesn't sound like you need it, but once you get used to it you'll be happy.
methods has left #ruby-lang [#ruby-lang]
<andrewvos> zzak: Especially for running tests.
benanne has joined #ruby-lang
justinram has quit [Ping timeout: 264 seconds]
<zzak> andrewvos: i only do that when im doing heavy development, and ill usually have another screen window running guard
<zzak> ive never used tmux either, only screen
<cinch> what are some good ruby podcasts?
ruurd has quit [Quit: Leaving...]
KA_ has quit [Quit: KA_]
savage- has quit [Quit: savage-]
yxhuvud has quit [Ping timeout: 255 seconds]
KA_ has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
<Spaceghostc2c> cinch: Ruby rogues.
uglybandersnatch has joined #ruby-lang
methods1 has joined #ruby-lang
svyatov has quit [Quit: svyatov]
esad has joined #ruby-lang
thinkdevcode has joined #ruby-lang
methods1 has quit [Ping timeout: 252 seconds]
esad has quit [Client Quit]
<cinch> Spaceghostc2c, thanks ill take a listen :>
<andrewvos> cinch: Are you the gem?
<dominikh> I hope not
<andrewvos> dominikh: hah
KA_ has quit [Quit: KA_]
methods has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
KA_ has joined #ruby-lang
<cinch> gem?
<dominikh> there's a gem called cinch
thinkdevcode has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 245 seconds]
Assurbanipal has joined #ruby-lang
csmrfx has joined #ruby-lang
<apeiros_> "a" gem
<apeiros_> nice :)
<cinch> a am the moster of the cinch bot
clementine has joined #ruby-lang
<cinch> i control all the cinch bots :>
<apeiros_> puppetmaster…
<cinch> right
<csmrfx> How to get the "Tests" on line 4 to be defined dynamically. module_evaling line 4 seems wrong. http://pastie.org/5185433
methods has quit [Ping timeout: 252 seconds]
CaptainJet has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
KA_ has quit [Quit: KA_]
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
sn0wb1rd has joined #ruby-lang
bryno has quit [Quit: brb]
<apeiros_> csmrfx: you're trying to run an instance method as a class method. that can't work.
<apeiros_> either define them as class methods, or extend an object with the module, or include the module into a class and instanciate it…
<apeiros_> *instantiate
KA_ has joined #ruby-lang
adam12 has quit [Read error: Connection reset by peer]
<csmrfx> I didn't realize modules have instance & class methods
<apeiros_> you didn't realize that you called the method *instance_methods* on the module?
<csmrfx> well, "class methods" on a module -- ??
<csmrfx> plus, what it returns is just an array with symbols
<csmrfx> I dont care.
<csmrfx> I just want the thing to call every method
<apeiros_> it's easier to get things to work when one understands what he's doing.
<csmrfx> well, of course I fuddled with the pastie and managed to omit "extend Tests" line
<apeiros_> and yeah, class methods is a convenience term. it's instance methods of the singleton class
<apeiros_> there's no such thing as class methods.
<apeiros_> and a module being an object has a singleton class
methods has joined #ruby-lang
<csmrfx> correct paste http://pastie.org/5185635
<csmrfx> There's yet another paradox there:
<csmrfx> How can it return an array of instance_methods if there are no instance_methods
<csmrfx> !
<apeiros_> your premise is wrong
<apeiros_> but yes, *if* there are no instance methods, instance_methods will return an empty array.
<apeiros_> how conveniently consistent.
adam12 has joined #ruby-lang
bryno has joined #ruby-lang
wyhaines has joined #ruby-lang
banisterfiend has joined #ruby-lang
methods has quit [Quit: Leaving.]
<csmrfx> Indeed I say
<csmrfx> My old chap
mhag has quit [Remote host closed the connection]
<csmrfx> No need for neither the module names nor the prefixes
nignaztic has joined #ruby-lang
<apeiros_> o0
workmad3 has quit [Ping timeout: 260 seconds]
ramonmaruko has quit [Ping timeout: 268 seconds]
Mon_Ouie has quit [Ping timeout: 248 seconds]
ramonmaruko has joined #ruby-lang
<csmrfx> Or do you think is not a good way to run those tests automatactically? http://pastie.org/5185830
Averna has joined #ruby-lang
nazty has quit [Ping timeout: 268 seconds]
pj has joined #ruby-lang
pj has quit [Client Quit]
<apeiros_> I think you're reinventing the wheel and not really making it better while doing so…
<csmrfx> Which wheel is that?
<apeiros_> the thing you asked - automatically running tests
<csmrfx> ok, well, thats done, aka calling all methods on a module
<csmrfx> I find it may be too late for regrets now! 8)
Assurbanipal has quit [Quit: Konversation terminated!]
<csmrfx> Hm, is it a bad practice if I move code from inside a modules method onto the module?
<csmrfx> (iow, remove run_tests -method, move code in Tests module)
<swarley> how so?
bfreeman has joined #ruby-lang
benanne has quit [Quit: kbai]
datanoise has joined #ruby-lang
jamjam has quit [Ping timeout: 252 seconds]
<csmrfx> swarley: well so as to simplify that Tests module by removing run_tests and just having it run all its methods
<swarley> why not just make run_tests private and then run all public methods
datanoise has quit [Ping timeout: 276 seconds]
* csmrfx goes to see what methods modules have
<swarley> Module#public_methods
clementine has quit [Remote host closed the connection]
<swarley> sorry, i mean Module#public_instance_methods
Assurbanipal has joined #ruby-lang
<csmrfx> swarley: A: because then the module that is being tested with Tests -module cannot run the tests.
* swarley sighs
<swarley> the best thing you could do is probably use a DSL. But if you're using unit test style cases, that wont work
<csmrfx> nonono
<csmrfx> pure ruby land
<swarley> you can do internal DSL
<csmrfx> ape-like creatures that only know ruby need to be able to write these tests (including me)
<csmrfx> s/know ruby/know some ruby/
<csmrfx> no need for dsl
<csmrfx> just a simple test module, with simple methods that test other methods work, and test module runs all
* csmrfx managed to delete 2.5 LOC so in his book it is win: http://pastie.org/5186115
<csmrfx> (except, that is not the correct pastie)
wyhaines has quit [Read error: Connection reset by peer]
uglybandersnatch has quit [Quit: Leaving.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
KA_ has quit [Quit: KA_]