apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
workmad3 has quit [Ping timeout: 260 seconds]
sebasoga_ has quit [Quit: Computer has gone to sleep.]
L4mppu has joined #ruby-lang
tonni has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
DEac- has quit [Read error: Connection reset by peer]
justinra_ has quit [Remote host closed the connection]
rsl has quit [Quit: Computer has gone to sleep.]
mytrile_ has joined #ruby-lang
mytrile has quit [Read error: Operation timed out]
DEac- has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
mrsolo has quit [Quit: Leaving]
Stilo has joined #ruby-lang
kogent has quit [Quit: kogent]
tenderlove has joined #ruby-lang
mytrile_ has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
pepper_chico has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Remote host closed the connection]
xxaM has quit [Ping timeout: 260 seconds]
L4mppu has quit [Quit: Leaving]
sarclops___ has joined #ruby-lang
v0yager has quit [Remote host closed the connection]
cecillem has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
kurko__ has joined #ruby-lang
lsegal` has joined #ruby-lang
nertzy2 has joined #ruby-lang
banisterfiend has joined #ruby-lang
lsegal` has quit [Client Quit]
nertzy3 has quit [Read error: Operation timed out]
cecillem has quit [Ping timeout: 256 seconds]
sailias has joined #ruby-lang
dustint has joined #ruby-lang
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
lcdhoffman has quit [Quit: lcdhoffman]
mistym has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
ddd_ has quit [Quit: Lost terminal]
nguerin has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
pellis has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
pepper_chico has joined #ruby-lang
glebm has joined #ruby-lang
dhruvasagar has joined #ruby-lang
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
bzalasky has joined #ruby-lang
sarclops_ has joined #ruby-lang
sarclops___ has quit [Ping timeout: 252 seconds]
xxaM has joined #ruby-lang
pepper_chico has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
megha has quit [Quit: WeeChat 0.4.0]
bluepojo_ has joined #ruby-lang
sarclops___ has joined #ruby-lang
methods has joined #ruby-lang
chendo_ has quit [Ping timeout: 256 seconds]
bluepojo has quit [Ping timeout: 245 seconds]
sarclops_ has quit [Ping timeout: 244 seconds]
chessguy has quit [Remote host closed the connection]
bluepojo_ has quit [Ping timeout: 256 seconds]
chendo_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
pepper_chico has joined #ruby-lang
dhruvasagar has joined #ruby-lang
pellis has quit [Quit: Leaving]
kurko__ has quit [Quit: Computer has gone to sleep.]
kurko__ has joined #ruby-lang
pepper_chico has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
nazty has joined #ruby-lang
chendo_ has quit [Ping timeout: 255 seconds]
glebm has quit [Ping timeout: 252 seconds]
sarclops___ has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Brainix has quit [Quit: Brainix]
Stilo has joined #ruby-lang
cstrahan has quit [Ping timeout: 260 seconds]
nXqd has quit [Ping timeout: 248 seconds]
methods has left #ruby-lang [#ruby-lang]
bluepojo has joined #ruby-lang
glebm has joined #ruby-lang
tylersmith has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
dustint has quit [Ping timeout: 248 seconds]
sailias has quit [Quit: Leaving.]
rwjblue_ has quit [Read error: Operation timed out]
rwjblue has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
cecillem has joined #ruby-lang
cstrahan has joined #ruby-lang
anildigital_work has quit [Ping timeout: 240 seconds]
zprnorgan has quit [Ping timeout: 246 seconds]
bluepojo has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 245 seconds]
kurko__ has quit [Quit: Computer has gone to sleep.]
xalei has joined #ruby-lang
nXqd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 264 seconds]
yianna has joined #ruby-lang
yianna is now known as ykk
ryanf has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
glebm has quit [Ping timeout: 252 seconds]
firefux has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
cecillem has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
linc01n has quit [Quit: ZNC - http://znc.in]
dhruvasagar has joined #ruby-lang
linc01n has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tesseract has quit [Quit: tesseract]
linc01n has quit [Ping timeout: 245 seconds]
ykk has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
hasimo-t has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
davidbalber|away is now known as davidbalbert
amerine has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Weems has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
xxaM has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
soypirate has quit [Ping timeout: 256 seconds]
amerine has joined #ruby-lang
jonahR has joined #ruby-lang
amerine has quit [Client Quit]
Xzyx987X has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 256 seconds]
Xzyx987X_ has quit [Ping timeout: 240 seconds]
anildigital_work has joined #ruby-lang
bzalasky has joined #ruby-lang
knu has quit [Ping timeout: 256 seconds]
knu has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
amerine has joined #ruby-lang
bryno has quit [Ping timeout: 256 seconds]
bryno has joined #ruby-lang
Qfwfq has quit [Ping timeout: 264 seconds]
kgrz has joined #ruby-lang
jacky has quit [Excess Flood]
davidbalbert is now known as davidbalber|away
amerine has quit [Quit: Computer has gone to sleep.]
bzalasky has joined #ruby-lang
lsegal` has joined #ruby-lang
lcdhoffman has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 258 seconds]
mbull9 has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
aquaman has quit [Ping timeout: 258 seconds]
brianpWins has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
Asher1 has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
fuzzy8balls has quit [Ping timeout: 256 seconds]
Qfwfq has left #ruby-lang [#ruby-lang]
fuzzy8balls has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Asher1 has quit [Client Quit]
Asher has joined #ruby-lang
xxaM has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Ping timeout: 264 seconds]
kgrz has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
<rue> A bot?
lcdhoffman has quit [Quit: lcdhoffman]
rippa has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Read error: No route to host]
jacky- has joined #ruby-lang
cstrahan has quit [Ping timeout: 264 seconds]
lsegal` has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lsegal has joined #ruby-lang
jg has joined #ruby-lang
ruby-lang121 has joined #ruby-lang
kgrz has joined #ruby-lang
dc5ala has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
tomzx_mac has quit [Ping timeout: 245 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ruby-lang121 has quit [Quit: Page closed]
linc01n has quit [Quit: ZNC - http://znc.in]
fire has joined #ruby-lang
linc01n has joined #ruby-lang
ruby-lang939 has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
amerine has joined #ruby-lang
skade has joined #ruby-lang
jashank has quit [Excess Flood]
jashank has joined #ruby-lang
fragamus has joined #ruby-lang
ruby-lang939 has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
fragamus has quit [Client Quit]
<TTilus> u think im?
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
kain has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 248 seconds]
mixandgo has joined #ruby-lang
mixandgo has quit [Client Quit]
mixandgo has joined #ruby-lang
ryanf has joined #ruby-lang
faces has quit [Ping timeout: 246 seconds]
face has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
S3kx has quit [Ping timeout: 264 seconds]
ryanf has quit [Ping timeout: 240 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
jg has quit [Ping timeout: 245 seconds]
jg has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
jacky- has left #ruby-lang [#ruby-lang]
jacky has joined #ruby-lang
havenwood has joined #ruby-lang
ryanf has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
justinram has joined #ruby-lang
tbuehlmann has joined #ruby-lang
mytrile has joined #ruby-lang
justinram has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
io_syl has quit [Ping timeout: 256 seconds]
JoelMcCracken has quit [Ping timeout: 245 seconds]
cored has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby-lang
L4mppu has joined #ruby-lang
cored has joined #ruby-lang
sepp2k has joined #ruby-lang
mixandgo has quit [Quit: mixandgo]
jashank has quit [Changing host]
jashank has joined #ruby-lang
workmad3 has joined #ruby-lang
tbuehlmann has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc> how do you run a rake task in a particular directory if you have to specify the path to the rake executable
<savagecroc> .e.g
<savagecroc> cd /some/path/to/bla && /bla/bla/bla/rake my:rake:task PARAMS=etc
tbuehlmann has joined #ruby-lang
<savagecroc> problem is i'm trying to do it a cron job and it doesn't like the cd bit
havenwood has quit [Read error: Connection reset by peer]
crazyhorse has joined #ruby-lang
<crazyhorse> sorry dropped out
<crazyhorse> anyone?
nXqd has quit [Ping timeout: 255 seconds]
savagecroc has quit [Ping timeout: 256 seconds]
<darix> crazyhorse: put a wrapper script around it?
<darix> call wrapper script from cron
kgrz has quit [Quit: Computer has gone to sleep.]
<darix> or
<darix> make it a thor task and chdir in there
<darix> but i would go with the wrapper script
<crazyhorse> ohh oh i think i need to set --rakefile /path/to/rake/file
<crazyhorse> i'd prefer not to have a wrapper script for something so simple
kgrz has joined #ruby-lang
ryanf has joined #ruby-lang
<darix> yeah 2 line wrapper script is definitely a lot of work to maintain
crazyhorse has quit [Ping timeout: 252 seconds]
ryanf has quit [Ping timeout: 276 seconds]
tbuehlmann has quit [Ping timeout: 256 seconds]
brianpWins has quit [Quit: brianpWins]
io_syl has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Remote host closed the connection]
benanne has joined #ruby-lang
kain has joined #ruby-lang
zavier has joined #ruby-lang
maxmanders has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kain has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby-lang
MaddinXx has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
Evanescene has joined #ruby-lang
Evanescene has left #ruby-lang [#ruby-lang]
justinram has joined #ruby-lang
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
jg has quit [Read error: Operation timed out]
gustavnils has joined #ruby-lang
justinram has quit [Remote host closed the connection]
nyuszika7h has joined #ruby-lang
marr has joined #ruby-lang
adambeynon has joined #ruby-lang
jonahR has quit [Quit: jonahR]
Banistergalaxy has joined #ruby-lang
xxaM has quit [Remote host closed the connection]
glebm has joined #ruby-lang
fgsfdsfgsfds has joined #ruby-lang
zavier has quit [Quit: WeeChat 0.3.8]
zavier has joined #ruby-lang
tonni_ has joined #ruby-lang
mixandgo has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
glebm has quit [Quit: Computer has gone to sleep.]
jsaak has quit [Ping timeout: 255 seconds]
simi has joined #ruby-lang
Stilo has joined #ruby-lang
jsaak has joined #ruby-lang
jxie has quit [Quit: leaving]
fgsfdsfgsfds has quit [Read error: No route to host]
wmoxam has joined #ruby-lang
justinram has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Read error: Operation timed out]
toretore has joined #ruby-lang
toretore has quit [Client Quit]
dhruvasagar has joined #ruby-lang
toretore has joined #ruby-lang
glebm has joined #ruby-lang
fire has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
baba has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<soahccc> Is there a way to get the functionality of the method method in a BasicObject?
<soahccc> I found out how to mimic respond_to? but I want to call something where the arity doesn't matter so just send the method will result in exceptions
<sepp2k> soahccc: You should be able to use instance_method on the singleton class and then bind that to the object.
<soahccc> Interesting that that method is actually unbound
sailias has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
<soahccc> sepp2k: But it works, thank you :) I always think "yeah I can just... well there is no such method >:(" =)
<apeiros_> sepp2k: hu? what? how?
<sepp2k> apeiros_: Could you rephrase that question please? :p
<apeiros_> ah, you mean to emulate the 'method' method, not to actually use the original
<sepp2k> Right.
<apeiros_> too sad
* apeiros_ still wants that `Introspection` module which would be able to perform all introspective things on all objects, even BasicObject
<soahccc> apeiros_: I basically needed a pretty bare BasicObject but I had to add some helpers to make it more usable for my purposes :)
nXqd has joined #ruby-lang
<sepp2k> apeiros_: That'd be awesome. Personally I think all the Object methods that aren't meant to be overridden should not have been instance methods in the first place. That way BasicObject wouldn't even have been necessary.
<sepp2k> Or maybe it would still have been necessary. But at least it would have been nicer to use.
<soahccc> The whole super/meta/whatever class is a bit confusing :) F5DD with pry
<apeiros_> well, I find the idea of a bare object class and a convenient "standard" object class ok
<apeiros_> but there should be a place where core functionality is "backed up"
<apeiros_> i.e. if you don't know what you're dealing with, you should use that fallback instead of relying on people not overriding stuff
<soahccc> My first approach was to alias methods of an normal object and then undefine the rest
tbuehlmann has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
<soahccc> sepp2k: Hmm but it does complain about the arity... Do I have to implement it myself then?
<sepp2k> soahccc: Can you pastie the code and error message?
dhruvasagar has joined #ruby-lang
mixandgo has quit [Ping timeout: 245 seconds]
mixandgo has joined #ruby-lang
apeiros_ has quit []
jsaak has quit [Ping timeout: 252 seconds]
mytrile has joined #ruby-lang
<sepp2k> soahccc: Your setup method doesn't take any arguments, but you're calling it with one.
<sepp2k> Specifically you call it with options as the argument.
<sepp2k> *opts
<soahccc> sepp2k: yeah I know :) the normal method method gives me a proc which does not care about the arity
maxmanders has quit [Quit: Computer has gone to sleep.]
<sepp2k> Not true.
<sepp2k> "la".method(:length).call(42) gives an ArityError, too.
<soahccc> Hmm than I made a big wrong assumptions :S
<soahccc> Can I somehow make it this way or do I have to handle it myself? slice the arguments to the arity
kalleth has quit [Remote host closed the connection]
Elliot_ has joined #ruby-lang
<sepp2k> soahccc: I think you'll have to do it yourself.
<sepp2k> Note that you don't actually need to use method at all - you can just call setup() directly.
<soahccc> sepp2k: yeah I thought the difference is that I get a proc which does not care about the arity but this was false
<soahccc> Then I try to implement it myself, thanks for the help and directions
Elliot_ has left #ruby-lang [#ruby-lang]
<sepp2k> No problem.
Elliot_ has joined #ruby-lang
kalleth has joined #ruby-lang
eb has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasagar has joined #ruby-lang
Elliot_ has left #ruby-lang [#ruby-lang]
soypirate has joined #ruby-lang
Elliot_ has joined #ruby-lang
Elliot_ has left #ruby-lang [#ruby-lang]
Elliot_ has joined #ruby-lang
<Elliot_> Hi! Anyone have a moment to help a newbie get started with Sinatra?
eb has quit [Quit: Page closed]
<tbuehlmann> Elliot_, you're welcome in #sinatra
Elliot_ has quit [Remote host closed the connection]
Elliot_ has joined #ruby-lang
<Elliot_> (Sorry, my client crashed)
<tbuehlmann> Elliot_, you're welcome in #sinatra
<Elliot_> Thanks!
Elliot_ has left #ruby-lang [#ruby-lang]
jsaak has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
s1n4 has joined #ruby-lang
jsaak has quit [Read error: Operation timed out]
s1n4 has quit [Client Quit]
s1n4 has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
ddd has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
glebm has quit [Ping timeout: 252 seconds]
scottschecter has joined #ruby-lang
cube526 has joined #ruby-lang
mbull9 has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
shirokuro11 has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
glebm has joined #ruby-lang
cube526 has quit [Quit: Bye]
zprnorgan has joined #ruby-lang
maxmanders has joined #ruby-lang
jsaak has joined #ruby-lang
tomzx_mac has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
mbull9 has quit [Remote host closed the connection]
Stilo has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
Aria has joined #ruby-lang
jsaak has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
banister_ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mbull9 has joined #ruby-lang
mbull9 has quit [Remote host closed the connection]
shirokuro11 has joined #ruby-lang
melter has quit [Remote host closed the connection]
ykk has joined #ruby-lang
sush24 has joined #ruby-lang
<ykk> Hey Everyone, with mechanize using the method links_with can I target it by css selector or div id?
<ykk> am new to programming so if there's a way for me to look that up and someone can show me I would be grateful
<ykk> am reading the guide on github and rubyforge but am embarassingly lost
soypirate has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby-lang
kain has joined #ruby-lang
__Big0__ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
__Big0__ has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
kgrz has joined #ruby-lang
swav has quit [Remote host closed the connection]
Vektur has joined #ruby-lang
mytrile has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 264 seconds]
swav has joined #ruby-lang
dekroning has joined #ruby-lang
<dekroning> hi
<dekroning> I would like to write a test case, to test wether my application can execute system commands. But I was wondering what would be a good aproach? My initial thought was to put a message expectiation on my object doing the execution, but that doesn't really verify anything much. Would it be ok to just test some output from a system utility and assert that it was executed?
<dekroning> I was also thinking about an output argument, but afaik they are evil right ? :-) or is this the exception to the case?
jsaak has joined #ruby-lang
jxie has joined #ruby-lang
srbaker has joined #ruby-lang
jsaak has quit [Read error: Operation timed out]
glebm has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
beiter has joined #ruby-lang
workmad3 has joined #ruby-lang
kevinfagan has joined #ruby-lang
wyhaines has joined #ruby-lang
wobblini has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
kennyvb has quit [Quit: ZNC - http://znc.in]
kennyvb has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jsaak has joined #ruby-lang
crackit__ has joined #ruby-lang
justinram has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Client Quit]
beiter has quit [Quit: beiter]
AndChat| has joined #ruby-lang
davidbalber|away is now known as davidbalbert
Banistergalaxy has quit [Ping timeout: 252 seconds]
jg_ has joined #ruby-lang
Stilo has joined #ruby-lang
<andrewvos> dekroning: yeah test the output, or better yet, test that it does what you want ut to do
Aria has quit [Remote host closed the connection]
<andrewvos> #should_receive is a crock of shit
<andrewvos> Basically with expectations you just test that your code does what you think it should do, not what it really has to do.
<andrewvos> And you end up having to manual test it too.
kurko__ has joined #ruby-lang
<andrewvos> drbrain and zenspider changed my thoughts on that sort of shit a while ago, and I am much more productive as a result.
jacktrick has joined #ruby-lang
s1n4 has quit [Quit: leaving]
irmbrady has joined #ruby-lang
benlovell has quit [Quit: Zzz]
JohnBat26 has joined #ruby-lang
<whitequark> andrewvos: well you still need should_receive and friends
<whitequark> but. in unit tests, you only ever mock things external to your code.
<whitequark> say stuff provided by users.
<whitequark> or I/O.
havenwood has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
yankeefan04 has joined #ruby-lang
srbaker has joined #ruby-lang
kurko__ has quit [Quit: Computer has gone to sleep.]
blklane has joined #ruby-lang
yankeefan04 has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
wmoxam has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 240 seconds]
ryanf has joined #ruby-lang
blklane has left #ruby-lang [#ruby-lang]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jacktrick has quit [Quit: Leaving]
kurko__ has joined #ruby-lang
lsegal has joined #ruby-lang
ryanf has quit [Ping timeout: 255 seconds]
yankeefan04 has joined #ruby-lang
ykk has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
bzalasky has joined #ruby-lang
sidjayanna has joined #ruby-lang
symm- has joined #ruby-lang
sidjayanna has quit [Quit: sidjayanna]
wmoxam has quit [Ping timeout: 245 seconds]
yankeefan04 has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
io_syl has joined #ruby-lang
bzalasky has joined #ruby-lang
ykk has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
<andrewvos> whitequark: It can be useful but I prefer to write my own mocks.
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<whitequark> andrewvos: well that doesn't change the fact that it's a mock
<andrewvos> whitequark: Also, integration tests are a bit better that that, because you can see when something external changes behaviour.
<andrewvos> whitequark: No it doesn't. Just stating preference.
<andrewvos> Where are you from whitequark?
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
yankeefan04 has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
<whitequark> andrewvos: Russia
<whitequark> Moscow
pkrnj has joined #ruby-lang
<whitequark> did you just look at my WHOIS data?
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
postmodern has quit [Quit: Leaving]
bzalasky has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 240 seconds]
skbierm has joined #ruby-lang
<andrewvos> Nope but I guessed you were from Russia.
mistym has quit [Remote host closed the connection]
banister_ has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<andrewvos> I have heard Moscow is quite beautiful. Is this true?
<banisterfiend> whitequark: the dashcam gave u away
<andrewvos> haha
pepper_chico has quit [Quit: Computer has gone to sleep.]
<andrewvos> Welcome to Russia, here's a video camera to attach to the car you may or may not purchase.
<banisterfiend> hehe
<andrewvos> Did you see the video of the the meteor that that one guy shot? You can see his expression as the meteor comes into view. He's just like "meh meteor".
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<banisterfiend> russians r hardcore
<andrewvos> "Potentially lethal meteor strike? Shit I got bigger problems"
dhruvasagar has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
thone_ has joined #ruby-lang
<andrewvos> Appropriate reaction to a car flying past your face: http://cl.ly/image/0x0n2S280E0u
yankeefa_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
thone has quit [Ping timeout: 240 seconds]
MaddinXx has quit [Remote host closed the connection]
yankeefan04 has quit [Ping timeout: 252 seconds]
<andrewvos> Wow I may have to cancel going out tonight.
bzalasky has joined #ruby-lang
Domon has joined #ruby-lang
adambeynon has joined #ruby-lang
wmoxam has joined #ruby-lang
sepp2k has joined #ruby-lang
apeiros_ has joined #ruby-lang
havenwood has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
Domon has quit [Ping timeout: 252 seconds]
gregmore_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
yankeefa_ has left #ruby-lang [#ruby-lang]
havenwood has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
Aria has joined #ruby-lang
agile has joined #ruby-lang
<whitequark> andrewvos: not in my opinion, no.
<whitequark> right now it is foggy, and half-thawed snow is mixed with dirt and salt everywhere.
<whitequark> and that more or less describes it all.
wmoxam has quit [Ping timeout: 276 seconds]
<banisterfiend> whitequark: do andrewvos's pictures properly characterize russia
<banisterfiend> :P
<banisterfiend> that' show the interweb (or at least, reddit) views the big R. ;)
<banisterfiend> tha'ts ho*
bzalasky has quit [Remote host closed the connection]
<whitequark> banisterfiend: dashcams, well, they give you an advantage in accidents. so everyone has one.
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
Cope has quit [Remote host closed the connection]
JoelMcCr` has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
JoelMcCr` has quit [Read error: Connection reset by peer]
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
dhruvasagar has joined #ruby-lang
skbierm has quit [Quit: Verlassend]
sarclops has joined #ruby-lang
sarclops has quit [Client Quit]
gregmoreno has joined #ruby-lang
skade has joined #ruby-lang
jg_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
intellitech has quit [Ping timeout: 252 seconds]
gregmoreno has quit [Ping timeout: 240 seconds]
kentos has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Steppen has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
netShadow has quit [Quit: netShadow]
marr has joined #ruby-lang
pkrnj has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
kgrz has joined #ruby-lang
earthquake has joined #ruby-lang
baba has quit [Ping timeout: 240 seconds]
megha has joined #ruby-lang
rippa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
_s1n4_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
s1n4 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
_s1n4_ has left #ruby-lang [#ruby-lang]
wyhaines has quit [Remote host closed the connection]
<zzak> so do people who write code for >= 1.8 have to use File.expand_path(File.join(File.dirname(__FILE__), 'filename')) for requires?
<zzak> or is there a better way now
<drbrain> zzak: I rarely use require_relative and instead use ruby -I
<drbrain> but File.expand_path '../filename.rb', __FILE__ is probably what you're looking for
<zzak> File.expand_path './filename.rb', __FILE__ ?
<zzak> or just filename.rb
<drbrain> no ../filename.rb
<drbrain> try it
<zzak> oh right, because expand_path is using the second arg
<zzak> path to __FILE__
<drbrain> yes, relative to __FILE__
<zzak> got it
<zzak> thanks eric
workmad3 has quit [Ping timeout: 264 seconds]
amerine has joined #ruby-lang
ykk has quit [Remote host closed the connection]
<andrewvos> it even takes the filename off? how is this better than adding to loadpath?
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has quit [Remote host closed the connection]
<drbrain> andrewvos: that's why I almost always add to the load path
<drbrain> I think the only place I use require_relative is in the RubyGems tests
<andrewvos> oh ok good
<drbrain> and that's because the tests aren't always run from the root of the source directory
<andrewvos> yeah require_relative doesn't work in some contexts so I have given up on it
<drbrain> I find it usually means I have bigger problems
<zzak> i would only add to load path for development, or testing, but this is for sinatra app docs
<andrewvos> I normally require all files in the root gemname.rb file anyway
<zzak> theres like a mixture of require_relative and './whatever'
<zzak> yeah, for a gem that works
skade has quit [Quit: Computer has gone to sleep.]
<andrewvos> To hell with trying to require required files in each little .rb file
kgrz has quit [Ping timeout: 252 seconds]
<drbrain> it also leads to circular requires
<zzak> this is for like helping people setup config.ru's or spec_helpers, or cucumber env's
<zzak> on a wide range of ruby versions and implementations
<drbrain> I wish DRb::DRbObject inherited from BasicObject
__Big0__ has joined #ruby-lang
<drbrain> too many yaks to shave
<zzak> drbrain: 2.1.0 feature?
<drbrain> maybe
<drbrain> the problem is ro = DRb::DRbObject.new_with uri, ref; p ro.class #=> DRb::DRbObject
<drbrain> so introspection is difficult
<drbrain> you can work around it with ro.send :method_missing, :class
<drbrain> but that's no fun
<zzak> are you using drb at work?
<drbrain> "yes"
<drbrain> I'm building a distributed process management tool
kgrz has joined #ruby-lang
<drbrain> my real problem is one of naming
xxaM has joined #ruby-lang
<zzak> i still need to read matoshi-san's book
<zzak> masatoshi*
ykk has joined #ruby-lang
Jake232 has joined #ruby-lang
S1kx has quit [Ping timeout: 264 seconds]
irmbrady has quit [Ping timeout: 252 seconds]
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
swav has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
__Big0__ has quit [Remote host closed the connection]
ddd_ has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop has quit [Read error: Connection reset by peer]
alessio_rocco has joined #ruby-lang
Steppen has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
kgrz has quit [Quit: Computer has gone to sleep.]
soypirate has joined #ruby-lang
kurko__ has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
mixandgo has quit [Quit: mixandgo]
sepp2k has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
mixandgo has joined #ruby-lang
mixandgo has quit [Client Quit]
havenwood has joined #ruby-lang
ykk has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
swav has joined #ruby-lang
ryanf has quit [Quit: leaving]
kentos has quit [Ping timeout: 240 seconds]
ryanf has joined #ruby-lang
swav has quit [Ping timeout: 276 seconds]
davidbalbert is now known as davidbalber|away
intellitech has joined #ruby-lang
kentos has joined #ruby-lang
intellitech has quit [Quit: intellitech]
gregmoreno has joined #ruby-lang
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has joined #ruby-lang
gregmoreno has quit [Ping timeout: 245 seconds]
Vektur has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 256 seconds]
pepper_chico has joined #ruby-lang
cstrahan has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
Nisstyre-laptop has joined #ruby-lang