apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
nazty has joined #ruby-lang
ootoovak has quit [Quit: ootoovak]
JoelMcCracken has quit [Ping timeout: 248 seconds]
atadesk has joined #ruby-lang
reppard has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
atadesk has left #ruby-lang [#ruby-lang]
krohrbaugh has quit [Quit: Leaving.]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
jsilver has quit [Read error: Operation timed out]
sepp2k has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 245 seconds]
nazty has joined #ruby-lang
nazty is now known as lordnaz
reppard has joined #ruby-lang
waffleau has joined #ruby-lang
loladiro has joined #ruby-lang
loladiro has left #ruby-lang [#ruby-lang]
__butch__ has quit [Quit: Leaving.]
swav has quit [Remote host closed the connection]
atadesk has joined #ruby-lang
swav has joined #ruby-lang
elico has joined #ruby-lang
lordnaz has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
dankest is now known as dankest|away
dous has joined #ruby-lang
dous has joined #ruby-lang
r0bby has quit [Ping timeout: 252 seconds]
krohrbaugh has joined #ruby-lang
dankest|away is now known as dankest
dous has quit [Remote host closed the connection]
Guest90418 has quit [Ping timeout: 252 seconds]
cirenyc has quit [Quit: Leaving...]
Guest90418 has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
imperator has joined #ruby-lang
atadesk has left #ruby-lang [#ruby-lang]
wyhaines has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
breakingthings has joined #ruby-lang
mjio has quit []
reppard has quit [Ping timeout: 244 seconds]
waffleau has quit [Quit: waffleau]
Guest90418 has quit [Ping timeout: 265 seconds]
elico has quit [Quit: Elico]
<imperator> evenin'
<drbrain> imperator: hi
<imperator> how goes the cable splicing?
<drbrain> I've "learned" how to do CPR the wrong way
<drbrain> and I've learned that cleaning fiber optic cables is very expensive
<drbrain> as much as $.54 per wipe
faustman has quit [Ping timeout: 264 seconds]
<imperator> i had no idea
reppard has joined #ruby-lang
io_syl has joined #ruby-lang
krohrbaugh has joined #ruby-lang
ivanoats has quit [Ping timeout: 265 seconds]
rhalff has quit [Ping timeout: 260 seconds]
Guest90418 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
pabloh has quit [Read error: Connection reset by peer]
Guest90418 has quit [Read error: Connection reset by peer]
sn0wb1rd has quit [Quit: sn0wb1rd]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
spuk has joined #ruby-lang
<dankest> drbrain: what do you clean them with?
<drbrain> dankest: I already forgot
<drbrain> there's special tools and wipes and stuff
thoughtfulgoblin has joined #ruby-lang
<thoughtfulgoblin> hey is there anyway of stubbing an instance method on a class that is invoked during the initilize method
<drbrain> in a test?
<thoughtfulgoblin> i.e. i can't do the normal bla = Whatever.new bla.stub(:method).with(:this_crap)
<thoughtfulgoblin> yep
<drbrain> bla = Whatever.allocate; stub_on_bla; bla.send :initialize, ...
<thoughtfulgoblin> :O
<thoughtfulgoblin> what does allocate do?
<drbrain> thoughtfulgoblin: but I often try to design initialization so I can test the individual methods initialize needs
<drbrain> ::allocate creates the object but doesn't initialize it
<thoughtfulgoblin> you mean
<thoughtfulgoblin> a = Whaterver.new
<thoughtfulgoblin> a.setup kind of thing?
<thoughtfulgoblin> or test the methods independantly
<drbrain> test them independently
<drbrain> I can call initialize_method_etc at any time after new and check what happened
<drbrain> new/initialize
dankest has quit [Quit: Leaving...]
<drbrain> but, back to your allocate question, Class#new looks something like:
<drbrain> def new(*args, &block); obj = allocate; obj.send :initialize, *args, &block; obj; end
mjio has joined #ruby-lang
mistym is now known as mistym_pumpkin
ruby-lang517 has joined #ruby-lang
ruby-lang517 has quit [Client Quit]
sn0wb1rd has joined #ruby-lang
lcdhoffman has joined #ruby-lang
guns has joined #ruby-lang
dous has quit [Remote host closed the connection]
thoughtfulgoblin has quit [Read error: Connection reset by peer]
waffleau_ has joined #ruby-lang
richardburton has joined #ruby-lang
richardburton has left #ruby-lang [#ruby-lang]
krohrbaugh has quit [Quit: Leaving.]
ioga_wrk has quit [Read error: Operation timed out]
reppard has quit [Ping timeout: 265 seconds]
Guest9041 has joined #ruby-lang
mistym_pumpkin is now known as mistym
reppard has joined #ruby-lang
intellitech has quit [Read error: Operation timed out]
DEac-_ has quit [Read error: No route to host]
DEac- has joined #ruby-lang
Guest9041 has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
intellitech has joined #ruby-lang
imajes has quit [Excess Flood]
bluepojo has quit [Quit: Leaving.]
imajes has joined #ruby-lang
mwjcomputing has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
Guest9041 has joined #ruby-lang
Guest9041 has quit [Ping timeout: 255 seconds]
_br_ has quit [Excess Flood]
krohrbaugh has joined #ruby-lang
_br_ has joined #ruby-lang
_br_ has quit [Excess Flood]
_br_ has joined #ruby-lang
srbaker has joined #ruby-lang
_br_ has quit [Excess Flood]
_br_ has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
Guest9041 has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
Hakon has joined #ruby-lang
imperator has quit [Ping timeout: 260 seconds]
Hakon has quit [Client Quit]
Guest9041 has quit [Ping timeout: 245 seconds]
waffleau_ has quit [Quit: waffleau_]
Guest9041 has joined #ruby-lang
Guest9041 has quit [Ping timeout: 245 seconds]
Guest9041 has joined #ruby-lang
retro|cz has quit [Ping timeout: 244 seconds]
Guest9041 has quit [Read error: Connection reset by peer]
briantrust has joined #ruby-lang
reppard has quit [Quit: leaving]
Guest9041 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
breakingthings has quit []
valeri_uF0 has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
valeri_ufo has quit [Read error: Connection reset by peer]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
ryanf_ has joined #ruby-lang
Guest9041 has quit [Read error: Connection reset by peer]
Guest9041 has joined #ruby-lang
[dmp] has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
coffeejunk has quit [Read error: Operation timed out]
meise has quit [Read error: Operation timed out]
mjio has quit []
msch has quit [Ping timeout: 246 seconds]
meise has joined #ruby-lang
jarib has quit [Ping timeout: 255 seconds]
khaase has quit [Ping timeout: 240 seconds]
mbr has quit [Ping timeout: 246 seconds]
jMCg has quit [Ping timeout: 260 seconds]
aef has quit [Ping timeout: 264 seconds]
masterkorp has quit [Ping timeout: 244 seconds]
darix has quit [Ping timeout: 244 seconds]
akamike has quit [Ping timeout: 252 seconds]
soahccc has quit [Ping timeout: 252 seconds]
grandy has quit [Ping timeout: 245 seconds]
LanceHaig has quit [Ping timeout: 255 seconds]
valeri_uF0 has quit [Ping timeout: 244 seconds]
_br_ has quit [Ping timeout: 255 seconds]
randym has quit [Ping timeout: 260 seconds]
cinch has quit [Ping timeout: 260 seconds]
jwollert- has quit [Ping timeout: 250 seconds]
amdprophet has quit [Ping timeout: 265 seconds]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
khaase has joined #ruby-lang
valeri_ufo has joined #ruby-lang
jwollert has joined #ruby-lang
aef has joined #ruby-lang
LanceHaig has joined #ruby-lang
tubbo_ has joined #ruby-lang
cinch has joined #ruby-lang
jarib has joined #ruby-lang
randym has joined #ruby-lang
masterkorp has joined #ruby-lang
dkannan_ has joined #ruby-lang
meise has quit [Ping timeout: 255 seconds]
coffeejunk has joined #ruby-lang
Guest9041 has quit [Ping timeout: 260 seconds]
amdprophet has joined #ruby-lang
meise has joined #ruby-lang
mbr has joined #ruby-lang
<andrewvos> drbrain: but it doesn't return the result of initialize?
mrb_bk___ has joined #ruby-lang
mccraig_ has joined #ruby-lang
Guest9041 has joined #ruby-lang
_br_ has joined #ruby-lang
<andrewvos> drbrain: Oh it returns obj. interesting.
ryanf_ has quit [Quit: broken pipes |||]
grandy has joined #ruby-lang
wycats_ has joined #ruby-lang
thejspr__ has joined #ruby-lang
akahn_ has joined #ruby-lang
[dmp] has joined #ruby-lang
[dmp] has quit [Changing host]
[dmp] has joined #ruby-lang
pvh___ has joined #ruby-lang
pkondzior__ has joined #ruby-lang
agib__ has joined #ruby-lang
franckverrot__ has joined #ruby-lang
abuiles_ has joined #ruby-lang
soahccc has joined #ruby-lang
jMCg has joined #ruby-lang
jMCg has quit [Changing host]
jMCg has joined #ruby-lang
_br_ has quit [Excess Flood]
dlackty_ has joined #ruby-lang
strmpnk_ has joined #ruby-lang
mroth_ has joined #ruby-lang
tdy has quit [Ping timeout: 272 seconds]
akamike has joined #ruby-lang
rikkus_ has joined #ruby-lang
_br_ has joined #ruby-lang
imajes has quit [Excess Flood]
terite_ has joined #ruby-lang
davidboy___ has joined #ruby-lang
herpless_ has joined #ruby-lang
wyhaines has joined #ruby-lang
imajes has joined #ruby-lang
_br_ has quit [Excess Flood]
io_syl has quit [Quit: Computer has gone to sleep.]
srbaker has quit [Quit: Computer has gone to sleep.]
Muz has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
_br_ has joined #ruby-lang
lsegal has joined #ruby-lang
ivanoats has joined #ruby-lang
guns has quit [Quit: guns]
havenn has quit [Remote host closed the connection]
briantrust has quit [Remote host closed the connection]
ryanf_ has joined #ruby-lang
briantrust has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
mhi^ has quit [Ping timeout: 240 seconds]
gaveen has joined #ruby-lang
ryanf__ has joined #ruby-lang
ryanf__ has quit [Client Quit]
mjio has joined #ruby-lang
JohnBat26 has joined #ruby-lang
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
ryanf_ has quit [Ping timeout: 264 seconds]
ioga_wrk has joined #ruby-lang
jsilver has joined #ruby-lang
dous has quit [Remote host closed the connection]
mjio has quit [Client Quit]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ryanlecompte has joined #ruby-lang
chaosis has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
io_syl has joined #ruby-lang
imajes has quit [Excess Flood]
nick_h has quit [Ping timeout: 265 seconds]
stringly has joined #ruby-lang
imajes has joined #ruby-lang
nick_h has joined #ruby-lang
stevechiagozie has joined #ruby-lang
jonathangreenber has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
stringly has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
<drbrain> yeah
<drbrain> you'd need to take care to return self from initialize otherwise
sn0wb1rd has quit [Quit: I will be right back]
ryanlecompte has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
stardiviner has joined #ruby-lang
agile has quit [Ping timeout: 246 seconds]
swav has quit [Remote host closed the connection]
elico has joined #ruby-lang
burgestrand has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
faustman has joined #ruby-lang
agile has joined #ruby-lang
faustman has quit [Read error: Operation timed out]
zmack has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
faustman has joined #ruby-lang
rippa has joined #ruby-lang
shemerey has joined #ruby-lang
lele has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby-lang
swav has joined #ruby-lang
lele has joined #ruby-lang
Asher has quit [Quit: Leaving.]
swav has quit [Ping timeout: 252 seconds]
<reactormonk> I think you can fuck with that if you really want to
dzhulk has quit [Quit: Leaving.]
<reactormonk> >> obj = Class.new; def obj.new; raise "haha"; end; obj.new
mytrile has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<reactormonk> aww :-(
charliesome has joined #ruby-lang
xalei has joined #ruby-lang
unsymbol has joined #ruby-lang
stevechiagozie has quit [Ping timeout: 265 seconds]
nerd has joined #ruby-lang
ryanlecompte has joined #ruby-lang
jonathangreenber has quit [Remote host closed the connection]
JoelMcCracken has quit [Ping timeout: 252 seconds]
ryanlecompte has quit [Ping timeout: 250 seconds]
solars has joined #ruby-lang
dr_bob has joined #ruby-lang
jbsan_ has joined #ruby-lang
sqbell has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 276 seconds]
faustman has quit [Ping timeout: 265 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
elico has quit [Quit: Elico]
kain has quit [Quit: exit]
rippa has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby-lang
qwerxy has quit [Quit: offski]
shemerey has quit [Quit: Linkinus - http://linkinus.com]
xalei_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
xalei has quit [Ping timeout: 260 seconds]
faustman has joined #ruby-lang
apeiros_ has joined #ruby-lang
antbody has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
gjaldon has joined #ruby-lang
agarcia has joined #ruby-lang
faustman has quit [Ping timeout: 244 seconds]
swav has joined #ruby-lang
dzhulk has joined #ruby-lang
swav has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
swav has joined #ruby-lang
imajes has joined #ruby-lang
nick_h has quit [*.net *.split]
strmpnk_ has quit [*.net *.split]
dkannan_ has quit [*.net *.split]
LanceHaig has quit [*.net *.split]
blazes816 has quit [*.net *.split]
ozzloy has quit [*.net *.split]
vbatts has quit [*.net *.split]
kke has quit [*.net *.split]
_ko1 has quit [*.net *.split]
jesse has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
andrewvos has quit [*.net *.split]
zigidias has quit [*.net *.split]
swav has quit [Ping timeout: 265 seconds]
nick_h has joined #ruby-lang
dkannan_ has joined #ruby-lang
jesse has joined #ruby-lang
kke has joined #ruby-lang
blazes816 has joined #ruby-lang
andrewvos has joined #ruby-lang
ozzloy has joined #ruby-lang
LanceHaig has joined #ruby-lang
zigidias has joined #ruby-lang
_ko1 has joined #ruby-lang
strmpnk_ has joined #ruby-lang
vbatts has joined #ruby-lang
jmeeuwen has joined #ruby-lang
aef has quit [Excess Flood]
aef has joined #ruby-lang
dc5ala has joined #ruby-lang
marr has joined #ruby-lang
sqbell has quit [Ping timeout: 260 seconds]
gjaldon has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
judofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
loladiro has joined #ruby-lang
jonathangreenber has joined #ruby-lang
sush24 has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
Averna has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
sqbell has joined #ruby-lang
jonathangreenber has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
rikkus has quit [Disconnected by services]
rikkus_ has quit []
rikkus_ has joined #ruby-lang
rikkus_ has left #ruby-lang [#ruby-lang]
rhalff has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
antbody has quit [Quit: leaving]
loladiro has quit [Quit: loladiro]
herpless has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
agib_ has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
dlackty has quit [Remote host closed the connection]
thejspr_ has quit [Remote host closed the connection]
abuiles has quit [Remote host closed the connection]
wycats has quit [Remote host closed the connection]
strmpnk has quit [Remote host closed the connection]
pkondzior_ has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
akahn has quit [Remote host closed the connection]
terite has quit [Remote host closed the connection]
franckverrot has quit [Remote host closed the connection]
mccraig has quit [Remote host closed the connection]
pvh__ has quit [Remote host closed the connection]
tubbo has quit [Remote host closed the connection]
beawesomeinstead has quit [Read error: Connection reset by peer]
Spaceghost|cloud has quit [Remote host closed the connection]
anildigital_work has quit [Write error: Broken pipe]
mrb_bk__ has quit [Write error: Broken pipe]
franckverrot__ has quit [Remote host closed the connection]
tubbo_ has quit [Remote host closed the connection]
dkannan_ has quit [Remote host closed the connection]
mccraig_ has quit [Remote host closed the connection]
davidboy___ has quit [Remote host closed the connection]
wycats_ has quit [Remote host closed the connection]
herpless_ has quit [Remote host closed the connection]
akahn_ has quit [Remote host closed the connection]
agib__ has quit [Remote host closed the connection]
terite_ has quit [Remote host closed the connection]
dlackty_ has quit [Remote host closed the connection]
mroth_ has quit [Remote host closed the connection]
mrb_bk___ has quit [Remote host closed the connection]
abuiles_ has quit [Remote host closed the connection]
strmpnk_ has quit [Write error: Broken pipe]
pvh___ has quit [Write error: Broken pipe]
thejspr__ has quit [Write error: Broken pipe]
pkondzior__ has quit [Write error: Broken pipe]
rue|w has joined #ruby-lang
<yorickpeterse> Morning
GarethAdams has joined #ruby-lang
francisfish has joined #ruby-lang
ebouchut has joined #ruby-lang
wycats_ has joined #ruby-lang
anildigital_work has joined #ruby-lang
dkannan_ has joined #ruby-lang
mccraig_ has joined #ruby-lang
pvh___ has joined #ruby-lang
herpless_ has joined #ruby-lang
pkondzior__ has joined #ruby-lang
agib__ has joined #ruby-lang
thejspr__ has joined #ruby-lang
terite_ has joined #ruby-lang
<rue|w> HI THERE
faustman has joined #ruby-lang
mroth_ has joined #ruby-lang
abuiles_ has joined #ruby-lang
mrb_bk___ has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
akahn_ has joined #ruby-lang
strmpnk_ has joined #ruby-lang
franckverrot__ has joined #ruby-lang
dlackty_ has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
davidboy___ has joined #ruby-lang
ebouchut has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
cultureulterior_ has joined #ruby-lang
tubbo_ has joined #ruby-lang
beiter has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
thone_ has joined #ruby-lang
franckverrot__ is now known as franckverrot
thone has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
shemerey has joined #ruby-lang
antbody has joined #ruby-lang
leopard_me has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
vlad_starkov has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
antbody has quit [Quit: leaving]
antbody has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<unsymbol> i checked out #ruby this morning.
<unsymbol> did not like.
<judofyr> oh?
<judofyr> unsymbol: how is it?
<charliesome> i think #ruby vs #ruby-lang is sort of like #ruby-talk vs #ruby-core
<charliesome> 'sort of'
<charliesome> also #ruby-talk and #ruby-core shouldn't have # chars
<unsymbol> judofyr charliesome: it's like #derp vs #lessderp
<unsymbol> charliesome: heh
<unsymbol> :)
xalei_ has quit [Remote host closed the connection]
sqbell has quit [Ping timeout: 250 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kurko_ has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
<charliesome> welp the world has 30 seconds left, see you all on the other side
shtirlic_ has joined #ruby-lang
<chris2> anyone subscribed to ruby-talk?
ebouchut has joined #ruby-lang
<manveru> me :)
m3nd3s has joined #ruby-lang
<chris2> manveru: did my ANN go through?
<injekt> no :)
<manveru> don't see any for bacon
<chris2> sigh
<chris2> with which address did i sign up...
<manveru> chneukirchen@gmail.com
sush24 has joined #ruby-lang
<chris2> nope
<chris2> i tried that
<darix> chris2: shouldnt this be in the emailheader of mails you receive?
<manveru> weird
leopard_me has quit [Quit: Computer has gone to sleep.]
<chris2> darix: i dont recieve mails
<darix> ah
<chris2> because i dont read it anymore
<darix> and you dont have the signup ack mail anymore either?
<chris2> dude
<chris2> trying my other address
<chris2> hrm, that one bounced instantly
<chris2> but @gmail.com didnt...
<chris2> weird
<chris2> ruby-talk seems to be a lot less traffic these days
<chris2> manveru: still nothing?
<manveru> not that i can see
<chris2> ok
<chris2> ok, second try
<chris2> yep
<chris2> i hate releasing
<manveru> yep what?
<chris2> that one worked
<rue|w> Well hold on to it then
<darix> chris2: maybe its the first mail and the servers are just slow atm?:D
<chris2> nope
<chris2> its the address i run my ANN feed with
<manveru> ah, got it now
antbody has quit [Quit: leaving]
<chris2> ok, what else did i want to finish this year
<darix> chris2: rack 2.0?
<chris2> heh
beiter has quit [Ping timeout: 260 seconds]
<darix> oh that reminds me to bother the eventmachine guys about the ipv6 crash
<chris2> need to spec that first ;)
sush24 has quit [Quit: This computer has gone to sleep]
<darix> what is funny ... someone ported webmachine to ruby.
sush24 has joined #ruby-lang
<judofyr> darix: that is funny?
<darix> a bit
<darix> we definitely needed more webapp frameworks
<judofyr> "webapp frameworks"?
<darix> got to run
<darix> back in a few
jxie has quit [Quit: leaving]
Mon_Ouie has quit [Ping timeout: 248 seconds]
madish has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
shtirlic_ has quit [Remote host closed the connection]
<gnufied> chris2: oh hai
<chris2> hey
madish_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
madish has quit [Ping timeout: 255 seconds]
madish has joined #ruby-lang
madish has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
madish_ has quit [Ping timeout: 264 seconds]
antbody has joined #ruby-lang
leopard_me has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 248 seconds]
rhalff has quit [Ping timeout: 255 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
beiter has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
shemerey has quit [Remote host closed the connection]
shemerey has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
neocoin has quit [Remote host closed the connection]
leopard_me has quit [Ping timeout: 250 seconds]
dzhulk has quit [Quit: Leaving.]
leopard_me has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
leopard_me has quit [Ping timeout: 252 seconds]
leopard_me has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
leopard_me has quit [Ping timeout: 255 seconds]
gmci has joined #ruby-lang
gmci is now known as Guest94028
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sqbell has joined #ruby-lang
madish has joined #ruby-lang
beiter has quit [Quit: beiter]
ruurd has joined #ruby-lang
dreinull_ has joined #ruby-lang
sush24 has joined #ruby-lang
leopard_me has joined #ruby-lang
neocoin has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
banisterfiend has joined #ruby-lang
setmeaway has joined #ruby-lang
shemerey has quit [Quit: Leaving...]
leopard_me has quit [Ping timeout: 248 seconds]
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
leopard_me has joined #ruby-lang
socialcoder has joined #ruby-lang
<socialcoder> I need to practice ruby
<socialcoder> do you know where I can find sample ruby apps
<socialcoder> that I can practice
<socialcoder> I know I can fork at github, but I want some simple tutorials so I know what I am typing
<yorickpeterse> http://rubymonk.com/
sailias has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
<socialcoder> thatsnot what I am looking at
<socialcoder> I am already learning ruby elsewhere
<socialcoder> I am looking for sample codes
<socialcoder> that I can re-type and practice
leopard_me has quit [Ping timeout: 255 seconds]
<yorickpeterse> You don't learn coding by just re-typing what somebody else wrote
<socialcoder> I know
<yorickpeterse> All you learn from that is the syntax while the mindset is much more important
<socialcoder> read above - I am already learning ruby elsewhere
<socialcoder> python has this series called invent with pythoin
<socialcoder> a series of games
<banisterfiend> socialcoder: practice on this codebase: https://github.com/YorickPeterse/ruby-lint
<socialcoder> was wondering if ruby has something similar
<socialcoder> sec banister
leopard_me has joined #ruby-lang
srbaker has joined #ruby-lang
rhalff has joined #ruby-lang
srbaker has quit [Client Quit]
rsl__ has joined #ruby-lang
jonathangreenber has joined #ruby-lang
jonathangreenber has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
rhalff has quit [Ping timeout: 245 seconds]
runeb has joined #ruby-lang
sailias has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
socialcoder has quit []
imajes has joined #ruby-lang
breakingthings has joined #ruby-lang
shemerey has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines_ has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
<whitequark> hey yorickpeterse
<whitequark> remember we talked about diffable inspect for to_sexp?
lcdhoffman has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
wyhaines_ has quit [Remote host closed the connection]
tentimes has joined #ruby-lang
Banistergalaxy has quit [Read error: Connection reset by peer]
msch has joined #ruby-lang
tentimes has quit [Quit: Why is the alphabet in that order? Is it because of that song?]
<yorickpeterse> whitequark: ooh fancy
slyphon has joined #ruby-lang
sqbell has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<whitequark> yorickpeterse: so. about diffable inspect. do you happen to have working code for that?
Banistergalaxy has joined #ruby-lang
<whitequark> I wrote some tests and bumped into the same problem
sailias has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> eh yeah sort of, let me check
relic has joined #ruby-lang
runeb- has joined #ruby-lang
faustman has quit [Read error: Connection reset by peer]
runeb is now known as Guest8359
Guest8359 has quit [Killed (leguin.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
faustman has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
Guest94028 has quit [Ping timeout: 252 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
<yorickpeterse> The output isn't different though
<yorickpeterse> but the usage is quite cool
<yorickpeterse> But being able to do `name, value = *some_node` is much better than `name, value = some_node.children`
gmci has joined #ruby-lang
gmci has quit [Client Quit]
<whitequark> yorickpeterse: yeah exactly
slyphon has joined #ruby-lang
<whitequark> also nested ones
<whitequark> receiver, (method, ), arguments, = *call_node
<whitequark> or even
<whitequark> receiver, (method, ), *arguments, block = *call_node
setmeaway has quit [Ping timeout: 255 seconds]
<whitequark> for s(:send, s(:symbol, :foo), s(:tuple, s(:arg1), s(:arg2)), s(:nil)
<whitequark> errr
<whitequark> receiver, (method, ), (*arguments), block = *call_node
rippa has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
rhalff has joined #ruby-lang
imajes has quit [Excess Flood]
<yorickpeterse> neat
imajes has joined #ruby-lang
anannie has quit [Remote host closed the connection]
setmeaway has joined #ruby-lang
stevechiagozie has joined #ruby-lang
postmodern has quit [Quit: Leaving]
yorickpeterse is now known as yorick-scum-mana
yorick-scum-mana is now known as agile-yorick
runeb has quit [Remote host closed the connection]
agile-yorick is now known as yorickpeterse
rue|w has quit [Remote host closed the connection]
quatauta has joined #ruby-lang
<zzak> good morning!
slyphon has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
rhalff has quit [Quit: Leaving]
relic has quit [Ping timeout: 245 seconds]
dafalcon has quit [Remote host closed the connection]
jxie has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
apeiros_ has quit [Remote host closed the connection]
quatauta has quit [Quit: Verlassend]
SkyEye has joined #ruby-lang
SkyEye has quit [Changing host]
SkyEye has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
lcdhoffman has joined #ruby-lang
wyhaines has joined #ruby-lang
io_syl has joined #ruby-lang
<unsymbol> zzak: morning
gaveen has quit [Ping timeout: 250 seconds]
akahn_ has left #ruby-lang [#ruby-lang]
akahn has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
SkyEye is now known as gaveen
faustman has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
faustman has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
imperator has joined #ruby-lang
gnufied has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
slyphon has joined #ruby-lang
banisterfiend has joined #ruby-lang
Mellett68 has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
ebouchut has joined #ruby-lang
apeiros_ has joined #ruby-lang
outoftime has joined #ruby-lang
chessguy has joined #ruby-lang
enebo has joined #ruby-lang
runeb has joined #ruby-lang
imajes has quit [Excess Flood]
dr_bob has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
imajes has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
cored has quit [Quit: leaving]
antbody has quit [Quit: leaving]
slyphon has quit [Ping timeout: 245 seconds]
dr_bob has left #ruby-lang [#ruby-lang]
slyphon has joined #ruby-lang
cirenyc has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
spinagon has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
jhn has joined #ruby-lang
sush24 has quit [Ping timeout: 248 seconds]
sush24 has joined #ruby-lang
Uranio has joined #ruby-lang
atadesk has joined #ruby-lang
briantrust has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<whitequark> yorickpeterse: by the way, I'm working now at SSA part of Furnace
<whitequark> any chances you'd need that?
imajes has quit [Excess Flood]
gnufied has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
imajes has joined #ruby-lang
lcdhoffman has joined #ruby-lang
dzhulk has joined #ruby-lang
ebouchut has joined #ruby-lang
ebouchut has quit [Client Quit]
ebouchut has joined #ruby-lang
s1n4 has joined #ruby-lang
s1n4 has quit [Client Quit]
gnufied has quit [Quit: Leaving.]
agarcia has quit [Quit: Konversation terminated!]
__BigO__ has joined #ruby-lang
<yorickpeterse> SSA?
zhul_mechanos has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
<yorickpeterse> also I'm off for a bit
nettsundere has quit [Read error: Operation timed out]
briantrust has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: leaving]
stevechiagozie has joined #ruby-lang
davidbalber|away is now known as davidbalbert
Mon_Ouie has quit [Ping timeout: 248 seconds]
davidbalbert is now known as davidbalber|away
topriddy has joined #ruby-lang
ryanlecompte has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
mutenewt has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dafalcon has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
atadesk has quit [Quit: Leaving.]
lele|w has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
rins has joined #ruby-lang
<imperator> yorickpeterse, you've been a bit off for a while now :-P
lcdhoffman has joined #ruby-lang
_br_ has quit [Excess Flood]
_br_ has joined #ruby-lang
stevechiagozie has quit [Quit: Lost terminal]
CaptainJet has joined #ruby-lang
_br_ has quit [Excess Flood]
sn0wb1rd has quit [Quit: sn0wb1rd]
_br_- has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
glebm has joined #ruby-lang
blazes816 has joined #ruby-lang
zmack has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
gregmoreno has joined #ruby-lang
__butch__ has joined #ruby-lang
burgestrand has joined #ruby-lang
shemerey has quit [Quit: Linkinus - http://linkinus.com]
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
breakingthings has quit []
Banistergalaxy has quit [Ping timeout: 255 seconds]
Banistergalaxy has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
sush24 has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
hahuang65 has joined #ruby-lang
loladiro has joined #ruby-lang
davidbalber|away is now known as davidbalbert
llaskin has joined #ruby-lang
cddr has joined #ruby-lang
cddr has quit [Remote host closed the connection]
havenn has joined #ruby-lang
stonerfish has joined #ruby-lang
Asher has joined #ruby-lang
runeb has joined #ruby-lang
jhn has quit [Quit: Page closed]
Uranio has quit [Quit: WeeChat 0.3.8]
lcdhoffman has quit [Quit: lcdhoffman]
topriddy has quit [Read error: No route to host]
davidbalbert is now known as davidbalber|away
lcdhoffman has joined #ruby-lang
mrsolo has joined #ruby-lang
rsl__ has left #ruby-lang [#ruby-lang]
rsl has joined #ruby-lang
alindeman has joined #ruby-lang
alindeman has left #ruby-lang ["/part"]
alindeman has joined #ruby-lang
rsl has quit [Changing host]
rsl has joined #ruby-lang
<rsl> test
<alindeman> rsl: You're here
<apeiros_> test failed. please reboot your system
<alindeman> Heh
alindeman has left #ruby-lang ["/part"]
<rsl> :D
hahuang65 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
swav has joined #ruby-lang
swav has quit [Ping timeout: 246 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
<imperator> rake test
<jaimef> if node[:env_pod].eql?("pod2") or eql?"pod2" # ?
<manveru> oO
<jaimef> ahh so second one. thx
<manveru> why on earth would you use eql?
<jaimef> you propose == ?
<manveru> uhm, yeah?
<manveru> hell, if you compare more than once, use case even
<jaimef> ahh style.
<jaimef> .eql can never be an assignment operator however
<manveru> why not?
<manveru> def eql?(foo); @x = foo; end
<jaimef> monkey patching aside
<jaimef> vs == getting written as =
<manveru> def ==(foo); @x = foo; end
<jaimef> yeah I could see how someone could mistakenly override .eql
<jaimef> :D
<manveru> if "pod2" == node[:env_pod]
<ericwood> whoa...assignment on an overriden == ?!
<manveru> also you can turn warnings on
<jaimef> if you remove one of the = obviously
<jaimef> you mad bro? :P
<ericwood> jaimef: ohhai
<manveru> xi ~ % ruby -we 'node = {}; if "pod2" = node[:env_pod]; end'
<manveru> -e:1: syntax error, unexpected '=', expecting keyword_then or ';' or '\n'
<manveru> actually, don't need warnings for that
<ericwood> I see assignment in an if statement
<manveru> yeah
<jaimef> manveru: so style is your point. ok
<manveru> no
<manveru> == and eql? are not the same
<epitron> [1] pry(main)> BigDecimal.new("0.29") * 100
<epitron> => 29.0
<epitron> lulz
<epitron> sorry, that was in response to something from hours ago
<epitron> (floating point discussion)
<ericwood> not going to lie, I don't like the naming convention of eql? vs. equal?
<ericwood> really seems like a stumbling block
<manveru> yeah, that sillyness comes from lisp
<ericwood> :(
<manveru> they have like 250 different forms of eql
<ericwood> I'm kind of glad I haven't needed either, I would have tripped and busted my face open
<jaimef> yeah they both yield different results on strings
<zzak> rb_equal, rb_eql, rb_obj_equal
<ericwood> if I'm understanding correctly, equal? is like comparing pointers
<manveru> xi ~ % ruby -e 'p [1.0 == 1, 1.0.eql?(1)]'
<manveru> [true, false]
<jaimef> and on strings?
briantrust has joined #ruby-lang
sepp2k has quit [Ping timeout: 245 seconds]
<manveru> what should it convert for strings?
faustman has quit [Ping timeout: 250 seconds]
<jaimef> simply put having to seek out the one difference in an entirely different class of object than the example given makes the point that they will both work in the context given., however there are known gotchas for int/float. thanks.
<manveru> ericwood: "Unlike ==, the equal? method should never be overridden by subclasses: it is used to determine object identity (that is, a.equal?(b) iff a is the same object as b).
<manveru> not only for int/float
<manveru> people almost never define eql?, but a lot define ==
<ericwood> yeah, I was just reading that SO answer
<jaimef> "that will work for this case but is ugly and nobody uses it"
<manveru> meh, use whatever you like, i probably won't have to use your code anyway :)
<ericwood> knock on wood
<ericwood> I'll go find you on github and submit pull requests :D
<manveru> i hardly use ruby these days, so probably true
<jaimef> thanks for the feedback it's welcomed.
<jaimef> if it's ugly it's wrong
<havenn> manveru: What do you use?
briantrust has quit [Remote host closed the connection]
<manveru> a lot of Go
Tabrenus has joined #ruby-lang
<manveru> i can't stand a lot of ruby code out there these days, people going insane with 100s of dependencies and bundler and crappy monkeypatches and no consideration for stdlib...
<havenn> manveru: Mmm, I've had fun looking at Go-esque libs in Ruby: https://github.com/igrigorik/agent and https://github.com/robgleeson/ichannel in particular.
<manveru> the rails mindset is slowly spreading all across the rubysphere
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
loladiro has quit [Quit: loladiro]
<jaimef> OH: "you mean rails comes with its own language?"
<manveru> yeah, it's called yaml :P
<mistym> manveru: Yeah, I see so many people who learn "rails" and not so much "ruby"
<havenn> manveru: I haven't noticed that trend. I've seen a ton of dependency-less gems focused on minimalism lately. Guess there are both.
<jaimef> yaml > xml/json imho until you view diffs of it
<manveru> anw, still hopeful i can find a job that involves ruby without rails... but the job market doesn't really show me much in that direction
<zzak> manveru: i love the stdlib
<manveru> zzak: #ruby-lang is one of the last bastions of hope :)
<zzak> i just finished a major documentation patch for IRB, and submitted 3 commits for review for some bugs i found in IRB::Inspector, InputMethod and SLex
<manveru> havenn: what gems do you think of?
<havenn> manveru: I guess just then I was thinking of xpool, ichannel, and agent.
<havenn> manveru: Cause you mentioned Go! :P
<manveru> :)
AndChat| has joined #ruby-lang
sepp2k has joined #ruby-lang
AndChat- has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 252 seconds]
<naquad> how do i generate a gemspec file from Gem::Specification instance?
briantrust has joined #ruby-lang
loladiro has joined #ruby-lang
AndChat| has quit [Ping timeout: 252 seconds]
Tabrenus has quit [Quit: Tabrenus]
mutenewt has quit [Quit: WeeChat 0.3.5]
davidbalber|away is now known as davidbalbert
ebouchut has quit [Quit: This computer has gone to sleep]
briantrust has quit [Remote host closed the connection]
<naquad> can i somehow tell rdoc to don't process specific files?
outoftime has quit [Quit: Leaving]
sailias has quit [Ping timeout: 265 seconds]
<zzak> naquad: re rdoc you can use :stopdoc:
<zzak> or :nodoc: the class/module/method
<naquad> thats a binary file
<naquad> executable
cirenyc has quit [Quit: Leaving...]
<zzak> oh
CaptainJet has joined #ruby-lang
<zzak> you want rdoc task then
<whitequark> zzak: I particularly like how yard ignores all :nodoc: and :stopdoc: directives
<zzak> naquad: is it for a gem?
breakingthings has joined #ruby-lang
<zzak> whitequark: i havent used yard
<naquad> zzak, yes
<zzak> can i see?
<whitequark> zzak: well, rdoc.info >>> every other ruby documentation site, combined
<zzak> whitequark: really? better than the source?
ottbot has quit [Quit: WeeChat 0.3.9.2]
<whitequark> zzak: *website
loladiro has quit [Quit: loladiro]
m3nd3s has quit [Remote host closed the connection]
<zzak> personally i dont like iframes, but i would prefer to read the source or rdoc/ri first
<zzak> that is my opinion however
bradland has joined #ruby-lang
bondar has joined #ruby-lang
bondar has quit [Client Quit]
<imperator> manveru, same boat here (ruby w/o rails)
GarethAdams has joined #ruby-lang
loladiro has joined #ruby-lang
GarethAdams has quit [Client Quit]
<zzak> i think devops would be the way to go in that case
loladiro has quit [Client Quit]
tenderlove has joined #ruby-lang
CaptainJet has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<drbrain> naquad: rdoc should detect and ignore binary files automatically
<naquad> drbrain, in my case it doesn't
kurko_ has joined #ruby-lang
<naquad> rdoc_options -x libexec/.*
neocoin has quit [Remote host closed the connection]
<naquad> helped
<drbrain> naquad: … is it reading a binary file or a ruby executable file (#!)?
<naquad> drbrain, real executable
<naquad> wkhtmltopdf
<drbrain> huh, how odd
<drbrain> naquad: you can also touch libexec/.document and RDoc will ignore the directory without needing to remember -x
<naquad> hm, thanks. helped too
thorncp_ is now known as thorncp
bluepojo has joined #ruby-lang
<zzak> drbrain: i was looking for documentation on that
<drbrain> it might be missing :/
<zzak> aactually think i found it
<zzak> RDoc::DOT_DOC_FILENAME http://screencloud.net/v/9EuU
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
<llaskin> https://gist.github.com/4355292 is there any way to do something like what I describe in the gist?
gaveen has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
nerd has quit [Read error: Operation timed out]
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
<drbrain> llaskin: a) you need to use identifiers that start with uppercase letters for class names
<drbrain> b) inheritance lets you do C.new.foo
loladiro has joined #ruby-lang
imajes has joined #ruby-lang
gregmore_ has joined #ruby-lang
atadesk has joined #ruby-lang
atadesk has left #ruby-lang [#ruby-lang]
sush24 has quit [Read error: Connection reset by peer]
gregmoreno has quit [Ping timeout: 244 seconds]
<llaskin> c.new.foo?
<llaskin> foo is part of b....
<llaskin> you mean c.new.bar?
ebouchut has joined #ruby-lang
<llaskin> is there any way to do a.new.foo?
spinagon has quit [Ping timeout: 248 seconds]
<drbrain> oh, yes, you can't do C.new.foo, I misread your inheritance
<drbrain> there is no way to do A.new.foo
<drbrain> llaskin: what you want is a misuse of inheritance
sush24 has joined #ruby-lang
loladiro has quit [Quit: loladiro]
holgerno has joined #ruby-lang
srbaker has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
slyphon has quit [Ping timeout: 245 seconds]
lsegal has joined #ruby-lang
nerd has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
<manveru> what you want is modules
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
<manveru> zzak: know anybody who hires?
rcvalle has quit [Quit: Leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
guns has joined #ruby-lang
swav has joined #ruby-lang
mpan has joined #ruby-lang
rcvalle has joined #ruby-lang
AndChat- has quit [Ping timeout: 252 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
sush24 has quit [Quit: Leaving]
sheerun has quit [Ping timeout: 240 seconds]
tenderlove has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby-lang
sheerun has joined #ruby-lang
bluepojo has left #ruby-lang [#ruby-lang]
codewrangler has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 255 seconds]
benanne has joined #ruby-lang
benanne has quit [Read error: Connection reset by peer]
loladiro has joined #ruby-lang
tdy has joined #ruby-lang
shemerey has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
nibbo has quit [Read error: Operation timed out]
mistym has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
workmad3 has joined #ruby-lang
m3nd3s has joined #ruby-lang
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
vlad_starkov has joined #ruby-lang
holgerno has quit [Quit: Leaving...]
holgerno has joined #ruby-lang
holgerno has quit [Client Quit]
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
llaskin has quit [Quit: Leaving.]
chessguy has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
llaskin has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
Tabrenus has joined #ruby-lang
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
davidboy___ has left #ruby-lang [#ruby-lang]
ryanf_ has quit [Quit: broken pipes |||]
gregmoreno has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
burgestrand1 has joined #ruby-lang
burgestrand has quit [Ping timeout: 244 seconds]
burgestrand1 has quit [Client Quit]
rins has left #ruby-lang [#ruby-lang]
ebouchut has quit [Quit: This computer has gone to sleep]
lcdhoffman has quit [Quit: lcdhoffman]
Tabrenus has quit [Quit: Tabrenus]
kain has joined #ruby-lang
lcdhoffman has joined #ruby-lang
agile has quit [Remote host closed the connection]
faustman has joined #ruby-lang
aedorn has quit [Quit: Leaving]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
atadesk has joined #ruby-lang
atadesk has quit [Client Quit]
runeb has quit [Remote host closed the connection]
bradland has quit [Quit: bradland]
swav has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
slyphon_ has joined #ruby-lang
<tenderlove> ged: ping!
lcdhoffman has quit [Quit: lcdhoffman]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<apeiros_> tenderlove: just seeding an idea - order("? ?", params[:order_by_column], params[:order_direction]) (currently not possible due to order(*args))
slyphon_ has quit [Ping timeout: 245 seconds]
dzhulk has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 256 seconds]
rsl has joined #ruby-lang
<zenspider> apeiros_: not now. dealing with shit.
rsl has quit [Client Quit]
rsl has joined #ruby-lang
ryanf has joined #ruby-lang
guns has quit [Quit: guns]
slyphon_ has joined #ruby-lang
dzhulk has joined #ruby-lang
<zenspider> chris2: congrats on bacon release
<chris2> ;) thanks
<ryanf> oh, awesome, didn't know there was a bacon release
AndChat| has joined #ruby-lang
<chris2> one day i'll write a third testing framework
<apeiros_> zenspider: as said, just seeding an idea
<apeiros_> but good luck @ shit to be dealt with
cirenyc has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 252 seconds]
anannie has joined #ruby-lang
<cirenyc> Given a hash of key/value pairs, how can I filter an array of objects for one that responds to each key with the matching value?
<chris2> array.find_all { |object| hash.all? { |k,v| object.__send__(k) == v } }
<zenspider> __send__ seems like overkill... and I'd add a respond_to?(k) first
<tenderlove> apeiros_: ya, I like that too. tbh, I'd prefer we get rid of the *args bs
<chris2> array.find_all { |object| hash.all? { |k,v| object.__send__(k) == v } rescue false }
<chris2> __send__ only is overkill if object isn't an activerecord :P
<zenspider> most objects aren't
<cirenyc> chris2: It's a plain object
<zenspider> rescue false... tsk tsk
<chris2> most objects arent compared to hash methods either :P
runeb has joined #ruby-lang
<zenspider> ah. good. minor differences in the tests between minitest/bacon and bacon
<chris2> hm?
<chris2> we do nested contexts now. not much else should change
imperator has quit [Read error: Connection reset by peer]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
imperator has joined #ruby-lang
<zenspider> I passed all the new tests w/o changes... so that's good
<chris2> ok
breakingthings has quit []
<zenspider> still have a bug with bare should.x lines... hard to figure that one out because teh object inspects are so ugly
<zenspider> the
<chris2> what test fails?
<zenspider> and I don't support multiple before/after in a single context... but that's the only real difference
<zenspider> this: should.raise(Interrupt) { raise "Error" }
davidbalbert is now known as davidbalber|away
<zenspider> and the equivalent for throw
<chris2> ah yeah
<zenspider> I think I'm doing something different with my top level should from bacon's
<zenspider> I'm getting an anon class bitching about not having raise?
<zenspider> NoMethodError: undefined method `raise?' for #<#<Class:0x10dffae98>:0x10dfd6e30>
<chris2> its not a toplevel should
<chris2> but a bacon context should
Hakon has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<zenspider> I implemented the shared behavior as modules :P
<chris2> possible :)
<chris2> i think the whole .should stuff is too magic by now :P
davidbalber|away is now known as davidbalbert
runeb has quit [Ping timeout: 245 seconds]
<zenspider> yeah. I was only doing this as a POC in response to the tweets about minitest/spec adding too many methods to Object
<zenspider> which I think is horseshit. but whatever. easy to show that it is flexible enough to do whatever you want
<chris2> well, bacon adds a few global method
<chris2> but they are hardly controversal imo
<zenspider> *nod*
<chris2> people using activesupport should shut up ;)
<chris2> but the should proxy is too magic
<zenspider> hah. so true
solars has quit [Ping timeout: 250 seconds]
<chris2> it looked kinda nice tho
vlad_starkov has quit [Ping timeout: 252 seconds]
<zenspider> in some ways bacon is messier than minitest/spec since I prefix my methods must/wont and bacon adds extra predicate methods ... but either way... yeah. activesupport invalidates all
<zenspider> it does look nice. one entry point is pretty
<chris2> yeah
<zenspider> I don't like the indirection personally, but it is only 1/2 hops off so it's still easy to debug. rspec is just WAY too hard for me to follow
<zenspider> I'm simply not smart enough
<chris2> oh, bacon is easy to debug
<zenspider> very
<chris2> in doubt you add a few p to the tests :P
<zenspider> hah
<chris2> but i feel it still contains too many antipatterns
<zenspider> so... that test. should it have :depth zero and be hitting #it instead?
<chris2> e.g. i think after/before suck
<chris2> zenspider: it hits the should in context
<zenspider> I didn't like that you have multiple. I just map to setup/teardown methods so you only get one
<zenspider> right... but that looks like it either hits it or supers
<chris2> erm
<chris2> yeah
<zenspider> and I'm guessing it is hitting it
<chris2> it supers
<chris2> depth == 0 is block definition
<zenspider> da fuck...
<chris2> ah yes
<chris2> but!
<chris2> the .raise? method is in context :)
<zenspider> I MUST be doing something tweaky somewhere
<zenspider> so my should returns a ValueMonad instance... that has raise? defined... but my method missing is on some anon class instance... grrr
slyphon_ has quit [Ping timeout: 244 seconds]
<chris2> i dont make anon classes ;)
<rue> Monad mentioned
<zenspider> this error message is way less than helpful. I can't figure out where the fuck it is
Hakon has quit [Quit: Leaving...]
davidbalbert is now known as davidbalber|away
<zenspider> ooooh... it's self at the time of the should. fucking implied reciever
<zenspider> right. need block support reversal or something
Hakon has joined #ruby-lang
<chris2> dont you have a @ctx if you map to methods or something?
judofyr has quit [Ping timeout: 252 seconds]
Hakon has quit [Ping timeout: 264 seconds]
swav has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
<zenspider> chris2: what do you mean by map to methods?
<chris2> well, you make every it/should a method, no?
davidbalber|away is now known as davidbalbert
<zenspider> it, yes. should, no
<chris2> well, top-level should
<chris2> is it
<chris2> bacon never does that
<chris2> so my self is the context, and yours is the instance
<zenspider> *nod*
<chris2> so you need to define the raise? somewhere else
Weems has joined #ruby-lang
runeb has joined #ruby-lang
srbaker has joined #ruby-lang
swav has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
slyphon_ has joined #ruby-lang
AndChat| has quit [Ping timeout: 252 seconds]
<zenspider> ooookay... I made a subclass of ValueMonad called SelfMonad that points at itself. Then I made #should on Spec return a new SelfMonad
<zenspider> now I pass all tests (that I want to pass)
<zenspider> 12 diffs against your main test file
<cirenyc> Trying to figure what in this gem is causing the attributes hash to be changed: https://github.com/nicotaing/yaml_record/blob/master/lib/yaml_record/base.rb#L302
<cirenyc> If I have data = { blah: "blah" } and pass that in to SomeClass.create(data), the next time I print data it's a different hash.
<zenspider> OMG I LOVE BASE. I WISH EVERYTHING WERE NAMED BASE
runeb has quit [Ping timeout: 246 seconds]
<chris2> ^^
<zenspider> cirenyc: different hash or it has different stuff?
<zenspider> look at the object_id
<zenspider> cirenyc: yeah. same hash... different contents.
<zenspider> needs to dup at the very least
<cirenyc> yes, same object_id
<cirenyc> but what in that code is causing it to change?
<zenspider> chris2: you have 2 regexp tests commented out
<zenspider> cirenyc: symbolize_keys! at the very least
<zenspider> chris2: they prolly shouldn't be. I'm guessing they pass fine
<cirenyc> ah, okay. interesting...thanks.
<chris2> where?
<chris2> ah
<chris2> i think that was a warning in ruby 1.8?
<zenspider> maybe 1.9... I'm testing against 1.8 and I'm clean
<zenspider> testing against 1.9...
<zenspider> hrm... nope
<zenspider> now... I just need an assertion count and I'm golden. :P
<imperator> all your base belong to us zenspider
<zenspider> imperator: pretty much.
<chris2> >> "foo" =~ "foo"
<chris2> TypeError: type mismatch: String given
<zenspider> huh
<zenspider> maybe I'm passing less than I think I am :P
<zenspider> I'll let you know once I wire up the assertion count :P
<chris2> i think it fails for the wrong reason
<chris2> why does both String =~ Regexp and Regexp =~ String btw?
<zenspider> why do they exist? or?
<zenspider> I assume just so you don't have to bother thinking about it.
<chris2> its very confusing
<blazes816> to not have to think about it?
<chris2> since only regexp =~ string creates local bindings for match names
<chris2> but case uses string =~ regexp
<blazes816> that's interesting, I did not realize that
<chris2> and heck, how did one trigger that warning "string given, regexp expected"?
<zenspider> i figured one would just be a double dispatch to the other, no?
<chris2> not for local variables
<zenspider> huh.
<zenspider> shows what I know
Teddy2steper has joined #ruby-lang
<zenspider> chris2: tenderlove has doubts about that
<tenderlove> lol
<zenspider> I have yet to test the theory tho
<chris2> you didnt know: /(?<foo>...)spider/ =~ "zenspider"; foo.should.equal "zen"
<zenspider> I barely ever use 1.9 honestly
<chris2> i barely use ruby these days :P
<zenspider> I test against it so my fucking strings encode. that's about it
<zenspider> encodings turn me off
<chris2> (i use 1.9 only tho)
zhul_mechanos has quit [Quit: zhul_mechanos]
<zenspider> chris2: what's the point of spec_nontrue.rb ? specifically... what's the point of top-level shoulds ?
FiXato has quit [Ping timeout: 276 seconds]
<chris2> for use in irb or xmp
srbaker has quit [Quit: Computer has gone to sleep.]
<zenspider> === Differences with Bacon:
<zenspider> * Object#should doesn't work outside of describe. Not sure what that's for.
<zenspider> * Tests are no longer order dependent. This is a Good Thing™.
<zenspider> * Only one before/after block per describe (ie, they're just methods again).
<zenspider> so... not bad
nick_h has quit [Read error: Operation timed out]
<tenderlove> minibacon?
<chris2> its bigger than bacon :P
codewrangler has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zenspider> NO IT IS NOT
<zenspider> I'm less than half the size!
swav has quit [Ping timeout: 252 seconds]
<tenderlove> bacontest?
spuk has joined #ruby-lang
<tenderlove> unit bacon?
<tenderlove> actually, I like "bacon unit"
<zenspider> I'll give you a bacon unit
<tenderlove> sounds like an emergency bacon delivery system
<zenspider> I'll give you an emergency bacon delivery system...
<tenderlove> ok
<chris2> nanobacon