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
enebo has quit [Quit: enebo]
brunocoelho has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
havenn has joined #ruby-lang
cndiv has quit []
catmtking has joined #ruby-lang
jtoy has quit [Ping timeout: 260 seconds]
catmtking has quit [Client Quit]
Sambalero has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
lsegal has joined #ruby-lang
guns has joined #ruby-lang
jtoy has joined #ruby-lang
mcooper has quit [Quit: mcooper]
gmci has quit [Quit: Computer has gone to sleep.]
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
gsav has joined #ruby-lang
Madis has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
jtoy has quit [Quit: jtoy]
chendo_ has joined #ruby-lang
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
billyoc has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
havenn has joined #ruby-lang
coryf has joined #ruby-lang
savage- has quit [Ping timeout: 244 seconds]
jtoy has joined #ruby-lang
jtoy has quit [Client Quit]
gmci has joined #ruby-lang
havenn has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
havenn has joined #ruby-lang
sent-hil has joined #ruby-lang
sent-hil has left #ruby-lang [#ruby-lang]
sent-hil has joined #ruby-lang
josh^ has joined #ruby-lang
Elico1 has quit [Quit: Elico1]
havenn has quit [Remote host closed the connection]
Criztian has quit [Read error: Connection reset by peer]
<masterkorp> Guys i need an extra pair of eyes
<masterkorp> in here
catmtking has joined #ruby-lang
<masterkorp> inside that ruby_block i get undefined method `options'
<masterkorp> i dont use options like a method
<masterkorp> if !options == JSON.parse(File.read(config_file))
<masterkorp> could it be this line »
ruby-lang924 has joined #ruby-lang
<erikh> that's just an error that more or less says, "I don't know what options is"
<erikh> fwiw, you probably have a problem with options not being visible to the block; do you have the full recipe?
sent-hil has quit [Remote host closed the connection]
<masterkorp> yeah
<erikh> PASTE NAO
<erikh> yeah; presuming that's the whole thing, you never actually define options.
<masterkorp> Do i need to ?
ruby-lang924 has quit [Ping timeout: 245 seconds]
<erikh> yes.. things like node and such are predefined for you
<erikh> you can do it like this:
<masterkorp> right
<masterkorp> i assumed chef automagically created it for me
<masterkorp> so silly
<masterkorp> sorry
<masterkorp> brainfart
<erikh> nope.
mantono has quit [Read error: Operation timed out]
<erikh> that's probably the easiest way.
<erikh> chef doesn't really have much leverage over ruby's handling of things, something you'll notice as you get more advanced with chef.
<erikh> it's not a bad thing, just something to be aware of. some parts are "chef", but all are ruby, and you're still subject to its rules.
cndiv has joined #ruby-lang
Sambalero has joined #ruby-lang
mantono has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
guns has quit [Quit: guns]
lonelydimple has joined #ruby-lang
krohrbaugh has joined #ruby-lang
tRAS has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
havenn has joined #ruby-lang
banisterfiend` has joined #ruby-lang
banisterfiend` has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 264 seconds]
lcdhoffman has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
havenn has quit [Remote host closed the connection]
gsav has joined #ruby-lang
JustinCa_ has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
sent-hil has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
sush24 has joined #ruby-lang
gmci has quit [Ping timeout: 248 seconds]
tRAS has joined #ruby-lang
countdigi has joined #ruby-lang
headius has quit [Quit: headius]
amzan has joined #ruby-lang
amzan has quit [Client Quit]
cardoni has joined #ruby-lang
wyhaines has quit [Ping timeout: 246 seconds]
swarley_ has quit [Ping timeout: 245 seconds]
seoaqua has joined #ruby-lang
ryanf has quit [Ping timeout: 240 seconds]
cantonic has quit [Quit: cantonic]
crackity_jones has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
cantonic has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sush24 has quit [Ping timeout: 260 seconds]
cndiv has quit []
lonelydimple has quit [Ping timeout: 246 seconds]
Lempface has joined #ruby-lang
ryanf has joined #ruby-lang
Bosox20051 has joined #ruby-lang
jperry2_ has quit [Quit: jperry2_]
sent-hil has quit [Remote host closed the connection]
<Lempface> Can one use inject to build an array? (0..10).inject([]) { |ary, nbr| ary << number if number > 3 } gives an undefined method << for nilNilClass
cndiv has joined #ruby-lang
<wallerdev> (0..10).inject([]) { |ary, nbr| ary << number if number > 3; ary }
<wallerdev> (need to return the array in inject)
<ryanf> or if you're using rails, (0..10).each_with_object([]) { |number, array| ... }
sulaweyo has joined #ruby-lang
tooky has joined #ruby-lang
elico has joined #ruby-lang
<Lempface> i dont think it likes the return if condition
havenn has joined #ruby-lang
tooky has quit [Ping timeout: 246 seconds]
<rking> ryanf: each_with_object is Rails?? =~(
<ryanf> yes
nXqd has joined #ruby-lang
<ryanf> oh
<ryanf> nvm
<rking> T'isn't.
<ryanf> only under ruby 1.8
<rking> Aha
cantonic has quit [Quit: cantonic]
<rking> That's a smart thing for Rails to do on 1.8, to bridge the good stuff back.
havenn has quit [Ping timeout: 244 seconds]
<wallerdev> i think it's more of 1.9 stealing the good stuff from rails
<ryanf> no, in this case I think it's a backport
<ryanf> not like &:
lewis1711 has joined #ruby-lang
swarley has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
<lewis1711> https://gist.github.com/3759632 whenever I try and call any of the classes start at line 14 I get either (1 for 0) or (0 for 1) errors. what gives?
<lewis1711> and by call I mean initialize
<ryanf> can you paste an example of you trying to initialize one
sulaweyo has left #ruby-lang [#ruby-lang]
<lewis1711> ryanf: sure. gist edited with Irb at the to
<lewis1711> p
billyoc has quit [Quit: carrier pigeon dropped]
towski has quit [Remote host closed the connection]
<ryanf> class BinaryOp < Op def intiailize(subgoal); @x, @y = subgoal[1], subgoal[2] end
<ryanf> end
<ryanf> see anything wrong with that?
<wallerdev> did u mean to access subgoal[0]?
<lewis1711> wallerdev: no
<ryanf> class BinaryOp < Op; def intiailize(subgoal)
<lewis1711> OH
<lewis1711> spelled it wrong
<lewis1711> :(
<ryanf> :)
<lewis1711> lol thanks
<wallerdev> eagle eyes haha
<lewis1711> I always thought it should just be "def new" but what do I know :)
<ryanf> new is a method on the class
<ryanf> you can def self.new if you want
<lewis1711> ryanf: given how many typos I make, and my insatiable urge to spell initialize with an "s", I think I might do that
<ryanf> uh, I just meant you can define it
<ryanf> it's not the same thing, and it's not usually a good idea to override .new
<ryanf> sorry
<ryanf> I suggest snippets for your editor
<wallerdev> yeah initialize is tricky too since it's spelled differently in UK english
derpops has joined #ruby-lang
sent-hil has joined #ruby-lang
<lewis1711> oh right, fair enough
krohrbaugh1 has quit [Quit: Leaving.]
sn0wb1rd_ has joined #ruby-lang
elico has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
dous has quit [*.net *.split]
tjadc has quit [*.net *.split]
Axsuul has quit [*.net *.split]
thone has quit [*.net *.split]
canton7 has quit [*.net *.split]
jperry2 has quit [*.net *.split]
CodeBlock has quit [*.net *.split]
ltd has quit [*.net *.split]
foca_ has quit [*.net *.split]
andrewvos has quit [*.net *.split]
sn0wb1rd_ is now known as sn0wb1rd
JohnBat26 has joined #ruby-lang
coryf has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
swarley has quit [Ping timeout: 246 seconds]
elico has joined #ruby-lang
dous has joined #ruby-lang
thone has joined #ruby-lang
Axsuul has joined #ruby-lang
canton7 has joined #ruby-lang
tjadc has joined #ruby-lang
ltd has joined #ruby-lang
foca_ has joined #ruby-lang
jperry2 has joined #ruby-lang
andrewvos has joined #ruby-lang
josh^ has quit [Excess Flood]
<lewis1711> if i have a class Foo, is there a way I can ask if any of its super classes are Bar?
<lewis1711> i thought Foo.is_a? would do it, but I think that functions a different way
<lewis1711> oh wait... Foo.ancestors.include? Bar
josh^ has joined #ruby-lang
CodeBlock has joined #ruby-lang
Elico1 has joined #ruby-lang
cored has quit [Quit: leaving]
krohrbaugh has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
seoaqua has quit [Ping timeout: 245 seconds]
elico has quit [Ping timeout: 256 seconds]
CodeBlock has quit [Changing host]
CodeBlock has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
krohrbaugh has quit [Ping timeout: 244 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
macmartine has joined #ruby-lang
Elico1 has quit [Quit: Elico1]
<bnagy> kind_of? should work
<bnagy> but duck typing is usually better
<bnagy> oh, kind_of? will only work for instances, not on the class itself
<bnagy> so depends how you want to use it
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
wyhaines has joined #ruby-lang
sandbags_ has joined #ruby-lang
sandbag__ has joined #ruby-lang
sandba___ has joined #ruby-lang
^sandbags^ has quit [Ping timeout: 264 seconds]
sandbags_ has quit [Ping timeout: 268 seconds]
sandbag__ has quit [Ping timeout: 248 seconds]
Sambalero has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
seoaqua has joined #ruby-lang
macmartine has joined #ruby-lang
areil has joined #ruby-lang
sandba___ has quit [Remote host closed the connection]
singpolyma has quit [Ping timeout: 260 seconds]
wyhaines_ has joined #ruby-lang
Sambalero has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
wyhaines has quit [Ping timeout: 240 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
nXqd has quit [Ping timeout: 246 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
ruurd has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
SuperTaz has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 264 seconds]
nXqd has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
ruurd has joined #ruby-lang
yats has joined #ruby-lang
ruurd has quit [Client Quit]
solars has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
rippa has joined #ruby-lang
derpops has quit []
towski has joined #ruby-lang
mytrile has joined #ruby-lang
cardoni has quit [Quit: Leaving...]
dr_bob has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
tjadc has quit [Read error: Connection reset by peer]
cndiv has quit []
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
AlHafoudh has joined #ruby-lang
sepp2k has joined #ruby-lang
rue|w has joined #ruby-lang
tooky has joined #ruby-lang
tooky has quit [Ping timeout: 246 seconds]
Bosox20051 has quit [Quit: Leaving]
cardoni has joined #ruby-lang
catmtking has quit [Quit: catmtking]
stardiviner has joined #ruby-lang
towski has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
rohit has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
rue|w has quit [Ping timeout: 252 seconds]
Nathandim has joined #ruby-lang
justinmcp has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rue|w has joined #ruby-lang
outoftime has quit [Ping timeout: 246 seconds]
z3r00ld has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
rohit has quit [Ping timeout: 244 seconds]
rohit has joined #ruby-lang
rohit has quit [Client Quit]
rue|w has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
<yorickpeterse> Morning
amaya_ has joined #ruby-lang
judofyr has joined #ruby-lang
svyatov has joined #ruby-lang
tooky has joined #ruby-lang
tooky_ has joined #ruby-lang
tooky has quit [Read error: Connection reset by peer]
gnufied has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
runeb has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
gnufied has quit [Quit: Leaving.]
runeb has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
josh^ has quit [Ping timeout: 246 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
josh^ has joined #ruby-lang
^sandbags^ has quit [Ping timeout: 246 seconds]
hhatch has joined #ruby-lang
gnufied has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
<nXqd> morning everyone :)
<certainty> moin moin
cdt has joined #ruby-lang
hhatch has quit [Quit: leaving]
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby-lang
zmack has joined #ruby-lang
faces has joined #ruby-lang
Assurbanipal has joined #ruby-lang
facest has quit [Ping timeout: 252 seconds]
nXqd_ has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
kain has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
<khaase> in rspec, how do I access what has been passed to describe?
<khaase> I mean, like subject, but without rspec instantiating it for me
<khaase> ie for shared example groups
<GarethAdams> described_class
<khaase> thx
wyhaines_ has quit [Ping timeout: 244 seconds]
adambeynon has joined #ruby-lang
<khaase> described_class is the argument passed to the top most describe :(
vmoravec has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
valeri_uF0 has left #ruby-lang [#ruby-lang]
valeri_ufo has joined #ruby-lang
kitallis has joined #ruby-lang
beiter has joined #ruby-lang
rue|w has joined #ruby-lang
kain has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
<rue|w> HI THERE
seoaqua has quit [Ping timeout: 256 seconds]
Hakon has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
Hakon has quit [Client Quit]
rolfb has joined #ruby-lang
yats has quit [Ping timeout: 246 seconds]
kain has quit [Ping timeout: 268 seconds]
yats has joined #ruby-lang
Hakon has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
cdt has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
krz has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
tooky_ has quit [Remote host closed the connection]
tooky has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
tooky has quit [Ping timeout: 246 seconds]
tooky_ has joined #ruby-lang
<soahccc> Why does ruby tells me "nested repeat operator + and ? was replaced with '*'" on this regex? I know what the error means but I don't find it in the regex… /(?:<[p](?:[^>]+)?>)?%(?:[\s]+)?([^%#\s]+)(?:[\s]+)?#([^%]*)%(?:<\/[p](?:[^>]+)?>)?/i
kain has joined #ruby-lang
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
zz_chrismcg is now known as chrismcg
<wnd> (?:[\s]+)?
kain has quit [Ping timeout: 260 seconds]
<wnd> the same pattern repeats in other places and it's even nested at (?:<\/[p](?:[^>]+)?>)?
<wnd> oops, sorry, it's not nested. + is missing.
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
<wnd> anyway, (?:[\s]+)? is essentially (?:\s*)
beiter has quit [Ping timeout: 256 seconds]
<judofyr> wnd: this triggers the same warning: /(?:a+)?/
<judofyr> err
<judofyr> soahccc: ^
<judofyr> soahccc: so +? is the same as *
<soahccc> wnd: is )? ungreedy or might exist?
Madis has joined #ruby-lang
toretore has joined #ruby-lang
Hakon has joined #ruby-lang
kain has joined #ruby-lang
ruurd has joined #ruby-lang
rue|w has joined #ruby-lang
Guedes_out is now known as Guedes
rue|w has quit [Ping timeout: 264 seconds]
Hakon has quit [Quit: Leaving...]
wyhaines has joined #ruby-lang
kain has quit [Ping timeout: 264 seconds]
beiter has joined #ruby-lang
yalue has joined #ruby-lang
s1n4 has joined #ruby-lang
diegoviola has joined #ruby-lang
s1n4 has quit [Quit: leaving]
mwjcomputing has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
adambeynon has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
yats has quit [Quit: Leaving]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
Hakon has joined #ruby-lang
fbernier has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
lolzie has joined #ruby-lang
Nathandim has quit [Read error: Connection reset by peer]
josh^ has quit [Remote host closed the connection]
kain has quit [Ping timeout: 268 seconds]
sent-hil has quit [Remote host closed the connection]
JohnBat26 has quit [Remote host closed the connection]
jamo has joined #ruby-lang
<wnd> soahccc, )? is just incomplete ()?
workmad3 has joined #ruby-lang
kain has joined #ruby-lang
jamo has quit [Ping timeout: 248 seconds]
publicvoid__ has quit [Quit: Ex-Chat]
_svyatov_ has joined #ruby-lang
svyatov has quit [Ping timeout: 240 seconds]
_svyatov_ is now known as svyatov
fbernier has joined #ruby-lang
<wnd> if we start bisecting (?:[^\s]+)? we get something like this: [^\s] = any non-whitespace character. [^\s]+ = any non-\s at least once. (?:[^\s]+) = group of non-writespaces, at least one char long. (?:[^\s]+)* = group once or zero times.
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<wnd> and to correct what I wrote about an hour earlier, [^\s] obviously means "non-white-space". I'm not sure why \S isn't used here.
singpolyma has joined #ruby-lang
<judofyr> (?:[^\s]+)? is just \S*
<wnd> exactly
<wnd> I'd imagine that original regexp was autogenerated
<judofyr> I hope so
cardoni has quit [Quit: Leaving...]
carloslopes has joined #ruby-lang
kain has quit [Ping timeout: 240 seconds]
chrismcg is now known as zz_chrismcg
adambeynon has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
ramonmaruko has quit [Ping timeout: 244 seconds]
wyhaines has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
solars has joined #ruby-lang
tooky_ has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
krz has quit [Quit: krz]
justinmcp has quit [Remote host closed the connection]
Assurbanipal has quit [Quit: Konversation terminated!]
ramonmaruko has joined #ruby-lang
wyhaines has joined #ruby-lang
kain has joined #ruby-lang
lcdhoffman has joined #ruby-lang
thone_ has joined #ruby-lang
<soahccc> wnd: I didn't have a ^\s :) But now I get the point. An optional "one or more" or an implicit "none or more" is the same :)
<judofyr> soahccc: exactly :)
gsav has quit [Ping timeout: 246 seconds]
beiter has quit [Quit: beiter]
thone has quit [Ping timeout: 244 seconds]
<soahccc> any yes it was generated but I'm not a real regexp pro (intermediate) :D
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<judofyr> soahccc: although (.*) is different fro (.+)* (the captured string would be "" in the first example and nil in the second)
<judofyr> soahccc: but when you use non-capturing group, it's the same
<soahccc> (.+)* or (.+)?
rue|w has joined #ruby-lang
<judofyr> soahccc: (.*) is the same as (.+)* except for what it captures
<judofyr> err
<judofyr> (.+)?
<judofyr> yes
<judofyr> sorry
<soahccc> :)
<judofyr> my faul
<judofyr> "".match(/(.*)/).captures vs "".match(/(.+)?/).captures
kain has quit [Ping timeout: 252 seconds]
ddv has quit [Ping timeout: 246 seconds]
beiter has joined #ruby-lang
runeb has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
havenn has joined #ruby-lang
ddv has joined #ruby-lang
kiddorails has joined #ruby-lang
tooky has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Nathandim has joined #ruby-lang
tooky has quit [Ping timeout: 246 seconds]
wyhaines has quit [Remote host closed the connection]
<masterkorp> Guys i need werlp http://pastie.org/4772075
<masterkorp> How can this sorcery be possible
<darix> masterkorp: ruby -r rubygems /usr/local/bin/s3_cleaner
<masterkorp> #!/usr/bin/env ruby
<masterkorp> require "fog"
<darix> masterkorp: ruby -r rubygems /usr/local/bin/s3_cleaner
<darix> or
<darix> add
lcdhoffman has quit [Quit: lcdhoffman]
<masterkorp> the head of the script
<darix> require 'rubygems' before the require 'fog'
amzan has joined #ruby-lang
<masterkorp> yeah, i forget this is 1.8 ancient shit
* zzak casts Sleepga II on masterkorp.
* zzak zzzzz.
<judofyr> masterkorp: or, ruby -rubygems /usr/local/bin/s3_cleaner
<judofyr> :)
<darix> judofyr: pff
<judofyr> <3 ubygems.rb
Criztian has quit [Remote host closed the connection]
lolzie has quit [Quit: Page closed]
lcdhoffman has joined #ruby-lang
lolzie has joined #ruby-lang
kain has joined #ruby-lang
sailias has joined #ruby-lang
<darix> i guess the hint solved his problem
jxie has quit [Quit: leaving]
rue|w has joined #ruby-lang
adambeynon has joined #ruby-lang
vmoravec has joined #ruby-lang
kain has quit [Ping timeout: 248 seconds]
derpops has joined #ruby-lang
greg_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dr_bob has quit []
beiter has quit [Quit: beiter]
cardoni has quit [Ping timeout: 240 seconds]
tooky has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
kain has joined #ruby-lang
Guest29702 has joined #ruby-lang
xyzodiac has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
jperry2_ has joined #ruby-lang
jperry2_ has quit [Client Quit]
deryl-android has joined #ruby-lang
enebo has joined #ruby-lang
deryl-android has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
kiddorails1 has joined #ruby-lang
kiddorails has quit [Quit: Leaving.]
lonelydimple has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
elux has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tris has quit [Excess Flood]
tubbo has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
sailias has joined #ruby-lang
stardiviner has joined #ruby-lang
runeb has quit [Remote host closed the connection]
tris has joined #ruby-lang
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
headius has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
krohrbaugh1 has quit [Ping timeout: 252 seconds]
crackity_jones has joined #ruby-lang
boodle has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
AlHafoudh has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
tubbo has joined #ruby-lang
boodle has quit [Quit: boodle]
coryf has joined #ruby-lang
jtoy has joined #ruby-lang
hinbody has quit [Ping timeout: 260 seconds]
Skif has joined #ruby-lang
dous has quit [Remote host closed the connection]
headius has quit [Quit: headius]
catmtking has joined #ruby-lang
headius has joined #ruby-lang
<tubbo> hey guys, i have a long line of XML with a bunch of \"s and \ns in it
<tubbo> how do i convert those out of being escaped
JoelMcCracken has quit [Ping timeout: 256 seconds]
<tubbo> it can just print to stdout honestly
imajes has quit [Excess Flood]
<tubbo> oh never mind lol
<tubbo> puts()
<oddmunds> .gsub('\"','"')
<oddmunds> ?
<oddmunds> i think that will work. i just did the same thing the other day with chained gsub calls. not pretty, but it works.
<oddmunds> .gsub('\\"','"') maybe
|Vargas| has quit [Quit: ...]
<oddmunds> (i confused myself and regret answering)
imajes has joined #ruby-lang
wyhaines has joined #ruby-lang
<tubbo> oddmunds: lol it's my fault i put out a confusingly-worded easy question
<oddmunds> it's my fault
<oddmunds> for just guessanswering
kiddorails1 has quit [Ping timeout: 264 seconds]
ttilley has joined #ruby-lang
catmtking_ has joined #ruby-lang
catmtking_ has quit [Remote host closed the connection]
catmtking_ has joined #ruby-lang
svyatov has quit [Quit: svyatov]
catmtking has quit [Read error: Connection reset by peer]
catmtking_ is now known as catmtking
stardiviner has quit [Ping timeout: 246 seconds]
cndiv has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
mytrile has quit [Remote host closed the connection]
lonelydimple has quit [Ping timeout: 245 seconds]
wyhaines has quit [Remote host closed the connection]
<masterkorp> I have a question, the following works on ruby 1.9.3 http://pastie.org/4772702
<masterkorp> but on ruby1.8 /usr/local/bin/s3_cleaner:164: undefined method `each' for nil:NilClass (NoMethodError)
<canton7> there's not enough context there. ruby 1.8 doen't think that the options hash is set
<canton7> *doesn't
<mistym> What is the options hash produced from?
<masterkorp> let me check
nXqd_ has quit [Ping timeout: 268 seconds]
gnufied has quit [Quit: Leaving.]
nXqd has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
<masterkorp> yeah its nil
<judofyr> so where is it set?
<masterkorp> but i parse it from json
<masterkorp> "buckets_to_prune":["backup-hermano-db2-sbni-com","backup-lamp-cloud-sbnation-com","backup-staircar-slave","backup-statsd-sbnation-com"]}
abletony84 has joined #ruby-lang
<abletony84> At http://pastie.org/4772707 (based on http://stackoverflow.com/questions/12334183/rails-i18n-better-way-of-interpolating-links) - anybody know why it outputs <a href="/help/faq#what_is_markdown"></a> and not <a href="/help/faq#what_is_markdown">Markdown</a>?
<masterkorp> options = JSON.parse(File.read(config))
<canton7> masterkorp, that's not the whole file though, is it?
<masterkorp> canton7: no, there are confidential stuff
<canton7> masterkorp, check whether options is nil, or just that options["buckets_to_prune"] isn't set
<mistym> canton7: No, can't be that options is nil, or he would be getting "undefined method `[]'"
<masterkorp> no options its not nil
<masterkorp> or the script would fail before
<canton7> mistym, ah yes, valid
cndiv has quit []
<judofyr> abletony84: that's a weird inject you have there. inject will always produce two values.
<masterkorp> http://pastie.org/4772754 Full script
<abletony84> judofyr: hmm
<masterkorp> maybe JSON on ruby 1.8 does not parse arrays ?
<mistym> masterkorp: So are the other keys in your options hash coming through correctly?
<judofyr> abletony84: also, the link from stackoverflow doesn't support nested key values
<abletony84> judofyr: i wanted it to support multiple urls, maybe that has something to do with it?
<masterkorp> mistym: yeah, or else the s3 comminon would fail
<masterkorp> wich i tested
<abletony84> yeah if i recall correctly i had it slightly modified
<judofyr> abletony84: do you want "Markdown" or "markdown"?
Assurbanipal has joined #ruby-lang
<abletony84> judofyr: "Markdown"
<yxhuvud> 1.8 and 1.9 doesn't parse or produce json the same way. They switched to a better, but different parser.
<judofyr> abletony84: def translate_with_link(key, link) I18n.t(key).sub(/\*\[(.+?)\]/) { content_tag(:a, $1, :href => link) }
<judofyr> that should do it
<judofyr> or, no
<abletony84> :O
<judofyr> but now you can wrap $1 in I18n.t($1) and it would work fine :)
<mistym> masterkorp: Have you dropped in to debug and actually see what the values in your options hash are?
<abletony84> judofyr :-)
Criztian has joined #ruby-lang
<judofyr> abletony84: it doesn't handle multiple links though
<abletony84> judofyr: oh.. sec let me try
<judofyr> abletony84: but I would use a Hash for the links, not an Array
<judofyr> abletony84: the order might be different in different languages
<masterkorp> mistym: yes, using "pp" it does not read the buckets to prune array
<masterkorp> and puts list it
<judofyr> abletony84: note: you can use #gsub instead of #sub to substitute multiple times
<masterkorp> all
<abletony84> hmmm.. nice nice
<judofyr> abletony84: def translate_with_link(key, links) I18n.t(key).gsub(/\*\[(.+?)\]/) { content_tag(:a, I18n.t($1), :href => links[$.to_sym]) }
<judofyr> translate_with_link(:markdown_available, :markdown => "http://...")
<injekt> :/
<masterkorp> I am clueless
Criztian has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
lewis1711 has left #ruby-lang [#ruby-lang]
<abletony84> judofyr: absolutely awesome man !!
<abletony84> judofyr: http://pastie.org/4772707 gonna give her a spin right now 2 sec
gnufied has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
zmack has quit [Remote host closed the connection]
codewrangler has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
<masterkorp> what the heck
<masterkorp> i just parsed it correctly on irb
gearaholic has joined #ruby-lang
kiddorails has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
judofyr has quit [Remote host closed the connection]
<masterkorp> fixed
<masterkorp> it was a misplaced comma on the json generator
chrismcg is now known as zz_chrismcg
Skif has quit [Ping timeout: 240 seconds]
jtoy has quit [Quit: jtoy]
Nathandim has quit [Quit: Leaving]
cndiv has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cndiv has quit [Client Quit]
carloslopes has quit [Quit: Leaving.]
kiddorails has quit [Ping timeout: 268 seconds]
lolzie has quit [Quit: Page closed]
anannie has joined #ruby-lang
jarib has quit [Excess Flood]
tRAS has quit [Quit: Mother, did it need to be so high?]
jarib has joined #ruby-lang
z3r00ld has quit [Read error: Connection reset by peer]
z3r00ld has joined #ruby-lang
headius has quit [Quit: headius]
GarethAdams has quit [Quit: Leaving...]
cldwalker has joined #ruby-lang
s1n4 has joined #ruby-lang
greg_ has quit [Quit: Linkinus - http://linkinus.com]
savage- has joined #ruby-lang
butchanton has joined #ruby-lang
s1n4 has quit [Client Quit]
towski has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
gearaholic has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
adambeynon has joined #ruby-lang
cyndis has quit [Ping timeout: 240 seconds]
shaman42 has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
tooky has quit [Remote host closed the connection]
z3r00ld has quit [Quit: z3r00ld]
s1n4 has joined #ruby-lang
cantonic has joined #ruby-lang
havenn has quit [Remote host closed the connection]
towski has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
cyndis has joined #ruby-lang
jtoy has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby-lang
shaman42 has joined #ruby-lang
enebo has quit [Quit: enebo]
<abletony84> hey.. anybody know why I'm getting this syntax error for my I18n helper? http://pastie.org/4772707
carloslopes has joined #ruby-lang
<canton7> abletony84, $.to_sym ? I wasn't aware $ was a valid variable :P
<injekt> yes that's the error
<injekt> abletony84: $1
<abletony84> canton7: $1.to_sym?
<abletony84> hehe nice
<canton7> if that's what you want? I don't know
<canton7> hehe
sandbags has quit [Remote host closed the connection]
tooky has joined #ruby-lang
adambeynon has quit [Quit: Computer has gone to sleep.]
crackity_jones has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
towski has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
areil has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
anannie has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
RegEchse has joined #ruby-lang
mcooper has joined #ruby-lang
tooky has quit [Remote host closed the connection]
wpaulson has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
enebo has joined #ruby-lang
wpaulson has quit [Client Quit]
Criztian has joined #ruby-lang
sepp2k has quit [Ping timeout: 264 seconds]
evaryont has joined #ruby-lang
evaryont has left #ruby-lang ["WeeChat 0.3.7"]
sepp2k has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
burgestrand has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
niang has joined #ruby-lang
alvaro_o has joined #ruby-lang
enebo has quit [Quit: enebo]
JoelMcCracken has joined #ruby-lang
havenn has quit [Remote host closed the connection]
enebo has joined #ruby-lang
icooba has quit [Quit: Computer has gone to sleep.]
tooky has joined #ruby-lang
jtoy has quit [Quit: jtoy]
krohrbaugh has joined #ruby-lang
<epitron> hmm.. this is a somewhat counterintuitive "case" statement finding
<epitron> Klass === Klass is false
<epitron> so, "case self.class; when TheClass" won't work
<epitron> i had to do class.name :)
<epitron> (obviously if i'm doing the case statement from within an instance, i can do "case self", but i happened to be doing it from within a class method)
<epitron> code smells aside, that seems like a weird behaviour for ===
<epitron> when "hello" === "hello" is true, and 1 === 1 is true
<epitron> lol... Class === Class is true
<RegEchse> well, if you had looked up === in the documentation (like ri 'Module.===') everything would be clear to you. ;)
Guest29702 has quit [Ping timeout: 268 seconds]
<RegEchse> also why Class === Class. :)
<epitron> it explains THAT those things are true, not WHY :)
<epitron> i'm talking about semantics here
niang has quit []
<epitron> why is a Class === Class, and true === true, and nil === nil, but NilClass isnt === NilClass
savage- is now known as ryanlecompte
<RegEchse> because of the implementation of ===. o.o I don't see your point.
<RegEchse> If you want to test on equality there other methods.
<epitron> if the implementation of == said that 1 == 2, i would question its implementation :)
<RegEchse> === is for case
<RegEchse> and it does it's job quite well
<epitron> but why are classes not case-equal to each other?
<RegEchse> maybe you don't see the use case.
<RegEchse> case "foo"; when Integer; 1; when String; 2; else; 3; end # => 2
<RegEchse> That's because case actually tests String === "foo" (not the other way round)
<epitron> maybe you don't see the use case
<epitron> case String; when String
voker57 has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
jxie has joined #ruby-lang
joast has quit [Ping timeout: 250 seconds]
gnufied has quit [Quit: Leaving.]
tooky has quit [Remote host closed the connection]
headius has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
swarley has joined #ruby-lang
Mellett68 has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: Computer has gone to sleep.]
wmoxam_ has joined #ruby-lang
abletony84 has quit [Quit: leaving]
joast has joined #ruby-lang
ryanf has joined #ruby-lang
adambeynon has joined #ruby-lang
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
havenn has joined #ruby-lang
wmoxam_ has quit [Quit: leaving]
sepp2k has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
tooky has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
tooky has quit [Ping timeout: 264 seconds]
s1n4 has quit [Quit: leaving]
jMCg has joined #ruby-lang
<jMCg> Hello happy people o/~
<jMCg> I'm looking for a *sane* way (perhaps a wrapper around net/http) to download a potentially big file from https?:// and store it to a local file. While doing https verification and basic auth.
imajes has quit [Excess Flood]
macmartine has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
imajes has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
Sambalero has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 256 seconds]
krohrbaugh has joined #ruby-lang
cdt has joined #ruby-lang
cdt has quit [Read error: Connection reset by peer]
benanne has joined #ruby-lang
anjen has joined #ruby-lang
sailias has quit [Quit: Leaving.]
wyhaines has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
micaeked has joined #ruby-lang
<micaeked> hello. is there any way to shorten this? pagedata[:menulists][menu.id] = pagedata[:menulists][menu.id].sample(5)
workmad3 has quit [Ping timeout: 268 seconds]
S1kx has quit [Quit: Leaving]
wyhaines has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
setmeaway has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
deryl1 has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
deryl has quit [Ping timeout: 252 seconds]
Assurbanipal has quit [Quit: Konversation terminated!]
workmad3 has joined #ruby-lang
enebo has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby-lang
Mellett68 has joined #ruby-lang
<swarley> micaeked, make it two lines is all i can think of
em-dash has joined #ruby-lang
<erikh> probably not without making it a lot more expensive (sample is pretty fast)
gmci has joined #ruby-lang
<eam> jMCg: can you put files on the remote server? Do you control it?
<eam> if so, I strongly recommend using zsync
deryl1 has quit [Quit: Leaving.]
deryl has joined #ruby-lang
em-dash has left #ruby-lang [#ruby-lang]
<jMCg> eam: aehm. What does that have to do with ruby?
imajes has quit [Excess Flood]
<erikh> jMCg: ri OpenURI
<erikh> (comes with ruby)
rippa has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
<jMCg> erikh: that enables me to easily download a 58 MiB without straining memory? Over https? With Basic authentication?
<erikh> it should, but you should probably try it.
<erikh> the parameters to do basic auth aren't really well documented though.. you might need to root through the source a bit
<erikh> zzak: ^^^
derpops has quit []
<eam> jMCg: you asked how to do something. That's the best way
adambeynon has quit [Quit: Computer has gone to sleep.]
<jMCg> eam: no. You are assuming that's the best way without taking into account the constraints I mentioned are the ones that I really do face: I need to do this from ruby. I should be able to do it without installing any additional software (that is not provided, one way or the other, by ruby)
<eam> bro calm down, if you don't like advice you're free to ignore it
<eam> it was a suggestion
<eam> I use zsync and ruby together fairly extensively
Will-0351 has joined #ruby-lang
Will-0351 has left #ruby-lang [#ruby-lang]
<micaeked> swarley: what i'm trying to do is not repeat this part twice: pagedata[:menulists][menu.id] ... any way that's possible?
<eam> jMCg: you also didn't mention any constraints :p
<jMCg> eam: looks like a cool thing, but it's doesn't seem applicable with the constraints I have here. (Thanks for the tip, and sorry for seeming rude: I'm an admin. I'm using a framework for.. doing stuff for me: mcollective. And it's new to me that it's *this* hard to just download a friggin file.)
wyhaines has joined #ruby-lang
<eam> sure thing. If you care about constraints you should probably mention them when you ask questions though. Eg "must be pure ruby" or "must be in core"
<jMCg> So, we have this cool framework! - What does it do? - Anything you want! - Cool. I want to download this file from a webserver (https+basic auth) and put it into this tomcat, then restart it. How do I do that? - Well… I dunno. Look on the web for how to download a file in ruby. << Those were the actual words of the developer who wrote the framework.
<eam> yeah that sucks
micaeked has quit [Quit: WeeChat 0.3.8]
<jMCg> https://gist.github.com/405779 << This looks remotely sane.
<erikh> heh, chef has a resource for doing this exact thing
<erikh> gg puppet
carloslopes has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
<jMCg> Time a new devops wave takes off and we redo all the frameworks in javascript.
<swarley> lol
Sambalero has joined #ruby-lang
benanne has quit [Quit: kbai]
amzan has quit [Quit: Leaving]
<jMCg> Looking for the documentation for Curl::Multi, only finding that for Curl::Easy, I'm reminded of: http://abstrusegoose.com/474
krohrbaugh has joined #ruby-lang
t0n1_ has joined #ruby-lang
<eam> you're lucky you found documentation
headius has quit [Quit: headius]
xyzodiac has joined #ruby-lang
tooky has joined #ruby-lang
tooky has quit [Ping timeout: 264 seconds]
anjen has quit [Quit: anjen]
gsav_ has quit [Quit: Lost terminal]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has quit [Ping timeout: 248 seconds]
elux has quit [Quit: Bye!]
<zenspider> ruby_parser 3.0.0.a7 released!
sailias has joined #ruby-lang
<RegEchse> a7?
<erikh> release 167 of that version, naturally.
<swarley> lol
burgestrand1 has joined #ruby-lang
tubbo is now known as tubbo`werk
<injekt> :/
sailias has quit [Quit: Leaving.]
burgestrand has quit [Ping timeout: 240 seconds]
<injekt> that's a lot of alphas
<erikh> hey now
<erikh> nobody said anything about alphas
<injekt> you're a rockstar
<injekt> heh
<injekt> sorry
<injekt> let me put it without making assumptions: that's a silly version number
<erikh> I kicked you elsewhere for that
<injekt> hahaha
<swarley> lol
<injekt> what'd i do?
<swarley> how does one manage to get kicked for making assumptions?
<injekt> wow I joined back in the wrong channel
<injekt> I might just stay there
<erikh> haha
<injekt> wont get kicked
wyhaines has joined #ruby-lang
<swarley> i've only been kicked from #javascript
<injekt> erikh: :D
<swarley> because i kept saying that my heap was overflowing when people were telling me it wasnt
<swarley> i guess it was an obvious troll
<swarley> considering, no heap
JoelMcCracken has quit [Ping timeout: 260 seconds]
wyhaines has quit [Remote host closed the connection]
sailias has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
wpaulson has joined #ruby-lang
<zzak> erikh: pong
<erikh> document openuri!
<zzak> good idea
diegoviola has quit [Ping timeout: 244 seconds]
Shoffner has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby-lang
diegoviola has joined #ruby-lang
catmtking_ has joined #ruby-lang
sailias has quit [Quit: Leaving.]
catmtking has quit [Ping timeout: 245 seconds]
catmtking_ is now known as catmtking
wpaulson has left #ruby-lang [#ruby-lang]
diegoviola has quit [Ping timeout: 246 seconds]
tRAS has joined #ruby-lang
catmtking has quit [Remote host closed the connection]
catmtking has joined #ruby-lang
havenn has joined #ruby-lang
Shoffner has quit [Read error: Connection reset by peer]
Shoffner_ has joined #ruby-lang
<zzak> zenspider: ever take a look at those other racc commits?
Shoffner_ has quit [Client Quit]
elico has joined #ruby-lang
<elico> I want to trigger a "reconfigure" on runtime or "reload" from command line for a running daemon, any suggestions?
Shoffner has joined #ruby-lang
Rich_Morin has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
<Rich_Morin> I need to be able to unlink and create links on both Mac OX X and Windows - help? - http://pastie.org/4776417
t0n1_ has quit [Read error: Connection reset by peer]
<zzak> erikh: a lot of openuri is nodoc'd
alexkira has quit [Read error: Connection reset by peer]
alexkira has joined #ruby-lang
tRAS has quit [Ping timeout: 264 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<elico> Rich_Morin: there is no way to create link in windows!!! ntfs dosnt support it
<Rich_Morin> No hard links or symlinks or aliases? The mind boggles
<elico> no links at all in windows ntfs
<elico> you can store a file called links.something and store in there links and to work with it
<elico> if you are using ruby only program
<havenn> 2008, symbolic links now supported...
<havenn> Took a whil!
headius has joined #ruby-lang
<elico> havenn: holy crap I have never seen that before
<Rich_Morin> This code is running on MRI 1.8.6 on some random version of Windows. So, this sounds a bit like a tarpit
yalue has quit [Quit: Leaving]
solars has quit [Ping timeout: 264 seconds]
nXqd has joined #ruby-lang
alexkira has quit [Read error: Connection reset by peer]
alexkira has joined #ruby-lang
gsav has joined #ruby-lang
alexkira has quit [Read error: Connection reset by peer]
alexkira_ has joined #ruby-lang
alexkira_ has quit [Remote host closed the connection]
<zenspider> zzak: yeah. I merged em
Guest29702 has joined #ruby-lang
<erikh> Rich_Morin: ooh, it's probably the old windows installer too
<zenspider> fun fact: ruby shipping on osx has an odd bug: ruby -e 'p (2..20).inject(&:*)' works fine. ruby -e 'p (2..21).inject(&:*)' overflows and goes negative
<zenspider> same version compiled via multiruby? works fine. :/
diegoviola has joined #ruby-lang
<masterkorp> irb(main):006:0> statsd = Statsd.new("10.0.0.72")
<masterkorp> NoMethodError: undefined method `new' for Statsd:Module
<masterkorp> I got this error on ruby.18
<masterkorp> using this library
<masterkorp> works on 1.9.3
Shoffner has quit [Quit: Shoffner]
<masterkorp> fixed
<masterkorp> this was the correct name
coryf has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
<zenspider> masterkorp: looks like you need to make sure you're loading what you think you're loading...
<zenspider> look at $" to start
wyhaines has quit [Remote host closed the connection]
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<elico> >>
<elico> >>"l"
<masterkorp> zenspider: no, when requiring the the name is statsd
<masterkorp> that's the problem
<masterkorp> i needed to remove the statsd gem to use statsd-ruby gem
tooky has joined #ruby-lang
<zenspider> gotcha
mrsolo has quit [Quit: Leaving]
jamjam has joined #ruby-lang
tooky has quit [Ping timeout: 264 seconds]
lsegal has joined #ruby-lang
nofxx has quit [Ping timeout: 260 seconds]
mcooper has quit [Quit: mcooper]
faces has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
faces has joined #ruby-lang
Hakon has joined #ruby-lang
mytrile has quit [Read error: Connection reset by peer]
<zenspider> I'd love feedback..
toretore has quit [Quit: Leaving]
Rich_Morin has left #ruby-lang [#ruby-lang]
<zenspider> hoe 3.1.0 released!
<swarley> zenspider, that's actually a neat idea
<zenspider> minitest 3.5.0 released!
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<ryanf> zenspider: interesting
<blowmage> zenspider: congrats. love the pace.
<ryanf> the main reason I haven't tried rbenv or rbfu is that I use gemsets a lot
<zenspider> 1 minute 20 seconds to prep, document changes, version, and release...
<ryanf> so if that is a robust alternative then I might give it a shot
<zenspider> I'm unfamiliar with rbfu
<zenspider> ryanf: depends on your workflow if it'll work for you...
<havenn> even more minimalist than rbenv: https://github.com/hmans/rbfu
<zenspider> gem list | grep "^[a-z]" | wc -l => 10
<blowmage> omg -> lulz
yxhuvud has quit [Ping timeout: 256 seconds]
<zzak> zenspider: #10 and #11 are still open
<zenspider> hrm... I like rbenv because it doesn't need to do anything but manage PATH and some symlinks in a single dir. no wrappers needed at all.
<zenspider> that and it can install maglev
<havenn> zenspider: rbfu uses ruby-build as well
yxhuvud has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 11.0/20120313180949]]
<havenn> it's annoying that 'rvm cleanup all' kills maglev >.>
<zenspider> zzak: huh. I could have sworn I hit the merge button...
<zenspider> zzak: hrm... prolly should have been made against master... but that's not my problem
<zenspider> looks like the doco one IS in the 1.4 branch... why it didn't mark closed is beyond me
<zzak> zenspider: eric told me to work against 1.4 stable
postmodern has joined #ruby-lang
<zenspider> oh. no. that's #10, not #12
<zenspider> hrm... I disagree with that... and point to rubygems' fucked up 1.8 branch vs master as evidence
<zzak> let me find the quote
<swarley> i was looking into writing test cases, i know there is RSpec, Bacon, Test::Unit, and Cucumber, but i'm not sure which one is in general favor by the community
<zenspider> why do you do :doc: ?
<zenspider> swarley: minitest!
<zenspider> (duh)
<swarley> xD
<zzak> zenspider: acutally think it was in a PM
<swarley> i'll look at it
<zzak> zenspider: I wanted to doc those debugging methods, just dont know enough about them yet
<zenspider> zzak: can you kill off those :doc: entries? I don't think they do anything, do they?
<zzak> all of the racc_* methods are useful for debugging
<zenspider> sure... but :doc: doesn't have any purpose there afaik
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<zenspider> it's just noise
<swarley> racc is YACC for ruby yes?
workmad3 has joined #ruby-lang
<zzak> true
<zzak> okay, ill resubmit
<zenspider> swarley: yes
<zenspider> zzak: thanks
<havenn> swarley: RSpec is slow, Bacon is yummy, Test::Unit is included in Ruby and Cucumber is evil incarnate posing as a kitten. Minispec is included in Ruby, faster than the others, and has a Spec syntax if you <3 RSpec.
<zenspider> zzak: oooh... is it because of the `private` line?
<diegoviola> i'm forking a process, is there a way to send a message or signal to the parent process when the child one is gone?
<zenspider> zzak: in which case, nuke the :doc: AND the private line
<zenspider> nodoc everything else
<zenspider> isn't that what SIGCHILD is for?
<havenn> **minitest not minispec >.> (friday...)
<zenspider> s/HI/H/
<zzak> zenspider: yah, they're private
<diegoviola> zenspider: i'll look into that, ty
<zenspider> zzak: right. I never ever use private so I'm not used to :doc:
havenn has left #ruby-lang ["Leaving..."]
<zenspider> do what you see fit. I'll hit merge right now if you'd prefer
catmtking has quit [Ping timeout: 248 seconds]