Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
Draco_ [Draco_!~draco@206.222.164.179] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
devdazed [devdazed!~russ_nyc@cpe-74-66-233-162.nyc.res.rr.com] has joined #ruby
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
Jake232 [Jake232!~textual@5e04d619.bb.sky.com] has joined #ruby
Natch| [Natch|!~natch@178.73.217.159] has joined #ruby
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby
albedoa [albedoa!~albedoa@64.134.228.168] has joined #ruby
<albedoa> hi! every time i try to use a form helper such as text_field_tag, Sinatra throws me an error: undefined method `text_field_tag'
<albedoa> which makes me think i'm doing it all wrong
<albedoa> are there any examples available to show exactly what goes where?
<confounds> albedoa try #sinatra ;). this is for ruby
<albedoa> thanks
Ogion [Ogion!~Ogion@5ED5EA36.cm-7-6d.dynamic.ziggo.nl] has joined #ruby
duke^ [duke^!~aherttua@kekkonen.cs.hut.fi] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
trend [trend!~craigslis@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
Ogion [Ogion!~Ogion@5ED5EA36.cm-7-6d.dynamic.ziggo.nl] has quit [#ruby]
<a|i> is it possible to ad a git submodule to a ruby gem source, and distribute it like that?
jwang [jwang!~jwang@108.4.149.233] has joined #ruby
zodiak [zodiak!~stef@cpe-75-84-218-68.socal.res.rr.com] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
patterson [patterson!~ethics@c-24-4-180-66.hsd1.ca.comcast.net] has joined #ruby
patterson [patterson!~ethics@c-24-4-180-66.hsd1.ca.comcast.net] has quit [#ruby]
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
Tom_ [Tom_!~Tom@adsl-75-34-211-178.dsl.chcgil.sbcglobal.net] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
<loganvt> :win c
loganvt [loganvt!~loganlinn@ip24-252-131-162.rn.hr.cox.net] has quit [#ruby]
becom33 [becom33!~becom33@112.135.199.214] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-24-167.lnse1.ken.bigpond.net.au] has joined #ruby
naxx|mbp [naxx|mbp!~naxxatoe@chello080108013055.34.11.vie.surfer.at] has joined #ruby
<rcs> Any gems useful for parsing ruby? I'd love to take a look at all the files in lib/ and say how many function definitions there are, lines per function, etc.
<rcs> cyclomatic complexity would be a bonus :-)
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<rcs> parsetree looks useful.
GoMittGo [GoMittGo!~Rapeseed@187.184.66.18.cable.dyn.cableonline.com.mx] has joined #ruby
janissary [janissary!~user@adsl-98-70-95-30.mco.bellsouth.net] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
davidcelis [davidcelis!~david@108-64-212-213.lightspeed.sndgca.sbcglobal.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
albedoa [albedoa!~albedoa@nv-71-53-164-166.dhcp.embarqhsd.net] has joined #ruby
byronb [byronb!~byron@c-67-161-120-149.hsd1.wa.comcast.net] has joined #ruby
wookiehangover [wookiehangover!~wookiehan@c-67-161-138-118.hsd1.co.comcast.net] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
wyhaines_ [wyhaines_!~wyhaines@65.39.118.15] has joined #ruby
locust [locust!~alex@p5DE82491.dip.t-dialin.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p50845284.dip0.t-ipconnect.de] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
<trend> strange.. I just installed the mechanize gem.. and I can require 'mechanize' in the irb.. but I get this error in an .rb file.. any ideas? facebook.rb:4:in `require': no such file to load -- mechanize (LoadError) from facebook.rb:4
blueadept` [blueadept`!~blueadept@72.21.137.199] has joined #ruby
<trend> nm, fixed
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
devdazed [devdazed!~russ_nyc@cpe-74-66-233-162.nyc.res.rr.com] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
jrist [jrist!~jrist@71-212-208-163.hlrn.qwest.net] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby
<robert_> anyone here want to help with writing a modified INI parser? :\
nerded [nerded!~nerded@70.44.19.9.res-cmts.haw.ptd.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<wassy121_> why not use yaml, ruby support is easy for that
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
symb0l [symb0l!~symb0l@cpe-24-27-107-175.tx.res.rr.com] has joined #ruby
<robert_> because I don't like how yaml is picky about spaces
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@115.189.224.151] has joined #ruby
<shevy> robert_ I think there were a few INI parsers
h4mz1d [h4mz1d!~hamfz@adsl-072-148-022-091.sip.bhm.bellsouth.net] has joined #ruby
<shevy> and if not, and you write one, make sure to put in on github
<shevy> I could need one though it has low priority ;P
<robert_> :p
<robert_> yeah I'm looking for something similar to WINE's registry format
banisete_ [banisete_!~baniseter@115.189.198.181] has joined #ruby
otters [otters!~incluye@208.102.195.210] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@115.189.217.220] has joined #ruby
denysonique__ [denysonique__!u484@gateway/web/irccloud.com/x-utnvqmvqkkasdakr] has joined #ruby
naxx|mbp [naxx|mbp!~naxxatoe@chello080108013055.34.11.vie.surfer.at] has quit [#ruby]
pusewicz_ [pusewicz_!u2036@gateway/web/irccloud.com/x-dneflbedmcjdvsxr] has joined #ruby
banisete_ [banisete_!~baniseter@122.63.140.170] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-ezpqrydidjbnqwfd] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-ubidlsgnofdrihvs] has joined #ruby
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-gtemnriuhsglzyqb] has joined #ruby
tectonic [tectonic!~tectonic@pool-72-78-244-216.phlapa.fios.verizon.net] has joined #ruby
<tectonic> how do I pass arguments into a block when also instance_evaling it? http://codepad.org/OQevjMY9
<tectonic> this should be possible, I think.
kassien__ [kassien__!~kassien@218.240.145.56] has joined #ruby
Draco__ [Draco__!~draco@117.63.172.180] has joined #ruby
<tectonic> Ah! instance_exec
sorin [sorin!~sorin@24-240-25-232.dhcp.gwnt.ga.charter.com] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-ixzihhqnvufzyfem] has joined #ruby
Guest33351 [Guest33351!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
cesario [cesario!u2444@gateway/web/irccloud.com/x-xgswdxtoweovypse] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-flwbkdxfwqbetdhp] has joined #ruby
<sorin> Hey, there is some weirdness with the match operator =~. It doesnt' like > in a regex like />/. I've tried escaping it with /\>/ as well. However />/.match(string) works fine.
<sorin> Ruby 1.8.7
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-huiyptgtxhxtjpiy] has joined #ruby
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
hcchien [hcchien!~hcchien@74.117.61.202] has joined #ruby
jergason [jergason!~jergason@66.49.164.67] has joined #ruby
<tectonic> not that i've heard of
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-cbgtybualmozpvur] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<Gekz> is it possible to import a module into the namespace?
<Gekz> I don't want to have to type Nokogiri::XML::Node everytime I want a new Node
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-ksjlvqnzskhaurmc] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-ksjlvqnzskhaurmc] has joined #ruby
pkondzior [pkondzior!u768@gateway/web/irccloud.com/x-eovjcowvwgvpwvdj] has joined #ruby
Evixion [Evixion!Evixion@67.235.68.96] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-dnsafbpxhxgcjiat] has joined #ruby
symb0l [symb0l!~symb0l@cpe-24-27-107-175.tx.res.rr.com] has joined #ruby
<shevy> Gekz include Nokogiri or include Nokogiri::Xml
<shevy> Nokogiri::XML
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
<Gekz> ah, that's what include is for
<Gekz> okay thanks
<shevy> then using "Node" alone can be used
<Gekz> I can do that at the block level?
<shevy> not sure what you mean with block level, but say you have a class Bar, that resides in module Foo
SecretAgent [SecretAgent!~sa@diablo.elhefe.org] has joined #ruby
<shevy> or rather...
<shevy> let me make an example quickly
rhett_ [rhett_!~rhett@cpe-70-124-81-93.austin.res.rr.com] has joined #ruby
<sorin> My regex problem also happens with the lastest 1.9.3
<sorin> =~ doesn't like '>' character
<sorin> />/.match works fine
<Gekz> shevy: yeah, what I meant was, could I put "include Foo::Bar" inside a def?
radic [radic!~radic@dslb-178-002-215-157.pools.arcor-ip.net] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
<shevy> Gekz, seems to work fine http://pastie.org/3077812
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
<tectonic> sorin: can you pastie an example?
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
pkondzior [pkondzior!u768@gateway/web/irccloud.com/x-eovjcowvwgvpwvdj] has quit [#ruby]
<mksm> any suggestions on how to improve: "(a-b) < 0 ? 0 : (a-b)" ? it feels redundant
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-eiecfyujywjjmccs] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-zcmdwzemtprseqrf] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
albedoa [albedoa!~albedoa@nv-71-53-164-166.dhcp.embarqhsd.net] has joined #ruby
<davidcelis> Not that I can think of immediately...
<robert_> shevy: http://codepad.org/EGNhsFuI -- for some reason, I'm not getting why the "unless @registry[path] == nil" isn't executing.. it should be returning nil, lol
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
<davidcelis> stick a puts statement in. see what @registry[path] is actually set to
<robert_> it comes up to an empty hash
<robert_> oh wait
<davidcelis> well if @registry[path] is nil, then you will enter that unless block
deweysmith [deweysmith!u3113@gateway/web/irccloud.com/x-mmzglknolhmiouri] has joined #ruby
<robert_> hmm
<robert_> http://codepad.org/DgsVhApb <-- how about that?
<davidcelis> dude why are your indents
<davidcelis> so huge
<davidcelis> eight space
<davidcelis> s
<robert_> because I use four-space tabs
<rippa> don't
<davidcelis> yeah
<davidcelis> dont
<rippa> use two spaces like all people
<robert_> I hate spaces
<davidcelis> soft tabs. two space.
<robert_> I'm not all people
<davidcelis> then don't use ruby :)
<robert_> I have my own style :p
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
<davidcelis> it's a matter of readability
<davidcelis> for people that you have read your code
<davidcelis> like us
<davidcelis> generally, I will not take my own time to look at someone else's unless I can read it
* robert_ de-tabifies his code, then
srid_ [srid_!u3297@gateway/web/irccloud.com/x-uinmfploxdbqpywe] has joined #ruby
srid_ [srid_!u3297@unaffiliated/srid] has joined #ruby
srid_ [srid_!u3297@gateway/web/irccloud.com/x-uinmfploxdbqpywe] has joined #ruby
mitchty_ [mitchty_!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
pusewicz__ [pusewicz__!u2036@gateway/web/irccloud.com/x-umayjluzckaxktig] has joined #ruby
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-cinrldlckbnngkac] has joined #ruby
parus [parus!parus@gateway/shell/anapnea.net/x-tjykmcvkfjwvkogo] has joined #ruby
<robert_> ugh
<robert_> this is also the problem with spaces
<robert_> I can never tell if things are lined up correctly
<davidcelis> configure your editor correctly
<davidcelis> so that when you hit tab, it inserts spaces
<davidcelis> any editor worth coding with can do this
<davidcelis> it's just Ruby convetion that the number of spaces is 2
p0y [p0y!~p0y@112.210.38.91] has joined #ruby
Kamoi [Kamoi!Kamoi@71-10-80-225.dhcp.roch.mn.charter.com] has joined #ruby
sorin [sorin!~sorin@24-240-25-232.dhcp.gwnt.ga.charter.com] has joined #ruby
<robert_> nano doesn't have code-folding or anything
<robert_> and I avoid vim and emacs like the plague <.<
<robert_> well notsomuch vim
<robert_> but emacs definitely
<robert_> are you happy? lol
<robert_> (sorry, ignore my previous comment)
<Jonah11_> since parentheses are optional in ruby method invocation, why are they required in this code: 4.upto(6) {|x| print x}
<davidcelis> Did you just define a method within a method?
<rippa> lol
<rippa> I heard you like methods
<robert_> I did that because I only wanted to use it once
<robert_> lol
<davidcelis> I know that works, but I'm not actually sure of whether or not that's generally acceptable
<davidcelis> Anyway...
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-pkvcnzekeieuvabk] has joined #ruby
<robert_> does ruby support anonymous methods?
<robert_> methods/functions
<robert_> rather
<rippa> lambdas
<shevy> robert_ I use bluefish 1.0.7 still for writing ruby code :D
<shevy> 2.2.1 is out but they changed a few things... I dont like the "find in page" on top... and they changed syntax highlighting... which I have to fix before switching to 2.2.1. or perhaps I switch to geany...
<robert_> shevy: aha. :D
<rippa> robert_: Kernel#lambda
<robert_> ah.
<shevy> hmm pastie.org is nicer than codepad.org btw, has nicer colours
<shevy> Jonah11_ because the parser needs to determine when a {} block starts
<shevy> though it would be kinda cool to do:
<shevy> foo '6' { 'hi there!' }
<shevy> rather than
<shevy> foo('6') { 'hi there!' }
<rippa> 4.upto 6 do |x| p x end
<rippa> this works
<shevy> btw robert_
<rippa> so I guess it's because of hash syntax
<robert_> shevy: I forgot about pastie.
<robert_> :D
<shevy> why do you use () in code like that? if(node.length == 2) isn't if node.length == 2 easier to read?
<Jonah11_> shevy, i'm not following why it needs parentheses to realize that a { starts.
<shevy> 4.upto 6 { |x| p x }
<shevy> SyntaxError: compile error
<shevy> I am not sure why do/end works and {} does not
<robert_> shevy: oh, I found that code. my code is the overload for []
<robert_> I just haven't bothered to change it
<robert_> heh
<Jonah11_> shevy, maybe it's ambiguous according to the parsing rules?
<Jonah11_> tho i'm not sure what it could be confused with
<shevy> well rippa said it could be because of the {} Hash syntax
<shevy> then also ruby needs to figure out whether ... you want to do ...
<robert_> yeah
<shevy> foo({"hi"=>"ho"})
<shevy> or
<davidcelis> shevy: gist > pastie > codepad > pastebin
<shevy> foo() {"hi"=>"ho"}
<shevy> hmm actually ...
<shevy> I managed to confuse myself
<robert_> heh
rramsden [rramsden!~rramsden@207.216.52.184] has joined #ruby
<shevy> because often enough () parens are optional
<Jonah11_> shevy, i think thats the right track tho
<shevy> foo({"hi"=>"ho"})
<shevy> foo {"hi"=>"ho"}
<shevy> :\
<shevy> anyway, I need to be afk, laters.
<robert_> shevy: yeah, like I said- I found the code for the ini parser; it was like that when it got copied, lol.
<robert_> later.
<savage-> oh man
<savage-> guys
<savage-> sublime text 2 is amazing
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@115.189.96.209] has joined #ruby
<robert_> ooooh
<robert_> nice
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
<aces1up> can someone help me with this bit of code, I want to return both the hash_found and the result of the match_found? function
<aces1up> basically match_found? returns false if no match, if there is a match, it returns the match.
Brandonn [Brandonn!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
manizzle [manizzle!~manizzle@adsl-99-32-116-87.dsl.pltn13.sbcglobal.net] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
banisete_ [banisete_!~baniseter@115.189.57.77] has joined #ruby
Boohbah [Boohbah!boohbah@gateway/shell/anapnea.net/x-firrncbflrkzkcyy] has joined #ruby
wyhaines_ [wyhaines_!~wyhaines@65.39.118.15] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
ascarter [ascarter!~ascarter@67-42-88-2.tukw.qwest.net] has joined #ruby
incluye [incluye!~Adium@208.102.195.210] has joined #ruby
AndChat- [AndChat-!~AndChat@eai185.neoplus.adsl.tpnet.pl] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
danneu [danneu!~danneu@li370-225.members.linode.com] has joined #ruby
rramsden [rramsden!~rramsden@207.216.52.184] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
Draco_ [Draco_!~draco@206.222.164.163] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
<robert_> davidcelis: [HKEY_ROOT] found in @registry: true
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
<davidcelis> .....
<davidcelis> wot
<robert_> it sees it, but for some reason, the .key? isn't coming back true
<robert_> or it's not executing my code :/
<robert_> and
<robert_> {"HKEY_ROOT"=>{"Debug Mode = N\nLanguageId = Ruby"=>nil}, "HKEY_ROOT\\Configuration"=>{}, "HKEY_ROOT\\Configuration\\RACK"=>{}, "HKEY_ROOT\\Configuration\\Thin"=>{}, "HKEY_ROOT\\Configuration\\Mongrel"=>{}, "HKEY_ROOT\\Configuration\\WEBrick"=>{}, "HKEY_ROOT\\Web Server"=>{}, "HKEY_ROOT\\Web Server\\RACK"=>{}, "HKEY_ROOT\\Web Server\\Thin"=>{}, "HKEY_ROOT\\Web Server\\Mongrel"=>{}, "HKEY_ROOT\\Web Server\\WEBrick"=>{}}
ryanf [ryanf!~revfitz@adsl-67-117-145-203.dsl.snfc21.pacbell.net] has joined #ruby
byronb [byronb!~byron@c-24-18-227-118.hsd1.wa.comcast.net] has joined #ruby
ia9371 [ia9371!~ia9371@ip68-13-220-234.hr.hr.cox.net] has joined #ruby
wookiehangover [wookiehangover!~wookiehan@c-67-161-138-118.hsd1.co.comcast.net] has joined #ruby
jergason_ [jergason_!~jergason@dsl-173-248-248-27.acanac.net] has joined #ruby
<robert_> (davidcelis, that was for you.)
choi0hun [choi0hun!~choi0hun@175.198.167.16] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-24-167.lnse1.ken.bigpond.net.au] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
ksinkar [ksinkar!~ksinkar@117.195.108.198] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@115.189.57.77] has joined #ruby
<robert_> baniseterfiend`: sup? :D
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
ia9371 [ia9371!~ia9371@ip68-13-220-234.hr.hr.cox.net] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@115.189.233.211] has joined #ruby
<Jonah11_> can someone explain why &block is explicitly added as a parameter in the first example, but not in the 2nd? http://pastie.org/3078171
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
<incluye> because yield yields to a given block
<incluye> and errors out if no block is given
<incluye> whereas you usually add the block as a parameter if you need to use it in other ways in the function
<ksinkar> how do I append to a file object in ruby?
<incluye> like pass it to other methods, etc
Gosh [Gosh!~textual@CPE08863b65124f-CM00223a307f46.cpe.net.cable.rogers.com] has joined #ruby
<Jonah11_> incluye, so in the 2nd example, you could have passed it, it just would have been unnecessary since you don't need it when you use yield?
<incluye> yeah
<incluye> in the 2nd example, it would be instead something like
<incluye> have &block in the parameter list
<incluye> and then replace yield(...) with block.call(...)
<incluye> IIRC
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
<Jonah11_> incluye, ok that makes sense, ty
<incluye> *nod*
<Jonah11_> incluye, somewhat related: http://pastie.org/3078179. I dont understand why we need a "yielder" variable to call yield on. why is not just "yield number"?
<incluye> \(O_o)/
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
<ksinkar> this is what I am trying to achieve http://pastebin.com/H1ucpemT
<incluye> okay
baordog [baordog!~chatzilla@ip98-163-238-43.no.no.cox.net] has joined #ruby
<baordog> Hellow ruby peeps
<incluye> hi dur
CoverSlide [CoverSlide!~richard@pool-108-38-148-191.lsanca.fios.verizon.net] has joined #ruby
symb0l [symb0l!~symb0l@cpe-24-27-107-175.tx.res.rr.com] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@122.63.221.80] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
d3c [d3c!~d3c@4406ds2-abc.0.fullrate.dk] has joined #ruby
<d3c> I can't get dbh.quote to work with mysql. shouldn't it work? method isn't defined which seems strange. using dbh = DBI.connect('DBI:Mysql:...')
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
manizzle [manizzle!~manizzle@adsl-99-32-116-87.dsl.pltn13.sbcglobal.net] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
codespectator [codespectator!~codespect@host217-43-216-1.range217-43.btcentralplus.com] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
shevy [shevy!~shevy@178-190-71-101.adsl.highway.telekom.at] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
<Jonah11_> why am i getting an "unexpected end" error on line 10: http://pastie.org/3078289
<Gekz> other than using "include" for shortening module names, how can you shorten calls?
<Gekz> my issue being I want to do Node.new not Nokogiri::XML::Node.new all the time
<Gekz> only in one class
<incluye> Jonah11_: ruby doesn't have ++
<Jonah11_> incluye, that would explain it. thx
pen [pen!~pen@140.112.30.129] has joined #ruby
<rippa> Gekz: Node = Nokogiri::XML::Node
<Gekz> clasrip.rb:59: dynamic constant assignment
<Gekz> Node = Nokogiri::XML::Node
<Gekz> oh right, outside the def
<Gekz> thanks
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
azbarcea__ [azbarcea__!~quassel@79.114.119.25] has joined #ruby
<robert_> d3c: I'm trying to use ODBC, lol
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby
baniseterfiend` [baniseterfiend`!~baniseter@122.63.141.39] has joined #ruby
Kambus [Kambus!~kambus@81-0-126-180.pool.invitel.hu] has joined #ruby
<robert_> baniseterfiend` :D
<baniseterfiend`> hi
<robert_> hi
s33k [s33k!~s33k@223.236.203.132] has joined #ruby
<robert_> how's it going? :D
rpowell [rpowell!~rpowell@CPE-121-216-24-167.lnse1.ken.bigpond.net.au] has joined #ruby
<baniseterfiend`> not bad
<robert_> fun
<robert_> I'm working on a registry-type INI parser
<robert_> but it doesn't seem to work
<robert_> lol
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
<banisterfiend> 'lol' should be left for exceptional circumstances where you're actually laughing out loud, over using it like that just rots your brain and this could be part of the reason why you're finding your program difficult to write
<incluye> lol is the new " "
<robert_> that was a nervous, "eheheh. I'm sucking, and I don't know why." :p
<banisterfiend> incluye: true!
<robert_> banisterfiend: http://pastie.org/3078115
<robert_> that's what I'm working on
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby
<rippa> it's a misuse of inject
<ryanf> banisterfiend: that's why you should use "llvh"
<ryanf> it stands for "literally laughing very hard"
<robert_> rippa: the ini parser isn't mine, lol
aantix [aantix!~jjones@70-36-141-115.dsl.dynamic.sonic.net] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
<robert_> rippa: what yould you use instead of that?
<rippa> each_with_object
USER [USER!~chatzilla@122.172.205.236] has joined #ruby
jonathan___ [jonathan___!~jonathan@121.33.141.180] has joined #ruby
<USER> hello everyone I want someone to help me on a research paper on ruby mixins.... I like someone to think of a really good example of when conflict happens using mixins. Someone help?
<USER> no1 here?
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
<robert_> rippa: okay, so.. how would each_with_object apply to this?
bamboozle [bamboozle!~david@watch.out.for.those.crafty.r0b0ts.org] has joined #ruby
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby
<robert_> hopefully it's just an example :p
<robert_> I'm trying to pick ruby up myself
<robert_> oh
<robert_> that's why.
<incluye> or better yet
<incluye> hash[](*val.split("="))
<robert_> so that one-liner instead of assigning key=val?
<robert_> so just*
p1d [p1d!~p1d@tmo-103-80.customers.d1-online.com] has joined #ruby
<incluye> it's not really better, I was taking advantage of ruby's syntactic sugar
<robert_> oh.
<incluye> errr
<robert_> hm
<incluye> hash[]=(*val.split("="))
<incluye> is what it would be, I think
<robert_> "unexpected tLPAREN2" :p
<incluye> figured
<robert_> and
<incluye> disregard pretty much my last ten lines
<rippa> incluye: hash.[]=(*val.split("="))
<incluye> oh, forgot the dot
<incluye> hahaha duh
<robert_> and, "wrong number of arguments(3 for 2) (ArgumentError)"
<incluye> well then it has two equals signs in it
<rippa> hash.[]=(*val.split("=", 1))
<rippa> ehm
<rippa> hash.[]=(*val.split("=", 2))
<robert_> thast's better. :D
jbpros [jbpros!~jbpros@83.101.74.71] has joined #ruby
<robert_> so what about http://pastie.org/3078439?
<robert_> I'm getting, "[HKEY_ROOT] found in @registry: true"
<robert_> but the if isn't evaluating.
denysonique__ [denysonique__!u484@gateway/web/irccloud.com/x-bhfqnjmlewimthfk] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-cesspfdwboivvqhj] has joined #ruby
<robert_> hm
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-njcesdainrkkcqex] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-218-161-233.lnse4.cht.bigpond.net.au] has joined #ruby
<robert_> nevermind. :D
deweysmith [deweysmith!u3113@gateway/web/irccloud.com/x-dlvpvdcjkpgwzbnw] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-pyhzzspgbaxakeuw] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-fytadwknnslovbkq] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-akordypboaqdxekk] has joined #ruby
cesario [cesario!u2444@gateway/web/irccloud.com/x-yvnplkhewritsjug] has joined #ruby
nonotza [nonotza!~nonotza@adsl-65-8-164-251.mia.bellsouth.net] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-xhugzjwtvusnfubp] has joined #ruby
Liothen_ [Liothen_!~liothen@24-119-65-28.cpe.cableone.net] has joined #ruby
mengu [mengu!~mengu@95.70.194.61] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
hemanth [hemanth!~hemanth@121.244.159.130] has joined #ruby
BiHi [BiHi!~bihi@oahulabs-221-158.cnt.nerim.net] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
marcol [marcol!~marcol@ppp-220-3.26-151.libero.it] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.207.96] has joined #ruby
BiHi_ [BiHi_!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
jonnie|home [jonnie|home!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
banister_ [banister_!~baniseter@122.63.207.96] has joined #ruby
pen [pen!~pen@2001:288:1001:28:d022:675b:1862:f4fd] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.44.178] has joined #ruby
p1d [p1d!~p1d@tmo-103-80.customers.d1-online.com] has joined #ruby
<USER> Hi a newbie to ruby here :) I would like a head start for creating an automailer report script. Like to take info from the db and write to an xls file. Someone help me give a kick off?
<USER> a standslone script it is
nonotza [nonotza!~nonotza@adsl-65-8-164-251.mia.bellsouth.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.244.181] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
ekampf [ekampf!~eran@91.199.119.156] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
jonnie|home [jonnie|home!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby
Administrador [Administrador!~Administr@109.108.175.134] has joined #ruby
<Turboforce> Hi =) Who speak spanish?
Jrz [Jrz!~jrz@ip30-47-210-87.adsl2.static.versatel.nl] has joined #ruby
<Turboforce> Hi =) Who speak spanish?
jonnie|home_ [jonnie|home_!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<Turboforce> -.-
<Turboforce> Geeks!!!!!!!!!!
Turboforce [Turboforce!~Administr@109.108.175.134] has quit ["Saliendo"]
sgronblo [sgronblo!~sgronblom@218.223.19.176] has joined #ruby
king313 [king313!~king313@184.Red-81-34-70.dynamicIP.rima-tde.net] has joined #ruby
king313 [king313!~king313@unaffiliated/king313] has joined #ruby
d3c_ [d3c_!~d3c@4406ds2-abc.0.fullrate.dk] has joined #ruby
hasham2 [hasham2!~hasham2@175.110.120.228] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
mohits1 [mohits1!~Mohit@115.113.153.226] has joined #ruby
polysics [polysics!~luca@host7-14-static.4-79-b.business.telecomitalia.it] has joined #ruby
<polysics> hello
mohits [mohits!~Mohit@unaffiliated/mohits] has joined #ruby
<polysics> is there a way to have a block executed in the context where it is created?
<polysics> eg. my_method { print_info } INSIDE a class method that defines print_info?
<yxhuvud> you mean like instance_eval?
<rippa> #instance_exec
<rippa> too
<polysics> hmm
<polysics> instance_eval would require me to pass around a reference to the context though
<polysics> let me gist some code
<polysics> CallController defines play
<polysics> in the invalid and other blocks at the end
<polysics> i would like to be able to call MenuController methods inside those blocks
<polysics> i can just set a variable with self and call var.play but that's not pretty
<polysics> basically, the invalid functions are just shorthands
<yxhuvud> you can pass self as an arguemnt to the block
<polysics> invalid {|self| self.play "123" } ?
<polysics> isn't there a way to make that implicit?
d3c [d3c!~d3c@4406ds2-abc.0.fullrate.dk] has joined #ruby
<polysics> if not, ok, honestly asking :-)
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<yxhuvud> normal block semantics have the block being executed in the scope defining the block.
<yxhuvud> It is when you want to go outside that you have to jump through hoops
<polysics> the block is being passed through instance_eval as you can notice from it missing the argument
<polysics> so maybe that changes the scope
<polysics> so there isn't any "short" way to get the pasted code to execute play on the controller instance?
<yxhuvud> it does.
<polysics> so i would need to "restore" the scope for those blocks somehow, or just use self for the time being?
<rippa> yxhuvud: seems like menu method changes scope
<yxhuvud> post a more complete gist, with all the current code, and how you want it to behave.
<yxhuvud> rippa: you are probably correct
Profit [Profit!~profit@c83-254-248-151.bredband.comhem.se] has joined #ruby
grekko [grekko!~grekko@92-245.eduroam.RWTH-Aachen.DE] has joined #ruby
NinoScript [NinoScript!~anonymous@pc-55-124-83-200.cm.vtr.net] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
Jackneill [Jackneill!~Jackneill@unaffiliated/jackneill] has joined #ruby
<krz> how do i check if number is divisible by 10?
<krz> i tried: n % 10 == 0
<krz> but if n equals 0, it still returns true
<polysics> back, sry
flimmern [flimmern!~se@2001:67c:20a1:1108:e031:e7fc:3040:3a2d] has joined #ruby
<polysics> yes, menu changes scope, the block is given to a menu_builder.instance_eval(&block)
<polysics> that ofc makes the context the menu_builder one
<rippa> krz: 0 is divisible by 10
pex [pex!~pex@31-18-104-179-dynip.superkabel.de] has joined #ruby
<banisterfiend> polysics: you can store the original self inside an ivar (or thread local var) on the menu buidler object, and then invalid and friends can lookthere to grabit anduse it to instance_eval the blocks they're passed
Asher [Asher!~asher@98.158.127.150] has joined #ruby
p1d [p1d!~p1d@tmo-102-168.customers.d1-online.com] has joined #ruby
<banisterfiend> polysics: MenuBuilder.new(block.binding.eval('self')).instance_exec(&block)
moshef [moshef!~moshe@84.94.109.182.cable.012.net.il] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::54b] has joined #ruby
<banisterfiend> polysics: ok?
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
radic [radic!~radic@dslb-178-002-215-157.pools.arcor-ip.net] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
Guest33351 [Guest33351!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
cousine [cousine!~cousine@196.221.61.89] has joined #ruby
fatnic388 [fatnic388!~dave@027c5fd6.bb.sky.com] has joined #ruby
vicvicvic [vicvicvic!~victor@c213-89-97-43.bredband.comhem.se] has joined #ruby
<vicvicvic> with python, i can let pip install in "develop" mode so that i don't have to reinstall all the time when developing (it just installs an alias to the source directory)… is there something similar for gem?
limbiciusz [limbiciusz!4d4fc63d@gateway/web/freenode/ip.77.79.198.61] has joined #ruby
<vicvicvic> or perhaps rather, how should i be developing with ruby so that my changes are reflected immediately?
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1127:21e:c2ff:feae:ae44] has joined #ruby
fatnic388 [fatnic388!~dave@027c5fd6.bb.sky.com] has quit [#ruby]
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
Borland [Borland!~Borland@124.237.broadband12.iol.cz] has joined #ruby
tk_ [tk_!~tk@p252198.doubleroute.jp] has joined #ruby
<Borland> Hello world
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
elia_ [elia_!~elia_@93-36-219-123.ip62.fastwebnet.it] has joined #ruby
Marco_ [Marco_!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1112:21e:c2ff:feae:ae44] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
Marco_ [Marco_!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
kf8a [kf8a!~kf8a@dslfw4.mei.net] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
joe-mac [joe-mac!~mickysanc@c-24-128-49-234.hsd1.ma.comcast.net] has joined #ruby
<joe-mac> is there any common or standard accepted way to do the equivalent of 'load' with but with a shared namespace in both directions?
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1104:21e:c2ff:feae:ae44] has joined #ruby
<banisterfiend> joe-mac: wtf does that mean
<joe-mac> banisterfiend: I want variables in a load'd rb file to be accessible in the code that called load
<joe-mac> and vice versa
<banisterfiend> joe-mac: you just mean local variables right?
<joe-mac> right
<banisterfiend> then it'snothing to do with name spacing
<banisterfiend> it's to do with local scope
<joe-mac> sure it's scope, I meant scope not name sapce
<joe-mac> been up for 20 hours now
<banisterfiend> joe-mac: ok, just eval them in the same binding
<joe-mac> k... figured it'd be eval
<joe-mac> that is the most common way I assume?
<banisterfiend> joe-mac: TOPLEVEL_BINDING.eval File.read("hello1.rb") && TOPLEVEL_BINDING.eval File.read("hello2.rb")
<joe-mac> banisterfiend: thank you sir
<joe-mac> I feel dirty doing this but... just a small script anyways
<banisterfiend> joe-mac: most people dont do it at all without really really good reason
<banisterfiend> why not just use methods instead of locals?
<joe-mac> yea my really good reason is this is a hack anyways heh
leo2007 [leo2007!~leo@123.123.254.37] has joined #ruby
<joe-mac> this is just a script that generates boilerplate headers and comments and option parsing code etc in code files... it's not like an actual program that people will use, so I don't mind if it's less than ideal in its design and implementation
<banisterfiend> oh ok
<joe-mac> people besides mei mean
<banisterfiend> rippa: what's going on in russia btw, are people really rising up against putin?
<rippa> dunno
<rippa> here's all calm
<joe-mac> thanks again banisterfiend wold have taken me a few minutes longer than this to figure that one out, peace
joe-mac [joe-mac!~mickysanc@c-24-128-49-234.hsd1.ma.comcast.net] has quit [#ruby]
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
ezkl [ezkl!~ezkl@dynamic-acs-24-144-206-131.zoominternet.net] has joined #ruby
lateau_ [lateau_!~Adium@KD125054233174.ppp-bb.dion.ne.jp] has joined #ruby
lateau_ [lateau_!~Adium@KD125054233174.ppp-bb.dion.ne.jp] has joined #ruby
dkr [dkr!~dkr@67.132.255.16] has joined #ruby
randym [randym!~randym@EM111-191-238-34.pool.e-mobile.ne.jp] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
daevy [daevy!daevy3k@93-58-92-142.ip157.fastwebnet.it] has joined #ruby
daevy [daevy!daevy3k@93-58-92-142.ip157.fastwebnet.it] has quit [#ruby]
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
tomasantonj [tomasantonj!~Adium@c213-89-112-209.bredband.comhem.se] has joined #ruby
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby
p1d [p1d!~p1d@tmo-102-168.customers.d1-online.com] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
macabre [macabre!~macabre@63.133.215.18] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
devdazed [devdazed!~russ_nyc@cpe-74-66-233-162.nyc.res.rr.com] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-180-65.hsd1.il.comcast.net] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
p1d [p1d!~p1d@93.215.133.25] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has joined #ruby
Synthead [Synthead!~max@173-165-179-126-atlanta.hfc.comcastbusiness.net] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has quit [#ruby]
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has quit [#ruby]
luislavena [luislavena!b5013a76@gateway/web/freenode/ip.181.1.58.118] has joined #ruby
luislavena [luislavena!b5013a76@gateway/web/freenode/ip.181.1.58.118] has quit [#ruby]
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
devdazed [devdazed!~russ_nyc@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1127:21e:c2ff:feae:ae44] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
mohits1 [mohits1!~Mohit@115.113.153.226] has joined #ruby
mohits [mohits!~Mohit@unaffiliated/mohits] has joined #ruby
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
rippa [rippa!~rippa@109-161-123-128.pppoe.yaroslavl.ru] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
inetman [inetman!~inetman@DevBook-Pro.visitor.congress.ccc.de] has joined #ruby
inetman [inetman!~inetman@DevBook-Pro.visitor.congress.ccc.de] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
mickn [mickn!~mickn@unaffiliated/mickn] has joined #ruby
inetman [inetman!~inetman@DevBook-Pro.visitor.congress.ccc.de] has joined #ruby
ksinkar [ksinkar!~ksinkar@115.240.91.98] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
Elie [Elie!~Elie@5ac58640.bb.sky.com] has joined #ruby
Elie [Elie!~Elie@5ac58640.bb.sky.com] has quit [#ruby]
rsa3173 [rsa3173!~Elie@5ac58640.bb.sky.com] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
smokycat [smokycat!~smokycat@p4220-ipngn100402kyoto.kyoto.ocn.ne.jp] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
Manhose [Manhose!~Manhose@2001:690:2200:9a77:ccb3:4206:62f8:f3a8] has joined #ruby
fris [fris!~email@d24-141-68-148.home.cgocable.net] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
dql [dql!~dql@58.38.85.71] has joined #ruby
dotnull [dotnull!~dot_null@office.t8webware.com] has joined #ruby
ascarter [ascarter!~ascarter@216.243.14.200] has joined #ruby
cousine [cousine!~cousine@196.221.61.89] has joined #ruby
<fris> can anyone recommend a hosting company specializing in rails hosting
<any-key> heroku
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
lonny [lonny!~lonny@122.177.241.45] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@122.158.13.109.rev.sfr.net] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
ekampf [ekampf!~eran@91.199.119.156] has joined #ruby
aknagi [aknagi!~aknagi@cpc22-hitc6-2-0-cust240.9-2.cable.virginmedia.com] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-74-101-79-38.nycmny.east.verizon.net] has joined #ruby
leo2007 [leo2007!~leo@123.123.254.37] has quit ["rcirc on GNU Emacs 23.3.50.1"]
ghanima [ghanima!~ghanima@163.192.12.2] has joined #ruby
Zal [Zal!~zal@unaffiliated/zalamander] has joined #ruby
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby
a|i [a|i!~ali@client-86-23-79-142.brhm.adsl.virginmedia.com] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-240-18.mcn.bellsouth.net] has joined #ruby
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby
bradleyprice [bradleyprice!~bradley@rrcs-67-78-239-162.se.biz.rr.com] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
mohits1 [mohits1!~Mohit@115.113.153.226] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
mohits1 [mohits1!~Mohit@115.113.153.226] has quit [#ruby]
looopy [looopy!~looopy@static-71-166-232-251.washdc.east.verizon.net] has joined #ruby
yopp [yopp!~yopp@me.withmac.ru] has joined #ruby
Manhose_ [Manhose_!~Manhose@193.136.33.133] has joined #ruby
<yopp> Hey
<yopp> It there any way to get in touch with Ruby ASSN reps?
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1108:21e:c2ff:feae:ae44] has joined #ruby
looopy_ [looopy_!~looopy@static-71-166-232-251.washdc.east.verizon.net] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
lkba [lkba!~AndChat@dwg209.neoplus.adsl.tpnet.pl] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.167] has joined #ruby
kakaskin [kakaskin!~CLDG@87.252.227.117] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
ascarter [ascarter!~ascarter@216.243.14.200] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby
Synthead [Synthead!~max@mdd2c36d0.tmodns.net] has joined #ruby
USER__ [USER__!~chatzilla@122.172.205.236] has joined #ruby
vjacob [vjacob!~vjacob@87.61.170.233] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
dyer [dyer!~dyer@c-174-49-86-106.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
otters [otters!~incluye@208.102.195.210] has joined #ruby
surfdue [surfdue!surfdue@unaffiliated/surfdue] has joined #ruby
<surfdue> Hello!
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
<surfdue> I do not use ruby, but I am installing it so an individual can have access to it.. I am currently using gem to add "gems" but this rdoc/ri documentation stuff takes forever.. I can turn it off but is it really needed?
<surfdue> Should I have it installed if its a shared server?
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
<apeiros_> you can turn it off
<apeiros_> on a server, it isn't really needed either
<deryl> they should only need the docs if they are actually doing development ON that server.
<deryl> it just for lookup
<deryl> err its
<apeiros_> docs are accessible on the web and they should be able to install the docs locally too
<apeiros_> it's? :)
ksinkar [ksinkar!~ksinkar@115.242.67.153] has joined #ruby
<deryl> i'm not getting into its or it's. the point is, the docs are only needed if they are doing development or code changes and want to look something up while local to that machine. otherwise, no the docs are not needed and they can be looked up online as apeiros_ said
<apeiros_> ^^
codespectator [codespectator!~codespect@host-84-13-47-50.opaltelecom.net] has joined #ruby
<surfdue> deryl: thanks I assume they don't take too much space.. Perhaps I will just wait longer for each install and have them locally.
Jake232 [Jake232!~textual@5e0eb492.bb.sky.com] has joined #ruby
<surfdue> Another quick question, when I run 'gem environment' my paths are set to /usr/lib64/ruby/gems/1.8 and /root/.gem/ruby/1.8 the /root one worries me.
<surfdue> Is this OK?
baordog [baordog!~chatzilla@ip98-163-238-43.no.no.cox.net] has joined #ruby
<apeiros_> it is normal, you can however install ruby for a single user too
<apeiros_> also consider rvm
<apeiros_> it installs ruby for a single user per default
<surfdue> apeiros_: is the way I am doing it less secure?
<apeiros_> yes
<surfdue> apeiros_: http://beginrescueend.com/ <-- RVM?
<apeiros_> yes :)
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<surfdue> apeiros_: cool. I know this is not a #ruby issue but I was following this guide http://www.interworx.com/support/docs/rubyonrails-installation to implement ruby/rails support into our hosting control panel.
<surfdue> Do you think RVM will interfere with that, or it should be completely seperate?
dr_bob [dr_bob!~dr_bob@p5DC4F3B8.dip.t-dialin.net] has joined #ruby
albedoa [albedoa!~albedoa@nv-71-53-164-166.dhcp.embarqhsd.net] has joined #ruby
<apeiros_> rvm runs entirely besides an OS installed ruby (e.g. one installed via apt-get, or the one on OS X), you can switch back to system ruby
<apeiros_> but it's hard to say how it'll work with a hosting control panel
<apeiros_> depends entirely on its expectations and configurability
[-mX-]_ [[-mX-]_!~mx@76-220-97-57.lightspeed.fyvlar.sbcglobal.net] has joined #ruby
<surfdue> apeiros_: essentially from what you've stated and what I see on RVM is it correct to assume that interworx will continue using the gems/ruby I installed and that RVM will be available to these members (who have access) to deploy their projects with custom environments/versions.
akemrir [akemrir!~akemrir@84.38.98.245.internetia.net.pl] has joined #ruby
<surfdue> How does RVM work as far as ruby and gem, does RVM actually create/compile ruby & gems for each environment? * I see required system packages if I want to offer ruby HEAD*
vicvicvic [vicvicvic!~victor@c213-89-97-43.bredband.comhem.se] has joined #ruby
<any-key> RVM keeps everything nice and pretty, it just uses the rubygems command for everything
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
<any-key> what RVM does is organize everything and allow you to switch to specific versions of gems and ruby
<akemrir> hello I have problem with square brackets in ruby. I cannot scan with dir for expression with square brackets? For example Dir["**/*[*01*"]
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<surfdue> any-key: nice.
<surfdue> any-key: would it be safe to add a standard user to the rvm group?
<any-key> is there an RVM group?
<any-key> I install it as myself, not as root for all users
<surfdue> that is what the RVM said, I need to assign the RVM group for non moderator users.
<any-key> I'm not familiar with the process of doing it other than single-user installs
<surfdue> "NOTE: To all Multi-User installers - DO NOT forget to add your users to the 'rvm' group."
cousine_ [cousine_!~cousine@196.221.242.180] has joined #ruby
<any-key> there's a #rvm iirc
<surfdue> Oh thanks :)
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
<any-key> no problemo
ctp [ctp!~ctp@p4FC35006.dip.t-dialin.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@pool-96-245-10-45.phlapa.fios.verizon.net] has joined #ruby
symb0l [symb0l!~symb0l@cpe-24-27-107-175.tx.res.rr.com] has joined #ruby
jroes [jroes!~jroes@jroes.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-211-111.mcn.bellsouth.net] has joined #ruby
<Jonah11_> what is the "->" symbol doing in this code: http://pastie.org/3080203
jwang [jwang!~jwang@108.4.149.233] has quit ["Leaving"]
<Hanmac> it creates an proc object out of the given block
ctp [ctp!~ctp@p4FC35006.dip.t-dialin.net] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-74-101-79-38.nycmny.east.verizon.net] has quit [#ruby]
marra [marra!marra@fly.srk.fer.hr] has joined #ruby
bier [bier!~bier@p54A5A55A.dip.t-dialin.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
thone [thone!~thone@e179081178.adsl.alicedsl.de] has joined #ruby
<Jonah11_> ty Hanmac
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
albedoa [albedoa!~albedoa@nv-71-53-164-166.dhcp.embarqhsd.net] has joined #ruby
wyhaines_ [wyhaines_!~wyhaines@65.39.118.15] has joined #ruby
dfr|work [dfr|work!dfr|work@nat/google/x-lizdjemebdxfmajs] has joined #ruby
azbarcea___ [azbarcea___!~quassel@79.114.119.25] has joined #ruby
Araxia [Araxia!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
<Jonah11_> I am getting an "expected keyword_end" error on line 6: http://pastie.org/3080278 I can't figure out why
[-mX-] [[-mX-]!~mx@76-220-97-57.lightspeed.fyvlar.sbcglobal.net] has joined #ruby
<Hanmac> Jonah11_ you miss an , before arr_result ... thats the problem when removing ()
matthewC [matthewC!~mattcampb@c-24-63-27-64.hsd1.ma.comcast.net] has joined #ruby
<Jonah11_> Hanmac, ah ty
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
ianbrandt [ianbrandt!~ianbrandt@99-111-99-153.uvs.sndgca.sbcglobal.net] has joined #ruby
me345 [me345!~me345@adsl-75-15-176-192.dsl.bkfd14.sbcglobal.net] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
waxjar [waxjar!~waxjar@82-170-1-70.ip.telfort.nl] has joined #ruby
lord123 [lord123!~Leo@pool-71-174-239-154.bstnma.fios.verizon.net] has joined #ruby
<lord123> why is this an invalid call: def create_new_site(a, b, c = false, d, e = false)
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-hlatkfqqhhponspb] has joined #ruby
<apeiros_> because you can't have defaulted args in the middle of the list
<apeiros_> all args with defaults must be at the end of the argument list
Synthead [Synthead!~max@mdd2c36d0.tmodns.net] has joined #ruby
<apeiros_> @ lord123
<lord123> ty
llaskin [llaskin!~Leo@unaffiliated/topchef] has joined #ruby
tintin [tintin!~manhunter@unaffiliated/manhunter] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
<tintin> hi there
tintin [tintin!~manhunter@unaffiliated/manhunter] has quit [#ruby]
skinnymuch_ [skinnymuch_!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
<savage-> apeiros_: not true in 1.9
<savage-> def foo(a, b=1, c); p [a,b,c]; end
<robert_> bleh; why are my other two arrays coming up empty?
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
<llaskin> unfortunatley the ruby for 1.9 doesn't work well on windows:(
<apeiros_> savage-: ok, correction, in 1.9, defaulted args must not be interrupted with non-defaulted args
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
<llaskin> or that is, 1.9 doesn't support the debug-ide gem
<savage-> cool
<llaskin> which pissed me off quite a bit
<llaskin> if anyone knows any of the maintainers, that woudl be great to have it fixed...http://rubygems.org/gems/ruby-debug-ide
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
codespectator [codespectator!~codespect@host-84-13-47-50.opaltelecom.net] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
luxurymode [luxurymode!~luxurymod@pool-108-29-15-244.nycmny.fios.verizon.net] has joined #ruby
_srp [_srp!~quassel@115.99.249.182] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
burhan [burhan!~burhan@pdpc/supporter/active/burhan] has joined #ruby
<burhan> warning: I'm new to ruby - is there such a thing as virtualenv for ruby?
tomzx [tomzx!~tomzx@dsl-132-26.aei.ca] has joined #ruby
<jensn> burhan: I am not sure what virtualenv does in python, but I think you're looking for rvm.
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<burhan> everytime I try gem install foo, I have to do it as sudo :/
<jensn> If that is the problem, then you are almost certainly looking for rvm.
<burhan> ah okay.
Synthead [Synthead!~max@mdd2c36d0.tmodns.net] has joined #ruby
aantix [aantix!~jjones@50.0.102.2] has joined #ruby
fat [fat!~nobody@027c5fd6.bb.sky.com] has joined #ruby
fat [fat!~nobody@027c5fd6.bb.sky.com] has quit [#ruby]
bradleyprice [bradleyprice!~bradley@rrcs-67-78-239-162.se.biz.rr.com] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has joined #ruby
baordog [baordog!~chatzilla@ip98-163-238-43.no.no.cox.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
waxjar [waxjar!~waxjar@82-170-1-70.ip.telfort.nl] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-103-21.albq.qwest.net] has joined #ruby
Tachyon [Tachyon!~tach@81.200.61.23] has joined #ruby
blischalk [blischalk!~brettlisc@99-28-253-138.lightspeed.cicril.sbcglobal.net] has joined #ruby
geekbri [geekbri!~geekbri@ool-44c2dadf.dyn.optonline.net] has joined #ruby
telling [telling!grotta@176.9.244.139] has joined #ruby
rhett_ [rhett_!~rhett@cpe-70-124-81-93.austin.res.rr.com] has joined #ruby
telling [telling!grotta@unaffiliated/telling] has joined #ruby
sapht [sapht!~sapht@83.233.30.24] has joined #ruby
<sapht> hello, what is the simplest way to bundle my application for personal use? i'd like to deploy it somewhere in my ~/ and put the binpath in my shell. should i write a gem?
<sapht> or do i look into setup.rb?
<apeiros_> both work, but rubygems is more popular than setup.rb
telling [telling!grotta@176.9.244.139] has joined #ruby
<apeiros_> both are not very difficult to get to work with.
<sapht> i'll think go with gems to keep it modern
<sapht> do i need to put anything on rubyforge for that to work?
telling [telling!grotta@unaffiliated/telling] has joined #ruby
<apeiros_> no
<apeiros_> all you have to do is write the projectname.gemspec file, then gem build *.gemspec && gem install -l *.gem
manizzle [manizzle!~manizzle@dsl081-053-082.sfo1.dsl.speakeasy.net] has joined #ruby
<apeiros_> if you want to share it with the world, you can put it up on rubygems.org, by registering there and doing `gem push your.gem`
<sapht> simple. thanks
<shevy> cool
<shevy> didn't know that either
<sapht> is it praxis to put everything under lib/ and expand it with spec.files=Dir.glob('lib/**/*')?
<apeiros_> I'd use lib/**/*.rb as the glob, and yes
<sapht> i'm oogling another gemspec to get my base going
<apeiros_> bin, doc, ext, lib, test - those are some of the standard directories
<apeiros_> Rakefile, README and LICENSE are some of the standard files
<sapht> are those generally included in s.files using glob?
<sapht> if i have another gem as a dependency, i set it using spec.add_development_dependency, right?
<apeiros_> I usually have a glob + a manual list
<apeiros_> or actually multiple globs
thepix [thepix!~pix@91.193.160.244] has joined #ruby
<sapht> i take it gems simply take alist of files, ignores directories, and replicates their relative paths
<apeiros_> sapht: a simple gemspec could e.g. look like that: http://pastie.org/3080760
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
johanhsfy [johanhsfy!~johan@81-225-127-57-no201.tbcn.telia.com] has joined #ruby
rippa [rippa!~rippa@109-161-123-128.pppoe.yaroslavl.ru] has joined #ruby
<sapht> apeiros_: thanks,that looks like what i ended up with
<apeiros_> add_dependency for dependencies, add_development_dependency only for dependencies that are only needed when working *on* the gem (e.g. the test framework you use to run the tests of your gem are a dev dep)
<sapht> i'd like to put binaries in some kind of common path though, so i can access them from my shell -- i reckon s.bindir is correct for that?
<sapht> aha, alright
<apeiros_> bin
<apeiros_> you don't need to specify s.bindir as bin is the default
<apeiros_> but you have to add the files to s.files
<sapht> i see. do you know the generic path for those to end up? i'm thinking like $gems/1.9.1/bin/
<apeiros_> `gem env` will tell you
<apeiros_> for me it's ~/.rvm/<ruby version>/bin
<sapht> superb
<apeiros_> oh, actually ~/.rvm/gems/<ruby version>/bin
baroquebobcat [baroquebobcat!~nick@host-72-175-233-54.static.bresnan.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
sparc [sparc!sparc@68.186.35.162] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<sapht> hmm, nothing ended up in the executable dir...
<sapht> this is my gemspec: http://pastie.org/3080806
<sapht> i tried having the top line (bindir) active but to no avail
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<sapht> ah -- there we go -- needed to append it to s.executables
Tuxist [Tuxist!~quassel@dyndsl-085-016-197-071.ewe-ip-backbone.de] has joined #ruby
[-mX-] [[-mX-]!~mx@76-220-97-57.lightspeed.fyvlar.sbcglobal.net] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
a|i [a|i!~ali@client-86-25-14-109.oxfd.adsl.virginmedia.com] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
atmosx [atmosx!~atmosx@79.103.90.84.dsl.dyn.forthnet.gr] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Jake232 [Jake232!~textual@5e049fbe.bb.sky.com] has joined #ruby
<llaskin> is there a good function to get the current week number, IE this is week 52?
burhan [burhan!~burhan@pdpc/supporter/active/burhan] has joined #ruby
<rippa> Date
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<rippa> Date.new(2001,2,3).cweek
<llaskin> rippa, i'm confused but i want today's date not feb 3rd of 2011
<llaskin> without getting the current day
<llaskin> Date.new.cweek returns 1 in irb for me
<llaskin> i figured that might work
<rippa> Date.today.cweek
burhan [burhan!~burhan@98.158.115.102] has joined #ruby
burhan [burhan!~burhan@pdpc/supporter/active/burhan] has joined #ruby
<oddmunds> but, isn't this week one?
<llaskin> ahah!
<llaskin> oddmunds its not 1/1 yet
<oddmunds> it will be on sunday
sepp2k [sepp2k!~sexy@p4FD165D7.dip.t-dialin.net] has joined #ruby
<oddmunds> which is the last day of the week in the civilized world
<rippa> this week is 52
jay_zawrotny [jay_zawrotny!~Jay@50-77-200-126-static.hfc.comcastbusiness.net] has joined #ruby
<rippa> Date.new(2012, 1, 1).cweek #=> 52
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
<oddmunds> interesting
<oddmunds> my calendar agrees, week 1 starts on monday
<oddmunds> LEARN NEW THINGS EVERY DAY
TheIronWolf [TheIronWolf!~textual@208.90.215.35] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.235.58] has joined #ruby
Hanmac [Hanmac!~hanmac@p50845284.dip0.t-ipconnect.de] has joined #ruby
Synthead [Synthead!~max@50-10-52-145.gar.clearwire-wmx.net] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
fatpandas [fatpandas!~fatpandas@c-98-219-42-32.hsd1.ga.comcast.net] has joined #ruby
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
mengu_ [mengu_!~mengu@unaffiliated/mengu] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<apeiros_> oddmunds: google iso 8601
<shevy> hmm
<shevy> this week is already in 2012?
<rippa> no
<rippa> next week is
trend [trend!~craigslis@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
Kichael [Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby
trend [trend!~craigslis@97-81-69-219.dhcp.athn.ga.charter.com] has quit [#ruby]
banister`sleep [banister`sleep!~baniseter@122.63.235.58] has joined #ruby
llaskin [llaskin!~Leo@unaffiliated/topchef] has quit [#ruby]
trend [trend!~trend@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
trend [trend!~trend@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
jackweb [jackweb!~jacek@unaffiliated/jackweb] has joined #ruby
jackweb [jackweb!~jacek@unaffiliated/jackweb] has quit [#ruby]
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.167] has joined #ruby
rramsden [rramsden!~rramsden@70.66.128.233] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
rothsa [rothsa!~rothsa@71-92-108-49.dhcp.knwc.wa.charter.com] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1122:21e:c2ff:feae:ae44] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
psr [psr!~psr@D97AAF67.cm-3-3c.dynamic.ziggo.nl] has joined #ruby
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
manizzle [manizzle!~manizzle@dsl081-053-082.sfo1.dsl.speakeasy.net] has joined #ruby
psr [psr!~psr@D97AAF67.cm-3-3c.dynamic.ziggo.nl] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has quit [#ruby]
azbarcea___ [azbarcea___!~quassel@79.114.119.25] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1122:21e:c2ff:feae:ae44] has joined #ruby
bonhoffer [bonhoffer!~Tim@pool-98-110-200-125.bstnma.fios.verizon.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.33.249] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.33.249] has joined #ruby
dcolebatch [dcolebatch!~phelon@bas7-toronto01-1177859157.dsl.bell.ca] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
ekampf [ekampf!~eran@87.69.131.59] has joined #ruby
king535 [king535!~king313@unaffiliated/king313] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@mobile-198-228-221-012.mycingular.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
Manhose [Manhose!~Manhose@bl17-45-13.dsl.telepac.pt] has joined #ruby
Manhose_ [Manhose_!~Manhose@bl17-45-13.dsl.telepac.pt] has joined #ruby
Guest26233 [Guest26233!~LessIsMor@2.176.214.81] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.227.5] has joined #ruby
skinnymuch_ [skinnymuch_!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
kennethr_ [kennethr_!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
ekampf [ekampf!~eran@87.69.131.59] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
s0ber_ [s0ber_!~s0ber@114-36-228-191.dynamic.hinet.net] has joined #ruby
y3llow_ [y3llow_!~y3llow@114-36-228-191.dynamic.hinet.net] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
rsenk330 [rsenk330!~Adium@108-81-12-178.lightspeed.milwwi.sbcglobal.net] has joined #ruby
hoofman_ [hoofman_!~jamie@96-28-1-111.dhcp.insightbb.com] has joined #ruby
gen0cide_ [gen0cide_!~Security@Wilkins3.static.monkeybrains.net] has joined #ruby
waxjar [waxjar!~waxjar@82-170-1-70.ip.telfort.nl] has joined #ruby
brian [brian!~brian@87.115.115.247] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
jbpros [jbpros!~jbpros@160-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
ixti [ixti!~ixti@58.Red-79-155-106.dynamicIP.rima-tde.net] has joined #ruby
ekampf [ekampf!~eran@87.69.131.59] has joined #ruby
<Tachyon> any expirences with rest-open-uri ?
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-74-101-79-38.nycmny.east.verizon.net] has joined #ruby
imbric [imbric!~chris@ool-44c180cb.dyn.optonline.net] has joined #ruby
ickabob [ickabob!~ian@c-68-41-160-166.hsd1.mi.comcast.net] has joined #ruby
symb0l [symb0l!~symb0l@cpe-24-27-107-175.tx.res.rr.com] has joined #ruby
matthewC [matthewC!~mattcampb@c-24-63-27-64.hsd1.ma.comcast.net] has quit [#ruby]
sgaedu [sgaedu!~ar@masq61.gtn.ru] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
sie [sie!sie@shells.mycrosoft.us] has joined #ruby
sie [sie!sie@unaffiliated/sie] has joined #ruby
skrewler [skrewler!~skrewler@70-36-139-140.dsl.dynamic.sonic.net] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
jonnie|home [jonnie|home!~jonnie@2001:67c:20a1:1124:21e:c2ff:feae:ae44] has joined #ruby
jonnie|home [jonnie|home!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@adsl-98-93-170-174.owb.bellsouth.net] has joined #ruby
vlod [vlod!~vlod@208.77.204.98] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
jonnie|home_ [jonnie|home_!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
fantazo [fantazo!~fantazo@178-190-237-51.adsl.highway.telekom.at] has joined #ruby
jonnie|home_ [jonnie|home_!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
jonnie|home_ [jonnie|home_!~jonnie@jonnies-MacBook.visitor.congress.ccc.de] has joined #ruby
<imbric> Anyone have an idea as to why || has a higher precedence than 'or'? Are they intended for different uses?
clockwize [clockwize!~clockwize@host86-183-150-72.range86-183.btcentralplus.com] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<apeiros_> I think it was meant that you can use one of them in most situations and avoid parens.
rpowell [rpowell!~rpowell@CPE-121-218-161-233.lnse4.cht.bigpond.net.au] has joined #ruby
pickels_ [pickels_!~fs@d54C5B2D7.access.telenet.be] has joined #ruby
<imbric> Yeah, i've read comments on blogs saying to use || to avoid the parens, but I'm trying to dig into why its like this to begin with
avitzurel [avitzurel!~avitzurel@212.179.244.22] has joined #ruby
<imbric> thanks rothsa
<rothsa> you're welcome
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
yekta [yekta!~yekta@c-24-1-180-65.hsd1.il.comcast.net] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310A71.dip0.t-ipconnect.de] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
lolsuper_ [lolsuper_!~super_@pool-173-65-194-148.tampfl.fios.verizon.net] has joined #ruby
lolsuper_ [lolsuper_!~super_@unaffiliated/lolsuper-/x-9881387] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-74-101-79-38.nycmny.east.verizon.net] has quit [#ruby]
jbpros_ [jbpros_!~jbpros@15-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
ekampf [ekampf!~eran@87.69.131.59] has joined #ruby
rpowell [rpowell!~rpowell@CPE-124-187-174-110.lns16.cht.bigpond.net.au] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby
trend [trend!~trend@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
RomD`` [RomD``!~Roman@nrbg-4dbe082a.pool.mediaWays.net] has joined #ruby
havenn [havenn!~skipper@pool-71-107-54-247.lsanca.dsl-w.verizon.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.201.45] has joined #ruby
shtoto [shtoto!~root@c-174-52-215-40.hsd1.ut.comcast.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
banister_ [banister_!~baniseter@122.63.226.8] has joined #ruby
ksinkar [ksinkar!~ksinkar@115.242.67.153] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
Jake232 [Jake232!~textual@5e049fbe.bb.sky.com] has joined #ruby
duhamelski [duhamelski!~duhamelsk@209.159.249.233] has joined #ruby
<robert_> banisterfiend: hii. :D
banister_ [banister_!~baniseter@122.63.131.208] has joined #ruby
<sapht> i got a weird issue installing a dependency for ruby-debug: "rbx-require-relative requires Ruby version ~> 1.8.7."
<sapht> while gem env states ruby version to be 1.9.3
surfdue [surfdue!surfdue@unaffiliated/surfdue] has joined #ruby
<sapht> am i missing something obvious?
<sapht> the gem binary to install ruby-debug and print env is the same
<sapht> this system is osx, and ruby1.8 is also installed, perhaps that is an issue?
banisterfiend [banisterfiend!~baniseter@122.63.204.227] has joined #ruby
janissary [janissary!~user@adsl-98-70-95-30.mco.bellsouth.net] has joined #ruby
banister_ [banister_!~baniseter@115.189.215.155] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
ahammond [ahammond!~ahammond@wsip-98-173-193-68.sb.sd.cox.net] has joined #ruby
<ahammond> when writing dynamic SQL, what ruby function is used to correctly quote identifiers?
<ahammond> For example, http://www.postgresql.org/docs/9.1/interactive/plpgsql-statements.html#PLPGSQL-QUOTE-LITERAL-EXAMPLE shows how to write safely quoted dynamic SQL in pl/pgsql.