ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
flebel has left #ruby-lang [#ruby-lang]
erichmenge has quit [Client Quit]
kurko_ has quit [Ping timeout: 244 seconds]
methods has joined #ruby-lang
kurko_ has joined #ruby-lang
<freedrull> zzak: oh, i think you are right....
<freedrull> need to check the date of blog entries i read...... >.<
blazes816 has quit [Quit: blazes816]
justinram has quit [Remote host closed the connection]
hachiya has quit [Ping timeout: 240 seconds]
wyhaines has joined #ruby-lang
hachiya has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
krzbrg has joined #ruby-lang
kain has quit [Quit: exit]
kain has joined #ruby-lang
SoAwesomeMan has quit [Quit: Computer has gone to sleep.]
Kingy has quit [Quit: Leaving]
gregmoreno has quit [Ping timeout: 240 seconds]
gregmoreno has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
HikkiJP has joined #ruby-lang
<krzbrg> Could anyone suggest some open source examples of a Rails or Sinatra app with a large database that I could reference?
<krzbrg> I have a multi-page HTML form that I want to save user input from,
<krzbrg> it seems a bit absurd to write out property :x 30-50 times (I am using DataMapper).
<bluepojo> it's just ruby, so perhaps you can iterate over the attributes of the object and generate the form
<krzbrg> Hm. That's how it's written but it just looked a bit funny.
<krzbrg> I suppose that's to be expected for any form that size. Thanks.
brianpWins has quit [Quit: brianpWins]
kurko_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tbuehlmann has quit [Remote host closed the connection]
shtirlic_ has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
tonni has quit [Remote host closed the connection]
xuser has left #ruby-lang [#ruby-lang]
krzbrg has quit [Remote host closed the connection]
outoftime has quit [Read error: Connection reset by peer]
firefux has joined #ruby-lang
savage- has joined #ruby-lang
cirenyc has joined #ruby-lang
kurko_ has quit [Ping timeout: 268 seconds]
kurko_ has joined #ruby-lang
twittard_ has joined #ruby-lang
twittard has quit [Ping timeout: 240 seconds]
twittard_ is now known as twittard
arubin has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
krohrbaugh has quit [Quit: Leaving.]
richardjortega has quit [Remote host closed the connection]
richardjortega has joined #ruby-lang
outoftime has joined #ruby-lang
erichmenge has joined #ruby-lang
toertore has quit [Quit: This computer has gone to sleep]
erichmenge has quit [Client Quit]
chancancode has quit [Remote host closed the connection]
mpan has quit [Read error: Connection reset by peer]
mpan has joined #ruby-lang
Dreamer3__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
HikkiJP has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: seanstickle]
davidbalber|away is now known as davidbalbert
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
HikkiJP has joined #ruby-lang
lcdhoffman has joined #ruby-lang
senekis_ has quit [Read error: Connection reset by peer]
kurko_ has quit [Quit: Computer has gone to sleep.]
guns has joined #ruby-lang
perryh has quit [Excess Flood]
sn0wb1rd has joined #ruby-lang
perryh has joined #ruby-lang
jorgeastorga has joined #ruby-lang
jorgeastorga has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
nitti has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
outoftime has quit [Ping timeout: 252 seconds]
nitti has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
phaedrix has quit [Ping timeout: 240 seconds]
havenn has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
kurko_ has joined #ruby-lang
richardjortega has left #ruby-lang [#ruby-lang]
kurko_ has quit [Ping timeout: 252 seconds]
justinmcp has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
justinmcp has joined #ruby-lang
krohrbaugh has joined #ruby-lang
justinmcp has quit [Ping timeout: 268 seconds]
thinkdevcode has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
wonderburger has joined #ruby-lang
HikkiJP has quit [Quit: .•«UPP»•.]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
arubin has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sn0wb1rd_ has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
justinmcp has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
mpan has quit [Read error: Connection reset by peer]
catepillar has joined #ruby-lang
mpan has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
jasiek_ has joined #ruby-lang
kurko_ has joined #ruby-lang
nitti has joined #ruby-lang
theKaramanukian has joined #ruby-lang
jasiek has quit [Read error: Connection reset by peer]
sn0wb1rd_ has joined #ruby-lang
mbr has quit [Ping timeout: 252 seconds]
mbr has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Ping timeout: 256 seconds]
sn0wb1rd_ is now known as sn0wb1rd
wyhaines has joined #ruby-lang
phaedrix has joined #ruby-lang
kurko_ has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
areil has joined #ruby-lang
spo12 is now known as spooky12
havenn has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 240 seconds]
dc5ala has joined #ruby-lang
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
LukeRub has joined #ruby-lang
asdfasdfasdf123 has joined #ruby-lang
brianpWins has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
spuk has quit [Read error: Operation timed out]
theKaramanukian has quit [Ping timeout: 260 seconds]
theKaramanukian has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
freedrull has quit [Ping timeout: 245 seconds]
freedrull has joined #ruby-lang
<catepillar> test
datanoise has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
Dreamer3__ has joined #ruby-lang
<theKaramanukian> Hey I need some help with cinch!
<theKaramanukian> So I'm a complete newb to ruby, and I'm trying to get a IRC bot running with cinch
<theKaramanukian> I downloaded there package from github, and now I'm having a problem running one of the example/basic scripts.
<theKaramanukian> anybody
datanoise has quit [Ping timeout: 255 seconds]
<theKaramanukian> anybody?
<lianj> join #cinch
LukeRub has quit [Ping timeout: 245 seconds]
wyhaines has quit [Ping timeout: 244 seconds]
thone has quit [Ping timeout: 246 seconds]
<catepillar> lol
<catepillar> cinch kicked him over here, because he was having issues running google.rb
<dominikh> I kicked him over here because he needs to learn Ruby first, even as far as how to run scripts :)
Xzyx987X has quit [Ping timeout: 265 seconds]
<theKaramanukian> anybody.
thone has joined #ruby-lang
<catepillar> lets start with
<catepillar> 21:39 < theKaramanukian> the following isn't working for me because of some dependency problems: ruby google.rb
<catepillar> what kind of dependency error were you getting?
tdy has quit [Ping timeout: 260 seconds]
<catepillar> use pastebin.com if you want to dump several lines of stuff here (so you don't spam up the channel)
wyhaines has joined #ruby-lang
nitti has joined #ruby-lang
tdy has joined #ruby-lang
twittard has quit [Quit: twittard]
nitti has quit [Ping timeout: 244 seconds]
randomautomator has joined #ruby-lang
<theKaramanukian> ping
randomautomator has quit [Client Quit]
thinkdevcode has quit [Remote host closed the connection]
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
<catepillar> theKaramanukian: i asked you a question, and you never responded
<catepillar> 22:44 < catepillar> 21:39 < theKaramanukian> the following isn't working for me because of some dependency problems: ruby google.rb
<catepillar> 22:44 < catepillar> what kind of dependency error were you getting?
<catepillar> 22:45 < catepillar> use pastebin.com if you want to dump several lines of stuff here (so you don't spam up the channel)
wonderburger has quit [Remote host closed the connection]
asdfasdfasdf123 has quit [Quit: asdfasdfasdf123]
theKaramanukian has quit [Quit: theKaramanukian]
theKaramanukian has joined #ruby-lang
theKaramanukian has quit [Ping timeout: 260 seconds]
ipabs has joined #ruby-lang
brianritchie has joined #ruby-lang
theKaramanukian has joined #ruby-lang
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
gsav__ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
adam12 has joined #ruby-lang
theKaramanukian has quit [Quit: theKaramanukian]
postmodern has joined #ruby-lang
thinkdevcode has joined #ruby-lang
savage- has quit [Quit: savage-]
methods has quit [Quit: Leaving.]
theKaramanukian has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
theKaramanukian has left #ruby-lang [#ruby-lang]
savage- has joined #ruby-lang
enebo has joined #ruby-lang
Nisstyre has quit [Read error: Connection reset by peer]
enebo has quit [Client Quit]
Xzyx987X has joined #ruby-lang
nitti has joined #ruby-lang
Nisstyre has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
cirenyc has quit [Quit: Leaving...]
spuk has joined #ruby-lang
burgestrand has joined #ruby-lang
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
svyatov has joined #ruby-lang
kylemcgi_ has quit []
kylemcgill has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
ryanf has quit [Quit: broken pipes |||]
guns has quit [Read error: Connection reset by peer]
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
ryanf has joined #ruby-lang
<xalei> after $ gem install rspec, should you be able to go $ rspec tests.rb, or is there more setup involved? the rspec.info assumes it just works after gem install rspec
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
vlad_starkov has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
nitti has joined #ruby-lang
chimkan_ has joined #ruby-lang
twittard has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
<steveklabnik> xalei: rspec.info is for rspec 1, i bet you installed rspec 2. that said, just running 'rspec' after you install it should make it work
anannie has quit [Ping timeout: 245 seconds]
<xalei> thanks steveklabnik
<xalei> definitely have rspec 2... figured it out, I did something stupid with my .bash_profile so that rvm worked but not in the right way
spuk has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
yxhuvud has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
savage- has quit [Quit: savage-]
JohnBat26 has joined #ruby-lang
nitti has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Guest37466 has joined #ruby-lang
Guest37466 has left #ruby-lang [#ruby-lang]
nitti has quit [Ping timeout: 256 seconds]
anannie has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
brianritchie has quit [Quit: brianritchie]
nXqd has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
rippa has joined #ruby-lang
svyatov has quit [Quit: svyatov]
svyatov has joined #ruby-lang
CoverSlide has quit [Ping timeout: 260 seconds]
mytrile has joined #ruby-lang
rolfb has joined #ruby-lang
solars has joined #ruby-lang
Guest15771 has joined #ruby-lang
Xzyx987X has quit [Quit: Leaving]
Xzyx987X has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
CoverSlide has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
runeb has joined #ruby-lang
nitti has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
nitti has quit [Ping timeout: 256 seconds]
snafoo has quit [Quit: Quit]
workmad3 has joined #ruby-lang
<yorickpeterse> Morning
anannie has quit [Remote host closed the connection]
anannie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
xalei_ has joined #ruby-lang
xalei has quit [Ping timeout: 265 seconds]
chendo has quit [Read error: Operation timed out]
chendo_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rippa has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby-lang
tbuehlmann has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
xalei_ has quit [Ping timeout: 245 seconds]
bosie has joined #ruby-lang
nitti has joined #ruby-lang
blacktulip has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
irleif has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
xalei_ has joined #ruby-lang
runeb has joined #ruby-lang
anannie has joined #ruby-lang
d3vic3 has joined #ruby-lang
adambeynon has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
tonni has joined #ruby-lang
Madis has joined #ruby-lang
nofxx has quit [Remote host closed the connection]
rue has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
facest_ has joined #ruby-lang
facest has left #ruby-lang ["Leaving"]
facest_ has left #ruby-lang [#ruby-lang]
faces has joined #ruby-lang
justinmcp has quit [Ping timeout: 260 seconds]
faces has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
facest has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
cantonic has quit [Client Quit]
cantonic has joined #ruby-lang
sepp2k has joined #ruby-lang
workmad3 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
nitti has joined #ruby-lang
cschwartz has joined #ruby-lang
ramu3 has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
ramu3 has quit [Client Quit]
cultureulterior_ has joined #ruby-lang
xalei_ has quit [Ping timeout: 260 seconds]
runeb has joined #ruby-lang
GarethAdams has joined #ruby-lang
cschwartz has quit [Ping timeout: 260 seconds]
voker57 has quit [Read error: Connection reset by peer]
cschwartz has joined #ruby-lang
kylemcgi_ has joined #ruby-lang
kylemcgill has quit [Read error: Connection reset by peer]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
xalei_ has joined #ruby-lang
rue has joined #ruby-lang
runeb has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
runeb has joined #ruby-lang
rue has quit [Ping timeout: 260 seconds]
stardiviner has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
ulisescab has joined #ruby-lang
nitti has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
d3vic3 has quit [Ping timeout: 255 seconds]
kylemcgi_ has quit []
d3vic3 has joined #ruby-lang
kylemcgill has joined #ruby-lang
nyuszika7h has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
svyatov has quit [Quit: svyatov]
svyatov has joined #ruby-lang
kurko_ has joined #ruby-lang
nyuszika7h has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
anannie has quit [Remote host closed the connection]
yalue has joined #ruby-lang
m3nd3s has joined #ruby-lang
irleif has joined #ruby-lang
woollyams has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
anannie has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
mwjcomputing has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kylemcgill is now known as aetcore
kurko_ has quit [Ping timeout: 252 seconds]
aetcore has quit []
gaveen has quit [Remote host closed the connection]
aetcore has joined #ruby-lang
kurko_ has joined #ruby-lang
ddd has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
cschwartz has quit [Ping timeout: 248 seconds]
mytrile has quit [Remote host closed the connection]
nitti has joined #ruby-lang
Axsuul has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
xalei_ has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
shtirlic has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby-lang
cantonic has quit [Quit: cantonic]
d3vic3 has quit [Ping timeout: 252 seconds]
aetcore has quit [Read error: Connection reset by peer]
aetcore_ has joined #ruby-lang
cantonic has joined #ruby-lang
d3vic3 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
benanne has joined #ruby-lang
aetcore_ has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 244 seconds]
wyhaines has joined #ruby-lang
svyatov has quit [Quit: svyatov]
ulisescab has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
svyatov has joined #ruby-lang
d3vic3 has quit [Read error: Operation timed out]
vlad_sta_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
rippa has joined #ruby-lang
d3vic3 has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
cjs226 has quit []
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
guns has joined #ruby-lang
Ryhnn has joined #ruby-lang
marjohn has joined #ruby-lang
chimkan_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
workmad3_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
x0F_ is now known as x0F
workmad3 has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
chimkan_ has quit [Ping timeout: 240 seconds]
carloslo_ has joined #ruby-lang
carloslopes has quit [Ping timeout: 240 seconds]
workmad3_ is now known as workmad3
sailias has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
cschwartz has joined #ruby-lang
nettsundere has joined #ruby-lang
anannie has quit [Remote host closed the connection]
cinch_ has joined #ruby-lang
toertore has joined #ruby-lang
cinch_ has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 245 seconds]
dabradley has quit [Quit: WeeChat 0.3.8]
cinch_ has joined #ruby-lang
<andrewvos> I just want to confirm something: I was using File.executable?("bla.bat") and on Windows it returns false because the file doesn't have the x bit set. My workaround is this: https://github.com/AndrewVos/acouchi/blob/f50dac270866068ef81eda644d7accf15a99b2ee/lib/acouchi/which.rb
<andrewvos> Could someone take a look at that and make sure I'm not just insane?
cinch_ has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nertzy has joined #ruby-lang
<erikh> andrewvos: windows has an environment variable to determine what's executable, IIRC
<erikh> aha, I see you've taken care of that
<erikh> let me pull down the old svn (cvs?) repo from rubyforge
<erikh> you can fork/PR then if you want
<andrewvos> erikh: Thanks dude, as I said earlier I would very much appreciate that.
dabradley has joined #ruby-lang
<erikh> brb finding more bass albums
<andrewvos> heh
<erikh> these new headphones are going to end my hearing for good
<andrewvos> What are they?
<andrewvos> I mean wha type
<erikh> fwiw
desmondmonster has joined #ruby-lang
<erikh> AKG K550's
<erikh> and I got a FiiO E7 headphone amp
<erikh> let's just say it sounds very, very nice
<erikh> rdio is lossless too, which is nice because I can actually hear the badness in my mp3's with this setup
<erikh> youtube is even worse
<andrewvos> Wow nice
<Uranio> theer are some IRC gem for ruby?
<erikh> well, that's not good; the repo is empty
<erikh> Uranio: cinch
<erikh> there's a channel for it too: #cinch
<Uranio> erikh: thanks
<erikh> wow, uh,
<erikh> andrewvos: I might have to rebuild this repo from the gem
<andrewvos> erikh: haha yeah I saw it was empty :/
desmondmonster has quit [Client Quit]
<andrewvos> erikh: Fuck it just `git commit -m "first"`
<erikh> on the way now
desmondmonster has joined #ruby-lang
<andrewvos> But, like, don't feel like I'm pressurising you or anything. My code works for now
<erikh> i'd rather you have incentive to make the tool better
irleif has joined #ruby-lang
<erikh> :)
<andrewvos> Sweet
benanne has quit [Quit: kbai]
<erikh> github.com/erikh/which
<erikh> if you send a PR, can you add windows-y tests too?
<erikh> current song: "Databass"
<erikh> so appropriate.
tbuehlmann has quit [Remote host closed the connection]
cjs226 has joined #ruby-lang
<andrewvos> erikh: Yup will get around to that
<andrewvos> erikh: How do you propose I separate them from the normal tests
<andrewvos> ?
<erikh> if Gem.win_platform?
<erikh> else
<erikh> etc
<erikh> rubygems already solves this problem for you, abuse it
<andrewvos> erikh: Okay
<andrewvos> erikh: So, in the rakefile?
<erikh> in the test
<erikh> it's just ruby
<andrewvos> Oh there isn't one
<andrewvos> Oh okay
<erikh> yeah, I'll need to add all that back in
<erikh> since I lost the repo
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav__ has joined #ruby-lang
<erikh> ruby test/which.rb should still work, though.
<andrewvos> Okay and the behaviour... The way I'm doing it is like this: Which.find_executable("ant", "ant.bat")
<andrewvos> erikh: Because (and I think this is fixed by checking File.file?) I was getting "ant" as a valid executable on Windows even when it wasn't
<erikh> right; remember that Which can be included, so those methods need to be private
<andrewvos> Yeap
<andrewvos> So, the behaviour?
outoftime has joined #ruby-lang
<erikh> gimme 10 minutes, and I'll look at the patch again
coryf has joined #ruby-lang
<andrewvos> I suppose it would be nice if Which.which?("ant") returned ant.bat?
<erikh> on windows that's acceptable
<erikh> not on unix though.
<andrewvos> Okay
<andrewvos> Yeah
<andrewvos> But unix doesn't have PATHEXT
anannie has joined #ruby-lang
<andrewvos> So I can check for that
desmondmonster has quit [Quit: desmondmonster]
<erikh> just use Gem.win_platform? before you care about PATHEXT
rippa has quit [Ping timeout: 268 seconds]
<andrewvos> erikh: Do you mean in test code or in production code?
marjohn has quit [Quit: Page closed]
nitti has joined #ruby-lang
<andrewvos> Both probably
<andrewvos> Because "cp" isn't on Windows
desmondmonster has joined #ruby-lang
<erikh> yes
nertzy is now known as granthutchins
<erikh> PATHEXT shouldn't be consulted on unix even if it exists
<andrewvos> An if statement in a test :/
<erikh> what's wrong with that?
<andrewvos> Just sounds dirty
<erikh> anyhow, if I have a non-executable called 'anexe', line 26 says it's ok
<erikh> additionally you never downcase the extension
<andrewvos> erikh: No, because pathext looks like ".BAT;.EXE"
<erikh> on your system
<andrewvos> erikh: What I mean is the . is always there
<erikh> windows isn't case-sensitive.
<andrewvos> erikh: And I do downcase both on line 26
<erikh> oh, sorry, missed that
<andrewvos> Yeah it's not case-sensitive which is why I'm downcasing
<erikh> as for checking the extension, File.extname does this better
<andrewvos> Ahh good point thanks
nitti has quit [Ping timeout: 260 seconds]
<andrewvos> Hmm, wonder what executable I can use on Windows when testing
d3vic3 has quit [Ping timeout: 260 seconds]
<erikh> anything in C:\Windows\System32 should be there I think
<erikh> cmd.exe
enebo has joined #ruby-lang
d3vic3 has joined #ruby-lang
<andrewvos> Cool went with xcopy.exe
<erikh> cmd.exe is even more important (it's the shell!)
<erikh> but xcopy should always be there too
<andrewvos> Might go with cmd.exe actually then
<andrewvos> Not sure how xcopy gets there
<erikh> yeah, pretty much anything XP or newer will have cmd.exe (and all version of NT)
<erikh> ME-prior will have command.com instead.
Serial_Killer_C has joined #ruby-lang
<erikh> and *might* have cmd.exe, but again, we're really stretching the term "relevant" before XP
gsav__ has quit [Quit: Lost terminal]
gsav_ has quit [Quit: Lost terminal]
gsav has quit [Quit: Lost terminal]
Assurbanipal has joined #ruby-lang
gsav has joined #ruby-lang
<andrewvos> Yeah
nettsundere has quit [Remote host closed the connection]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
m3nd3s has quit [Remote host closed the connection]
<andrewvos> erikh: Why take path_sep and dir_sep parameters?
<andrewvos> Couldn't you just expect File.join to work?
alexkane_ has joined #ruby-lang
<tocki_> i'd like to marshal everything but several keys deep in nested hash structure, is there elegant way to do this ?
nitti has joined #ruby-lang
cyri_ has joined #ruby-lang
jarib has quit [Excess Flood]
irleif has quit [Quit: Computer has gone to sleep.]
outoftime has quit [Quit: Leaving]
jarib has joined #ruby-lang
irleif has joined #ruby-lang
svyatov has quit [Quit: svyatov]
datanoise has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
methods has joined #ruby-lang
cjs226 has quit []
outoftime has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
gsav_ has joined #ruby-lang
gsav has quit [Ping timeout: 245 seconds]
guns has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
<andrewvos> erikh: Umm, don't hate me but I think it kind of needs to be this https://gist.github.com/3994119
methods has left #ruby-lang [#ruby-lang]
<manveru> andrewvos: why p.exist? and p.executable? only checking for executable should be good enough
<andrewvos> manveru: Oh that was just the old code, but yeah duly noted.
imperator has joined #ruby-lang
<manveru> also, Pathname() is nicer than Pathname.new :)
<andrewvos> I guess so
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
thatdutchguy has joined #ruby-lang
<manveru> also, you should use File::ALT_SEPARATOR on windows
<andrewvos> Ah, thanks I didn't know about this
<manveru> ack ALT_SEPARATOR in ruby source for a few examples
<andrewvos> manveru: So how would you suggest I change the default parameter?
ulisescab has joined #ruby-lang
<manveru> do you need it?
<andrewvos> manveru: which(dir_sep = default_director_seperator) ?
apeiros_ has quit [Read error: Connection reset by peer]
<Silex> how do I invoke a rake task when it's declared in the form "task 'test' => [:foo] => :environment do |t, args|"
<andrewvos> Well, I'm not sure I do. erikh ?
apeiros has joined #ruby-lang
<Silex> Rake::Task['test'].invoke(:foo => 'bar') doens't work
<manveru> path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
<manveru> like that?
<andrewvos> manveru: Oh ok so ALT_SEPERATOR is only defined under windows?
<manveru> afaict, yes
nitti has quit [Remote host closed the connection]
<tocki_> how is this construct called :&method
<manveru> &:method
<manveru> and it's called Symbol#to_proc
<andrewvos> manveru: Ok double checked. It's only set on Windows.
* imperator perks up
cantonic has joined #ruby-lang
<burgestrand> It’s defined on Mac OS, but it’s set to nil. Slight difference.
<manveru> nobody mentioned jruby!
<manveru> yeah, nil on linux too
<andrewvos> burgestrand: Yarp
nitti has joined #ruby-lang
<andrewvos> burgestrand: manveru: So it's defined everywhere, but could be either nil or a value. Got it.
runeb has quit [Remote host closed the connection]
AlHafoudh has joined #ruby-lang
<andrewvos> So I'm thinking about removing the two extra path_sep and dir_sep parameters
Dreamer3__ has joined #ruby-lang
<andrewvos> erikh: Do you agree?
jxie has joined #ruby-lang
gnufied has joined #ruby-lang
runeb has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<andrewvos> Ok I'll just pull request it :)
<manveru> what's this for?
<andrewvos> manveru: Do you mean in the bigger picture?
<manveru> yeah
<andrewvos> manveru: Well "which" is going to be used in my gem "acouchi".
<andrewvos> manveru: Which shells out to "ant", "adb" and some other things. My task today is to get it to work on Windows.
<manveru> and you need the path to those instead of just running them?
<andrewvos> yeah
<manveru> btw, add a description to the gem, so it shows up in gem list -rd
<andrewvos> Well, I don't need the full path.. I just need to get "ant.bat" when I which("ant").
<andrewvos> But the full path is always better.
<andrewvos> For when debugging or whatever
<manveru> and you have a list of suffix(i?)
bfreeman has quit [Quit: bfreeman]
<andrewvos> manveru: You mean ".exe", ".bat" etc. ?
<manveru> yeah
<andrewvos> manveru: Those are in PATHEXT under Windows.
<imperator> require 'ptools'
<imperator> File.which("ant")
<manveru> ptools from daniel?
<imperator> yes, me
<andrewvos> "too short escape sequence" when trying to `newfile.gsub!(/#{dir_sep}{2,}/, "#{dir_sep}")`
<manveru> damn, need to tweak my colors, i can't read your nickname
<andrewvos> Is that because dir_sep is "\\"?
<manveru> don't use regex for it
<andrewvos> manveru: Yeah
<manveru> also, wtf is "#{}" for
<imperator> andrewvos, you just trying to replace "\" with "/" ?
<andrewvos> imperator: Nope I'm replacing \\ with \
<andrewvos> Or // with /
<manveru> but that would make /////// into /
<manveru> anw, i vote for ptools :)
wallerdev has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
<andrewvos> Hmm
<andrewvos> Damn you're right. It works perfectly. Sorry erikh no pull request today :)
<manveru> imperator makes the best tools for win :)
<imperator> ty
nitti_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<andrewvos> imperator: <3
nitti has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
granthutchins has quit [Quit: This computer has gone to sleep]
mwjcomputing has quit [Quit: Leaving]
desmondmonster has left #ruby-lang [#ruby-lang]
desmondmonster has joined #ruby-lang
desmondmonster has left #ruby-lang [#ruby-lang]
guns has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
rippa has joined #ruby-lang
chimkan has joined #ruby-lang
d3vic3 has quit [Ping timeout: 268 seconds]
d3vic3 has joined #ruby-lang
kurko_ has quit [Ping timeout: 248 seconds]
senekis has joined #ruby-lang
kurko_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
<erikh> imperator: feh
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
<erikh> rake
<erikh> err
<andrewvos> hah
<andrewvos> Never seen anyone type an embarrassing command into IRC by mistake
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tonni has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
<weeb1e> Hello
<weeb1e> I am really struggling with finding a way to capture the stdout output from a process I am spawning in wine (with `wine ...`), the output does not go to stdout of the spawned process so redirection does not work, `script` does not capture it, neither does PTY.spawn
<weeb1e> Does anyone have any idea how I can capture this output?
<imperator> erikh, eh?
<imperator> weeb1e, open3 perhaps?
<imperator> check stderr, see if it's going there instead
<weeb1e> imperator: The stdout output does not go to the spawned processes pipes, hence that will not work
<weeb1e> It is not stderr output
kurko_ has quit [Ping timeout: 248 seconds]
<weeb1e> The stderr output does in fact work, but it comes from `wine` not from the process wine is spawning
mrsolo has joined #ruby-lang
<weeb1e> My next idea is to spawn the process in wine inside `screen` which I will spawn in a PTY.spawn, get screen to log to a file and then read from the file
<zzak> there's a lot of accepted but unimplemented features for 2.0, get out there and go get em :)
<weeb1e> This is a lot of redirection, but it might just work
<weeb1e> If anyone has a better idea, please let me know\
kurko_ has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
JohnBat26 has quit [Ping timeout: 240 seconds]
lifo_ has joined #ruby-lang
lifo_ has quit [Remote host closed the connection]
<erikh> imperator: oh; I almost had a patch to a 6 year old library but noooooo you had to go give him a working solution
<erikh> speaking of patches, anyone want to look this over? I'm trying to make vagrant easier to drive with other programs
<erikh> most of this revolves around making vagrant more configurable programmatically.
anachronistic has joined #ruby-lang
<erikh> (as opposed to files which vagrant reads and uses to configure itself)
lifofifo has joined #ruby-lang
erichmenge has joined #ruby-lang
lifofifo has quit [Quit: lifofifo]
sn0wb1rd has quit [Quit: sn0wb1rd]
toretore has joined #ruby-lang
lifofifo has joined #ruby-lang
nertzy has joined #ruby-lang
ulisescab has quit [Remote host closed the connection]
toertore has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Ping timeout: 265 seconds]
blazes816 has joined #ruby-lang
d3vic3 has joined #ruby-lang
lifofifo has quit [Quit: lifofifo]
havenn has joined #ruby-lang
<imperator> erikh, :-P
<nertzy> rubyconf live stream http://www.justin.tv/confreaks
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dpatel has joined #ruby-lang
<imperator> hm, maybe i should crash it ;)
d3vic3 has quit [Ping timeout: 252 seconds]
<imperator> (the conference, not the site - i'm in the denver area)
d3vic3 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
irleif has joined #ruby-lang
<erikh> hallway track go go go
imperator has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
Kingy has joined #ruby-lang
ruby-lang251 has joined #ruby-lang
sepp2k has joined #ruby-lang
havenn has joined #ruby-lang
Kingy has quit [Client Quit]
bosie has quit [Ping timeout: 265 seconds]
<andrewvos> Fuck me I just tried to use the net-ssh gem to ssh into a machine, and then run ssh on that machine to ssh into another machine and modify a file.
thinkdevcode has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
<apeiros_> andrewvos: sorry, you just don't look good enough
mrsolo has quit [Quit: Leaving]
havenn has quit [Ping timeout: 260 seconds]
<andrewvos> I want to die
amdprophet has joined #ruby-lang
<apeiros_> it's inevitable that you will
<andrewvos> Reading every single webpage on the topic and they're all saying use keys, and I'm like "I FUCKING WISH I COULD PLEASE KILL ME"
<apeiros_> :)
<andrewvos> In other news, BBC just commited it's millionth commit to its svn repo...
<andrewvos> That's the commit!
<tocki_> would it hold true if i said that class methods are singleton methods of a class object ?
d3vic3 has quit [Quit: leaving]
<tdy> haha
<steveklabnik> tocki_: 99% sure that is correct, yes
<andrewvos> Damn that is so cool. I wonder how they timed committing the millionth commit or did the just commit like 100 commits?
ryanlecompte has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
runeb has joined #ruby-lang
<apeiros_> tocki_: yes. they can be inherited too, though
<apeiros_> (and those wouldn't be singleton_methods of the class object)
<apeiros_> e.g. class Foo; end; Foo.new # <-- new is not a singleton method of Foo, it's an instance method of Class (ok, not inherited, but still an example)
havenn has joined #ruby-lang
<apeiros_> class Foo; def self.foo; end; end; class Bar < Foo; end; Bar.foo # <-- not a singleton method of Bar, it's inherited from Foo
<apeiros_> there :)
runeb has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby-lang
ridders24 has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
<tocki_> will class methods given in Class.new do; def meth; ...; end; end; # be inherited by subclass ?
<tocki_> class methods can me monkey-patched via class_eval, right ?
postmodern has quit [Quit: Leaving]
rebelcan has joined #ruby-lang
<Paradox> squids
justinseiter has joined #ruby-lang
<apeiros_> tocki_: class methods are inherited by subclasses. see my second example.
<apeiros_> tocki_: you can monkey patch class methods without class_eval too.
<tocki_> i have hard time understanding class_eval, module_eval & instance_eval
dhruvasagar has quit [Ping timeout: 260 seconds]
<tocki_> what are these guys ?
Austin__ has joined #ruby-lang
<apeiros_> tocki_: class_eval and module_eval are exactly the same thing
<apeiros_> instance_eval and class_eval differ slightly in scoping (couldn't tell you off my head how exactly, though)
savage- has joined #ruby-lang
rolfb has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 248 seconds]
nXqd has joined #ruby-lang
<tocki_> so instance_eval can basically add singleton methods to objects, while class_eval adds the same to classes
nertzy has quit [Quit: This computer has gone to sleep]
<apeiros_> o0
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<tocki_> but.. both classes and objects have instance/class_evals
<apeiros_> no
<apeiros_> non-modules don't have class_eval
<apeiros_> e.g. o = Object.new; o.class_eval # !> NoMethodError
irleif has quit [Quit: Computer has gone to sleep.]
<tocki_> hmmz.. it seems that for instance eval within class, you don't need "class << self; .... ; end"
<tocki_> ok.. ok.. got it
<erikh> Classes and Modules are also Objects.
<tocki_> .private_class_methods is actually ~.private_singleton_methods~
sepp2k has quit [Read error: Connection reset by peer]
nertzy has joined #ruby-lang
irleif has joined #ruby-lang
<tocki_> ^^ thats what it means, right ?
sepp2k has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<Austin__> tocki_: not necessarily.
<tocki_> right..
<erikh> what do you need this for?
<tocki_> its more like ~.private_singleton_method_of_superclass~
methods has joined #ruby-lang
<steveklabnik> tocki_: apeiros_ it's not useful to talk about methods as being 'inherited.' method lookup does rely on the ancestor chain, but talking about them as 'being inherited' obscures the issue
<tocki_> nah
ridders24 has quit [Ping timeout: 244 seconds]
methods has left #ruby-lang [#ruby-lang]
bosie has joined #ruby-lang
<tocki_> .class_eval & .class_exec are the same, right ?
ridders24 has joined #ruby-lang
<erikh> ...
<erikh> what do you need this for?
<tocki_> me?
<erikh> yes
<tocki_> yes
<tocki_> for me
<erikh> *facepalm*
macmartine has joined #ruby-lang
<tocki_> *doubled*
<erikh> are you solving a problem?
<steveklabnik> learning about how ruby works
<steveklabnik> is useful
<steveklabnik> independent of any particular problem
<tocki_> agreed
<erikh> steveklabnik: when you clearly don't understand that a class is an object?
havenn has quit [Remote host closed the connection]
<steveklabnik> erikh: how else do you expect them to learn?
<erikh> iteratively
<steveklabnik> at some point, nobody knows that classes are objects
<steveklabnik> then they learn, and they know.
<steveklabnik> i dont think belittling someone who's trying to learn is a good strategy
justinram has joined #ruby-lang
havenn has joined #ruby-lang
<steveklabnik> to bringing them to an understanding
<erikh> ugh
<tocki_> erikh, your point being ?
coryf has quit [Remote host closed the connection]
<erikh> knowing when a tool is useful is just as important as knowing how it works
<tocki_> i respect your opinion
<steveklabnik> erikh: +1
<tocki_> respect mine
<erikh> hey, if you want to blow your foot off, I won't get in your way, but I am trying to help keep you from writing pointless garbage that will only confuse you later.
mrsolo has joined #ruby-lang
ridders24 has quit [Ping timeout: 264 seconds]
<tocki_> thank you
ridders24 has joined #ruby-lang
<darix> erikh: if he blows off one foot. can i blow up the other one?:p
havenn has quit [Ping timeout: 260 seconds]
<erikh> darix: no, you'll just ending up fixing his shit code
<darix> no way jose
<erikh> heh.
<darix> i just ponder if i will go through the pain and rpmify etherpad-lite and all the needed nodejs libs or not
jxie has quit [Read error: Connection reset by peer]
<ddd> so its more important to just tell people not to do something because you don't want to take the chance of having to fix some possibly shit code later, rather than explain the why its shit and shouldn't be done so he doesn't make the mistake later AND understands why its shit?
<ddd> doesn't make sense to me
jxie has joined #ruby-lang
havenn has joined #ruby-lang
<darix> btw: my candidate for the most stupid daemon of the week: mumble server. who would have thought that administrating a server via dbus would be cool. -.-
<erikh> ddd: what's a singleton class? how does method dispatch work? a Class is an Object?
<darix> ddd: after explaining things for 100 times you just hope the universe will send you people asking that question :p
<erikh> ddd: I don't want to explain half of ruby to explain the one thing he's asking about is all
<erikh> it's a bit like learning C by exploring how GCC's optimizer works
<tocki_> erikh, but you don't have to explain, its ok..
<erikh> you're right, I don't
<tocki_> and we are cool
<tocki_> is there a way to check if a method is an alias for another method ?
justinram has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
<darix> tocki_: why do you care? what is the problem you are trying to solve?
<erikh> no.
<erikh> if it is, it's very likely implementation specific.
<tocki_> what is o.singleton_class (if o is kind of Object)
<darix> tocki_: that is explained in the pick axe book
<darix> the old version is even online for free
<erikh> steveklabnik: since you don't hang out here enough, I want you to see exactly what a help vampire does and why we go out of our way to direct them to ways they can learn themselves.
<erikh> so pay attention :)
svyatov has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<steveklabnik> erikh: heh
<cout> tocki: on MRI, I think you can check the method's oid (that's not normally exposed to the user, but the ruby-internal gem gives you access to it)
<tocki_> cout, thanks.. i was just wondering if there is standard way to do this
<cout> not that I'm aware of
svyatov has quit [Client Quit]
<tocki_> erikh, if i disturb you in any sense, i'm sorry because of that (thank you very much for your help anyway)
<tocki_> please feel free to use /ignore command if you feel that it will save your nerves
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nitti_ has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
<tocki_> hmmz... class << self; self; end == self.singleton_class
<cout> ooh
<tocki_> but what does it mean
<cout> I think I have an idea
<cout> oh wait
<tocki_> is .type same as .class (aliases) or are they different in some cases ?
<Mon_Ouie> There's no #type method on Object in Ruby
<Mon_Ouie> And I can't find one in core in fact, so it's more likely to come from another library
<tocki_> i'm looking at jRuby implementation.. it certanly has one
<tocki_> (poking through irb)
workmad3 has quit [Ping timeout: 252 seconds]
<cout> tocki: #type is deprecated
<Mon_Ouie> Oh, Ruby 1.8 has it as an alias for #class
<tocki_> cool
brianritchie has joined #ruby-lang
<cout> tocki: also btw __method__ will give you the original (non-aliased) name of the method if you call it
havenn has quit [Remote host closed the connection]
<cout> tocki: but for that to work you have to actually call the method
rue has joined #ruby-lang
havenn has joined #ruby-lang
<Mon_Ouie> But where would you insert the call to __method__?
cyri_ has quit [Quit: cyri_]
<darix> i wonder if tocki_ can read my questions.
havenn has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
havenn has joined #ruby-lang
<cout> Mon_Ouie: was thinking something evil with set_trace_func
havenn has quit [Remote host closed the connection]
<cout> Mon_Ouie: I think you have to combine it with fork() though
brianpWins has joined #ruby-lang
havenn has joined #ruby-lang
burgestrand has joined #ruby-lang
burgestrand has quit [Client Quit]
havenn has quit [Ping timeout: 265 seconds]
kurko_ has quit [Ping timeout: 268 seconds]
kurko_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
mwjcomputing has joined #ruby-lang
mpan has quit [Ping timeout: 248 seconds]
tdy has quit [Quit: WeeChat 0.3.9]
_dumfries has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
tdy has joined #ruby-lang
sullenel has joined #ruby-lang
havenn has quit [Remote host closed the connection]
_dumfries has joined #ruby-lang
kentos has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
<tocki_> is there a semantical difference between class variables and instance variables of singleton class
<apeiros_> yes
<tocki_> (since multiple 'openings' of class/object always yield same 'singleton class')
<apeiros_> @@vars are inherited and shared with instances
<apeiros_> @vars are only and only visible within the scope of the same self
<tocki_> but, its not possible to inherit singleton class (or is it?)
<apeiros_> yes it is
<tocki_> how!!
<apeiros_> that's why it is possible to inherit class methods
tonni has joined #ruby-lang
<apeiros_> class X; end; class Y < X; end; Y.singleton_class.superclass == X.singleton_class # => true
<tocki_> so.. singleton class of derived class (is basically derived from singleton class of base class) ??
<apeiros_> when you inherit from a class, the singleton class "chain" is also inherited
<tocki_> wow
<apeiros_> it creates some disturbances in the force, but nevermind
<tocki_> i've seen that singletons can be nested (you can open singleton of singleton)
<tocki_> is there a use for that (and how does it relate to inheritance)
<steveklabnik> yes, because singleton classes are classes
nitti has joined #ruby-lang
<apeiros_> that's what I meant by "the chain", it's true for every level of singleton class:
<apeiros_> Y.singleton_class.singleton_class.superclass == X.singleton_class.singleton_class # => true
<tocki_> class C; class << self; class << self; def a; ...; end; end; end; end; # like this
<apeiros_> tocki_: the use of it is inheriting class methods
benanne has joined #ruby-lang
<tocki_> oookk... thats cool
<tocki_> does doing this with objects make sense ?
<tocki_> i've seen that cloned objects share singleton class
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
Hakon has joined #ruby-lang
<tocki_> maybe singleton class of cloned object is actually singleton class of singleton class of primitive object ?
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
nitti has quit [Ping timeout: 255 seconds]
kurko_ has joined #ruby-lang
justinseiter has quit [Ping timeout: 276 seconds]
qpingu has quit [Quit: Leaving.]
qpingu has joined #ruby-lang
tonni has quit [Remote host closed the connection]
qpingu has left #ruby-lang [#ruby-lang]
cyri_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<tocki_> apeiros_, its not possible - if multiple classes were to derive from base class they would all have to share same singleton class (which is false)
havenn has joined #ruby-lang
methods has joined #ruby-lang
<tocki_> since multiple openings of singleton_class of an object yield same singleton_class
<tocki_> => contradiction
banisterfiend has joined #ruby-lang
<apeiros_> I have no idea what you're talking about…
<tocki_> no - i miss understood.. you were saying that singleton classes are inheriting each other
<cout> tocki_: every object has its own singleton class
havenn has quit [Read error: No route to host]
<tocki_> i thought that: Base.singleton_class.singleton_class == Derived.singleton_class
<apeiros_> also, cloned objects don't share singleton classes
<tocki_> ok, nvm
<erikh> andrewvos: you see this yet? https://github.com/eing/moet
<apeiros_> tocki_: subclass relationship is not equality
<erikh> might be worth looking at for ideas.
methods has left #ruby-lang [#ruby-lang]
havenn has joined #ruby-lang
<tocki_> right
<apeiros_> tocki_: maybe you missed the '.superclass' in my examples
<tocki_> yes
<apeiros_> the *superclass* of a subclass' singleton_class is the equal to the parent's singleton_class
blacktulip has quit [Remote host closed the connection]
<tocki_> but cloned object can access singleton_methods that were defined on primitive object
<apeiros_> yes, that's because they're copied too
<apeiros_> they are not the same however
<apeiros_> same != equal
<tocki_> are variables copied too ?
<apeiros_> which variables?
<apeiros_> ivars are per default copied, but only shallow.
<apeiros_> that is, they'll still reference the same objects
blacktulip has joined #ruby-lang
<tocki_> class variables are shared, after object cloning
<tocki_> ^^ class variables of singleton class
kurko_ has quit [Ping timeout: 260 seconds]
erichmeng has joined #ruby-lang
nitti has joined #ruby-lang
<tocki_> so singleton_class.singleton_class is shared across all cloned objects
<tocki_> (in other words class methods of singleton class, while instance methods are per object)
ruby-lang251 has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
erichmeng has quit [Read error: Connection reset by peer]
erichmenge has quit [Ping timeout: 246 seconds]
ivanoats has quit [Remote host closed the connection]
<tocki_> hmmz.. its seems that Class.method can be accessed by obj.class.method and also by obj.singleton_class.method (yields the same reference)
<cout> tocki: no
<tocki_> but it works on jruby
<cout> tocki: every object has its own singleton class, even singleton classes
<tocki_> tested minute ago
<cout> tocki: you can verify that two objects are or are not the same object by calling #object_id
<tocki_> ok - they are not the same (different oids)
<tocki_> but, how can both access same class method?
<tocki_> ok.. object.singleton_class inherits from object.class
irleif has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
cultureulterior_ has quit [Quit: cultureulterior_]
datanoise has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
lifofifo has joined #ruby-lang
justinseiter has joined #ruby-lang
<tocki_> are modules singleton class instance variables shared across all classes that mixin that module ?
havenn has quit [Read error: No route to host]
datanoise has joined #ruby-lang
havenn has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
ridders24 has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
justinseiter has quit [Ping timeout: 240 seconds]
sullenel has quit [Quit: Leaving.]
<tocki_> no - after mixing in, module gives only its instance methods/variables to class instance space
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
justinseiter has joined #ruby-lang
kentos has quit [Quit: Leaving]
rebelcan has quit [Ping timeout: 256 seconds]
irleif has joined #ruby-lang
rebelcan has joined #ruby-lang
qwerxy has joined #ruby-lang
catepillar has quit [Quit: Lost terminal]
Hakon has quit [Quit: Leaving...]
qwerxy has quit [Quit: offski]
sailias1 has joined #ruby-lang
sailias has quit [Read error: No route to host]
sailias has joined #ruby-lang
imperator has joined #ruby-lang
catepillar has joined #ruby-lang
sailias1 has quit [Client Quit]
sailias2 has joined #ruby-lang
rdavila has joined #ruby-lang
sailias has quit [Ping timeout: 245 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
kurko_ has quit [Ping timeout: 260 seconds]
erichmenge has joined #ruby-lang
kurko_ has joined #ruby-lang
carloslo_ has quit [Remote host closed the connection]
rebelcan has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
qwerxy has joined #ruby-lang
lcdhoffman has joined #ruby-lang
rebelcan has joined #ruby-lang
havenn has quit [Read error: No route to host]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
rebelcan has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
havenn has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
rebelcan has joined #ruby-lang
nignaztic has joined #ruby-lang
havenn_ has joined #ruby-lang
lifofifo has quit [Quit: lifofifo]
havenn has quit [Read error: No route to host]
lifofifo has joined #ruby-lang
senekis_ has joined #ruby-lang
senekis has quit [Ping timeout: 256 seconds]
benanne has quit [Quit: kbai]
lcdhoffman has quit [Ping timeout: 244 seconds]
Mchl has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
tonni has joined #ruby-lang
bfreeman_ has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
lifofifo has quit [Quit: lifofifo]
bfreeman has quit [Ping timeout: 260 seconds]
spooky12 has quit [Ping timeout: 245 seconds]
rdavila has quit [Quit: rdavila]
spo12 has joined #ruby-lang
kain has quit [Remote host closed the connection]
alexkira has quit []
yalue has quit [Quit: Leaving]
Guest15771 has quit [Quit: Guest15771]
irleif has quit [Quit: Computer has gone to sleep.]
outoftime has quit [Ping timeout: 268 seconds]
soahccc has quit [Ping timeout: 276 seconds]
irleif has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Assurbanipal has quit [Quit: Konversation terminated!]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3__ is now known as Dreamer3
woollyams has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
cschwartz has quit [Ping timeout: 252 seconds]
senekis has joined #ruby-lang
senekis_ has quit [Ping timeout: 256 seconds]
cyri_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
spo12 has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kurko_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
mpan has joined #ruby-lang
<tocki_> *everything is object*
havenn has quit [Ping timeout: 252 seconds]
<erikh> pretty much, although method objects are a little weird.
rsenk330 has joined #ruby-lang
melter has quit [Read error: Connection reset by peer]
rsenk330 is now known as Guest18104
<tocki_> class object is little wierd too
Weems has quit []
Guest18104 has quit [Client Quit]
havenn has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
sailias2 has quit [Quit: Leaving.]
keymone has quit [Ping timeout: 260 seconds]
<bluepojo> and arguments are not an object
lcdhoffman has quit [Quit: lcdhoffman]
<bluepojo> cause if they were, it'd create a circular dependency
Ryhnn has quit [Ping timeout: 264 seconds]
<bluepojo> however you can treat args like an object
<bluepojo> cause it acts like one
<tocki_> its object.. there *are* circular dependencies.. that is what was bugging me
keymone has joined #ruby-lang
<bluepojo> you can't create an object without creating args, so args has to be a construct of the language as args are required to create an object
lcdhoffman has joined #ruby-lang
<tocki_> Class is an Object, and Object is an Class -- it ends up with there
<tocki_> s/with//
ivanoats has joined #ruby-lang
<bluepojo> if you want a good overview of how all that works, read Metaprogramming Ruby
Carnage\ has joined #ruby-lang
qwerxy has joined #ruby-lang
<tocki_> thanks
<bluepojo> that one
justinmcp has joined #ruby-lang
melter has joined #ruby-lang
sustainableweb has joined #ruby-lang
i_like_rails has joined #ruby-lang
ivanoats has quit [Read error: Operation timed out]
lifofifo has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
lifofifo has quit [Client Quit]
<tocki_> why is Model superclass of Class ?
keymone_ has joined #ruby-lang
<tocki_> *Module
<i_like_rails> Anyone know why, when using Dir.open and each, one of the directories found would fail the file? and directory? tests?? Thanks
keymone has quit [Ping timeout: 255 seconds]
keymone_ is now known as keymone
<tocki_> permission problems ?
chad_c has joined #ruby-lang
<catepillar> i don't understand that post, but some code (and the actual errors) would be helpful
<chad_c> any Mechanize users out there?
<bluepojo> i_like_rails: it's possibly a broken symlink
yxhuvud has quit [Ping timeout: 252 seconds]
<i_like_rails> bluepojo: Ok, thanks, I will check that out
<bluepojo> i_like_rails: are you an emacs user, perchance? it creates broken symlinks to mark open files with the user@domain of the person who opened the file.
<heftig> i_like_rails: sockets, fifos, devices, bad symlinks
<i_like_rails> bluepojo: I'm not, but thanks.
<i_like_rails> heftig: Thanks
<apeiros_> tocki_: because classes are modules
senekis_ has joined #ruby-lang
bfreeman_ has quit [Read error: Connection reset by peer]
senekis has quit [Ping timeout: 256 seconds]
bfreeman has joined #ruby-lang
i_like_rails has quit [Quit: Page closed]
nignaztic has quit [Quit: WeeChat 0.3.2]
bfreeman_ has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
<reactormonk> tocki_, and Module is a class :>
blacktulip has joined #ruby-lang
senekis has joined #ruby-lang
aetcore has joined #ruby-lang
senekis_ has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
m3nd3s has quit [Remote host closed the connection]
tommylommykins has left #ruby-lang [#ruby-lang]
keymone_ has joined #ruby-lang
keymone has quit [Ping timeout: 256 seconds]
keymone_ is now known as keymone
havenn has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
havenn has joined #ruby-lang
justinmcp has joined #ruby-lang
sustainableweb has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
havenn_ has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has quit [Read error: Connection reset by peer]
benanne has joined #ruby-lang
justinmcp has quit [Ping timeout: 246 seconds]
tsou has quit [Ping timeout: 245 seconds]
anannie has quit [Remote host closed the connection]
xalei has joined #ruby-lang
senekis_ has joined #ruby-lang
nertzy has quit [Read error: No route to host]
Carnage\ has quit []
senekis has quit [Ping timeout: 256 seconds]
nertzy2 has joined #ruby-lang
tsou has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
senekis has joined #ruby-lang
senekis_ has quit [Ping timeout: 256 seconds]
lcdhoffman has joined #ruby-lang
perryh has quit [Excess Flood]
apeiros_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
perryh has joined #ruby-lang
chad_c has quit [Quit: chad_c]
tsou has quit [Quit: Lost terminal]
senekis_ has joined #ruby-lang
senekis has quit [Ping timeout: 256 seconds]
nitti_ has joined #ruby-lang
tsou has joined #ruby-lang
teedex has joined #ruby-lang
perryh has quit [Excess Flood]
nitti has quit [Ping timeout: 256 seconds]
perryh has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
senekis has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
senekis_ has quit [Ping timeout: 244 seconds]
datanoise has quit [Ping timeout: 246 seconds]
nitti_ has quit [Ping timeout: 260 seconds]
woollyams has joined #ruby-lang
sailias has quit [Ping timeout: 260 seconds]
Austin__ has left #ruby-lang [#ruby-lang]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
bfreeman_ has quit [Read error: Connection reset by peer]
bfreeman has joined #ruby-lang
qwerxy has quit [Quit: offski]
imajes has quit [Excess Flood]
justinmcp has joined #ruby-lang
sailias has joined #ruby-lang
imajes has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
nertzy2 has quit [Quit: This computer has gone to sleep]
kurko_ has quit [Ping timeout: 252 seconds]
datanoise has joined #ruby-lang
kurko_ has joined #ruby-lang
teedex has left #ruby-lang [#ruby-lang]
m3nd3s has joined #ruby-lang
davidbalbert is now known as davidbalber|away
irleif has quit [Quit: Computer has gone to sleep.]
senekis_ has joined #ruby-lang
senekis has quit [Ping timeout: 256 seconds]
nitti has joined #ruby-lang
nitti has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 255 seconds]
soahccc has joined #ruby-lang
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Serial_Killer_C has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
rebelcan has quit [Quit: leaving]
t0h has quit [Ping timeout: 260 seconds]
TTilus has quit [Ping timeout: 260 seconds]
savage- has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
TTilus has joined #ruby-lang
irleif has joined #ruby-lang
brianritchie has quit [Quit: brianritchie]
datanoise has joined #ruby-lang
senekis has joined #ruby-lang
senekis_ has quit [Ping timeout: 256 seconds]
tonni has quit [Remote host closed the connection]
senekis has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
t0h has joined #ruby-lang
nertzy has joined #ruby-lang
mpan has quit [Read error: Connection reset by peer]
mpan has joined #ruby-lang
anachronistic has quit [Quit: anachronistic]
heftig has joined #ruby-lang
havenn has joined #ruby-lang
yaro099 has joined #ruby-lang
yaro099 has quit [Client Quit]
justinmcp has joined #ruby-lang
Nimotix has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
irleif has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby-lang
<Nimotix> would anyone be able to tell me why this always returns an empty array? http://pastebin.com/PZ3Wyisb
justinram has quit [Remote host closed the connection]
<Nimotix> https://gist.github.com/3997546 to be compliant with room paste policy
<Nimotix> anyone?
solars has quit [Ping timeout: 264 seconds]
<lianj> Nimotix: what does prombt do? set the string?
<Nimotix> its suppose to replace user:pass with real creds from the user input
tonni has joined #ruby-lang
<Nimotix> that part isn't relevant to my question, since it returns nil even if I comment out that function
<Nimotix> I just included it in there to explain the purpose of the override
tonni_ has joined #ruby-lang
<Kero> the pattern does not match 'https://...' ?
mistym_ has joined #ruby-lang
<Nimotix> the URI extract works without the override
<Nimotix> I updated gist
tonni has quit [Ping timeout: 240 seconds]
erichmenge has joined #ruby-lang
<lianj> Nimotix: hm, looks like because URI.extract uses $&
<Nimotix> hmmmm, so what do I need to change for it to work?
<Nimotix> fyi, I'm a php dever, so I'm a noob to ruby
<Kero> extract uses scan; I repeat my question :)
svyatov has joined #ruby-lang
tonni_ has quit [Ping timeout: 252 seconds]
<lianj> Nimotix: dont subclass string
<Nimotix> not sure how to trigger an event to prompt for user otherwise in the scope I'm in
mistym_ has left #ruby-lang [#ruby-lang]
<Nimotix> I want to prompt for input only if the string is used
mistym has joined #ruby-lang
spuk has joined #ruby-lang
nertzy has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]