Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby-lang
skiaec04 [skiaec04!~textual@24-116-118-250.cpe.cableone.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@24.143.25.13] has joined #ruby-lang
towski [towski!~towski@host-70-45-23-142.onelinkpr.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
datanoise [datanoise!~datanoise@24-145-66-018-dhcp.mia.fl.atlanticbb.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<shevy> test
shevy [shevy!~shevy@93-82-84-78.adsl.highway.telekom.at] has joined #ruby-lang
<shevy> anyone has a ruby script that uploads/pastes i.e. a file to gist github?
<bougyman> gem search -dr gist|more
<bougyman> there's a ton, it seems.
<bougyman> the one named 'gist' seems easy
<shevy> oh cool
<shevy> thanks bougyman
<bougyman> there's vim and emacs plugins, too, i fyou're into that.
<shevy> ah no
<shevy> I just need something simple so I can upload code to gist quickly from the commandline :)
<darix> shevy: there is
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
perryh [perryh!~perryh@76-230-52-253.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
mksm [mksm!mksm@pdpc/supporter/professional/mksm] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
tavon [tavon!~tavon@c-98-209-27-241.hsd1.mi.comcast.net] has joined #ruby-lang
WillMars_ [WillMars_!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
Nick [Nick!~UserNick@s83-177-133-179.cust.tele2.se] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
BitPuffin [BitPuffin!~BitPuffin@s83-177-133-179.cust.tele2.se] has joined #ruby-lang
BitPuffin [BitPuffin!~BitPuffin@s83-177-133-179.cust.tele2.se] has joined #ruby-lang
Faris [Faris!~amnay@41.248.194.218] has quit [#ruby-lang]
BitPuffin [BitPuffin!~BitPuffin@s83-177-133-179.cust.tele2.se] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
banisterfiend [banisterfiend!~baniseter@122.63.148.112] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
perryh [perryh!~perryh@76-230-52-253.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
WillMars_ [WillMars_!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
WillMars_ [WillMars_!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
towski [towski!~towski@host-70-45-23-142.onelinkpr.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.167.91.153] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.216.212] has joined #ruby-lang
WillMars_ [WillMars_!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
josh9 [josh9!~oren@cpe-76-172-9-207.socal.res.rr.com] has joined #ruby-lang
<josh9> sinatra
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
WillMars_ [WillMars_!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
dmartenson [dmartenson!~dale@c-75-72-211-129.hsd1.mn.comcast.net] has joined #ruby-lang
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
amerine_ [amerine_!~mturner@bc171197.bendcable.com] has joined #ruby-lang
srbaker [srbaker!~srbaker@70.28.245.68] has joined #ruby-lang
Marco [Marco!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@203.189.189.65] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.215] has joined #ruby-lang
Natch [Natch!~natch@178.73.216.212] has joined #ruby-lang
imperator [imperator!~djberg96@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
stepnem_ [stepnem_!~stepnem@176.119.broadband10.iol.cz] has joined #ruby-lang
jaska__ [jaska__!jaska@f948.ip11.netikka.fi] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
countskm [countskm!~countskm@pool-108-9-189-75.tampfl.fios.verizon.net] has joined #ruby-lang
Bwild [Bwild!~irc@netblock-75-79-22-130.dslextreme.com] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
piglop [piglop!~piglop@del63-1-82-243-95-115.fbx.proxad.net] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-orwmbmddpjpxvoah] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-yeolekdxdzwceudl] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.149.189.252] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@203.189.189.65] has joined #ruby-lang
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.149.189.252] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.108.139] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-71-199-243-97.hsd1.fl.comcast.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
bousquet [bousquet!~bousquet@74.197.255.182] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
operant108 [operant108!~tdevol@c-69-181-26-39.hsd1.ca.comcast.net] has joined #ruby-lang
corn_man [corn_man!kvirc@unaffiliated/cornman] has quit ["I MOUNT MY PLATYPUS"]
The_prospector [The_prospector!kvirc@unaffiliated/cornman] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
autumn_ [autumn_!~Autumn@CPE-124-183-121-214.lns15.ken.bigpond.net.au] has joined #ruby-lang
<autumn_> hi guys, i'm trying to dynamically create a unicode codepoint, like "\u" + "1234", but it errors with "invalud unicode escape"
<autumn_> "\u#{num}" errors similarly
<autumn_> is there any way to do that?
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
<samuelkadolph> autumn_: \u escapes happens when ruby parses the string and not when it actually runs. So you will need to have "\u1234" or do something like this (https://gist.github.com/1201233) to convert a unicode escape at runtime.
<rippa> autumn_: [0x1234].pack("U*")
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<autumn_> ah okay
<autumn_> thanks a lot samuelkadolph, rippa
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
phaedrix [phaedrix!~phaedrix@c-24-22-86-235.hsd1.or.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
towski [towski!~towski@host-70-45-23-142.onelinkpr.net] has joined #ruby-lang
skinnymuch_ [skinnymuch_!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby-lang
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
flak [flak!~splitta@85.158.54.234] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
shevy [shevy!~shevy@178-191-56-253.adsl.highway.telekom.at] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-4d028117.pool.mediaWays.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.41] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.229.225] has joined #ruby-lang
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
<Ly531291c> do you think life is like a dvd? all the memories are there, but they cannot all (usu) be accessed at the same time? dreams are permutations of memories?
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
towski [towski!~towski@host-70-45-23-142.onelinkpr.net] has joined #ruby-lang
diegoviola [diegoviola!~viola@host-1-211.b15.cvc.com.py] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
phlipper [phlipper!~phlipper@24.32.25.30] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby-lang
phlipper [phlipper!~phlipper@24.32.25.30] has joined #ruby-lang
markit [markit!~marco@88-149-177-66.staticnet.ngi.it] has joined #ruby-lang
<markit> hi, I need to run bash from my ruby script. To build the command string I do love have #{} substitution, but would love to have just that. If I use %Q[] also \ are intercepted. Is there something that does what I need?
<markit> so no interpolation/escaping/whatever except only #{} ?
<markit> ruby 1.8.7
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
benanne [benanne!~rijdier@218.188-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
<Ly531291c> does < also mean append? or a subclass?
<markit> Ly531291c: newbie here, but as far as I remember, you append with <<, not <
<erikh> like with most languages, symbols have different meanings with different contexts
<markit> I've to leave, bye
<erikh> in the context of a class declaration, < Does indeed mean "inherit from"
Ly531291c [Ly531291c!~nfxgosu@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
<erikh> markit: no, you either get interpolation + escaping or none at all
<erikh> if you want the effect you desire you'll probably want to use concatenation
<erikh> e.g., %q[some command '] + some_argument + %q[' some more stuff]
<erikh> be sure to checkout the Shellwords library if you're going to go that route
<erikh> (ri Shellwords at your terminal)
<erikh> \ is an escape character in either case, fwiw -- you can't step around that one
<erikh> well, not in any fashion that's easy to read at least.
<erikh> so double-up for escapes you want to pass to bash
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl17-45-13.dsl.telepac.pt] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-4d028117.pool.mediaWays.net] has joined #ruby-lang
drd2 [drd2!53a0482e@gateway/web/freenode/ip.83.160.72.46] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@host49-14-dynamic.244-95-r.retail.telecomitalia.it] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
joke_day [joke_day!~joke_day@cpc3-live6-0-0-cust1799.know.cable.virginmedia.com] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@dslb-092-078-107-056.pools.arcor-ip.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@p25146-ipngn100202kobeminato.hyogo.ocn.ne.jp] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<erikh> having one of those caffeine fueled moments where I get amped up to write an angry blog about all the things in the ruby community that suck
<erikh> I know it'll pass in about 30 minutes so I'll just say something here and not waste time on the rest
<apeiros_> hehe, I know that all too well :D
<burgestrand> *hug erikh*
<erikh> heh
<apeiros_> good idea…
* apeiros_ hugs erikh too :)
<erikh> the hugs! yay
<burgestrand> apeiros_: how’d your rubygems idea come along?
<erikh> apeiros_: oh I have something in that vein if you're interested
<apeiros_> burgestrand: it hit the christmas tree and both went up burning…
<erikh> an unfinished implementation of treating gems as jar files
<apeiros_> burgestrand: no, uh, to be more serious, I got a bit of positive feedback by chris2
<burgestrand> apeiros_: oh :)
<apeiros_> I still hope for feedback by drbrain (being the main maintainer of rubygems)
<erikh> what is it?
<burgestrand> I couldn’t give any I’m afraid, know too little of that ecosystem to dare voice anything ;)
<apeiros_> burgestrand: depending on what happens, I intend to push it to the ML and see what reactions I get there
<chris2> apeiros_: ah yes
<chris2> apeiros_: you posted that to ruby-talk?
<apeiros_> chris2: not yet. I thought christmas time is a bad time. I'll wait until ~jan 3rd
<chris2> apeiros_: i can think of one possible issue
<chris2> two actually
<apeiros_> erikh: what is what?
<erikh> your rubygems stuff
<chris2> first, with explicit version you'll have true_version, old_version in load-path
* erikh is intrigued
<chris2> that could fuck things up if you load files only in the old version
<apeiros_> erikh: ah, reduce $LOAD_PATH & dir-search bloat: http://pastie.org/3068916
<chris2> second, it only works with gems that have a /lib
<chris2> which hopefully are all by now...
<chris2> and they could overwrite files
<erikh> cool.
<apeiros_> chris2: the old_version, current_version should be ammendable by keeping current_version the last in $LOAD_PATH
<chris2> yeah, but that could make problems
<apeiros_> chris2: more than just lib - gems that have that list all their require_dirs in the gemspec, so upon install, copy all of them
<chris2> ok
<apeiros_> chris2: any problems that don't exist already in the current implementation?
<chris2> you can do require 'gem/oldfile'
<erikh> hrm
<chris2> that would raise an error right now, but possibly load the wrong file in your version
<apeiros_> chris2: one problem I wonder about are native extensions
<chris2> not sure that is a real problem
<erikh> the BOM could just be a set of symlinks
<chris2> erikh: stow-like, yes
<erikh> right
<chris2> i wonder why i never wrote that
<apeiros_> chris2: ah, hm, I see what you mean
<chris2> sounds fairly simple
<erikh> I had another implementation I should show sometime
<erikh> yeah, it was gems as jar files more or less
<chris2> i should mail mfp and ask him
<erikh> it's unfinished
<chris2> he thought a lot about that
<apeiros_> mfp?
<chris2> batsman
<erikh> eigenclass
<apeiros_> ah
<apeiros_> mauricio?
<chris2> yes
<apeiros_> is he still using ruby?
<chris2> no idea
<chris2> but he probably knows which ideas he tried
<chris2> although they tried to avoid multiple versions
<apeiros_> ah, it was not meant as a "hey, don't write him cuz he no longer uses ruby", I was only curious :)
<erikh> well, I know zenspider is trying to ramp up rubygems 2.0
<erikh> so this is a good time to be active with new ideas.
<chris2> i dont think he uses ruby really
<chris2> for some scripts maybe
<chris2> gtg, lunch
<apeiros_> erikh: yeah, I gave him the link, but I think he was AFK then, and later I went afk… so no idea whether he's seen it
<erikh> post to the list
<erikh> sec, I'll get it for you
<erikh> at least it'll definitely be seen that way
<apeiros_> ah, on the rubygems ML, not the ruby-talk ML? ok
<apeiros_> good idea
<erikh> rubygems ML is really low traffic
<apeiros_> ok, I'll paste it there today then :)
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar_ [dhruvasagar_!~dhruvasag@65.98.79.137] has joined #ruby-lang
<markit> erikh: thanks for your reply :)
<erikh> enjoy
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
Tasser [Tasser!~freak@subtle/contributor/Tass] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
joke_day [joke_day!~joke_day@138.199.65.184] has joined #ruby-lang
joke_day_ [joke_day_!~joke_day@cpc3-live6-0-0-cust1799.know.cable.virginmedia.com] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<masterkorp> Any library to source bash files and transport the vars to ruby ?
<shevy> hmmmm
<shevy> that sounds quite specialized masterkorp
<shevy> have not heard of one like that
<shevy> my solution is to rewrite the bash functionality in ruby :P
<masterkorp> shevy: making a some bash apps wrapper
<masterkorp> shevy: i can do that too, but compatibility with exusting tools is a must :D
<mitchty> so i've done that in perl, gist was shell out to the shell junk, dump its ENV, then merge into the parent proc's ENV, wasn't pretty, even for perl
<shevy> I see masterkorp
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<shevy> well you can probably write a tiny ruby lib that just iterates through that file and collect all variables
<shevy> hmm
<mitchty> shevy: that doesn't work if its set dynamically :)
<shevy> waaaah
<shevy> what the hell are your shell scripts guys :(
<mitchty> unless you want to write a shell parser in ruby
<masterkorp> rash :d the shell made in ruby :p
<shevy> hmm indeed have not thought about ENV
<shevy> I am surprised that would even work
FiXato [FiXato!~FiXato@fixato.net] has joined #ruby-lang
<mitchty> the hack i described is about the easiest way, short of writing bourne/korn/zsh/bourne-again parsers
<shevy> not from within a ruby script or? like when you use system() ... or will that actively modify ENV?
<mitchty> nope, just wrap your shell script and at the end just dump env
<shevy> oh
<mitchty> then merge in what you want
<mitchty> gets tricky with PATH and friends, but meh
<mitchty> and obviously functions won't work
<shevy> hmmm
<shevy> my ENV does not seem to be modified when I do
<shevy> system '/bin/sh test.sh'
<masterkorp> shevy: try with source or .
<masterkorp> shevy: sh creates a new ENV
<shevy> oh
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
towski [towski!~towski@host-70-45-23-142.onelinkpr.net] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<shevy> hmm
<shevy> can markdown be used from within ... a ruby .cgi script
<shevy> what I mean is something like
<shevy> in foobar.cgi
<shevy> read_file('some_markdown_file')
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<erikh> shevy: look at the kramdown gem
<erikh> there's also upskirt
<erikh> IIRC
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby-lang
<necromancer> hmm
<necromancer> i have a line in my sinatra app
<necromancer> [200, {'Content-Type' => 'application/rss+xml'}, erb(:podcast, :locals => {:user => @user})]
<necromancer> i'm getting the right data but the Content-Type is transferring at text/plain, not application/rss+xml. why is this?
toretore [toretore!~toretore@ti0006a380-0261.bb.online.no] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<TTilus> necromancer: you don't possibly have content_type or mime_type call elsewhere?
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<TTilus> (just guesswork)
<necromancer> TTilus: here is the only place i have it called in my application. note that i am experiencing the proper XML for a podcast as laid out in my erb template (which i can also add to the gist if you need to see it), except transferred as plain text: https://gist.github.com/1521251
uniqanomaly [uniqanomaly!~ua@dynamic-87-105-21-246.ssp.dialog.net.pl] has joined #ruby-lang
<TTilus> necromancer: pretty confusing
<TTilus> necromancer: afaik that ought to work
<necromancer> TTilus: this is the whole file https://github.com/tubbo/overcast/blob/master/lib/overcast.rb
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<TTilus> necromancer: does setting headers work at all?
<necromancer> TTilus: i thought that's what i was doing right there
<TTilus> necromancer: can you pass 'X-Testing' => 'foo'
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby-lang
<TTilus> necromancer: can you set Content-Type to something else?
<TTilus> necromancer: does 'Content-Type' => 'application/rss+xml' work with just get '/test' { [200, {'Content-Type' => 'application/rss+xml'}, 'foo'] }
<TTilus> necromancer: ...just doing guesswork here, trying to find out if theres something failing with headers in general or Content-Type in particular
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
<necromancer> ok
<TTilus> im way beyond my sinatra-debugging-fu here =D
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<necromancer> TTilus: i tried [200, {'Content-Type' => 'application/rss+xml'}, 'test post'] and it returned as text/plain
<necromancer> TTilus: but it turns out the Response Headers are that, it's just my browser (Chrome) doesn't seem to be accepting it...
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
<TTilus> oh, ok :-O
<TTilus> perhaps they just know better at google =D
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
airportyh [airportyh!~airportyh@c-98-192-75-66.hsd1.ga.comcast.net] has joined #ruby-lang
Targavision [Targavision!~Henk@f241253.upc-f.chello.nl] has joined #ruby-lang
Targavision [Targavision!~Henk@f241253.upc-f.chello.nl] has quit [#ruby-lang]
rippa [rippa!~rippa@87-253-28-73.pppoe.yaroslavl.ru] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<shevy> thanks erikh
<shevy> heeh
<shevy> chrooooooome
<shevy> we are the borg
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has quit [#ruby-lang]
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<rue> Chrome is the poop.
<whitequark> is EM stable/fast on JRuby?
tavon [tavon!~tavon@c-98-209-27-241.hsd1.mi.comcast.net] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has quit [#ruby-lang]
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<rue> II do believe it's stable. I'm not sure if it's particularly fast(er) at any rate
enebo [enebo!~enebo@75-168-44-241.mpls.qwest.net] has joined #ruby-lang
janissary [janissary!~user@adsl-98-70-95-30.mco.bellsouth.net] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
Oloryn_lt2 [Oloryn_lt2!~Oloryn@c-24-30-37-223.hsd1.ga.comcast.net] has joined #ruby-lang
jmontross [jmontross!~Adium@75-35-173-1.lightspeed.dllstx.sbcglobal.net] has joined #ruby-lang
<shevy> erikh, it's really quite nice, already using kramdown http://kramdown.rubyforge.org/quickref.html :)
tomzx [tomzx!~tomzx@dsl-132-26.aei.ca] has joined #ruby-lang
bjensen [bjensen!~brianj@3007ds3-ar.0.fullrate.dk] has joined #ruby-lang
<bjensen> is there a performance benefits to using ruby 1.9.3 instead of 1.9.2? If so..any idea how much?
<shevy> not sure if there were any comparisons
<raggi_> yes, depends on the app
<yorickpeterse> require got faster as well
<raggi_> the GC particularly, i think - haven't tested myself at all, or seen numbers
<raggi_> just bench em
<shevy> bjensen, I am trying to look at http://shootout.alioth.debian.org but it seems to not allow the comparison of different ruby version, unless I am missing that
<bjensen> Im doing a large rails 3.1.3 app
<robgleeson> then it will be faster
<robgleeson> for boot, anyway ;)
<robgleeson> algorithm to scan $LOADED_FEATURES is better, so require is faster
<robgleeson> and GC changes as well, but I can't remember the specifics.
<shevy> rails, rails, rails
<shevy> why is everyone using rails
<any-key> because we like it
* yorickpeterse Isn't using Rails
<diegoviola> yorickpeterse: you're using ramaze?
<yorickpeterse> I'd say that would be obvious :)
<shevy> hmm
<diegoviola> nice, ramaze rocks
<shevy> any-key, what is it specifically that you like in rails if you have to name just one thing?
<diegoviola> i like it a lot more than rails
<diegoviola> ramaze with sequel
<yorickpeterse> word
<any-key> shevy: it's a web framework...?
<shevy> well but so are others
<any-key> I work on a large rails project and by all means go find me another web framework that can handle it
<any-key> which ones?
<any-key> why the hate?
<robgleeson> it's cool to hate Rails or <insert popular thing here>
<shevy> what hate man
<yorickpeterse> I don't think shevy is hatin'
<shevy> I only hate PHP
<any-key> what frameworks are you suggesting I use instead of rails?
<yorickpeterse> PHP is a wonderful thing, don't be hatin'
<shevy> any-key, doesn't matter. any other one? self written ones?
<yorickpeterse> (disclaimer: I work with it 5 days a week and hate it)
<any-key> shevy: why would I write my own?
<any-key> Ruby allows for rapid and straightforward development, a modular ruby web framework makes me happy
<any-key> unless I'm twitter and going ROFLScale there is no need for me to reinvent the wheel
<rue> Invest in the wheel
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby-lang
<any-key> shevy: what exactly are your beefs with rails though?
<shevy> any-key I find it colossal. I really don't know of any other project which has more things one has to learn in order to use it
<shevy> save for vim or emacs perhaps
<any-key> welcome to the world of reasonably sized web apps
<any-key> it is colossal, but when your app is colossal it helps a lot
<cout> to hear someone call rails "colossal" seems ironic to me
<cout> when dhh first showed off rails at rubyconf, everyone was impressed that it was only 1000 lines of code or so
<any-key> shevy: it's diminishing returns with rails until your app has a certain size/complexity
<deryl> to hear anyone call ruby or rails colossal is amazing.
<shevy> there is quite a lot to learn in ruby
<any-key> as with most programming languages
<shevy> all the newcomer questions... "What are blocks"... "what are symbols ... procs ... what is Enumerator"
<shevy> I found PHP had less concept
<shevy> +s
<deryl> quite lot to learn in rails to properly utilize the framework and the underlying ruby language. all depends on which way you came to
<any-key> exactly
<yorickpeterse> Each tool has it's own purpose. Some are happy with Rails, others hate it
<yorickpeterse> As long as you can deal with that you should be good to go :)
<raggi_> this whole conversation is lol
<deryl> any-key: at the same time i can see shevy's point. a good many new users can not tell where rails ends and 'ruby' begins. and trying to establish baselines can be difficult
<raggi_> "colossal"
<raggi_> srsly
<raggi_> lol
<shevy> rails is tiny
<yorickpeterse> Rack is colossal :3
<raggi_> rails is like 4 or 5 products dude
<deryl> any-key: such as is Array rails or ruby? is inject rails or ruby? is form_for or etc rails or ruby? where is it all defined, clearly? etc
<raggi_> comparing rails to other basically routing + controller frameworks is kinda dumb
<deryl> hardly. it fits quite well being compared with something like cakephp as they both handle the same focus within their respective languages' worlds.
<deryl> fair comparitors
<raggi_> deryl: i'm talking about other ruby "web frameworks", which mostly handle exclusively routing + controller stuff
<raggi_> sure you can compare it to other full stack mvc frameworks
<raggi_> there are wonky bits in rails, there's wonky bits in most things of that size - and a lot of things that are smaller
<raggi_> but rails 3 is in general, a hell of a lot cleaner than rails used to be
<raggi_> plus, there's no sane denial that it works, for a shitton of people
<yxhuvud> indeed, but there are plenty of areas that still really need a ton of cleanup.
<deryl> same could be said of any software out there
<deryl> kernels included
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-12-96-142.clienti.tiscali.it] has joined #ruby-lang
havenn [havenn!~skipper@pool-108-0-200-68.lsanca.fios.verizon.net] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
apeiros [apeiros!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby-lang
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby-lang
steph021 [steph021!~steph021@adsl-69-105-118-125.dsl.pltn13.pacbell.net] has joined #ruby-lang
steph021 [steph021!~steph021@unaffiliated/steph021] has joined #ruby-lang
outoftime [outoftime!~mat@c-76-120-239-131.hsd1.va.comcast.net] has joined #ruby-lang
thone_ [thone_!~thone@g231236056.adsl.alicedsl.de] has joined #ruby-lang
me345 [me345!~me345@adsl-71-131-129-120.dsl.sntc01.pacbell.net] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
queequeg1 [queequeg1!~queequeg@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has quit [#ruby-lang]
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
Oloryn_lt2 [Oloryn_lt2!~Oloryn@c-24-30-37-223.hsd1.ga.comcast.net] has joined #ruby-lang
operant108 [operant108!~tdevol@c-69-181-26-39.hsd1.ca.comcast.net] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<queequeg1> how do I use a variable when trying o format a string? "% {foo}d" % {:foo => 10}
jmontross [jmontross!~Adium@75-35-173-1.lightspeed.dllstx.sbcglobal.net] has joined #ruby-lang
<rue> queequeg1: "%d" % {:foo => 10}[:foo] ?
<rue> Oh, it's "%<foo>d"
<queequeg1> My string was messed up wince I left out the actual decimal :-)
<queequeg1> sorry. I'm trying your suggestion now.
<rue> It's in ri sprintf
<queequeg1> k, thanks.
<queequeg1> I just read through the docs and I'm not seeing what I'm looking for. I don't think I'm explaining myself well. What I want is to have a variable for how many spaces to put in the format.
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
dfr|mac_ [dfr|mac_!dfr|work@nat/google/x-dkhutjnusxwqylht] has joined #ruby-lang
<rue> Ah
<rue> Just interpolate?
<queequeg1> you mean using #{}
<rue> "%#{spaces}d" % number
<rue> It's ugly as all hell, but you know
<queequeg1> I thought I tried it, but I will see if I mistyped.
<rue> I'm not sure what the %{} format does
ascarter [ascarter!~ascarter@64.122.126.156] has joined #ruby-lang
<queequeg1> That seems to work. :-)
<queequeg1> I must have done a typo earlier.
<queequeg1> Thanks :-)
<rippa> %{} is just a string
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
<rippa> ah, format %{}
<necromancer> deryl: this is the same problem jQuery faces with new users
<rippa> "%{a} - %{b}" % {a: 'foo', b: 'bar'}
slaytanic [slaytanic!~slaytanic@200-55-74-190.dsl.prima.net.ar] has joined #ruby-lang
<rippa> #=> "foo - bar"
<necromancer> it's difficult to get web developers to try out ruby as a shell scripting language first and THEN as a web development language, which is how it really should be taught
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<rue> jQuery should be used for shell scripts?
<bougyman> sure
<bougyman> necromancer: web developers these days don't even need the shell
<bougyman> sad, i know.
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby-lang
Jerdent [Jerdent!~jerdent@pha75-10-82-230-185-117.fbx.proxad.net] has joined #ruby-lang
<yorickpeterse> jquery in the shell? wtf?
<yorickpeterse> Are you smoking something?
<mitchty> ruby as a scripting language, versus rails as a framework, javascript as a programming language, versus jquery as a framework
<yorickpeterse> except jquery has nothing to do with shell based actions
<mitchty> nevermind
<yorickpeterse> That's like saying a horse and a car are identical because they can be used as transportation
operant108 [operant108!~tdevol@c-69-181-26-39.hsd1.ca.comcast.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<deryl> necromancer: i can't disagree with your statement. it mirrors my own, though i do think its possible to learn it in both mindframes at the same time, though the learning time will slow as you switch back and forth in whichever mode
dejongge [dejongge!~jonke@pD9E0DA9C.dip0.t-ipconnect.de] has joined #ruby-lang
<deryl> learning the interface to the language first would help to write better with the framework is what i think he was trying to say, yorickpeterse
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
<shevy> hmm
<shevy> Are Rails coders better Ruby hackers?
<rue> Sputterlol
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<diegoviola> wut
<diegoviola> ramaze coders are the best ruby hackers of course
<diegoviola> ...
<diegoviola> jk
<shevy> hmm since there is no objection
<shevy> I will now think Rails makes you a better Ruby hacker
<mitchty> i say perl makes you a better ruby hacker, how bout them apples
<shevy> hmmm
<shevy> perl allowed PHP
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
<mitchty> but php was originally just perl
<shevy> :(
<shevy> the son killing his father ...
slaytanic [slaytanic!~slaytanic@200-55-73-237.dsl.prima.net.ar] has joined #ruby-lang
<mitchty> eh, i think perls just at the stage that cobol/fortran/etc... are at, where its used it'll keep getting used, just don't expect it to expand, will happen to ruby eventually too
<shevy> :(
<shevy> I know
<shevy> javascript will kill ruby eventually
<diegoviola> yawn... js
<josh9> shevy: i also see it coming. no kidding
<shevy> First they ignore you
<queequeg1> This code ( http://pastie.org/3076179 ) generates multiplication tables. What I can't figure out is why I'm printing each table twice? Any hints?
<shevy> then they laugh at you
<shevy> and then you find yourself writing javascript code daily
<shevy> :(
<josh9> shevy: the node guys have different frameworks now that looks like sinatra
<shevy> hmm
<josh9> express.js
<josh9> flatiron
<mitchty> I use ruby as a scripting language, the whole js thing doesn't bother me much
<diegoviola> what's so nice about js?
<josh9> diegoviola: speed and the fact that it's everywhere
<shevy> that's actually quite amazing... because they provide a whole ecosystem of javascript... without anyone designing javascript ahead much
<robgleeson> hm?
<josh9> shevy: what do u mean by 'design js ahead'?
<shevy> like how python is designed
<cout> from future import?
<shevy> you don't have that in the javascript world
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
<robgleeson> have what, exactly?
<cout> shevy: you can compile future javascript versions down to previous versions
<shevy> that there is anyone designing the language ahead in time robgleeson
<shevy> it's like a chaotic growth
<queequeg1> I fixed it.
<rue> diegoviola: There's little that's nice about JS. It's just ubiquitous
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby-lang
<shevy> hmm
<shevy> like poop?
<robgleeson> shevy: there is a ECMAScript spec people contribute ideas to
<robgleeson> google, microsoft, & apple
<josh9> i have user object and email class (or module, not sure yet). my app can send email to users. should i pass the user object into a method on the email object or the other way around?
<diegoviola> nice
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
<shevy> robgleeson those three companies should be replaced by matz
<robgleeson> lol :/
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
<shevy> hmm
<shevy> let's say I have code like:
<shevy> def foobar # this method does this and that... and a lot more
<shevy> code_stuff_goes_here # etc...
<shevy> end
<shevy> would rdoc know that the comment part after "def foobar" belongs to that method?
<shevy> or will it insist on the comment part being above the method definition
<shevy> oops sorry
<shevy> well I am going to find out
<samuelkadolph> Holy space bar Batman
mnaim [mnaim!~mnaim@c-71-62-62-48.hsd1.va.comcast.net] has joined #ruby-lang
<robgleeson> shevy: no idea, but I wouldn't suggest documenting your method on the same line it is defined on.
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<rue> shevy: Just put the docs above. It's a good visual separation.
<rue> I use a single empty comment line above the code to avoid the doc cluttering the def itself
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
<samuelkadolph> I'm sad, the Steam deals today aren't that great
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
<rue> Aww
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d0760a8.pool.mediaWays.net] has joined #ruby-lang
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
<deryl> rue: i like that format myself. but many i work with don't. they either prefer a blank space between the comment's ending line and the code it references, or they want it buttressed right up against the bottom of the comment. Personally I think the extra # works as a pointing flag myself. :shrug:
<rue> Well fuck 'em
<rue> :)
<deryl> heh
<rue> RDoc understands all of those anyway
floyd2 [floyd2!~floyd2@17.145.34.193.static.giga-dns.com] has joined #ruby-lang
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d0760a8.pool.mediaWays.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
Xzyx987X [Xzyx987X!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-71-199-243-97.hsd1.fl.comcast.net] has joined #ruby-lang
kain [kain!~kain@151.64.211.61] has joined #ruby-lang
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
mnaim [mnaim!~mnaim@c-71-62-62-48.hsd1.va.comcast.net] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
<Oloryn_lt2> Is it possible to get HTTPClient to force retrieval of a request over IPv4, when the target site has both IPv4 and IPv6 addressses?
<manveru> give it an IPv4
<manveru> unless the target does vhost matching
<Oloryn_lt2> The target does vhost matching
Natch [Natch!~natch@178.73.218.249] has joined #ruby-lang
<manveru> then you probably need to check if you can give it an arbitrary socket
phlipper [phlipper!~phlipper@208.180.213.144] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
<samuelkadolph> What's wrong with it using IPv6?
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
petercooper [petercooper!~petercoop@82.144.254.2] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
phlipper_ [phlipper_!~phlipper@208.180.213.144] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
<eggman2001> if i've installed ruby with rvm, does that mean I'm an MRI/YARV user?
y3llow [y3llow!~y3llow@114-36-234-205.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-234-205.dynamic.hinet.net] has joined #ruby-lang
s0ber [s0ber!~s0ber@114-36-234-205.dynamic.hinet.net] has joined #ruby-lang
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-234-205.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-234-205.dynamic.hinet.net] has joined #ruby-lang
<mitchty> yes, forget yarv, it was the in development name, its all mri
<eggman2001> k, thanks
confounds [confounds!~confounds@208.113.46.214] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl17-45-13.dsl.telepac.pt] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
bousquet [bousquet!~bousquet@208.180.213.144] has joined #ruby-lang
<dreinull> in factory girl I have a class user which is accessed as :user. Now I want to add to some Array in a model the :user symbol. Obviously this confuses factory girl. Is there a way to still keep the class name and use :user for the Array?
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
<dreinull> ok, I see this is about scope. But what scope do I want it to be? Can I find out the scope of an existing symbol so I can apply it directly?
singpolyma [singpolyma!~singpolym@69.171.154.34] has joined #ruby-lang
<injekt> dreinull: I'm very confused
Jake232 [Jake232!~textual@5e04d619.bb.sky.com] has joined #ruby-lang
<injekt> "Now I want to add to some Array in a model the :user symbol
<injekt> "
<injekt> this is where the confusion started
<dreinull> injekt: I'll paste it
srbartlett [srbartlett!~srbartlet@202.161.19.210] has joined #ruby-lang
<dreinull> injekt: ok, made a mistake in the first place I think. Should have given Factory girl an [:user] instead... Let's see if that works
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<dreinull> ok, works now
<burgestrand> eggman2001: not necessarily, but most likely :p
voker57 [voker57!~voker57@2.93.224.75] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d070d93.pool.mediaWays.net] has joined #ruby-lang
mytrile [mytrile!~mitko@77.70.29.148] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
rb-beginner [rb-beginner!~yaaic@189.155.5.249] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
voker57 [voker57!~voker57@2.93.235.33] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
Manhose_ [Manhose_!~Manhose@bl17-45-13.dsl.telepac.pt] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang