Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
<ale`>
Hanmac: I think I somehow skipped building the docs, trying to find out how to rebuild them
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<ale`>
looks like I only have the Rake docs installed :)
<ale`>
s/:)/:(
smgt [smgt!~simon@out.flattr.net] has joined #ruby
<shevy>
ale` I compiled ruby from source, like real men do, and the step to install the rdoc was to ... I think it was "make rdoc" ... or ... "make install rdoc" or something like that. I stopped using rdoc 5 years ago though and never looked back, dont have ri either
<ale`>
shevy: I found out I can just "rvm docs generate" to build the documentation... so you're browsing the docs on internet instead?
<shevy>
ale` if I need to find new information, I use google, yep. But I also keep documentation locally, with usage examples, and run that via apache on localhost and ruby scripts (but I have no sophisticated search-input field yet, so it is currently a dump-all-on-one-page mega documentation)
<shevy>
and have this docu connected to my local ruby scripts too
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-onmrlmsljouxpayy] has joined #ruby
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-mhewxdmalapajyyh] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-hzluldfwtatjauhl] has joined #ruby
caiges [caiges!~caiges@ip70-162-129-204.ph.ph.cox.net] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-iocgtohacihsrccx] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-rkapbkxpezqiyyin] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-udcsxgyzexxhlgua] has joined #ruby
andrewhl [andrewhl!~andrew@67.69.104.66] has joined #ruby
superguenter [superguenter!~Adium@208.90.215.35] has joined #ruby
superguenter [superguenter!~Adium@208.90.215.35] has quit [#ruby]
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-avkitgabwqzwywkr] has joined #ruby
leoncamel [leoncamel!~user@KD175129170046.ppp-bb.dion.ne.jp] has joined #ruby
sayem [sayem!~user@c-064-186-242-006.sd2.redwire.net] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-deecshhihqohkxrm] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-vonxaxnfzlwskmqo] has joined #ruby
gl33m [gl33m!~kvirc@c-24-20-241-182.hsd1.wa.comcast.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby
carlyle [carlyle!~carlyle@2602:306:37ff:180:e6ce:8fff:fe27:d2a4] has joined #ruby
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-gopjegpwjdnqogfp] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-ubskzzazszqslvnb] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-idjmyelblpcwxovd] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-idjmyelblpcwxovd] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-ajuesdaxnwitfyit] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-fvprglmuikxxhjqh] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-foeuszsetcujsupc] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
<ale`>
alright, got a ri package for emacs :-)
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-gmwnbfxsncpxpryp] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
mioukyyy [mioukyyy!~mioukyyy@ip-213-49-238-223.dsl.scarlet.be] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
kylemcgill [kylemcgill!~kylemcgil@static-ip-202-90-56-14.watchdog.net.nz] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@ppp59-167-157-127.static.internode.on.net] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-sqrolvjldhapdbfs] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
superguenter [superguenter!~Adium@208.90.215.35] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-umgprkltmvbtqdup] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
superguenter [superguenter!~Adium@208.90.215.35] has quit [#ruby]
rubynewb [rubynewb!46b0ae49@gateway/web/freenode/ip.70.176.174.73] has joined #ruby
<rubynewb>
I am looking for a mechanism similar to .max_by that returns the computed value rather than the enum item. I have an array of objects and I want to get the max value of a specific attribute of any of those objects
bryricker [bryricker!~bricker@72-62-114-157.pools.spcsdns.net] has joined #ruby
<bryricker>
Hello, can someone please explain to me this behavior? https://gist.github.com/1630128 I'm mostly curious about why "self" is needed before the method definition for this to work
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
Squackles [Squackles!~Squackles@92.80.126.52] has joined #ruby
<guns>
rubynewb: ary.map { |f| compute f }.max
centipedefarmer [centipedefarmer!~centipede@75-170-150-51.desm.qwest.net] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-blzkiuyknarmifyo] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
jmcphers [jmcphers!jmcphers@nat/nokia/x-gfkaqdiiwnbkrxxg] has joined #ruby
Skaag_ [Skaag_!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
peterhel_ [peterhel_!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
peterhellberg [peterhellberg!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
peterhellberg [peterhellberg!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
peterhel_ [peterhel_!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
<shadoi>
sometimes I want to shoot my former self for the code I wrote.
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
peterhellberg [peterhellberg!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
peterhel_ [peterhel_!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
dbernar1 [dbernar1!~dbernar1@S0106c03f0ed8678b.wp.shawcable.net] has joined #ruby
<dbernar1>
I would like to write a cucumber feature for a command-line app that uses sudo. I am unable to automate this with aruba. Any tips?
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279600394.dsl.bell.ca] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
Asebolka [Asebolka!~Asebolka@c-174-59-146-170.hsd1.pa.comcast.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p50845455.dip0.t-ipconnect.de] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
countskm [countskm!~countskm@pool-108-9-189-75.tampfl.fios.verizon.net] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
jerikl [jerikl!~justin@64.134.56.206] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
jbpros [jbpros!~jbpros@88-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.44] has joined #ruby
tnk1 [tnk1!~tnk@ip72-195-134-180.ri.ri.cox.net] has joined #ruby
fungoat [fungoat!~fungoat@230.163.91.184.cfl.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
jerikl [jerikl!~justin@64.134.56.206] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
TheTFEF [TheTFEF!~JS@unaffiliated/thetfef] has joined #ruby
<dagnachewa>
hi all
mark_azevedo [mark_azevedo!~mark_azev@c-98-210-10-109.hsd1.ca.comcast.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
noize_hioki [noize_hioki!~noize_hio@ai126213142177.5.tss.access-internet.ne.jp] has joined #ruby
favor212 [favor212!~favor212@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
<dagnachewa>
is normal my gems count in my laptop is 140 and my gems count on my pc is 170
amh345 [amh345!~amh345@CPE002129ce890a-CM0013f7c4deab.cpe.net.cable.rogers.com] has joined #ruby
<dagnachewa>
i think i have installed the same number of gems
amh345 [amh345!~amh345@unaffiliated/amh345] has joined #ruby
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
<amh345>
im trying to upload a file (Net::FTP) that was just encrypted via Open3.popen3. however when i call the upload model after the encryption i get an error "no such file.. /x/y/z.txt (Errno::ENOENT). im assuming this is happening because the file hasnt yet been written to disk. is there a way to ensure a file is completed being written before i call the upload?
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<amh345>
i mean, i cant check the file size or something because i have to idea what the file size is.
<amh345>
perhaps check if the file exists might be the way?
<amh345>
if File.open("/x/y/z") … ?
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
tiki [tiki!~tiki@unaffiliated/tiki] has joined #ruby
<tiki>
re
<tiki>
i'm back in th eruby scene. any word on ruby 2?
<banisterfiend>
tiki: about 1 year off
<tiki>
any links to official info?
<banisterfiend>
tiki: none tha ti know of, u might get some useful stuff on google though
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<tiki>
freebsd 9 is out, so all i now need to be happy is ruby 2 :P
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
<amh345>
if i was to keep running a condition until it's true. would begin/rescue retry/end be the way to do it?
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
froy [froy!~troy@manuel.dublan.net] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
<banisterfiend>
tiki: why do u want ruby 2? what features are you looking forward to specifically?
<dagnachewa>
speed
TheTFEF [TheTFEF!thetfef@unaffiliated/thetfef] has joined #ruby
<dagnachewa>
removal of gil
<tiki>
honestly?
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
<banisterfiend>
dagnachewa: i dont think 2.0 is about that
<tiki>
the mind that brought me what i know in ruby, i want... next. the next generation
<tiki>
i want ruby 2
<tiki>
not even ruby 2.0
<banisterfiend>
tiki: but apart from some vague statement like that, what specifically do you want ? besides just "2-ness" ?
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
<tiki>
that is for matz to show me, as a street performer plays his milk jugs and cow bells
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
<tiki>
when i want a language, i make a language
<tiki>
i've made a language
<tiki>
i want ruby 2
<tiki>
as well as apple ios to burn, and etc other dreams
<tiki>
fbsd 9 satisfied that one
<tiki>
sqlite also had a big change a couple of days ago
<tiki>
so it's a good moment of many of my operational building blocks making big changes around teh same time
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
<banisterfiend>
Boohbah: you're a couple of years behind the times
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
djr__ [djr__!~djr@dsl-208-196.madisontelco.com] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
CodeZombie [CodeZombie!~CodeZombi@65.19.245.153] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
beseku [beseku!~beseku@p31228-ipngn2501marunouchi.tokyo.ocn.ne.jp] has joined #ruby
djr_ [djr_!~djr@dsl-208-196.madisontelco.com] has joined #ruby
rfloriano [rfloriano!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
<Boohbah>
banisterfiend: watching season 2 now :)
<tiki>
how fast is jruby now guys?
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@121-73-182-130.dsl.telstraclear.net] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<justfielding>
I have a personal content management system I've put together using git(everything is stored in a repo, documents(notes/articles/letters/etc), eventually other types of files as well), ruby/sinatra/haml, notational velocity/simplenote, and I use Maruku for the markdown interpreter. Using Maruku, I've implemented meta data and tags. <TLDR version> My question lies in using those tags that are stored as Maruku meta data in the git blob a
<justfielding>
sorry for the wall of text =/
<mlr>
Boohbah: I suppose that works fine with jruby setup.py as well?
MasterIdler [MasterIdler!~MasterIdl@75-119-244-141.dsl.teksavvy.com] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
maletor [maletor!~maletor@189.164.101.28] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
web0 [web0!~webster@174.127.156.37] has joined #ruby
wizzie [wizzie!~jeff@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<wizzie>
[test]
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<wizzie>
err, ping? :-)
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
radic_ [radic_!~radic@dslb-094-216-230-146.pools.arcor-ip.net] has joined #ruby
<justfielding>
hi
<wizzie>
why, hello there!
SegFaultAX [SegFaultAX!~SegFaultA@c-98-248-241-85.hsd1.ca.comcast.net] has joined #ruby
tomhsx [tomhsx!~tomhsx@c-76-109-166-123.hsd1.fl.comcast.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
AndChat| [AndChat|!~AndChat@222.153.223.46] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@173-8-68-234-Sacramento.hfc.comcastbusiness.net] has joined #ruby
cobragoat [cobragoat!~cobragoat@173-8-68-234-Sacramento.hfc.comcastbusiness.net] has joined #ruby
<cobragoat>
I'm having trouble getting logins to work with JSON using devise
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
iSoul [iSoul!~isoul@49.49.139.142] has joined #ruby
mlr_ [mlr_!~chatzilla@c-98-207-92-217.hsd1.ca.comcast.net] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
zbrown [zbrown!~zbrown@rufius.xen.prgmr.com] has joined #ruby
yellow5 [yellow5!~yellow5@levicole.xen.prgmr.com] has joined #ruby
wizzie [wizzie!~jeff@ip70-178-131-208.ks.ks.cox.net] has quit ["PRIVMSG ##proggit :ACTION waves"]
iSoul [iSoul!~isoul@49.49.139.142] has quit [#ruby]
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
seb_ [seb_!~seb@lns-bzn-37-82-253-43-53.adsl.proxad.net] has joined #ruby
sacred_coder [sacred_coder!~rambaho@202.3.77.231] has joined #ruby
<sacred_coder>
hello
<sacred_coder>
chammak challo
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
jeremy_ross [jeremy_ross!~jerem_ros@cpe-76-186-157-98.tx.res.rr.com] has joined #ruby
<jeremy_ross>
Why do does rvm need " --with-zlib-dir=$rvm_path/usr" on my macbook pro, but not the imac? Both are Lion.
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
pedm [pedm!~pedm@189.229.143.125] has joined #ruby
tomzx [tomzx!~tomzx@dsl-199-102-158-146.aei.ca] has joined #ruby
trend [trend!~trend@76.91.169.147] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
<trend>
I have 2 arrays, one array is full of objects, the 2nd array is one full of the desired order of the object ( the object.id). how can I sort the 1st array by the 2nd array's order?
stringoO [stringoO!~JLstring@bas1-toronto42-1279599433.dsl.bell.ca] has joined #ruby
<banisterfiend>
trend: why not just: array1.sort_by(&:object_id)
<trend>
I don't want the array sorted desc/asc by the object.id . I want it sorted in an order such as [3, 1, 2, 4]
<trend>
so the 2nd array is just arr = [3, 1, 2, 4]
<banisterfiend>
trend: you honestly cant solve this problem?
<banisterfiend>
this is 101
<trend>
i didn't say that. :P
<trend>
I guess you failed listening and comprehension 101 :P
<trend>
lol
cobragoat [cobragoat!~cobragoat@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
<banisterfiend>
trend: if you can solve it then why do u want other people to spend their time doing a solved problem
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
<trend>
just busting your balls. I just feel my solution isn't as elegant as it possibly might be :)
cachemoney [cachemoney!~cachemone@71-94-132-42.static.mtpk.ca.charter.com] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
breardo [breardo!~don@234-200-29-134.hcc.mnscu.edu] has joined #ruby
<breardo>
hello..
<breardo>
probably wrong place to ask, but does anyone know how to force phusion passenger to use ruby 1.9.x instead of 1.8 ?
<davidcelis>
trend: how about you just show us your solution
<senthil>
I've been using it in couple projects and like it, but its terribly slow (compared to webmock).
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
irk3z [irk3z!~irek@78.47.187.53] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-ubskzzazszqslvnb] has joined #ruby
beilabs_ [beilabs_!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby
SirFunk [SirFunk!SirFunk@2600:3c03::f03c:91ff:fe93:11b3] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
hSATAC [hSATAC!~cat@221.169.252.14] has joined #ruby
DeeJayTwo [DeeJayTwo!~deejay2@office.abi.ca] has joined #ruby
logbot46379 [logbot46379!~cinch@boxand.lnk.telstra.net] has joined #ruby
zmisc [zmisc!~zmisc@pdpc/supporter/student/zmisc] has joined #ruby
elektronaut [elektronaut!~elektrona@manualdesign.no] has joined #ruby
destructure [destructure!~mu@couchdb/user/destructure] has joined #ruby
ezkl [ezkl!ezkl@ezkl.net] has joined #ruby
ph^ [ph^!~ph^@79.135.7.171] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310B8B.dip0.t-ipconnect.de] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
mikalv [mikalv!~mikalv@login.11s.no] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-yxpzcedfoohxmaxh] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
thone [thone!~thone@g225086011.adsl.alicedsl.de] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
ryanf [ryanf!~ryanf@86.sub-174-253-250.myvzw.com] has joined #ruby
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has joined #ruby
<shevy>
hehe jmontross ;)
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
TheNumb [TheNumb!thenumb@unaffiliated/thenumb] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.23.207] has joined #ruby
nd__ [nd__!~nd@mnhm-4d01b541.pool.mediaWays.net] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Mittty [Mittty!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<Mittty>
Hai friends.... I am new to ruby I have a doubt in boolean methods.. pls help me with this https://gist.github.com/1632025
<Mittty>
I want to convert this method to a boolean method. That is if the count of access_value is 0 return false and if greater than 0 return false after the iteration.
<Mittty>
I want to convert this method to a boolean method. That is if the count of access_value is 0 return false and if greater than 0 return true after the iteration.
xec [xec!~xec@188.95.241.142] has joined #ruby
<Mittty>
Hai friends.... I am new to ruby I have a doubt in boolean methods.. pls help me with this https://gist.github.com/1632025
Seventoes [Seventoes!~Seventoes@2607:f7c0:1:df60:d056:fb00:0:34] has joined #ruby
<Mittty>
Anyone there??
<Corey>
Patience is a virtue, Mittty./
<Mittty>
<Corey> very correct... byt there was no acknowledgement at all.. i thgt there was no one in this room :)
<Mittty>
<Corey> Will you help me please ?
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
<Mittty>
LMolr : Hai friends.... I am new to ruby I have a doubt in boolean methods.. pls help me with this https://gist.github.com/1632025
wizzie [wizzie!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<Mittty>
<csherin> current_user.community_ids.any? do |id| not CommunityActivity.is_accessible(id, object.id).empty? what will this do i mean after the iteration is over?>
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
<Mittty>
<csherin> ur updated function class CommunityActivity def self.accessible?(id, other_id) i dnt think i should be doing this since the comparison happens in a rails controller
<Mittty>
<csherin> All i need is just convert that function (that is already working) to a boolean method.. :) I would apprecite that deat
<Mittty>
dear
Seventoes [Seventoes!~Seventoes@2607:f7c0:1:df60:d056:fb00:0:34] has joined #ruby
<Mittty>
<heftig> Sir/Madam You didnt give the function till now :)
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<heftig>
Mittty: huh?
wizzie [wizzie!~wizzie@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<Mittty>
<heftig> please.. help me with that method to be converted to a ruby boolean method :( I am just a learner.. the reason why i am asking you is it would help me understand the concepts better. since i am just a learner and you are an expert in it !!
<jlogsdon>
it is, Mittty
<jlogsdon>
#any? returns a boolean already
<jlogsdon>
s oyou pass it a block and it returns true if any one of those iterations is true, false otherwise
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
<Mittty>
<jlogsdon> but u deleted the gist even b4 i could get some time to comprehend it :(
<jlogsdon>
in ruby you do not have to explicitly use the keyword return, the last expression in a method is returned automatically
<jlogsdon>
heftig: left a comment with the same code
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<jlogsdon>
on your gist
<jlogsdon>
or sorry
<jlogsdon>
csherin:
<jlogsdon>
did
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<Mittty>
<jlogsdon> csherin: sought of modified it ... although it was nice what he helped me with.. he sought of did it in a diff way i guess..
<jlogsdon>
the more ruby-esque way, yeah
<Mittty>
<jlogsdon> https://gist.github.com/1632025 this is the gist as it is now and there in no comment by <heftig> or you :(
<jlogsdon>
generally ruby methods that answer a question (return a boolean) end with a question mark
<jlogsdon>
and no leading is_
<jlogsdon>
you can use csherin with a few minor changes. take this opportunity to actually learn the language by using it.
<Mittty>
<jlogsdon> yes i dint know the conventions also.. thats why i am asking you.. if you could write that method for me as boolean i could learn a whole lot of things from you all :9 pls
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has quit [#ruby]
<jlogsdon>
its a little strange at first, but a great intro to ruby
<Mittty>
<jlogsdon> this looks more like a story book :P
<Mittty>
<jlogsdon> thank you
<jlogsdon>
first page is, and there are comics throughout
<Mittty>
<jlogsdon> so : def question_accessible?(object) current_user.community_ids.any? do |id| not CommunityActivity.is_accessible(id, object.id).empty? end end
<jlogsdon>
but lcick "next" and its a regular chapter
<jlogsdon>
yes
<Mittty>
<jlogsdon> this will work?
<jlogsdon>
yes
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby
<Mittty>
<jlogsdon> what does this line do ? not CommunityActivity.is_accessible(id, object.id).empty?
<jlogsdon>
"not" is the same as !
<jlogsdon>
so "not thing.empty?" would be "true if this thing isn't empty"
<Mittty>
<jlogsdon> ok so after iteration is over.. where exactly is the value being stored
letsgojuno_ [letsgojuno_!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
<jlogsdon>
it's not. #any? returns a boolean
<jlogsdon>
#any? loops over an array and uses the block you pass it (the do |id| not....empty? portion)
<Mittty>
<jlogsdon> oh ok so the function question_accessible?(object) will return true/false based on the end value of iteration ryt??
<jlogsdon>
yes
<csherin>
Mittty: besides the poignant guide, i'd recommend reading the book http://rubybestpractices.com/ to get exposure to common practices and idioms
<Mittty>
<jlogsdon> but what if there are suppose 2 iterations and in the first itration not CommunityActivity.is_accessible(id, object.id).empty? returns true and then in the second iteration it returns false.. so the final value after iteration will be false ryt altough there was a case of true?
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<Mittty>
<jlogsdon> what is enumerable in short?
<jlogsdon>
its the base for array and hash
<jlogsdon>
or anything you want to iterate over
<Mittty>
<jlogsdon> ok got it.. any? ROCKKSSSS... Ruby is amazing i love ruby.. its so much object oriented and easy to use.. so many helpful methods.. where can u iterate over an array without using forloop.. i feel enlightened now :) thanks a lot pals
shevy [shevy!~shevy@88-117-35-42.adsl.highway.telekom.at] has joined #ruby
<jlogsdon>
good luck with your future learning :)
<jlogsdon>
its a fantastic language to work with once you learn the idioms
wizzie1 [wizzie1!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<Mittty>
<jlogsdon> what are the scope of ruby in the field of job marked.. well i forgot to introduce myself i am a newbie rails programmer.. but i like ruby more.. i always wanted to do something with ruby for a standalone app rather than webapp
<Mittty>
<jlogsdon> sure thanks a lot :)
<Mittty>
<jlogsdon> where are you from? what do u do sir/madam?
<Mittty>
<jlogsdon> I had one more doubt.... how would i call this method to check if it returns true ?? Is it like if object_accessible?
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
<Mittty>
<csherin> I had one more doubt.... how would i call this method to check if it returns true ?? Is it like if object_accessible?
<csherin>
You can invoke it like, object.question_accessible? where object is an instance of the class with #question_accessible? method
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
<Mittty>
<csherin> no but the place I am using it i just call the method directly along with another condition and i need to check if this method returns true or not?
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
<Mittty>
<csherin> if current_user.role.title.strip == "Retired" and object_accessible?
<csherin>
yes, if you're within the scope of the class
<Mittty>
<csherin> is it correct?
<csherin>
depends on whether #object_accessible? is within current scope
<Mittty>
<csherin> if current_user.role.title.strip == "Retired" and object_accessible(@question)? or if current_user.role.title.strip == "Retired" and object_accessible?(@question)
<Mittty>
<csherin> just help me with the syntax?
<csherin>
the latter
<csherin>
the question mark is part of the method name
<csherin>
object_accessible?(args)
<csherin>
and _not_ object_accessible(args)?
<csherin>
it's a convention to suffix a question mark to the method name to indicate boolean return value
<Mittty>
<csherin> ok thanks so calling this directly alone will return true/false ryt do i have to do "if condition and if object_accessible?(args)"
<csherin>
if (expr) && object_accessible?(args)
<Mittty>
&& can be and also ryt?
<Mittty>
<csherin>&& can be "and" also ryt?
<csherin>
they are not equivalent, i prefer && in conditionals
<Mittty>
<csherin> ok .. il do it.. the reason i asked u was till now i was following "and " so just wanted to confirm which is ryt
<canton7>
"and" has lower precidence. It's intended for control flow rather than combining booleans. For example, condition? and puts "yes"
<csherin>
A notable exception is Ruby's defined? which is an operator and not a method
<Mittty>
<canton7> ok
<banisterfiend>
Mittty: can you type 'canton7:' instead of '<canton7>' ? ;)
<Mittty>
<csherin> i tried running the code.. but it doesnt seem to be working... :-/ i mean i am not able to access a question that does belong to a community
<canton7>
you normally say "<nick> something they said" when you're quoting someone ;)
<Mittty>
banisterfiend : ok
i8degrees [i8degrees!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<banisterfiend>
Mittty: thx
<Mittty>
My condition is like this ... both has to be truw for execution.. i hope this line is written properly current_user.role.title.strip == "Retired" and object_accessible?(@question)
<Mittty>
<Mittty> object_accessible?(@question) does this automatically check for a true??
cachemoney [cachemoney!~cachemone@71-94-132-42.static.mtpk.ca.charter.com] has joined #ruby
<Mittty>
ject_accessible?(@question) does this automatically check for a true??
<Mittty>
object_accessible?(@question) does this automatically check for a true??
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<Mittty>
def question_accessible?(object) current_user.community_ids.any? do |id| not CommunityActivity.is_accessible(id, object.id).empty? end end
<Mittty>
this code seems to have some mistake somewhere
<shevy>
it also looks horrible
Guest53847 [Guest53847!~LessIsMor@2.176.231.220] has joined #ruby
prtksxna [prtksxna!~prtksxna@27.7.18.120] has joined #ruby
<Mittty>
shevy : the first is mine.. the second code was given by someone else.. but it isnt working
<Mittty>
shevy : Can you convert the first method in the link to a boolean function? thats the question.. thats where i need help from you
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dennda [dennda!~dennda@penguin2.uni-koblenz.de] has joined #ruby
<letsgojuno>
has anyone ever had issue with image quality using rmagick, i'm scaling an image down before composing it onto another image, but the quality is poor
dennda [dennda!~dennda@ubuntu/member/dennda] has joined #ruby
zalesz [zalesz!~zalesz@82.139.135.146] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
<banisterfiend>
letsgojuno: choose a different filter
<banisterfiend>
letsgojuno: best ones are bicubic and lanczos
<banisterfiend>
and catmull-rom if it supports it
<letsgojuno>
baniseter: i'll give it a go thanks
<rippa>
or b-spline
Guest53847 [Guest53847!~LessIsMor@2.176.231.220] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
norex [norex!~quassel@41-133-102-21.dsl.mweb.co.za] has joined #ruby
jmorton [jmorton!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
rfloriano [rfloriano!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
faber [faber!~faber@ppp-188-12.26-151.libero.it] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.203.65] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
ksinkar__ [ksinkar__!~ksinkar@117.195.102.211] has joined #ruby
zalesz [zalesz!~zalesz@82.139.135.146] has joined #ruby
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
kiero_ [kiero_!kiero@platinum.edu.pl] has joined #ruby
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
iuliu [iuliu!~iuliu@89.28.7.27] has joined #ruby
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
g1dv [g1dv!~dellavedo@st-dellaved.statistica.unimib.it] has joined #ruby
sdimkov [sdimkov!~sdimkov@sm45140.pppoe.optic-com.eu] has joined #ruby
ezkl` [ezkl`!~ezkl@dynamic-acs-24-144-206-131.zoominternet.net] has joined #ruby
Guest37291 [Guest37291!~LessIsMor@2.176.231.220] has joined #ruby
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has quit [#ruby]
irk3z [irk3z!~irek@78.47.187.53] has joined #ruby
geoKe [geoKe!~geoKe@142.97.155.90.in-addr.arpa] has joined #ruby
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
raincole_ [raincole_!~raincole@123.50.40.140] has joined #ruby
csherin [csherin!~csherin@61.11.125.80] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.mh.bbc.co.uk] has joined #ruby
maletor [maletor!~maletor@189.164.101.160] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
a_a_g [a_a_g!~aag@203.123.164.34] has joined #ruby
ChampS666 [ChampS666!~ChampS@wlan1-68.zw.fh-zwickau.de] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
jensn [jensn!~Jens@ip228-26.wireless.lu.se] has joined #ruby
dwon [dwon!~dwon@75-119-251-37.dsl.teksavvy.com] has joined #ruby
seivan [seivan!~seivan@bb121-6-236-4.singnet.com.sg] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
mk03 [mk03!~mk03@61.245.119.34.er.eaccess.ne.jp] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
a_a_g [a_a_g!~aag@203.123.164.34] has joined #ruby
mklappst_ [mklappst_!~mklappstu@p5B2C4AF7.dip.t-dialin.net] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
leoncamel [leoncamel!~user@KD175129170046.ppp-bb.dion.ne.jp] has joined #ruby
mengu [mengu!~mengu@78.188.203.234] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
tonini [tonini!~zastav@78-8.61-188.cust.bluewin.ch] has joined #ruby
eko [eko!~eko@unaffiliated/eko] has joined #ruby
rfloriano [rfloriano!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
sdimkov [sdimkov!~sdimkov@sm45140.pppoe.optic-com.eu] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
mittty [mittty!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<mittty>
hai friends.... :)
<mittty>
Some intersting ruby method behaviour has been bothering me...
ikaros [ikaros!~ikaros@studpool-wlan-74-176.fs.fbi.h-da.de] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
nlko [nlko!~user@li59-24.members.linode.com] has quit [#ruby]
ABK [ABK!~abhishekk@14.140.107.130] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
jensn [jensn!~Jens@ip228-26.wireless.lu.se] has joined #ruby
<DefV>
mittty: that is wrong on so many levels
<mittty>
<DefV> Why ?
<mittty>
DefV : Where have i gone wrong in the code??
<Hanmac>
i think you should ask in #rails
<Hanmac>
or similar
<DefV>
indeed, ask #RubyOnRails , people are more patient there
<DefV>
and you're obviously trying to work on a Rails project
<mittty>
<DefV> ok
<DefV>
doesn't understand IRC either.. OK
<Hanmac>
we are the rails-free-people :P
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
jensn [jensn!~Jens@ip228-26.wireless.lu.se] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
dekoms [dekoms!~dekom@static-151-201-141-172.pitt.east.verizon.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<DefV>
well, not exactly :-p
Spockz [Spockz!~Spockz@229pc197.sshunet.nl] has joined #ruby
xec [xec!~xec@188.95.241.142] has quit [#ruby]
ikaros [ikaros!~ikaros@studpool-wlan-74-176.fs.fbi.h-da.de] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
rsenk330 [rsenk330!~Adium@108-81-12-178.lightspeed.milwwi.sbcglobal.net] has joined #ruby
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
Tomasso [Tomasso!~papito@186.23.14.175] has joined #ruby
cousine [cousine!~cousine@196.218.42.9] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
jtrudeau [jtrudeau!~jeff@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
aymardraoul [aymardraoul!~mbaraoul7@41.248.172.126] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
aymardraoul [aymardraoul!~mbaraoul7@41.248.172.126] has quit [#ruby]
<adac>
how can i add an element to an object array (ie: @dummyobject)?
akem [akem!~akem@unaffiliated/akem] has joined #ruby
vally [vally!~vally@195.145.171.230] has joined #ruby
<Hanmac>
adac: has you an attr_reader or accessor for dummyobject?
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
savage-_ [savage-_!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
PagedeGeek [PagedeGeek!~pagedegee@ks354778.kimsufi.com] has joined #ruby
PagedeGe_ [PagedeGe_!~PagedeGee@ks354778.kimsufi.com] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
zulax [zulax!~radarwork@199.8.13.108] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
jensn [jensn!~Jens@io.fysik.lu.se] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby
wenbert [wenbert!~wenbert@120.28.216.245] has joined #ruby
<ale`>
Is there a better way to have some state in a module not easily accessible from outside (and that does not clutter the current object namespace if I include that module) than this: module MMM; class <<self; class JJJ; class<<self; attr_accessor :hidden; end; end; end; end ?
becom33 [becom33!~becom33@112.135.171.91] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
tonini [tonini!~zastav@78-8.61-188.cust.bluewin.ch] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-157.aei.ca] has joined #ruby
PagedeGeek [PagedeGeek!~PagedeGee@ks354778.kimsufi.com] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
<prs`>
is there a way to wait for a file to become accessible? by accessible if mean be able to do operations like copy, move, etc..
rsenk330 [rsenk330!~Adium@108-81-12-178.lightspeed.milwwi.sbcglobal.net] has quit [#ruby]
<maasha>
I need a way to test from bash if a ruby library is available. I was using get list --local | grep <gem> but that misses libraries installed on the system via precompiled packages.
<prs`>
maasha: not 100% sure, but what about checking exit status of 'ruby -rfoo'?
boodle [boodle!~boodle@174.46.129.34] has joined #ruby
<maasha>
prs`: hm, but if I do ruby -rfoo on the command line nothing happens?
<prs`>
whats the exit status?
<maasha>
needs to be ruby -rfoo -e ''
<prs`>
aha
<maasha>
ok, let my try that
<maasha>
thx
<prs`>
theres probably a better way to do it, but yeah, np
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
<maasha>
bah, RubyInline is used by require 'inline' - which is the same name of some old stale gem that should be shot and buried
<maasha>
so, how to test if RubyInline is installed?
<maasha>
and _not_ inline.
<prs`>
maasha: ruby -rinline -e
<prs`>
oops
<prs`>
-e 'RubyInline.new' or something?
<maasha>
prs`: I was interested in a general way to check if people have installed the correct prerequisites. Custom stuff is ugly.
wmoxam [wmoxam!~wmoxam@184.175.19.180] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<prs`>
fair enough
<JonnieCache>
why not just use bundler
zaydana [zaydana!~zaydana@203-206-108-236.dyn.iinet.net.au] has joined #ruby
<JonnieCache>
it wont let you check but it will let you ensure
<Hanmac>
maasha: the normal way is fust require it in ruby ... it can be in many places
<maasha>
JonnieCache: my installer is a mix of perl, ruby and python modules. I dislike the idea of bundling all that (and google code has limited space!).
<zaydana>
does anybody know how I would delegate class methods as well as instance methods of a class?
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-cyfsnljbdbojneso] has joined #ruby
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
<zaydana>
I'm using class Page < DelegateClass(PageAdapter), but it only seems to delegate instance methods
<maasha>
Hanmac: unfortunately there is a ruby gem called inline which is not the same as RubyInline. They are both enabled with require 'inline' - and that sucks.
<maasha>
and RubyInline was old before inline.
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
kevinbond [kevinbond!~kevinbond@250.orl54.voxeo.com] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-68-42-68-174.hsd1.mi.comcast.net] has joined #ruby
kerframil [kerframil!~kerframil@host90-152-2-226.ipv4.regusnet.com] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-qedokvnvgqvyjoxg] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
vraa_ [vraa_!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
yalue [yalue!yalue@nat/ibm/x-jhcrdfiqizlxormi] has joined #ruby
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<Hanmac>
maasha: you could require it in ruby and then check the classes or instance methods
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
PagedeGe_ [PagedeGe_!~PagedeGee@ks354778.kimsufi.com] has joined #ruby
soulcutter [soulcutter!~soulcutte@unaffiliated/soulcutter] has joined #ruby
<maasha>
Hanmac: not really a general solution. I have hacked it now. Its ugly, but works.
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310B8B.dip0.t-ipconnect.de] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
ank [ank!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
rippa [rippa!~rippa@109-161-65-52.pppoe.yaroslavl.ru] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
Jed_84 [Jed_84!~username@190.194.62.47] has joined #ruby
<Jed_84>
hello
<Jed_84>
I'm passing a block to a method
<rippa>
good for you
<Jed_84>
inside this block, i have a couple of if statements
<Jed_84>
each statement must return a different value
<Jed_84>
turns out the return keyword doesn't work in blocks because it makes the caller method return
<Jed_84>
so what's the equivalent of 'return' for blocks?
<rippa>
break
<Jed_84>
ok i tried that and it didn't work
<Jed_84>
i'll show you, hold on
<soulcutter>
you could just assign the return value to a variable
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<soulcutter>
cool, I didn't know that
<Jed_84>
neither did i
<Jed_84>
thanks man
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has quit [#ruby]
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby
geoKe [geoKe!~geoKe@142.97.155.90.in-addr.arpa] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
<Jed_84>
unrelated question. i know this isn't #rails, but what are some large open source rails apps i could check out? i'm still new and need real world examples
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-hxkvdffpbkguwzsw] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has quit [#ruby]
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
d3b4g [d3b4g!~d3b4g@123.176.25.98] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
<JonnieCache>
Jed_84: spreecommerce.com
<JonnieCache>
Jed_84: its very big though so maybe not the best example
strife25 [strife25!strife25@nat/ibm/x-imtvywgsqqttfhps] has joined #ruby
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
<Jed_84>
thanks i8degrees and JonnieCache, i'll check 'em out
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-51-98.washdc.btas.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
mityaz [mityaz!~Earth@ip183-42.telenet.dn.ua] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
<i8degrees>
Jed_84: although I am / was serious about my suggestion, I would also, by judging from my own experiences & just how much a quick glance at an old Rails project I did back in 2007 (rails 1.1.1, haha) project aided me in picking up on Sinatra idioms ... brushing up on the MVC arch, routing style(s) employed, etc that Rails does will feel all the more at home with ya if you were to go with a lesser framework (not to imply weaker necessarily
<i8degrees>
Jed_84: err, exchange the latter where I said "Rails does ..." to Sinatra
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
nacengineer [nacengineer!~dsoutha@165.219.88.72] has joined #ruby
* wedtm
wonders what the going rate for the first dynamo gem.
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
krool [krool!~kr0l@ksdfw05.rightcompetence.com] has joined #ruby
Aristata [Aristata!~Adium@adsl-69-209-65-126.dsl.chcgil.ameritech.net] has joined #ruby
<Aristata>
Anyone here know if there is a library or something that will add a parameter onto a url? I was just going to do if url.split('?').length == 2 and the last half includes a & just add another &blah='blah'. I feel like there is a better way to do this without figuring out if you need a ? in the url
<maasha>
Aristata: #rails perhaps?
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
<Aristata>
It is an appropriate question here as well.
<Aristata>
ruby uses urls too
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
<vally>
i am searching for a good rails developer to work in a medium-sized company near frankfurt, germany. very attractive salary guaranteed. please query me.
<Aristata>
trollin
<vally>
nope
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
bbttxu [bbttxu!~adam@pool-96-226-122-92.dllstx.fios.verizon.net] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
<maasha>
try google :o) it's search engine
<maasha>
*it's a
<maasha>
Aristata: I am sure there is such a method, I just dont remember it on top of my head. Things are going a bit slow in here today :o)
<Aristata>
No worries
<Aristata>
I will whip something up fast
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.40] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
mikespok_ [mikespok_!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173.228.117.162] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
p0y [p0y!~p0y@125.212.56.14] has joined #ruby
mikespok_ [mikespok_!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has quit [#ruby]
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
Azure [Azure!~Azure@reenigne.net] has joined #ruby
Azure [Azure!~Azure@unaffiliated/azure] has joined #ruby
d3b4g [d3b4g!~d3b4g@123.176.25.98] has joined #ruby
<Jed_84>
i8degrees, gotcha. thanks again!
ksinkar__ [ksinkar__!~ksinkar@115.242.109.136] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has quit [#ruby]
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
cdabba [cdabba!~cdabba_@n128-227-210-134.xlate.ufl.edu] has joined #ruby
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
MasterIdler [MasterIdler!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
colossal7 [colossal7!~colossal7@75-169-54-171.slkc.qwest.net] has joined #ruby
ksinkar__ [ksinkar__!~ksinkar@115.241.240.184] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-68-42-68-174.hsd1.mi.comcast.net] has joined #ruby
becom33 [becom33!~becom33@112.135.171.91] has quit [#ruby]
i8degrees [i8degrees!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has quit ["PART #archlinux :PART #git :PONG :zelazny.freenode.net"]
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
bluOxigen [bluOxigen!ssf@175.110.105.37] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
OnResolve [OnResolve!~OnResolve@rrcs-67-53-253-249.west.biz.rr.com] has joined #ruby
ppseafield [ppseafield!~user@gsu-141-165-2-219.vl002.dhcp.georgiasouthern.edu] has joined #ruby
mlr [mlr!~chatzilla@c-98-207-92-217.hsd1.ca.comcast.net] has joined #ruby
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@75-170-150-51.desm.qwest.net] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
nate_h [nate_h!~husimon@c73-208.rim.net] has joined #ruby
enherit [enherit!~enherit@216.3.99.206] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
jakr [jakr!~nofreewil@unaffiliated/jakr] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
crankycoder [crankycoder!~crankycod@2620:101:8003:200:74d7:eff1:70b6:88d0] has joined #ruby
p0y [p0y!~p0y@125.212.56.14] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
ppseafield [ppseafield!~user@gsu-141-165-2-219.vl002.dhcp.georgiasouthern.edu] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
gianlucadv [gianlucadv!~user@109.53.170.204] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
Telmo [Telmo!~telmo@c-68-44-135-81.hsd1.pa.comcast.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
g1dv [g1dv!~dellavedo@109.53.170.204] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
NinoScript [NinoScript!c81ba7f4@gateway/web/freenode/ip.200.27.167.244] has joined #ruby
jamiemill [jamiemill!~jamiemill@87-194-220-111.bethere.co.uk] has joined #ruby
maletor [maletor!~maletor@187.146.203.179] has joined #ruby
bier [bier!~bier@p54A5B31F.dip.t-dialin.net] has joined #ruby
magic_bagz [magic_bagz!~magic_bag@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
<jamiemill>
Hi - any tips for adding vector artwork (.eps / .pdf) to a PDF in prawn? All I see is PNG/JPEG import or raw drawing commands.
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<axl_>
hey guys, what is the most elegant way of saying 'today at 3.00 pm ' in ruby ?
rfloriano [rfloriano!~rfloriano@189.115.113.203.dynamic.adsl.gvt.net.br] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
badabim [badabim!~badabim@17.212.166.202] has joined #ruby
mengu [mengu!~mengu@85.96.105.202] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
NARKOZ [NARKOZ!~NARKOZ@46.228.177.254] has joined #ruby
<apeiros_>
rippa: \z as Mon_Ouie said would be the right
<apeiros_>
$ is only end of line
<Metron>
rippa it works like a charm
<Metron>
the string is only one line
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
cableray [cableray!~cableray@wl-dhcp179-46.Mines.EDU] has joined #ruby
<shadoi>
So I have a base class, I want all subclasses of this class to reuse the same instance of a different class. Is it best to use a class variable in my base class for it?
theRoUS [theRoUS!KenCoar@nat/redhat/x-mvcyikojagexttax] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
blizzow [blizzow!~jburns@67.50.165.58] has joined #ruby
fenix45 [fenix45!~fenix45@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<Hanmac>
shadoi an class variable is one of the possible solutions
<shadoi>
I guess I'm looking for a best practice, I've done it with class vars before but others found in confusing.
nd______ [nd______!~nd@mnhm-4d00f89e.pool.mediaWays.net] has joined #ruby
<blizzow>
I'm trying to run a usb device via ruby. I start up irb and run" require 'rubygems' (which works fine), but then I try require 'usb' and get a nasty error complaining about an undefined symbol in usb.so.
<cobragoat>
when designing an API that returns JSON is it best to post JSON as well or are regular request params ok?
<blizzow>
I'm running CentOS 6.2 and have installed all the usb-devel libraries I can find. Does anyone here know how to fix this?
<shadoi>
cobragoat: I prefer JSON body.
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<blizzow>
I'm a total rn00b by the way.
<shadoi>
blizzow: it looks like the version in centos 6.2 is incompatible, you may need to get a newer or older version.
josefig1 [josefig1!~joseph@189.154.66.64] has joined #ruby
<shadoi>
probably says what it requires in the docs...
Metron [Metron!~Metron@30.244-65-87.adsl-dyn.isp.belgacom.be] has quit [#ruby]
<blizzow>
shadoi: I'm not quite following, gems 1.8 is incompatible? or there is documentation re: the usb files gems is looking for?
<shadoi>
The ruby-usb library (wherever you got it from)
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
_GazD [_GazD!~GazD@c-98-247-110-81.hsd1.wa.comcast.net] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
<_GazD>
with regex can i do something like match all non-word characters except spaces?
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
<rippa>
_GazD: /[^\w ]
<rippa>
/
pantsman [pantsman!~pantsman@2.25.204.214] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<_GazD>
rippa: perfect thank you!
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-exqygthbfanqeteu] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
btanaka [btanaka!~textual@17.245.89.111] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
<JonnieCache>
blizzow: if you're stil there, try rebuilding ruby after having installed the usb-devel headers
<JonnieCache>
theyre needed by stdlib at compile-time not at runtime
<JonnieCache>
also you can rebuild just the usb bit of stdlib by drilling down into the right dir of the ruby source and running make from there i think, but i cant rememeber it specifically
counterbeing [counterbeing!~textual@hattery.static.monkeybrains.net] has joined #ruby
<blizzow>
JonnieCache: I think I figured it out....I went into /usr/...rubygems..../libusb and made the gem and installed it per the README file there.
<JonnieCache>
ah ok i didnt realise you meant a gem
<blizzow>
then I fired up irb and both rubygems and usb loaded okay.
virunga [virunga!~virunga@151.64.56.147] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
<blizzow>
JonnieCache: I really have no idea what I'm doing but at this point the example ruby code runs the device.
<blizzow>
so it's set I guess.
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
<blizzow>
thanks.
<JonnieCache>
what device are you trying to talk to out of interest?
Retistic [Retistic!~adam@72.54.242.201] has joined #ruby
<shevy>
the device of ultimate POWER!
<Retistic>
how do i strip all but numbers from a string? i've looked at match and scan, but i'm struggling with the regex stuff
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<wmoxam>
Retistic: most regex implementations are Perl compatible
<wmoxam>
or close to it
<JonnieCache>
blizzow: OMG just looked at those delcom products, I am in the wrong business. most of their $100 products could be made by hand for about 25% of that
<Retistic>
alright, trying to learn it now, thanks again
<JonnieCache>
nice little garage business someones got there. good on them.
<canton7>
qqq.rubular.com !
<canton7>
*www.
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
<canton7>
it means a "triple quadrupole" in mass spectrometry, apparently ;)
<JonnieCache>
window management with the feet ftw
LnL [LnL!~LnL@d54C4DBC4.access.telenet.be] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
<shevy>
with the feet?
<shevy>
dirty or washed feet
<JonnieCache>
lol feet inside shoes
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
<shevy>
hmm
<shevy>
I always get out of my shoes!
<shevy>
so that the wonderful smell is carefully spread
<blizzow>
JonnieCache: yeah, I can't believe someone is charging ~$80-100 for those things.
<shevy>
well, voice management of windows would be ok
<shevy>
I hate touch screens
<JonnieCache>
LOL I cant see that working well unless youre working from home on your own
<JonnieCache>
tbh i think id drive myself mad, shouting "TERMINAL! BROWSER! EDITOR!" every couple of seconds.
<LnL>
Anyone knows if there's a gem to give ruby Obj-c style method params?
<JonnieCache>
LnL: what do you mean by obj-c style params
pxjorge [pxjorge!~pxjorge@a79-168-9-12.cpe.netcabo.pt] has joined #ruby
<LnL>
JonnieCache: in obj-c you call a method like this: `[obj setString:name WithString:newName]`
<canton7>
so named parameters, effectively?
<JonnieCache>
ruby already has named parameters in essence
<LnL>
canton7: Yes, but not just with a hash
<JonnieCache>
the closest you'll get is the simplified syntax with a hash as the final parameter
<LnL>
then you don't know what the actual params are (without comments)
sayem [sayem!~user@c-064-186-242-006.sd2.redwire.net] has joined #ruby
<canton7>
LnL, you don't need to put { and } around a hash, so long as the result is unambiguous. my_func(:one => 'one') or my_func(one: 'one') work fine
<JonnieCache>
yeah it looks especially good with the 1.9 syntax
<LnL>
I know how to do it in ruby, but was wondering if there's some sort of gem that adds that sort of syntax
<JonnieCache>
no gem can really mess with the parser like that
<JonnieCache>
technically I think it could, but it doesnt happen
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
<JonnieCache>
func(unnamed_param, named_param: value) is the closest you'll get with ruby, i think its good enough tbh.
<LnL>
JonnieCache: I thought there might a DSL that adds it on top of ruby
Locke23rus [Locke23rus!~quassel@128-70-13-32.broadband.corbina.ru] has joined #ruby
<JonnieCache>
a dsl can only really operate within the bounds of what ruby provides. this provides a *lot* of possibilities, but you cant mess with stuff that isnt part of the language, like the method call syntax
<JonnieCache>
you could write your own languages that compiles down to ruby, like coffeescript, but there are much better uses of your time ;)
<baroquebobcat>
LnL: MacRuby, as it's built on Obj-C does have that.
<JonnieCache>
hmm there is that ;)
kaneda [kaneda!~kaneda@5adcef2c.bb.sky.com] has joined #ruby
<LnL>
baroquebobcat: That's almost wat I want, but it only for os x ...
<LnL>
* it's
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<Telmo>
ohadlevy, a quick question not related to foreman, I've been away from puppet for a while, did they add a way to cherrypick what files you want from the clients, instead of pulling the whole manifest?
hukl [hukl!~hukl@pdpc/supporter/professional/hukl] has joined #ruby
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby
shadoi [shadoi!~Adium@2001:5a8:4:68e1:e920:e0ff:b239:846a] has joined #ruby
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
cableray [cableray!~cableray@wl-dhcp179-46.Mines.EDU] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
luke-- [luke--!~luke--@dslb-092-072-006-019.pools.arcor-ip.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<nacengineer>
Lnl check out Capucinno http://cappuccino.org/ its not Ruby but its a web framework and similar to Obj-C (its what they call Obj-J)
<jmontross>
haha - too many languages
artOfWar [artOfWar!~artofwar@nat/yahoo/x-mjsehrgtyrnlawvh] has joined #ruby
colint_ [colint_!~ColinT@142-165-85-210.yktn.hsdb.sasknet.sk.ca] has joined #ruby
<LnL>
nacengineer: Yeah, but I preffer ruby (accept methods) I love the idea of arguments embedded inside the method name...
axl__ [axl__!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
ilyam [ilyam!~ilyam@2620:65:0:281:f4d9:5e1f:6a43:9fd5] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
KillerFox [KillerFox!~rn@home.protection-fault.ch] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
KillerFox [KillerFox!~rn@home.protection-fault.ch] has joined #ruby
berkes [berkes!~ber@a83-163-58-51.adsl.xs4all.nl] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
manizzle [manizzle!~manizzle@pcp072244pcs.wireless.calpoly.edu] has joined #ruby
diago [diago!~heath@wsip-98-174-211-206.hr.hr.cox.net] has joined #ruby
<diago>
hello, I'm using BigDecimal for currency and am having trouble understanding how to convert that in JavaScript
cobragoat [cobragoat!~cobragoat@c-98-244-28-157.hsd1.ca.comcast.net] has joined #ruby
kiillraep [kiillraep!~kiillraep@c-24-16-137-200.hsd1.wa.comcast.net] has joined #ruby
<kiillraep>
hello
<kiillraep>
can anyone here help with a ruby error I am getting
<kiillraep>
rob.rb:9:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
<kiillraep>
from rob.rb:29:in `new'
<kiillraep>
from rob.rb:29:in `<class:Female>'
<kiillraep>
from rob.rb:18:in `<class:Male>'
<kiillraep>
from rob.rb:8:in `<class:Human>'
<kiillraep>
from rob.rb:1:in `<main>'
<canton7>
kiillraep, please use a pastebin for long pastes. You're called "Female.new", without passing an argument (which the constructor expects)
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
<kiillraep>
for human and male
<canton7>
kiillraep, I formatted it for you http://pastie.org/3209635, without changing any of the syntax
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
<canton7>
kiillraep, I updated it to show where the ends *should* be
<kiillraep>
updated the same pastebin
<kiillraep>
?
<canton7>
kiillraep, your original problem was something else though: the constructor for Male and Female takes a single argument, but you don't pass that argument when you instantiate them
<canton7>
yeah, updated the same bin
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
<kiillraep>
k I see
<canton7>
kiillraep, actually my last paste of the correct placement of the ends was wrong. updated again
<kiillraep>
k
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
<kiillraep>
I get the end placements now
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
<canton7>
kiillraep, updated again, with what you were probably trying to do
havenn [havenn!~skipper@pool-71-189-127-140.lsanca.fios.verizon.net] has joined #ruby
cconstantine_ [cconstantine_!~cconstant@173.247.200.5] has joined #ruby
<cconstantine_>
hey all, I'm on debian 6, and I did a 'gem install bundler', but 'bundle' isn't getting symlinked to /usr/bin so I can't use it… any ideas? (oh, ruby 1.9)
<havenn>
cconstantine_: Are you using RVM or rbenv to install ruby?
<cconstantine_>
apt-get and update-alternatives
<cconstantine_>
'gem' points to /usr/bin/gem1.9.1
<kiillraep>
canton7, thank you
<kiillraep>
yes that is what my friend is wanting
<kiillraep>
why couldn't the human class set by aname to @myname ?
<canton7>
it could have done, no problem. I like to keep things simple and clear, though
<canton7>
also, the attr_accessor :name wouldn't have created getters/setters for @name if @name was instead @myname
<kiillraep>
ok I see thank you again canton7
<kiillraep>
:)
kiillraep [kiillraep!~kiillraep@c-24-16-137-200.hsd1.wa.comcast.net] has quit ["Leaving"]
<canton7>
:)
<burgestrand>
cconstantine_: well, to work around it you should be able to do "ruby -S bundle", but really, installing ruby via OS’ package managers is asking for trouble
Liothen_ [Liothen_!~liothen@24-119-65-28.cpe.cableone.net] has joined #ruby
<burgestrand>
Most people let the system have its’ default installation, and avoid the ticking timebomb by installing more modern versions of ruby through RVM/rbenv
manizzle [manizzle!~manizzle@pcp072244pcs.wireless.calpoly.edu] has joined #ruby
<cconstantine_>
burgestrand: my experience is that installing languages not by the OS package manager is asking for trouble
<burgestrand>
cconstantine_: yeah, working well for you so far D:
<cconstantine_>
:P
<burgestrand>
cconstantine_: anyway, I have no idea how to solve your issue, I just figured I’d tell you what I would’ve done :)
<cconstantine_>
ok
<burgestrand>
cconstantine_: I wish you good luck, it’s time for me to piss off ^^
<cconstantine_>
any way to get more info on what happened during a gem install?
geaif_ [geaif_!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
<cconstantine_>
have fun
<burgestrand>
cconstantine_: I’d ask in #ruby-lang
<cconstantine_>
thanks
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
malkomalko [malkomalko!~malkomalk@adfb4f22.cst.lightpath.net] has joined #ruby
leoncamel [leoncamel!~user@KD175129170046.ppp-bb.dion.ne.jp] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
_2easy [_2easy!~nofuture@89-79-244-137.dynamic.chello.pl] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby
king313 [king313!~king313@235.164.220.87.dynamic.jazztel.es] has joined #ruby
king313 [king313!~king313@unaffiliated/king313] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-194.Mines.EDU] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
ghanima [ghanima!~ghanima@alexander.nat.trb.com] has joined #ruby
senny [senny!~senny@84-72-61-96.dclient.hispeed.ch] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
cyne [cyne!~jacktol@546B137D.cm-12-4a.dynamic.ziggo.nl] has joined #ruby
mads- [mads-!~mads@2808ds1-by.0.fullrate.dk] has joined #ruby
manizzle [manizzle!~manizzle@pcp072244pcs.wireless.calpoly.edu] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Saika [Saika!3cf15ca6@gateway/web/freenode/ip.60.241.92.166] has joined #ruby
Saika [Saika!3cf15ca6@gateway/web/freenode/ip.60.241.92.166] has quit [#ruby]
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-tvxoaxwaraqrnpbf] has joined #ruby
northband [northband!~northband@cpe-98-28-95-69.columbus.res.rr.com] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
<mads->
How would I parse and iterate through a piece of JSON in the best way? I can't seem to find any resource about this online
pooja [pooja!u4977@gateway/web/irccloud.com/x-wvtdrowbnsoufxnn] has joined #ruby
<cconstantine_>
JSON.parse would be a good start
<davidcelis>
JSON.parse(json_string)
<davidcelis>
gives you a hash
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
<mads->
Yes, I'm that far. However, it doesn't seem to give me a hash. Cause when I puts it, it gives me one long string
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
<cconstantine_>
p(JSON.parse(json_string))
<cconstantine_>
puts may be coercing the hash into a string
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<mads->
What's does the p() do?
<DefV>
arguments.each { |a| puts a.inspect }
<DefV>
basically
<mads->
It looks like it was just the coercing
Guest91427 [Guest91427!~max@host232-95-dynamic.6-87-r.retail.telecomitalia.it] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
Guest91427 [Guest91427!~max@host232-95-dynamic.6-87-r.retail.telecomitalia.it] has quit [#ruby]
<mads->
Thanks :)
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-rhdycmxlzeodvtll] has joined #ruby
icrazyhack [icrazyhack!~horieyui@222.47.134.145] has joined #ruby
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-rpmspqxckvjoldrw] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-sywoidygalpcfrcf] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
jrist [jrist!~jrist@184-96-201-86.hlrn.qwest.net] has joined #ruby
rickmast [rickmast!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
Ca1us [Ca1us!~Caius@about/apple/macbookpro/Caius] has joined #ruby
marra [marra!marra@fly.srk.fer.hr] has joined #ruby
manizzle [manizzle!~manizzle@pcp072244pcs.wireless.calpoly.edu] has joined #ruby
pxjorge [pxjorge!~pxjorge@a79-168-9-12.cpe.netcabo.pt] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-wuwshfnlerdbdlvm] has joined #ruby
lobak [lobak!~quack@202.190.85.36] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
epitron [epitron!~epitron@unaffiliated/epitron] has joined #ruby
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-hpmcxhecavqwinwr] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-fnlieidqhepgzhlz] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@75-170-150-51.desm.qwest.net] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-tclhtigezrlufqbw] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-rrzbycwgmokhoupk] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-ahcciltgmbvcfkel] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-ahcciltgmbvcfkel] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
heph [heph!1000@antipunk.net] has joined #ruby
<heph>
hey guys, is it possible to list all the methods I get from a 'require'? i'm trying to see if there's anything else i can do with 'require "rubygems"' other than loading gems
Jake232 [Jake232!~textual@5e06eff5.bb.sky.com] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby