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?
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]
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"