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
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
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
<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 ...
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
<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
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_>
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>
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
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
<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>
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?
<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
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
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/