Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has quit ["Leaving"]
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
RickHull [RickHull!~rhull@pdpc/supporter/active/rickhull] has quit [#ruby-lang]
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@dslb-188-097-009-235.pools.arcor-ip.net] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
dhoss [dhoss!~dhoss@69.30.53.42] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
aarkerio [aarkerio!~aarkerio@201.141.79.212] has joined #ruby-lang
<aarkerio> hi! I am PHP developer learning ruby
<aarkerio> in animals = %w(monkey goat octopus)
<aarkerio> what %w means?
<lianj> %w(monkey goat octopus) == ['monkey', 'goat', 'octopus']
<aarkerio> is a shortcut?
<lianj> somewhat
<aarkerio> ok, perfect! thanks!
<ilyam> aakerio: rib is your friend
<ilyam> i mean irb
<aarkerio> in php I use in_array($foo_array, 'element') to check if element exist in array $foo_array
<aarkerio> in ruby is:
<aarkerio> animals.include?('goat') ?
<drbrain> you should try it in irb
<shevy> yes aarkerio
<shevy> but you can omit the ()
<drbrain> irb is your friend
<shevy> also use %w() for long arrays, it is easier than typing '' and "" around the elements
<ilyam> seriously, just type 'irb' in your shell and poke around :)
<aarkerio> cool! thanks a lot!
<drbrain> I use %w[] since [] reminds me of arrays
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
<shevy> :)
<shevy> I think manveru showed me %w() once
<shevy> and I kinda used it from that point
<injekt> I use %w() because () *always* reminds me of a 'list'
<shevy> if he would have showed me %w[] instead .....
<drbrain> injekt: but () reminds me of languages where parentheses are required
<shevy> all things start small
<injekt> drbrain: hah
<shevy> like the butterfly causing a tornado somewhere else
<shevy> god, I hate butterflies
<drbrain> shevy: what if a second butterfly stops the first butterfly's tornado?
<shevy> hmm
<injekt> ...
<shevy> then that would be my hero
<injekt> what if a second butterfly joins the first butterfly's tornado
<shevy> but I am sceptical. butterflies are evil
<injekt> and makes it a super butterfly tornado
<shevy> I say kill 'em all!
<lianj> %w==
<shevy> hmm and
<shevy> %w%%
<drbrain> %w hi
<shevy> that one seems too bold :)
<shevy> oh!
<injekt> also too broken
<shevy> x =%w_ abc def ghi _ # => ["abc", "def", "ghi"]
<lianj> drbrain: doesnt work
<drbrain> huh, I guess it only works for %q
<shevy> can you use something like the PI symbol as delimiter in ruby 1.9.x for that?
<lianj> %w$shevy-lang$
<drbrain> %q hello world
dhoss_ [dhoss_!~dhoss@69.30.53.42] has joined #ruby-lang
<muzone> Hey
<muzone> Renaming files and folders - is that something Ruby would be good at or is it more a shell thing?
<shevy> ruby can rename files and directories
<shevy> FileUtils.mv
<muzone> A while back I wrote https://gist.github.com/1566331 (with the help of the dudes in #bash and #zsh ofcourse) - curious whether it's time to start rewriting it in Ruby
<shevy> usually you should check if the target file exists though, before using FileUtils.mv ... FileUtils.mv("old","new") unless File.exist? "new"
<shevy> yeah
<shevy> def mv(old, new)
<shevy> FileUtils.mv(old,new) unless ... blabla
<shevy> end
<muzone> nice
<muzone> so i should go for it?
<shevy> depends on who you ask. I myself say sure. But I stopped writing shell scripts seriously years ago in favour of ruby
<shevy> most shell scripts are just glue towards other programs like sed and grep anyway
<muzone> true..
<muzone> damn, this is a big question
<drbrain> include FileUtils; mv old, new unless ...
<shevy> then start small
<lianj> why? do it as a ruby learning experience
<drbrain> there's also FileUtils::Verbose and FileUtils::DryRun
<shevy> and let it grow over time in both ways, until you decide
<muzone> some whom ive asked say that shell jobs should be reserved shell scripts
<muzone> and let ruby do higher level stuff which is what it's best at
<shevy> and shell jobs are ... lower level?
<muzone> pretty much yeah
<shevy> :P
<shevy> muzone hmm I think with a small library, the ruby code may be even shorter than the shell script code
<muzone> lets find out!!
<muzone> feel free to fork and dryhump this baby: https://gist.github.com/1566331
<shevy> muzone, nah just thinking https://gist.github.com/1568344 would not actually be any big difference
<shevy> it's actually quite nice that you can omit "function"
<shevy> so that this also works:
<shevy> files () {
<muzone> word..
<lianj> i would comment out the mv line and write the script without it, as in dryrun, and only drop it on when you actually want to move stuff.. or like drbrain said
<muzone> thanks a lot man
<muzone> for renewing my faith in this old horse
<muzone> its cool lianj
<muzone> somehow the shell code seems more natural imho, kind of a less is more kinda thing
<muzone> by shevy's example
<shevy> I was just trying to see ways for ruby to be shorter
<shevy> hmm
<shevy> well
<muzone> well it backfired hehe
<shevy> files() {
<shevy> vs
<shevy> def files
<shevy> there is really not a huge difference if you ask me though
<lianj> huh, the ruby version prolly would be shorter
<muzone> true that..
<muzone> but still..
<lianj> and you save these couple of shell forks
<shevy> muzone you don't like decisions eh? ;)
<muzone> oh hey, do feel free to use the script! run it over your mp3 folder and watch what happens!
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
<shevy> not sure why, when I need to do something like that, I'd use ruby scripts
<muzone> shevy: you're probably blinded by love
<shevy> if you could give me real definite advantages of using shell scripts rather than ruby scripts
<lianj> -e 's/&/and/g' # "K&C" => "KandC" that would happen
<shevy> I am keeping my old shell scripts and maintaining them just a little in case I'd ever have to use an environment that would have something like bash, but not ruby
<muzone> 2 sec got french fries burning
<shevy> hmm
mksm [mksm!Guest67529@pdpc/supporter/professional/mksm] has joined #ruby-lang
<muzone> well i guess you can liken it to shooting someone with a gun
<muzone> with ruby, it's still the same gun, just with a silencer on
<muzone> (in the case of FileUtils vs the shell i mean)
<shevy> mv is more like a spoon
<shevy> you use strong words muzone!
<muzone> heheh
<muzone> about this though: https://gist.github.com/1566053 (making maintaining ID3 tags in large music collections a breeze) - am i going about it the right way?
<injekt> muzone: include is for modules
<muzone> ooh shit
<mksm> Is it possible to "unset" a constant?
<injekt> and you should wrap those methods in your own class
<injekt> muzone: yes
<muzone> my bad injekt
<injekt> mksm: yes*
<injekt> mksm: Object.send(:remove_const, :CONST)
<muzone> fixed!
<muzone> hows my method delegation doing? (is that the right terminology?)
<shevy> muzone, require ruby-ncurses <--- wants a string. require 'ruby-ncurses'
<injekt> :P
<muzone> oooh.. right on!
<shevy> ignore terminology and just write to get things done
<injekt> and a file named id3.rb should have a class aptly named ID3
<mksm> injekt: thanks
<shevy> I guess at this point he'll be faster without using class
<injekt> yay lets pollute Object
<shevy> :)
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
<muzone> injekt: like this? https://gist.github.com/1566053
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
<shevy> see what you did now injekt :(
<muzone> :(
<lianj> muzone: you github name is fun
<lianj> *your
<muzone> thanks man :D
<oddmunds> muzone: have you looked at rbcurse?
<oddmunds> i made a game in ncurses and i'm considering moving to rbcurse
<muzone> oddmuuuuuuuuuunds!!
<muzone> long time no see man
<lianj> "MVC architecture." for curses oO
<drbrain> lianj: why not?
<muzone> thanks for the heads up
<lianj> drbrain: not sure, i might have to look into the examples first
<shevy> muzone, class name must start capitalized
<shevy> so class id3 would need be either class Id3 or class ID3
<muzone> ID3 it is then
jMCg [jMCg!~hiro@apache/committer/igalic] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Xzyx987X [Xzyx987X!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
flebel [flebel!~flebel@unaffiliated/flebel] has joined #ruby-lang
mikeric [mikeric!~mike@S010600212986c312.vc.shawcable.net] has joined #ruby-lang
tuxchat [tuxchat!~tuxchat@203-217-67-153.dyn.iinet.net.au] has joined #ruby-lang
Luthraz [Luthraz!~Luthraz@68.179.172.242] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
Austin__ [Austin__!~austin@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has joined #ruby-lang
fayimora [fayimora!~fayimora@109.175.187.154] has joined #ruby-lang
ilyam [ilyam!~ilyam@c-67-188-113-128.hsd1.ca.comcast.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
<chris2> corundum: seen aria
<corundum> Aria was last seen 91 days, 23 hours, 20 minutes and 42 seconds ago, leaving #ruby-lang
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
mark_ [mark_!~mark@211.244.56.79] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
mark_ [mark_!~mark@211.244.56.79] has joined #ruby-lang
mark_ [mark_!~tjalsrb@211.244.56.79] has joined #ruby-lang
tjalsrb [tjalsrb!~tjalsrb@211.244.56.79] has joined #ruby-lang
seydar [seydar!~seydar@67-194-86-203.wireless.umnet.umich.edu] has joined #ruby-lang
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby-lang
<seydar> when using rack, what's the recommended way to get all directories to redirect to directory/index.html?
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.43] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
ryanf [ryanf!~ryanf@41.sub-174-254-209.myvzw.com] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.151] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby-lang
scampbell [scampbell!~scampbell@mail.scampbell.net] has joined #ruby-lang
desireco_ [desireco_!~textual@108-217-153-195.lightspeed.cicril.sbcglobal.net] has joined #ruby-lang
<shevy> hmm guys a quick question
<shevy> say you have a rather long text file
<shevy> that file has headers... identifies, in one line. and then fol
<shevy> oh, I better make an example, easier to explain
<shevy> ok, you have a very long text file which would have this structure http://pastie.org/3135669
<shevy> I am kinda trying to come up with a simple way to do things like "search for foobar tag and display its content"
<shevy> oh nevermind
<shevy> I think this is trivial
<Asher> use yaml or something
<Asher> for what you seem to be doing
<shevy> hmm I think that file may not be proper yaml actually
<Asher> it's not
<Asher> the files already exist?
<Asher> or you are using files to store data
<shevy> that file already exists, yeah, but it is kinda quite long already, around 8000 lines, and it gets unwieldy to always jump to the section I need
<shevy> I kinda want to display the body of such a tag on the commandline
<shevy> "query foo tag" -> output what is known about "foo"
<shevy> I am thinking - I just load the whole file, and then iterate through it line by line. if it has at least two leading spaces, it gets grouped to the preceding tag
<shevy> no idea if there is a better way
<Asher> that would be how you parse a regularly formatted file generally
crudson [crudson!~doug@c-67-171-219-209.hsd1.or.comcast.net] has joined #ruby-lang
<shevy> ok
wmoxam [wmoxam!~wmoxam@69-196-137-95.dsl.teksavvy.com] has joined #ruby-lang
snuxoll [snuxoll!~stefan@63.227.129.124] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
<wmoxam> is there a Rubinius package for Ubuntu?
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.41] has joined #ruby-lang
<bnagy> imho I wouldn't touch ubuntu rubies with a stick
<bnagy> rvm is a bit barfy, but at least it works and gives you something newer than 2 years
<wmoxam> bnagy: Ubuntu's packages have improved
<wmoxam> shipping 1.8.7 + 1.9.2 now, though jruby seems a bit old
<wmoxam> yeah, it's only 1.5.1, current is 1.6.5
<bnagy> anyway, apt-cache search seems to say 'no', but not sure if anyone has a ppa or something
<wmoxam> yeah, been looking
<wmoxam> :/
<wmoxam> because if not I'll create a package myself
<wmoxam> :p
<bnagy> speaking of jruby, I really wish I could get msgpack to build :(
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-40-197.lns20.syd6.internode.on.net] has joined #ruby-lang
fayimora [fayimora!~fayimora@109.175.187.154] has joined #ruby-lang
curtism [curtism!~curtis@bas11-montreal02-1128531121.dsl.bell.ca] has joined #ruby-lang
ankurgel [ankurgel!~ankur@59.178.148.170] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
snuxoll [snuxoll!~stefan@63.227.129.124] has quit [#ruby-lang]
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-148-146-88.dyn.iinet.net.au] has joined #ruby-lang
<infid> is ruby weakly or strongly typed?
<Asher> strongly
<Asher> it has strong typing internally and duck typing on the surface
<infid> i see
jkprg [jkprg!~jarda@ip-62-245-93-150.net.upcbroadband.cz] has joined #ruby-lang
thone_ [thone_!~thone@g226049020.adsl.alicedsl.de] has joined #ruby-lang
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby-lang
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
jay_lee [jay_lee!~jay@adsl-69-231-205-68.dsl.irvnca.pacbell.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-40-197.lns20.syd6.internode.on.net] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
<josh9> i have this url: http://www.lowes.com/pd_163294-77268-865600_4294857752_4294937087_?productId=1148813&Ns=p_product_prd_lis_ord_nbr|0||p_ according to this code for url validation it's not valid: !((@url =~ URI::DEFAULT_PARSER.regexp[:ABS_URI]).nil?)
<josh9> any idea why or is there a better way to validate urls?
shevy [shevy!~shevy@88-117-34-45.adsl.highway.telekom.at] has joined #ruby-lang
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
jay_lee [jay_lee!~jay@adsl-69-231-205-68.dsl.irvnca.pacbell.net] has quit ["Leaving"]
<josh9> URI.parse also throws an error..so i guess it's not a great url..
shachaf [shachaf!~shachaf@ip24.67-202-82.static.steadfastdns.net] has joined #ruby-lang
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@128-70-119-37.broadband.corbina.ru] has joined #ruby-lang
<Tasser> wmoxam, still here?
<Tasser> > I think it makes sense to work closely with upstream on this package, to
<Tasser> > get it in an appropriate shape without carrying too many patches on our
<Tasser> > side.
<Tasser> Sure, specially because fluent Japanese won't be a requirement for that. ;-)
<Tasser> ah well, debian mentality again ;-)
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby-lang
tjalsrb [tjalsrb!~tjalsrb@211.244.56.79] has quit [#ruby-lang]
TvL2386 [TvL2386!~tom@2a00:1388:0:3:224:beff:feaf:8eb2] has joined #ruby-lang
<yorickpeterse> Morning folks
<rue> GOOD MORNING
<rue> It's a holiday, too
<rue> Epiphany or some such
SkramX [SkramX!~SkramX@96.231.224.211] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-148-146-88.dyn.iinet.net.au] has joined #ruby-lang
srbartle_ [srbartle_!~srbartlet@124-148-146-88.dyn.iinet.net.au] has joined #ruby-lang
Pip_ [Pip_!~Pip@pppoe-188-187-11-200.volgograd.ertelecom.ru] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-36-221.telstraclear.net] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
Newbs [Newbs!~textual@host-78-147-55-166.as13285.net] has joined #ruby-lang
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-36-221.telstraclear.net] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
<andrewvos> Morning
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby-lang
zmack [zmack!~zmack@188.26.128.139] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
Jake232 [Jake232!~textual@5e04b45b.bb.sky.com] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
jxie [jxie!~jxie@115.197.95.136] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
jkprg [jkprg!~jarda@ip-62-245-93-150.net.upcbroadband.cz] has joined #ruby-lang
mantono [mantono!~mantono@c83-251-126-234.bredband.comhem.se] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d070620.pool.mediaWays.net] has joined #ruby-lang
AndChat| [AndChat|!~AndChat@222.153.223.45] has joined #ruby-lang
beiter [beiter!~beiter@manz-5f74a8d1.pool.mediaWays.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-148-144-116.dyn.iinet.net.au] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatej.mh.bbc.co.uk] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby-lang
solars [solars!~solars@mk089144206205.a1.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
rippa [rippa!~rippa@ip-030-117-064-178.pools.atnet.ru] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-50-17-112-129.compute-1.amazonaws.com] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-51-14.washdc.btas.verizon.net] has joined #ruby-lang
spuk [spuk!~spuk@187.65.176.82] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has quit [#ruby-lang]
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
replore [replore!~replore@EM117-55-65-133.emobile.ad.jp] has joined #ruby-lang
jgomez [jgomez!~jgomez@5ad2abd2.bb.sky.com] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
cantbecool [cantbecool!~cantbecoo@173-15-164-136-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310C95.dip0.t-ipconnect.de] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has quit [#ruby-lang]
mksm [mksm!mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
virunga [virunga!~virunga@151.64.4.53] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
Sailias [Sailias!~jonathan@bas8-toronto01-1279270254.dsl.bell.ca] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@host226.190-31-167.telecom.net.ar] has joined #ruby-lang
mrneighborly [mrneighborly!~mrneighbo@154.25.119.70.cfl.res.rr.com] has joined #ruby-lang
cantbecool [cantbecool!~cantbecoo@173-15-164-136-BusName-Philadelphia.hfc.comcastbusiness.net] has quit [#ruby-lang]
elux [elux!~peter@96.45.198.150] has joined #ruby-lang
elux_ [elux_!~peter@96.45.198.150] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby-lang
RickHull [RickHull!~rhull@209.119.14.25] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
RickHull [RickHull!~rhull@pdpc/supporter/active/rickhull] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby-lang
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
Swimming_Bird [Swimming_Bird!~textual@64.70.114.89] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@host226.190-31-167.telecom.net.ar] has joined #ruby-lang
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
Jade [Jade!~jade@unaffiliated/jade] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<necromancer> is it possible to turn an array key into a variable name?
<necromancer> so if i have config['database'] = "my_project", could i make database = "my_project" from that?
<lianj> array key?
<Spooner> necromancer: That is a hash key, not an array key.
<imperator> database = config['database']
slaytanic [slaytanic!~slaytanic@host226.190-31-167.telecom.net.ar] has joined #ruby-lang
<Spooner> I assume it is meant to be automated, e.g. eval "#{key} = config['#{key}']"
<imperator> yes, could be done that way
mattonrails [mattonrails!~mattonrai@70-89-14-189-jax-fl.hfc.comcastbusiness.net] has joined #ruby-lang
<Spooner> Though it is unusual to do that, necromancer. Why would you actually want to do that?
<necromancer> Spooner: to flex my metaprogramming skillz ;-)
<necromancer> apparently, i can interpolate hash values into strings so it's actually not necessary
<Spooner> Aha!
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
<injekt> anyone have recommendations for geolocation gems?
<mrneighborly> geokit
<injekt> isn't that old?
<mrneighborly> probably :)
<mrneighborly> rgeo is good too
* mrneighborly can't remember what the newest is.
<mrneighborly> looks like rgeo had commits just a couple weeks ago
* injekt checks
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
<shevy> hmm when I have an array that can be either [false, true] or [true,false] and I want to check if it is ... what should I do? I figure one simple way is to first check for .include? true and then also check for .include? false
<injekt> you want to check which one it is?
<injekt> if so, just check for array[0], which will be true if [true, false] and false if [false, true]
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
<imperator> was there a netsplit or something?
<Mon_Ouie> Your quit message said "Ping timout"
<shevy> oh man ... I am looking at old code ... and a method that has 370 lines (including comments though, which make up for 3/4 of those lines... still about 90 lines of code in that method)
<injekt> heh
<injekt> open up debug.rb
<erikh> do all the things
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-eqelywxrcvwxpein] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
Skif_home [Skif_home!~Skif@72.1.92.57] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-qmizqkcisomopywm] has joined #ruby-lang
<shevy> I am tempted to rewrite it all but I am afraid of how long the rewrite may take :(
<necromancer> injekt: we use geocoder here. there's a railscast on it
<necromancer> injekt: we also use the postgis plugin for postgres to add location types to our db
<lianj> shevy: that what tests are great for
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-pwvfmdktmkngxfzy] has joined #ruby-lang
<injekt> necromancer: neat thanks
<imperator> Mon_Ouie, hm, thanks
<Mon_Ouie> injekt: You could just have said "open a few random files in stdlib" :p
<injekt> Mon_Ouie: haha, true
kyrylo_ [kyrylo_!~kyrylo@46.118.230.152] has joined #ruby-lang
<injekt> uh oh, the cloud is dying
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-izurooacijjkqnuv] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-fqofpaxfpdclaqrn] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03A888.dip.t-dialin.net] has joined #ruby-lang
Logen_zack [Logen_zack!~Logen_zac@57-162-142-46.pool.kielnet.net] has joined #ruby-lang
siori [siori!~siori@w0109-49-135-218-174.uqwimax.jp] has joined #ruby-lang
akahn [akahn!~akahn@204.145.67.146] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03A888.dip.t-dialin.net] has joined #ruby-lang
tylergillies [tylergillies!u3033@gateway/web/irccloud.com/x-welegbduzxichiyq] has joined #ruby-lang
<RickHull> the cloud is water vapor, so when it splits, we get a hydrogen economy?
davidw [davidw!~davidw@adsl-ull-196-118.51-151.net24.it] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-bvgoabvcxxvgpuzc] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-lyxngkisxsciguob] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-jxdgxlhbzzoagjfi] has joined #ruby-lang
pvh [pvh!u717@gateway/web/irccloud.com/x-iehpqrjnmnxskmum] has joined #ruby-lang
bryanl [bryanl!u1690@gateway/web/irccloud.com/x-sxewuvvdqmxjraoj] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03A888.dip.t-dialin.net] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-cjbxduvvcxzncicf] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-vyejvetvpaejlmtu] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-tdrsyijzvntjavgv] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-wsfztuzjemkbkovr] has joined #ruby-lang
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-dwdxffgdtpauyuwn] has joined #ruby-lang
jaafar [jaafar!~jet@adsl-76-200-166-49.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
fritzek [fritzek!~fritzek@p5DDB577B.dip.t-dialin.net] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-cfurrwmlwuhzuslg] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-genfgmjmclcshuuh] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-mcyspbknktfltkwa] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-tpvfefvujxjqtrec] has joined #ruby-lang
br1an [br1an!u440@gateway/web/irccloud.com/x-ghmyeajduqgllcyo] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
achamian [achamian!~achamian@122.167.227.110] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
beiter [beiter!~beiter@manz-5f74a8d1.pool.mediaWays.net] has joined #ruby-lang
<robgleeson> injekt: So, Geocoder? ;)
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
ascarter [ascarter!~ascarter@64.122.126.156] has joined #ruby-lang
oilpastels [oilpastels!~rafael@177.19.59.203] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl6-38-193.dsl.telepac.pt] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DF33.dip0.t-ipconnect.de] has joined #ruby-lang
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
AlHafoudh [AlHafoudh!~textual@dsl-static-173.212-5-200.telecom.sk] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
<jmontross> is there a way in rubymine to use a watch on a variable and then play with that variable in irb?
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.230.152] has joined #ruby-lang
benanne [benanne!~rijdier@234.141-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
jacobwg [jacobwg!~jacobwg@129.sub-75-199-10.myvzw.com] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has quit [#ruby-lang]
<rue> Geo Metro coder
<rue> jmontross: Dunno, but you can set watchpoints in -rdebug
<Spooner> jmontross: You could use pry-remote to access the code from outside.
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.230.152] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.221.138.151.cable.dyn.cableonline.com.mx] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
havenn [havenn!~skipper@pool-108-0-200-241.lsanca.fios.verizon.net] has joined #ruby-lang
aarkerio [aarkerio!~aarkerio@201.141.52.148] has joined #ruby-lang
<aarkerio> hi! How can I access a mother class method?
<aarkerio> self.motherMethod ?
<rue> Er
<rue> You can use #super, unless this is some actual motherclass thing
dkannan [dkannan!u480@gateway/web/irccloud.com/x-jkfxiqkfzdcpfhbn] has joined #ruby-lang
<Mon_Ouie> It's funny how everyone tends to use the # notation for things that aren't instance methods or even methods at all
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has quit [#ruby-lang]
<rue> #super is method-like enough
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-idarlmhotdqstmvk] has joined #ruby-lang
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-eqzalihosztuoegg] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-fqxcpacfgtmfrnix] has joined #ruby-lang
<aarkerio> this is my situation: I can call the method: layout('admin') at the beginning of class
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-qyipxwdyqerfzvba] has joined #ruby-lang
<havenn> I guess you could use #super disambiguate super from super()? (Or just write super() >.>)
<kyrylo> Same goes to GNU/Linux, but oppositely.
<aarkerio> but not inside a method: def foo layou('admin') end
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-knloxrweppvogapl] has joined #ruby-lang
<aarkerio> so, I am new in ruby, how can I call layout() method?
<havenn> Nvm what I just said. Gibberish. (Not awake yet.)
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
<aarkerio> in php I do: $this->layout('admin');
charper [charper!u1691@gateway/web/irccloud.com/x-memukymizuwdnweq] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<rue> aarkerio: self.class.layout "admin"
<rue> Probably
beiter [beiter!~beiter@manz-5f74a8d1.pool.mediaWays.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
<aarkerio> rue!! works! thanks!
<jmontross> pry-remote is interesting… so you can do something in one irb session and access in another?
<rue> jmontross: Or just access a running program from the outside
<jmontross> -rdebug might also be smart to learn… but it's a rails app
<jmontross> so i don't think -rdebug opens up an irb session for me to interact with the stuff im watching
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-zibduohvylwbgzcn] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-nomydqsjpyjpgsnv] has joined #ruby-lang
bryanl [bryanl!u1690@gateway/web/irccloud.com/x-uacusmcdwmxozete] has joined #ruby-lang
<rue> aarkerio: Note that it might indicate something's wrong about your logic if you find yourself calling a bunch of class methods from instances
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
<aarkerio> well, is a Rails class, so, I guess the logic is ok
<rue> ~
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
Marco_ [Marco_!~marco@pat160.dartmouth-secure.border2-cfw.Dartmouth.EDU] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby-lang
pvh [pvh!u717@gateway/web/irccloud.com/x-yitbkzmpumukgsnh] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-ltwfsvjzrmzoflra] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has quit [#ruby-lang]
jarrod__ [jarrod__!~jarrod@rrcs-24-153-217-133.sw.biz.rr.com] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310C95.dip0.t-ipconnect.de] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-wxivyllvibpkynyt] has joined #ruby-lang
scampbell [scampbell!~scampbell@mail.scampbell.net] has joined #ruby-lang
tylergillies [tylergillies!u3033@gateway/web/irccloud.com/x-tfxvubmvstmrinvv] has joined #ruby-lang
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
havenn [havenn!~skipper@pool-108-0-200-241.lsanca.fios.verizon.net] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
gloriaC991 [gloriaC991!~jake@c-67-169-43-61.hsd1.ca.comcast.net] has joined #ruby-lang
<gloriaC991> for someone who understands a little about how gems are loaded: why is this file not getting loaded by my rails project? https://github.com/tanoku/redcarpet/blob/master/lib/redcarpet/render_strip.rb
<gloriaC991> i have it in my Gemfile
SuperTaz_work [SuperTaz_work!~supertaz_@vpn.lax.truecarcorp.com] has joined #ruby-lang
<gloriaC991> and the other Redcarpet::Render::X classes (the ones defined in redcarpet/lib/redcarpet.rb) are getting loaded
<gloriaC991> oh. i guess its cuz its not in 2.0.1.
<gloriaC991> facepalm
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-bqdmmushizjijzjh] has joined #ruby-lang
cek [cek!~cek@host-static-46-55-80-225.moldtelecom.md] has joined #ruby-lang
<cek> can the required module access the parent namespace that requires it?
urbanmonk [urbanmonk!~rom@216.191.220.85] has joined #ruby-lang
<cek> or have any idea of surrounding env?
<erikh> require always requires from toplevel
RickHull [RickHull!~rhull@pdpc/supporter/active/rickhull] has quit [#ruby-lang]
<cek> even Object.new.send :require?
urbanmonk [urbanmonk!~rom@216.191.220.85] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
<erikh> test it?
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-scknlytilapjxfjy] has joined #ruby-lang
<cek> well, yeah, that was the qeustion, if it has any special meaning within the object
<cek> i'm trying to build a so called plugin factory, where I search for available plugins (ruby files) and register them into the factory
<cek> to have less code, i wanted to automatically suck in the plugin files, without the need to provide any special hooks in requirer
<cek> i guess i'll just bring in class vars in requirer and add code into requirees
<Asher> worry about what your code does first
<Asher> reduce it later
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-xkdoycuihbhbtvhf] has joined #ruby-lang
kain [kain!~kain@93-62-245-141.ip25.fastwebnet.it] has joined #ruby-lang
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<cek> ok
kyrylo [kyrylo!~kyrylo@46.118.222.116] has joined #ruby-lang
<curtism> where is the documentation on %q{} and friends at?
<manveru> corundum: quickref?
<curtism> what are those things called
deeno [deeno!~deeno@pool-96-233-74-49.bstnma.fios.verizon.net] has joined #ruby-lang
<erikh> golf caddies
outoftime_ [outoftime_!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-vopfswtmihycwzyv] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-daamieztkeftbwlx] has joined #ruby-lang
cek [cek!~cek@host-static-46-55-80-225.moldtelecom.md] has joined #ruby-lang
<cek> alright, what do you think - https://gist.github.com/1b18211bd2322268dcd7 . it works, just want your opinion
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
<burgestrand> cek: just use extend/self.extended if all you do is extend the target anyway
<cek> burgestrand, will probably some instance methods there too
<lianj> live
kain_ [kain_!~kain@151.64.233.209] has joined #ruby-lang
<curtism> cek: stop using hard tabs
<cek> curtism, lol. i just press the tab key and editor (rubymine) does the rest
<cek> you know, i tried coding in vim, but it's so '80
<curtism> a ruby editor that defaults to hard tabs? what is the world coming to
<cek> what is a hard tab anyway?
<cek> all it uses is "\t" probably
<curtism> that's a hard tab
<cek> what's a soft tab then?
<curtism> spaces
<cek> lol
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
<cek> you guy are all wrong, because "soft tab" aka spaces can't be easily adjusted at another user, who doesn't like 4 spaces but likes 2 for example
<curtism> the problem with hard tabs is... look at your gist... it looks stupid because almost everything defaults to rendering hard tabs as 4 or more characters
<erikh> ugh
<erikh> not this argument
* erikh makes the sign of the cross
<cek> i look at my gist and see that github does the wrong thing
<curtism> not wrong, it needs to default to something
<cek> the first wrong thing that github did is markdown chosen as text language on programming site
<curtism> hard tabs are commonly defined as 8 characters wide
<cek> it's commonly defined to whatever number in different languages and for different people
<curtism> no, that is an editor thing
<cek> btw, you know what. it's no github, it's your browser.
<cek> so go complain to your browser vendor
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<curtism> why would i complain to my browser? the browser is rendering it how it's supposed to be rendered
<erikh> guys
<erikh> reddit exists for a reason
<erikh> take it there, I beg you
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-pfxjzohepymxoeij] has joined #ruby-lang
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
br1an [br1an!u440@gateway/web/irccloud.com/x-rvgxbpzdhmfstwtc] has joined #ruby-lang
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby-lang
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
bryanl [bryanl!u1690@gateway/web/irccloud.com/x-kiudfsdnsazgkdsu] has joined #ruby-lang
<shevy> 2 spaces for the win
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-bulqutvcajgtulwx] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-nwavpahdgfleslcb] has joined #ruby-lang
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby-lang
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has quit [#ruby-lang]
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-cdxkqtmlnuxwrzrc] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-bxpylclxntywtdos] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
* imperator has a Tab cola
<Tasser> shevy, pastebin with language-specific tabs ftw ^^
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
ilyam [ilyam!~ilyam@2620:65:0:281:5c5b:febc:16e6:4f8] has joined #ruby-lang
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
Pip [Pip!~Pip@176.214.2.115] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@64.175.137.28] has joined #ruby-lang
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
<whatasunnyday> hmm
<whatasunnyday> can a range be used to initialize an array of a of specific values?
<whatasunnyday> like can i create an array that numbers [1, 2, 3] through 1..3
<erikh> (1..3).to_A
<erikh> err, to_a
<whatasunnyday> is a range an object in ruby?
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
<rue> erikh: Reddit exists for trolling and being surprised by trolling
<erikh> well yes
<erikh> why didn't you know that
<rue> whatasunnyday: Range, yes.
<whatasunnyday> i'm just sort of confused, is [1, 2, 3] == [1..3]
<lianj> [1, 2, 3] == [*1..3]
<whatasunnyday> oh
<whatasunnyday> [1..3].class => Array
cored [cored!~homer@201.229.129.243] has joined #ruby-lang
cored [cored!~homer@unaffiliated/cored] has joined #ruby-lang
<erikh> (1..3).class => Range
<curtism> whatasunnyday: that's an array with one item
<whatasunnyday> i see
<lianj> an array with one range object inside, yes
<whatasunnyday> ah
<whatasunnyday> that makes perfect sense
<whatasunnyday> thank you
<erikh> ah, sec
<erikh> [*(1..3)]
<erikh> maybe that helps
<whatasunnyday> it does
<whatasunnyday> i am in a much more informed state of mind, thank you
<erikh> enjoy
<robgleeson> what do you guys think of the new GitHub UI? (on the landing page of projects)
<robgleeson> I think it's awful...
<Asher> why awful?
<robgleeson> text is too big
<robgleeson> i don't like the colors they've got going on
<robgleeson> definitely prefer the older style
<Asher> yeah it is
<theconartist> black on white readme sucks
<imperator> well, that fucks up my readme's
<imperator> looks like it's plain text now; use to be markdown
<erikh> my markdown is still working
<imperator> well, i'm not changing them, they weren't written that way for github anyway, so tough
<imperator> before it was just happy coincidence, guess it's back to ugly
<frem> imperator: what file extension do they have?
<imperator> none frem
<robgleeson> I'm very disappointed at the changes :"(
jalljo [jalljo!jalljo@unaffiliated/jalljo] has joined #ruby-lang
Silowyi [Silowyi!~silowyi_d@99-26-202-35.lightspeed.snantx.sbcglobal.net] has joined #ruby-lang
<Silowyi> so Time.wday starts the week on sunday, MySQL's WEEKDAY() starts the week on monday... fun
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
* imperator thinks a custom method might be in order
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<cored> are you guys using rbenv
<cored> fine?
<cored> I just could manage to install 1.9.2 without problem
<robgleeson> I am
<cored> do you have 1.8.7 installed?
<robgleeson> donno, lemme see
<robgleeson> yup
<cored> weird
<cored> rbenv just don't let you to change the downloaded tar.gz for the vm it's overwrite it each time you try to install the same vm
<robgleeson> donno..... sorry
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
jaemin-kr [jaemin-kr!~jaemin-kr@c-174-52-199-91.hsd1.ut.comcast.net] has joined #ruby-lang
<cored> ok
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
confounds [confounds!~confounds@206.108.175.29] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DF33.dip0.t-ipconnect.de] has joined #ruby-lang
<dreinull> hm, that new github theme looks different
<dreinull> is there a place where I can turn off the frames?
havenn [havenn!~skipper@static-96-229-65-112.lsanca.dsl-w.verizon.net] has joined #ruby-lang
<burgestrand> dreinull: what frames?
<dreinull> burgestrand: dont you have a new github interface?
<burgestrand> dreinull: lots of whitspace and a funny icon over my README? I think I do
<dreinull> yup, thats it.
<burgestrand> not sure what you mean by frame though :)
<dreinull> burgestrand: around the file view and the readme
<dreinull> why is my readme a phonebok now?
dejongge [dejongge!~jonke@pD9E0CE6D.dip0.t-ipconnect.de] has joined #ruby-lang
<burgestrand> dreinull: ah, the border
<dreinull> border, frame, whatever. reminds me of those frames back then
<robgleeson> dreinull: hopefully it gets refined.
<robgleeson> they've already refined the code block text to be smaller (thank god)
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<robgleeson> way too much whitespace between text, though
<burgestrand> way too much vertical whitespace imo
<dreinull> robgleeson: the readmes are less readable now. especially the new `code`blocks
<robgleeson> yeah
<robgleeson> I never designed my README for GitHub, though, so I'm not going to change anything
<robgleeson> I design it to look good (and readable) in a text editor, it's up to GitHub to do the rest ;)
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<curtism> my biggest problem: h4's are allcaps
<curtism> why would anyone allcaps a heading? WHY?
<dreinull> early april fool's joke I guess. Blame it on hubot
<curtism> this has forced me to demote all my headings by one so it doesn't look stupid
Newbs [Newbs!~textual@host-92-25-1-3.as13285.net] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
<dreinull> seems like all the new people there had to produce _something_
<dreinull> :)
<drbrain> dreinull: user style sheets will take care of that
<_rane> class P; def foo; def bar; end; end; end; is there a way to escape/return from foo within bar?
<drbrain> _rane: return_bang can do it!
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
mksm [mksm!mksm@pdpc/supporter/professional/mksm] 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
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
fayimora [fayimora!~fayimora@109.175.187.154] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d070fe7.pool.mediaWays.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby-lang
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has quit [#ruby-lang]
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
comboy [comboy!~quassel@geen2.tesuji.pl] has joined #ruby-lang
pbjorklund [pbjorklund!~pbjorklun@c-b9dbe655.026-155-626f721.cust.bredbandsbolaget.se] has joined #ruby-lang
<pbjorklund> I have a problem with string.strip not removing trailing whitespace. All my strings end up begin "Something something ". Guessing that the last space is not a normal space, is there a way I can check what it is? puts gives me nothing useful.
comboy [comboy!~quassel@tesuji.pl] has joined #ruby-lang
<drbrain> string[-1, 1]
<drbrain> and string[-1, 1].ord