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]
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.]
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.
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.]
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.
<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. :/
<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