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/
cmasseraf_ [cmasseraf_!~ColdFusio@187.106.195.233] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
<fayimora>
hello guys i want to write a double clickable ruby script that would help run a jar file for me. How do i go about this?
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
Myx [Myx!~myx@c-24-62-75-50.hsd1.nh.comcast.net] has joined #ruby
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
<wallerdev>
fayimora: what platform?
<fayimora>
cross platform if possible
<waxjar>
can't you click .jar files anyway?
<waxjar>
*double-click
<wallerdev>
I'm guessing he wants to send flags to it or something
<wallerdev>
but yeah you can double click jars
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599335.dsl.bell.ca] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has quit [#ruby]
idarkside [idarkside!~YourNick@5e0e912d.bb.sky.com] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.249.68] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@67.139.75.158] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
bennett_ [bennett_!~bennett@75-101-96-184.dsl.static.sonic.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
<milktrader>
erb question: I want to print contents of a file to a web page but <%= File.open('data/tweets.csv', 'r') do |f| ; while line = f.gets ; puts line; end; end; %> doesn't work
sarpanch [sarpanch!~sarpanch@host-207-68-241-37.vista-express.com] has joined #ruby
<td123>
milktrader: how about <%= File.read 'data/tweets.csv' %> ?
axilla [axilla!~fluffhead@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<axilla>
can anyone recommend a good gem for creating GUI's
<milktrader>
let me try it
<td123>
axilla: maybe qtruby ? I've never used qt on ruby, but in other langs (c++, python) I enjoyed using it and its tools
<milktrader>
td123 it works, thanks
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<Hanmac>
axilla: what kind of guis? window-guis or more ingame-guis?
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
destructure [destructure!~mu@couchdb/user/destructure] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE0023be436752-CM0023be436750.cpe.net.cable.rogers.com] has joined #ruby
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
carlyle [carlyle!~carlyle@99-127-240-24.lightspeed.rlghnc.sbcglobal.net] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has quit [#ruby]
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
<td123>
have a question
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
<td123>
in my home directory, I do Dir.glob(File.join("**", "*conf"))
<td123>
and I get back []
<td123>
shouldn't this return all files in my home directory that end in conf?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
kpshek [kpshek!~kpshek@98.156.71.29] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-37-136.altnpa.east.verizon.net] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279728836.dsl.bell.ca] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-224.Mines.EDU] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
raincole__ [raincole__!~raincole@140.112.239.113] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
hSATAC [hSATAC!~cat@221.169.252.14] has joined #ruby
freelanceful [freelanceful!~jamesfend@239.sub-174-252-157.myvzw.com] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.137.223] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
tar_ [tar_!~tar@209-6-37-203.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has joined #ruby
<kenyabob>
Im trying to get this to work, but I get an error of an undefined method
modder [modder!modder@79.133.201.85] has joined #ruby
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p5084553A.dip0.t-ipconnect.de] has joined #ruby
<kenyabob>
Does that work for anyone else
TheNumb [TheNumb!thenumb@gateway/shell/mydevil.net/x-faddzcuzmajodieq] has joined #ruby
<dagnachewa>
plz help am a bit confused , is bad to install gems globaly ?
<dagnachewa>
exemple I install nokogiri globaly , my rails app and my oustside_rails app could accesit right
bsdbandit [bsdbandit!~unixgeek@ip98-166-14-40.hr.hr.cox.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
<bsdbandit>
im in thinking mode right now i code in python i use python mainly for systems administration now im trying to get into web development im torn between php and ruby
<shadoi>
bsdbandit: totally depends on what you want to build.
nerded [nerded!~nerded@c-98-218-53-235.hsd1.md.comcast.net] has joined #ruby
<bsdbandit>
well im looking at building a basic dynamic website
<shadoi>
you're going to end up trying it in all of them. :)
<shadoi>
Just do it.
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<shadoi>
you can do it easily in any of them basically.
<shadoi>
even python has simplistic web frameworks
<bsdbandit>
oh ok cool
<shadoi>
my recommendation for ruby is sinatra or padrino, depending on how fancy you need it.
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
jmcphers [jmcphers!jmcphers@nat/nokia/x-profbtkqowdfqfxb] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
mxbtty [mxbtty!~mxbtty@216-75-224-242.static.wiline.com] has quit [#ruby]
<Axsuul>
Is there any way to detect if a block argument was given? i.e. .foo { |s| .. } vs. .foo { ... }
<Axsuul>
from within the method foo
<banisterfiend>
Axsuul: yes, check the arity of the block
<banisterfiend>
Axsuul: def hello(&block); if block.arity > 0 then ...
<banisterfiend>
Axsuul: though if you want to support both 1.8 and 1.9 you'll need to do some gymnastics
<banisterfiend>
in 1.8 i also think that foo { } is indistinguisable from foo { |*args| }
<Axsuul>
thank you
<banisterfiend>
Axsuul: i hope you're in 1.9 :)
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
al3xnull [al3xnull!~al3xnull@cpe-76-188-178-7.neo.res.rr.com] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
<Axsuul>
yep, 1.9.3 =)
<Axsuul>
its a web app so no need to support 1.8, thanks again
<Seppman>
Will there be Ruby on Parrot soon?
<shevy>
Parrot?
<shevy>
isn't that perl 6 in 2020?
<shevy>
and 2022 is the year of desktop GNU Hurd
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
<Seppman>
exactly, thats the parrot i mean. There where some rumors some years ago that there will be parrot THE machine for upcuming ruby 2.0
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
<shevy>
hmm I think parrot was not needed
<shevy>
there is YARV ... rubinius ... not sure I am missing out something here
<Seppman>
i always thought parrot is the best ever invented, but i never used it. Its like pepsi is the best cola
bitops [bitops!~user@ac.playsecond.com] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
<Seppman>
isnt it?
<Seppman>
there was speaking of RITE some time ago, too
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
Doppp [Doppp!Doppp@unaffiliated/doppp] has joined #ruby
<Seppman>
so there are no parrot-ambitions any more, am i getting ths right?
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
beakerma_ [beakerma_!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
<banisterfiend>
Seppman: why dont you google or join #perl or something
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
jerikl [jerikl!~justin@cpe-76-183-135-152.tx.res.rr.com] has joined #ruby
<v0n>
hi
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has quit [#ruby]
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
<Seppman>
banisterfiend: because i'm interested in ruby, not in perl 6
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
<banisterfiend>
Seppman: afaik rakudo has pretty much ceased development
deltree_ [deltree_!~chatzilla@97.104.16.141] has joined #ruby
<Seppman>
:-( sad to hear that
<banisterfiend>
Seppman: not really, perl6 and parrot have become a bit of a duke nukem forever
<banisterfiend>
Seppman: rubinius is a more interesting implementation IMO
<Seppman>
output("Its done when its done! I've got balls of steel!")
<Seppman>
its cause i always thought parrot will be the holy grail of VMs
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
paulv [paulv!~paulv@unaffiliated/paulv] has quit [#ruby]
m0nki3 [m0nki3!~c0wCr@gateway/tor-sasl/m4tastati] has joined #ruby
kristopolous [kristopolous!~chris@204.154.109.20] has joined #ruby
<kristopolous>
so I have a class with some constants, I want to look up some string and return the constant associated with it ... but I can't seem to return the symbol, only the evaluated string itself
<kristopolous>
so if I do Klass::constants then I get an array of strings that I can do Klass::const_get() on
<kristopolous>
that's fine
<kristopolous>
but I can't get the actual object
<kristopolous>
I'm thinking that to_enum has the magic I need, but I really don't know
<kristopolous>
no no no, this looks all wrong;
<kristopolous>
arghhh!
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
belak51 [belak51!~belak@encoded/developer/belak] has joined #ruby
<belak51>
What books would be recommended for learning ruby, and eventually rails?
<aces1up>
does it mean something in particular when a variable starts with __ ex.. @__view ???
redwinter [redwinter!~mike@host-137-214-107-208.midco.net] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-fjtlwzmmlmmiowdj] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.139.117] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-ofdpiiltxmssaotr] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
jameshyde [jameshyde!~haiwu@c-98-213-109-128.hsd1.il.comcast.net] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-pdwibkanslaqqhhj] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-flhsfzknrcnutthq] has joined #ruby
<guns>
aces1up: It means somebody is trying to avoid namespace clashes
becom33 [becom33!~becom33@112.135.203.18] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<Hanmac>
hm ok maybe fedora has other rules then debian
* volter
doesn't know anything about Ruby
<volter>
In the meantime, I discovered $LOAD_PATH, that answers my question to some extent.
<volter>
It fails on one of my systems though. Looks like I messed things up.
<volter>
Thanks!
<volter>
Hanmac: Are different modules usually within one directory?
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<Hanmac>
normaly ... bigger stuff should go to extra dirs
wenbert [wenbert!~wenbert@222.127.160.66] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-203.start.uni-saarland.de] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
Sliker [Sliker!~ponies@46.208.59.243] has joined #ruby
jlogsdon_ [jlogsdon_!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
D3V1OU5 [D3V1OU5!~D3V1OU5@2001:470:1f08:945::10] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
a_a_g [a_a_g!~a_a_g@ec2-107-20-9-103.compute-1.amazonaws.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dhs227 [dhs227!~dhs227@180.115.250.78] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-hxjttirzutiusnvg] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-xlsseyliqkwjxyxz] has joined #ruby
<dhs227>
Hi guys. I want to ask, what is the typical and decent way to connect to MSSQL 2008? The client run MS-windows 7.
<dhs227>
I have tried several ways but all failed. Such as WIN32OLE.new('ADODB.Connection') and open with connection string
pooja [pooja!u4977@gateway/web/irccloud.com/x-wbjnozwgtqkytuer] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-rwcphslmitlvlyoy] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-qojuvqbwsneknfuq] has joined #ruby
FND [FND!~FND@p57B396F3.dip.t-dialin.net] has quit [#ruby]
<dhs227>
the server is running on the same machine, so I tried to connect to (local)
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-lxujfjwabezurvcl] has joined #ruby
ksinkar_ [ksinkar_!~ksinkar@219.64.193.21] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
<dhs227>
error message "OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server, [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-cphaajkqsxdcjddf] has joined #ruby
<dhs227>
connectionstring is "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=da;password=123456;Initial Catalog=mydb;Data Source=(local);Network Library=dbmssocn"
<Hanmac>
maybe MSSQL Server does not allow local access?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
<dhs227>
it allows. I use sql management console to login sucessfully on the same machine that I run ruby.
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
geef [geef!~king@108-215-232-154.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<geef>
is there anything you need parens in ruby to do?
<geef>
like if parens keys fell off my keyboard, what part of the language would i not be able to use?
<geef>
i can only thing of ranges
<Hanmac>
geef: what parens keys??
<Hanmac>
... but i whould say an complete keyboard is better then a broken
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-umrqzjkxmzfkjhbf] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-tdnnbcictvcubtzh] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-vaurowimsuxsmogb] has joined #ruby
<Hanmac>
dhs227: sorry but i cant help you ... i am windows free since 2006
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
ksinkar__ [ksinkar__!~ksinkar@123.201.117.198] has joined #ruby
nd______ [nd______!~nd@mnhm-5f74c61a.pool.mediaWays.net] has joined #ruby
deeno [deeno!~frank@pool-96-233-74-49.bstnma.fios.verizon.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-iagfhjxngvpprgwd] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-zwycllevhpjmzpij] has joined #ruby
nd__ [nd__!~nd@mnhm-590e5d2c.pool.mediaWays.net] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-wokazkpwigunygff] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-hythialojostkjki] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-cxjqanapmikfzwxz] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-pizzwddkylvotsvj] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-lverbofrblmsmrsi] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-cwbmnlxrkajcvhze] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-bcayifkgqfwlzsuj] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
claudio [claudio!~claudioc@unaffiliated/claudio] has joined #ruby
claudio [claudio!~claudioc@unaffiliated/claudio] has quit ["Leaving"]
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-cztiytozwpzggwdr] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<nlko>
dhs227: you sure the username is right?
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
<nlko>
'sa' is default, you not made a typo?
sstrandberg [sstrandberg!~Sebastian@a91-153-112-224.elisa-laajakaista.fi] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
<sstrandberg>
oh goodness, quite a lot of people in here
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<banisterfiend>
sstrandberg: they're all ghosts
mjording [mjording!~mjording@50.14.144.33] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
<dhs227>
nlko, yes I am pretty sure the username is okay. because i use the same userid and pass to sucessfully login
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
<dhs227>
with sql server management studio 2008.
havenn [havenn!~skipper@ip-69-33-241-138.lax.megapath.net] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
shevy [shevy!~shevy@178-191-62-216.adsl.highway.telekom.at] has joined #ruby
fayimora [fayimora!~fayimora@lt38-201.eecs.qmul.ac.uk] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-wnpludfvyqgotree] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<dhs227>
god helps....
<dhs227>
Nobody here exactly know how to let ruby connect to sql server 2008?
<Hanmac>
use linux xD
<sstrandberg>
sorry if i'm being super-dim here (i just looked at ruby code for the first time ever in an attempt to modify a dice bot), but does ruby care about whitespace?
<Hanmac>
nope you can use tabs if you prefer them
<canton7>
slightly. You can have ambiguity around things like question marks and brackets
<canton7>
e.g. class.method? "test" is not the same as class.method ? "test"
<sstrandberg>
i wanted to put an if statement inside of an array.each{} thing
<sstrandberg>
and put the if on a new line
<canton7>
sstrandberg, pastebin it?
<canton7>
(also, semicolons aren't required -- and rarely used -- so newlines can be important)
r3drevenge [r3drevenge!~r3dr3v3ng@cpe-67-243-40-168.nyc.res.rr.com] has joined #ruby
gary_r [gary_r!~gary@193.1.209.220] has quit ["WeeChat 0.3.0"]
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
<letsgojuno>
hi, when dividing numbers like ( 537/100 ) how can i use the correct result, not just the whole number?
<rippa>
537.fdiv 100
<rippa>
537 / 100.0
tvo [tvo!~tvo@wlan-145-94-190-175.wlan.tudelft.nl] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<letsgojuno>
cheers rippa
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<sstrandberg>
!
<sstrandberg>
i got it working!
<sstrandberg>
huzzah
jensn [jensn!~Jens@ip233-65.wireless.lu.se] has joined #ruby
tatsuya__ [tatsuya__!~tatsuya_o@213.152.255.138] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<banisterfiend>
rippa: can you recommend some anime
skurt [skurt!~Benz@ip-84-42-231-134.net.upcbroadband.cz] has joined #ruby
<rippa>
have you watched gurren lagann?
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<skurt>
Hello
<banisterfiend>
no
<rippa>
watch it
<banisterfiend>
rippa: link
<sstrandberg>
banisterfiend: flcl
<Hanmac>
YEAH flcl rocks! XD
<banisterfiend>
wat is flcl
<skurt>
Im parsing a webpage which is encoded in windows1250 and Im saving it into utf8 file...there are some crazy characters. Is there any easy way to convert those...I cant google anything :(
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby
<sstrandberg>
FLCL is a short (6 episode) series about a boy growing up
<sstrandberg>
and robots and space aliens
<sstrandberg>
it's very surreal
<sstrandberg>
and filled with layers of metaphors
<sstrandberg>
and has a soundtrack by The Pillows
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
<Hanmac>
sstrandberg: have you seen Dennou Coil?
<banisterfiend>
sstrandberg: "Giant Robots from Medical Mechanica have been coming out of Naota's head and cause more problems for Naota. Haruko is using Naota for her search for the Pirate King, Atomsk, because Naota's head is the only one that can create a passageway for the robots."
<banisterfiend>
sstrandberg: it sounds ridiculous!
<rippa>
banisterfiend: flcl is cool too
<rippa>
and by same studio
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<Hanmac>
ARGGG!!! fuck you GEMA " Leider ist dieses Video, das Musik von SME enthält, in Deutschland nicht verfügbar. Die GEMA hat die Verlagsrechte hieran nicht eingeräumt. "
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<banisterfiend>
Hanmac: how does it get out of the head, through the ear/mouth? and does it stretch an orifice or make its own one and leave an open wound?
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
GazD [GazD!~GazD@c-98-247-110-81.hsd1.wa.comcast.net] has joined #ruby
faber [faber!~faber@ppp-188-12.26-151.libero.it] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.45] has joined #ruby
<Hanmac>
like a very big pimples :P (without wound)
<Hanmac>
rippa: have you seen Dennou Coil?
<banisterfiend>
Hanmac: which is your fave studio ghibli animation?
<rippa>
Hanmac: only 1st episode so far
<Hanmac>
ugh ... i think all what ghibli produced is GREAT ... mononoke is good as sample
<Hanmac>
rippa: then you have leaves the best: the cyberworld is reinteracting with the real one :P
<banisterfiend>
Hanmac: did you see borrower arriety
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-68-193.karoo.KCOM.COM] has joined #ruby
<Hanmac>
yeah i did it is also good ...
<Hanmac>
i have seen a good 3D anime called "Haruka und der Zauberspiegel" ... but i found no infos on wikipedia for you :/
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.27.21] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
<banisterfiend>
is there a way to generate a subhash from a hash providing certain keys? i.e { :a => 1, :b => 2, :c => 3, :d => 4 }.subhash(:a, :c) #=> { :a => 1, :c => 3}
<banisterfiend>
?
amitprakash [amitprakash!~amitpraka@117.198.130.12] has joined #ruby
<amitprakash>
How can I run gems I've installed?
amitprakash_ [amitprakash_!~amitpraka@182.68.213.249] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-188018.eduroam.chalmers.se] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
madgraphic [madgraphic!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
madgraphics [madgraphics!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
benlangfeld [benlangfeld!~ben@unaffiliated/benlangfeld] has joined #ruby
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
wenbert [wenbert!~wenbert@120.28.216.245] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
madgraphic [madgraphic!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
Mittty [Mittty!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<Mittty>
hai friends
<Mittty>
I am a started in ruby just had a small doubt...
mjording [mjording!~mjording@107.56.156.114] has joined #ruby
<Mittty>
if i want to write a private method in ruby to be written in a rails controller...
<Mittty>
will I have to write private first and then in the next line the method def ?
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
<Mittty>
if that is the case will all the methods written after Private keyword become private
<Mittty>
????
<rippa>
yes
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<rippa>
private is actually a method
<rippa>
not a keyword
<Mittty>
<rippa> so i should be writing all my public methods before from where i start private or else after the private methods i will again have to use the keyword public!! is it?
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<Mittty>
i mean method public ?
<rippa>
yes
<Mittty>
and so if in the application helper file i write a private method will that be not accessible to methods in any of the controllers in the entire app? I mean what essentially would be the limitation of the private methoods?
<rippa>
I'm not sure about rails, never used it
<Mittty>
<rippa> ok rippa thanks for your help... :)
<rippa>
private methods can only be used by object of that class
<rippa>
or inherited from it
<Mittty>
<rippa> ok so essentially in my case when if i define a private method in applicaiton helper.rb then tat method will only be available in that module alone
<Mittty>
got it :)
<Mittty>
<rippa> where do you think ruby stands in the run compared to java ??
manizzle [manizzle!~manizzle@pcp046692pcs.pcv.reshall.calpoly.edu] has joined #ruby
prtksxna [prtksxna!~prtksxna@27.7.18.120] has joined #ruby
<Mittty>
<rippa> especially considering the job market ?
<rippa>
no idea
<Mittty>
<rippa> ok rippa thank you
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-74-3.fs.fbi.h-da.de] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.93.198.23] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
<mlue>
oh boy
<mlue>
ming
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
<gcds>
maybe someone knows library which could parse a text and replace things on text based on certain grammar? For e.g. text "cat" replace with value from Animals::Cat function return value?
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
<rippa>
String#gsub
RoUS [RoUS!KenCoar@apache/committer/coar] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<dhs227>
help on that?
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
<AlecTaylor>
Where is the dependency file located from "bundle install"?
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
<tbrock>
hey guys, does anyone know what the tryruby.org website was made with?
<tbrock>
like how they got the REPL to work, is there a JS library that everyone uses to do that sort of thing
<tbrock>
any info on it would be greatly appreciated
nuba [nuba!~nuba@pauleira.com] has joined #ruby
dekroning [dekroning!~dekroning@217.166.122.42] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
Taylor [Taylor!~alectaylo@CPE-58-164-16-161.lnse5.ken.bigpond.net.au] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.113.203.dynamic.adsl.gvt.net.br] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.10.218] has joined #ruby
_musee [_musee!~musee@unaffiliated/musee] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
caiges_ [caiges_!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-ybevdhwoikdxsthl] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
pietro [pietro!~pietro@dynamic-adsl-94-37-159-11.clienti.tiscali.it] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
ChampS666 [ChampS666!~ChampS@wlan1-18.zw.fh-zwickau.de] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
gcds [gcds!~gcds@78-57-203-174.static.zebra.lt] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
austinbv [austinbv!~austinbv@65-134.127-70.tampabay.res.rr.com] has joined #ruby
<austinbv>
I am trying to fid a way to package a little ruby app up unto a bin so people dont have to have bundler and all that crap to use it/ Is that possible
rflorianobr [rflorianobr!~rfloriano@189.115.113.203.dynamic.adsl.gvt.net.br] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
pietro__ [pietro__!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<C0deMaver1ck>
austinbv: so you basically want to compile it?
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<wmoxam>
becom33: your code for ensuring query is a string is weird :p
<wmoxam>
becom33: you could remove the if statement and just do: url = url_in + query.to_s
ferbass_ [ferbass_!~ferbass@189.102.51.45] has joined #ruby
<wmoxam>
becom33: also, you want to use URI.parse
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has quit [#ruby]
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
dotnull [dotnull!~dot_null@office.t8webware.com] has joined #ruby
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@109.53.188.130] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-98-95-53-2.jan.bellsouth.net] has quit ["Leaving..."]
supergiantrobot [supergiantrobot!~supergian@cpe-174-097-169-208.nc.res.rr.com] has joined #ruby
crankycoder [crankycoder!~crankycod@nat/mozilla/x-zltpfikhtxglnszn] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
MrKeuner [MrKeuner!~MrKeuner@unaffiliated/mrkeuner] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.47] has joined #ruby
<MrKeuner>
hello, not a ruby developer... I have scripts that "puts" irrevelant string to stdout as well as errors. how can I send error output to stderr in ruby?
<wmoxam>
STDERR.puts
<MrKeuner>
wmoxam, thanks
kinofcain [kinofcain!~KinOfCain@72.244.116.58] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
jrun [jrun!~jtb@rrcs-98-100-206-130.central.biz.rr.com] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
runeb [runeb!~runeb@cm-84.215.181.150.getinternet.no] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
madgraphics [madgraphics!~madgraphi@80.214.0.81] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
bier [bier!~bier@p54A5AF1D.dip.t-dialin.net] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
MasterIdler [MasterIdler!~MasterIdl@76-10-135-156.dsl.teksavvy.com] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
becom33 [becom33!~becom33@112.135.199.245] has quit [#ruby]
carlyle [carlyle!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
josh__ [josh__!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
virunga [virunga!~virunga@151.64.7.45] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
crankycoder [crankycoder!~crankycod@nat/mozilla/x-vqleyqttpeoavvwf] has joined #ruby
cousine [cousine!~cousine@196.218.42.9] has joined #ruby
mioukyyy [mioukyyy!~mioukyyy@ip-213-49-238-223.dsl.scarlet.be] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
amerine [amerine!~mturner@66.153.72.177] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
badabim [badabim!~badabim@17.212.166.215] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
KindTwo [KindTwo!KindOne@gateway/shell/trekweb.org/x-kygpyzamevztczsa] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has quit [#ruby]
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:acc5:f6cd:7880:7fa9] has joined #ruby
KindTwo [KindTwo!KindOne@colchester-lug/silly-fool/donut] has joined #ruby
pxjorge [pxjorge!~pxjorge@a79-169-113-23.cpe.netcabo.pt] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
btanaka [btanaka!~textual@17.245.91.170] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
KindOne [KindOne!KindOne@colchester-lug/silly-fool/donut] has quit [#ruby]
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
mars2686 [mars2686!8360d1e9@gateway/web/freenode/ip.131.96.209.233] has joined #ruby
<mars2686>
korean is not working in ruby
<mars2686>
this line of code is giving me issues
<mars2686>
words << " 것 | A thing or an object"
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
<mars2686>
does anyone know how to resolve this? I did some research and read that you can require 'unicode'
<mars2686>
but it's not helping
<mars2686>
I get this error: taxi.rb:8: invalid multibyte char (US-ASCII)
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
<apeiros_>
mars2686: add `# encoding: utf-8` to the top of your file
<apeiros_>
your file is assumed to be ASCII without it, and 것 is not valid in ascii.
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby
lorandi [lorandi!~lorandi@32.104.18.200] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
nobitanobi1 [nobitanobi1!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-cjtppknukisueoyv] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
fayimora [fayimora!~fayimora@109.175.187.219] has joined #ruby
amerine [amerine!~mturner@66.153.72.177] has joined #ruby
Squarepy [Squarepy!~Squarepy@ip82-139-118-42.lijbrandt.net] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
counterbeing [counterbeing!~textual@173-228-44-170.dsl.static.sonic.net] has joined #ruby
QKO_ [QKO_!~reaVer@banzai.speedxs.nl] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
i8igmac [i8igmac!~bigmac@c-67-185-190-112.hsd1.wa.comcast.net] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<davidcelis>
것_것
savage-__ [savage-__!~savage-@209.118.197.220] has joined #ruby
<i8igmac>
i have this small include function, i cant get this to stop print ,nil
<theRoUS>
working with openssl and subjectKeyIdentifier cert extension. after parsing the cert, i get the extension object, and ext.value gives me a 'xx:xx:xx...' value for the SKI. so far so good.
<Boohbah>
hi, does anyone speak swedish?
<michael_mbp>
thanks apeiros, it's not a gem yet though?
<michael_mbp>
just the source
<michael_mbp>
I need to package it to a .gem first ?
<michael_mbp>
gem build?
<theRoUS>
however, when i disassemble the cert with 'openssl asn1parse' the value has a prefix of '0482031E'. 031e is the size of the data, but how do i get this prefix from the openssl lib?
<apeiros_>
michael_mbp: errr… "michael_mbp: how can I install a gem from local source" - either it is a gem or it is not a gem…
<michael_mbp>
gem bundle did the trick
<apeiros_>
if it is not a gem, then yes, build a gem first, in order to install a gem…
<michael_mbp>
it created the .gem from the source
<michael_mbp>
so every time one changes the code, the .gem has to be rebuild
<michael_mbp>
*rebuilt and reinstalled
<apeiros_>
yes
<michael_mbp>
isn't there a better development workflow?
<michael_mbp>
or does one resort to scripting the whole process?
<apeiros_>
you can add it to your load path
<michael_mbp>
go on.
strife25 [strife25!strife25@nat/ibm/x-qtfqiquddtekjyjd] has joined #ruby
<apeiros_>
$LOAD_PATH, an array of dirs. you can add directories to it (push/unshift)
<apeiros_>
require will check in all of them for the required file.
<michael_mbp>
hmm
<apeiros_>
alternatively you can just write your gem without errors :-p
<apeiros_>
(unit tests…)
<michael_mbp>
mmm yeah I know that approach at least with rails
<michael_mbp>
but here I'm looking to fix an issue with showoff
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
<michael_mbp>
how do you pass off $LOAD_PATH to a gem set, or does it automatically grab the env var?
<michael_mbp>
using RVM btw.
runeb__ [runeb__!~runeb@46.67.149.44.tmi.telenormobil.no] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
<apeiros_>
$LOAD_PATH has nothing to do with gemsets
austinbv [austinbv!~austinbv@rrcs-24-73-203-202.se.biz.rr.com] has joined #ruby
<apeiros_>
its a global variable available at runtime. it can be set using the -I flag (both, ruby and irb) or you can manipulate it within your code.
<apeiros_>
it's
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
<michael_mbp>
right… reading up on it. thanks
<michael_mbp>
aye, it is a globar var.
stephenjudkins [stephenjudkins!~stephen@68.178.19.17] has joined #ruby
Yu\2 [Yu\2!~Yu@ubi-1-50-54.zif.uni-bielefeld.de] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173.228.117.162] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-jymxeqbngutomwkm] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
rudyl313 [rudyl313!4c4f51a2@gateway/web/freenode/ip.76.79.81.162] has joined #ruby
<michael_mbp>
HA I fixed it!
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
<rudyl313>
I wan't to allow my custom class to have methods like "each", "map", "each_with_index", "first", "last" ... do I use the enumerable mixin for that?
<rudyl313>
I noticed that Enumerable also implements max and min
<apeiros_>
rudyl313: you have to implement #each yourself
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<rudyl313>
but those don't make sense in my context
<apeiros_>
and if you have that, then when you include Enumerable, you get the other methods for free
<rudyl313>
apeiros_: yeah I know.. but worried about max and min
<apeiros_>
why? you fear somebody might use them?
<rudyl313>
yes exactly
<apeiros_>
how's that your problem?
<rudyl313>
and they don't make sense in my class
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
<rudyl313>
since my class is not comparable
jerikl_ [jerikl_!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
<apeiros_>
again, how's it your problem if somebody shoots himself in the foot?
<rudyl313>
so I don't want to expose public methods that will just fail
<matled>
rudyl313: note that not your class has to be comparable but the set of objects your #each yields
<apeiros_>
rudyl313: also, min/max don't *need* the receiver to be enumerable
<rudyl313>
matled: thats what I meant
<apeiros_>
err, comparable
<rudyl313>
they require <=> right?
<apeiros_>
no
<apeiros_>
you can use them with a block and compare whatever you want
<rudyl313>
from docs: "If Enumerable#max, min, or sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collection."
<matled>
rudyl313: if you really want to let go of it you can probably do class Foo; include Enumerable; undef :max; undef :min; end
<rudyl313>
matlead: thanks for the tip
<apeiros_>
rudyl313: the docs should probably be changed to "should implement", instead of "must implement"
fantazo [fantazo!~fantazo@85-127-156-169.dynamic.xdsl-line.inode.at] has joined #ruby
<rudyl313>
matlead: do I have to put the undef statements after the include of the mixin or can they go before.. or should they be at the end of the class def
<apeiros_>
rudyl313: e.g. a class RGB for color might not provide <=> itself (since there's no universally meaningful sorting for them), but you may very well sort an array of colors, e.g. by amount of red, by hue, or whatever…
<apeiros_>
rudyl313: also, you're aware that it's about the yielded elements, not the one responding to each, yes?
<rudyl313>
apeiros_: not following
<apeiros_>
as in: Array#sort will sort its items, so its items should be comparable
<apeiros_>
not Array itself
<rudyl313>
yes yes, of course
* theRoUS
tries to deduce the significance of the ASN.1 prefix
<theRoUS>
0000_0100_1000_0010_0000_0011_0001_1110
<rudyl313>
I'm still fuzzy on how you can do max without having <=>
<matled>
rudyl313: it has to come after the include
Ontolog [Ontolog!~ontolog@38.98.50.98] has joined #ruby
<michael_mbp>
you in CH? lucky....!
<michael_mbp>
I love Geneve
<Ontolog>
if I open up a class to redefine a method, how can I call the original method i'm redefining?
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
<michael_mbp>
def foo; end ?
<michael_mbp>
that should override the method in question
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
<savage->
Ontolog: if you're just opening up the class, then just use Module#alias_method to alias the old definition
<Hanmac>
michael_mbp, use alias_method
h4mz1d [h4mz1d!~hamfz@130.160.40.63] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
<michael_mbp>
ah
<v0n>
hi all
<michael_mbp>
thanks for the tip
p1d [p1d!~p1d@dslb-088-064-157-106.pools.arcor-ip.net] has joined #ruby
<v0n>
what is the convention for license? should every file contain the license text on top of it? and/or Should it be a LICENSE file in the project root dir?
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
dekoms [dekoms!~dekom@static-151-201-141-172.pitt.east.verizon.net] has joined #ruby
<pigdude>
lol rvm modifies /etc/profile
<pigdude>
who writes this crap??
<pigdude>
and it modifies it to source a file without checking its existence
<pigdude>
and _that_ file runs a command without checking that it is defined
jasdeepjaitla [jasdeepjaitla!~jasdeepja@75-25-112-44.lightspeed.brlnca.sbcglobal.net] has joined #ruby
<canton7>
v0n, iirc, most licenses require you include a copy of the license. I'd refrain from including the license text in the header of each file (unless you're writing a single-file app, and even then...), and at a most I'd put a "License: whatever" line at the top of each file
<apeiros_>
pigdude: sure about what you say? I ask because there's nothing in my /etc/profile from rvm…
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
<canton7>
When I installed, it just advised me that I needed to stick a line somewhere
<pigdude>
apeiros_, certainly on macs an install (that i did a few days ago) does this
<ReinH>
v0n: going by common practice, I would say the latter
<canton7>
Did you install through gem, or using a package manager
ryan0x2 [ryan0x2!~ryan0x2@c-75-70-78-223.hsd1.co.comcast.net] has joined #ruby
<apeiros_>
pigdude: I have a mac.
<pigdude>
well you do the gem install which, of all things, has you source a bash file over http
<pigdude>
(tells you to do so)
<pigdude>
i presume that script now does this
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
<pigdude>
because i certainly never edited /etc/profile myself
<apeiros_>
pigdude: o0
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
<apeiros_>
"the gem install"?
<pigdude>
apeiros_, gem install rvm installs the libraries
<apeiros_>
pigdude: I install rvm the way its described on the website, not using the gem
<apeiros_>
lets check who wrote the gem…
<pigdude>
the gem i don't believe modifies /etc/profile
<pigdude>
anyway, however it happened, it's certainly a WTF
<v0n>
canton7, ReinH yep, so often a simple LICENSE file will be quite enough, no need to pollute the source code, especially for a not that big project
<apeiros_>
seems to be from wayne too
<pigdude>
i went to clean up this machine before i turned it in and found bash errors after deleting rvm stuff
<pigdude>
for all users
<ReinH>
pigdude: protip: install using the installation instructions
<pigdude>
because /etc/profile was modified
<apeiros_>
maybe an older rvm did that…
<apeiros_>
I'm pretty sure newers don't, as there's no modification on my machine…
<pigdude>
apeiros_, it's still in the install docs
<apeiros_>
you may want to ask in #rvm
<pigdude>
apeiros_, The rvm function will be automatically configured for every user on the system if you install as root. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm group, those users MUST log out and back in to gain rvm gr
td123 [td123!~tom@archlinux/trusteduser/td123] has quit ["WeeChat 0.3.6"]
<apeiros_>
ok, if you install as root…
<pigdude>
loading rvm.sh is so intuitively accomplished by ... modified /etc/profile
<apeiros_>
but then /etc/profile is actually the way to go
<pigdude>
apeiros_, instead it's a naked source line
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
<apeiros_>
ok, that part, agreed.
<pigdude>
and rvm.sh shouldn't be using commands that might not be present IMO
<pigdude>
unless testing for them by using hash, etc
<apeiros_>
though personally I prefer if stuff bombs instead of silently not working…
<ReinH>
installing rvm for all users is usually not a good idea
<pigdude>
(the culprit is __rvm_add_to_path)
<pigdude>
ReinH, that much i know now :^)
<pigdude>
it was just one of those things that took me aback!
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
g0bl1n [g0bl1n!~prokter@a213-22-27-14.cpe.netcabo.pt] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
counterbeing [counterbeing!~textual@173-228-44-170.dsl.static.sonic.net] has joined #ruby
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
janissary [janissary!~user@nmd.sbx08279.wintefl.wayport.net] has joined #ruby
<CannedCorn>
hey guys, when you have a gem installed how do you get require to prefer the cwd over the gem, i thought prefixing the require string with "./" so that it was "./file" would do it but apparently not
<shadoi>
works for me… 1.9.2
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<apeiros_>
CannedCorn: add cwd to $LOAD_PATH
<apeiros_>
load path always has precedence over gems
<apeiros_>
also, do yourself a favor and add the expanded cwd
jmorton__ [jmorton__!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
<shadoi>
$: << File.expand_path('.')
* apeiros_
prefers $LOAD_PATH over $:
sepp2k [sepp2k!~sexy@g230249099.adsl.alicedsl.de] has joined #ruby
<shadoi>
yeah, much more clear.
<CannedCorn>
ok great guys
jeremy_ross [jeremy_ross!~jeremy_ro@cpe-76-186-157-98.tx.res.rr.com] has joined #ruby
<v0n>
CannedCorn, shadoi $: << File.expand_path('.') will differ from where you execute the code, no?
<apeiros_>
v0n: of course
<apeiros_>
which is why . was removed from $LOAD_PATH in the first place
<apeiros_>
v0n: that's not what CannedCorn asked for, though
<CannedCorn>
how do i tell which one was loaded
<shadoi>
v0n: I hate the unshift method name :)
<apeiros_>
v0n: also File.expand_path('../', __FILE__)
<shadoi>
probably the worst possible name for "add something to this"
<v0n>
apeiros_, ho right, I misunderstood what he asked
<apeiros_>
CannedCorn: if you can't tell, why do you want to load one over the other? :)
<CannedCorn>
well i made changes
<CannedCorn>
hahah
<apeiros_>
so I'd say you answered your own question.
<CannedCorn>
but i want to make sure, now that cwd is in the path, that it loaded the one i wanted
<v0n>
CannedCorn, why not running manually `ruby -I lib bin/your_script` for instance?
<apeiros_>
puts "yippy, loaded ME!"
<apeiros_>
add that to your file
<CannedCorn>
v0n: yep, that would work
jbpros [jbpros!~jbpros@88-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<apeiros_>
ruby -I ++
<CannedCorn>
but isn't there a way to tell after the fact?
<CannedCorn>
or not really
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
<apeiros_>
it might be that $LOADED_FEATURES now has expanded paths
<apeiros_>
never checked
<v0n>
CannedCorn, that usually what you do when your writing a gem or something and want to run it
austinbv [austinbv!~austinbv@rrcs-24-73-203-202.se.biz.rr.com] has joined #ruby
mengu [mengu!~mengu@85.96.105.202] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<CannedCorn>
how would you do it in irb?
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<CannedCorn>
-r
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
<apeiros_>
same, -I
<apeiros_>
-r is require, for both, ruby and irb.
<CannedCorn>
thats what i want though right? require
<v0n>
CannedCorn, when I test a custom gem in IRB, just run `irb -I lib -r my_gem` from the root dir
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
<CannedCorn>
v0n: ok so the problem with r is that it requires my file and then the rest are loaded from the installed gem, so -l will prevent that i guess
csherin [csherin!~csherin@61.17.32.83] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<apeiros_>
CannedCorn: -I, not -l
<CannedCorn>
I as in 'eye' right?
<apeiros_>
use a font where you can distinguish those. especially on a programming channel. srsly.
<apeiros_>
I as in uppercase i
<CannedCorn>
that worked, perfect guys!
<CannedCorn>
thanks
<v0n>
lol
<v0n>
iIlL xD
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
cousine [cousine!~cousine@196.221.78.101] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
Chaazd [Chaazd!522c1532@gateway/web/freenode/ip.82.44.21.50] has joined #ruby
<v0n>
Chaazd, but if you don't need your code to be portable, just write uri as Windows style, something like "dir1\dir2" I guess
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@S0106d8a25e7ab2c0.ed.shawcable.net] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@wikipedia/Yamamoto-Ichiro] has joined #ruby
<Chaazd>
Okay
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<v0n>
Chaazd, File.join is just like ["dir1", "dir2"].join(File::SEPARATOR)
Hanmac [Hanmac!~hanmac@p5084553A.dip0.t-ipconnect.de] has quit [#ruby]
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
Hanmac [Hanmac!~hanmac@p5084553A.dip0.t-ipconnect.de] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
ryanf [ryanf!~rfitz@ec2-50-18-158-149.us-west-1.compute.amazonaws.com] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
csherin [csherin!~csherin@61.17.32.83] has joined #ruby
mensch [mensch!~mensch@blade71.cs.umb.edu] has joined #ruby
hubub [hubub!~hubub@85.13.231.79] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
juiceman5000 [juiceman5000!~jleclair@blackholewan-gw-136.iexposure.com] has joined #ruby
dmn001 [dmn001!~dav3@vserver-z74f52vm3.autovps.net] has joined #ruby
sahli_ [sahli_!~sahli@197.2.88.197] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.16.71] has joined #ruby
<juiceman5000>
I have a variable, foo_meta, which is equal to the symbol :foo_function (foo_meta = :foo_function). I want to call foo_function(), or any other function who's name is equal to the foo_meta symbol. How do I do that?
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby
<heftig>
send(foo_meta)
<juiceman5000>
what if foo_meta has input (foo_meta(input)
<heftig>
send(foo_meta(input))
<juiceman5000>
derp
<juiceman5000>
ok ty dude!
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
<apeiros_>
o0
<apeiros_>
send(foo_meta, input)
<apeiros_>
__send__ if you don't know the receiver.
<heftig>
ah, yes, sorry
<voodoofish430>
thats what I thought too apeiros_
<juiceman5000>
oh, ok. i've used send on methods
<juiceman5000>
i shoulda thunk it
<heftig>
juiceman5000: there are no functions, only methods.
nd______ [nd______!~nd@mnhm-4d00e499.pool.mediaWays.net] has joined #ruby
<juiceman5000>
yeah. i come from C. I keep forgetting that
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-116-140.telecom.by] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
calfeld [calfeld!~calfeld@108-198-115-46.lightspeed.mdsnwi.sbcglobal.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
s0ber_ [s0ber_!~s0ber@114-36-239-67.dynamic.hinet.net] has joined #ruby
y3llow_ [y3llow_!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
dmn002 [dmn002!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
mvangala_ [mvangala_!~mvangala@134.192.135.254] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
liquidproof [liquidproof!~liquidpro@213-216-251-97.bb.dnainternet.fi] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
web0 [web0!~webster@2607:f060:100:a:c539:c4fd:117c:2f95] has joined #ruby
juiceman5000 [juiceman5000!~jleclair@blackholewan-gw-136.iexposure.com] has quit [#ruby]
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
<shadoi>
So.. currently I'm using stuff like: caller.any? {|c| c =~ /block in state/} to switch behavior based on where I'm being called from. Any big drawbacks to this? Seems slightly ugly, but I can't think of a much better way to go about it…
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
<calfeld>
caller.grep(/block in state/)
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
<shadoi>
yeah, slightly nicer, I guess I mean the premise of it.. is it bad?
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
<apeiros_>
yes
<apeiros_>
breaks encapsulation
<shadoi>
Is there a pattern for this sort of thing I should follow?
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-hcgalwxuqnmtsvro] has joined #ruby
<shadoi>
For example, switching display output based on being called via CLI vs being called in a library...
<apeiros_>
that switch should be in the part that handles output
<heftig>
shadoi: not portable
<apeiros_>
and should be set by e.g. an accessor
<heftig>
it's really only for backtraces
<heftig>
or debugging
rfloriano [rfloriano!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
<shadoi>
heftig: so… like jruby or rubinius would be hosed?
<shadoi>
I haven't tried it
<heftig>
hrm, actually no, the output is identical
<heftig>
but i don't think it's documented, so may be subject to change
<shadoi>
Hmm.. Maybe I'll just do a check if my CLI model is defined?
<shadoi>
heftig: fair enough
<shadoi>
s/model/module/
<heftig>
oh, it is documented
<heftig>
never mind then :p
<shadoi>
heftig: I suppose the exact message output I'm checking for could change, so.. point taken.
<heftig>
still, code smells
<shadoi>
yeah
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
<shadoi>
I'll switch to checking for constants
<shadoi>
less ugly
<heftig>
uh, what?
<shadoi>
if I'm being called from the CLI, the CLI module will be defined
<shadoi>
should handle most of the cases I have.
<calfeld>
the problem is not how your are determining the context but that you function cares.
<calfeld>
if you have, say, CLI and GUI modes, you should have different functions for each. Code that doesn't care about which mode it is can use a base class to access either code.
<shadoi>
well.. I have a function called "displaying?"
<shadoi>
which I base all this off of, which is in my base class
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has joined #ruby
<kenyabob>
When I run this code, I get an error undefined method. Can someone else run this and see if they run into the same issue?
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
<calfeld>
age_in_days is not defined
<kenyabob>
crap, that was an error in my part, line 31, I switch the var names
<calfeld>
you probably mean age
<kenyabob>
are you running 1.9 then?
<kenyabob>
this is breaking for me in 1.8
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
<heftig>
kenyabob: which undefined method?
<shadoi>
I get NoMethodError: undefined method `year' for 1:Fixnum
<shadoi>
from (irb):10:in `block in time_diff_in_natural_language'
<calfeld>
1.send(interval) turns into 1.year
<kenyabob>
Untitled.rb:10:in `send': undefined method `year' for 1:Fixnum (NoMethodError)
<shadoi>
1.9.2
<calfeld>
I believe that's an ActiveSupport thing
<shadoi>
yeah
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
<calfeld>
yes, require 'active_support' and it works fine
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
<calfeld>
if you have RoR installed
<kenyabob>
this is in sinatra, but I think there is an active_support gem
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
<shadoi>
yes
<calfeld>
yes, there is an active support gem
<calfeld>
and it should play fine with sinatra
<GSpotAssassin>
Is there a process available that will let me control the CPU utilization of a subprocess? Say I want this master process to only give the subprocess full CPU if the total CPU utilization has been < 10% for a certain amount of time
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
sleepwalker__ [sleepwalker__!~sleepwalk@178.176.131.235] has joined #ruby
norex [norex!~quassel@41-133-238-44.dsl.mweb.co.za] has joined #ruby
adamkitt_ [adamkitt_!~adamkitte@50.0.132.2] has joined #ruby
<heftig>
GSpotAssassin: just nice it
<heftig>
or make it SCHED_IDLE
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
<shadoi>
GSpotAssassin: you can control most of that in the Process module,
<kenyabob>
hmm, even with the active_support, I get an error.
<shadoi>
For more fine-grained control you'd want to look into platform specifics, like on Linux you'd go with cgroups.
<calfeld>
what error?
<heftig>
require 'active_support/all'
<kenyabob>
shadoi does it work for you with active_support required
<shadoi>
I don't have it installed :)
<kenyabob>
dang!
<GSpotAssassin>
heftig: I can nice it but that doesn't give me ongoing control of it
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<GSpotAssassin>
shadoi: really. i'll have to look at its API
<GSpotAssassin>
shadoi: i'm on OS X. I can see if there's an analog to the cgroups thing
Squarepy [Squarepy!~Squarepy@ip82-139-118-42.lijbrandt.net] has joined #ruby
<shadoi>
GSpotAssassin: maybe something in the jail code
<shadoi>
haven't messed with it at all
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has quit [#ruby]
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
<shadoi>
ah, nevermind, jails aren't in OS X
<shadoi>
lame.
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
<shadoi>
try "man sandbox"
<shadoi>
doesn't look very configurable
austinbv [austinbv!~austinbv@216.146.183.56] has joined #ruby
dmn001 [dmn001!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has quit [#ruby]
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
autojack [autojack!~owen@mail2.nerdnetworks.org] has joined #ruby
<autojack>
I asked this in #bundler, but no answer so far. maybe someone here knows: in some of our code we're still using bundler 0.7, and on our build system we run 'gem bundle --cached' before creating a package, and all our code just does a require 'gems/environment' so that the machines we deploy to don't necessarily have to have a bundler gem on them. it looks like bundler 1 has no equivalent of this. QUESTION: is that correct? we need to move toward puttin
<shadoi>
autojack: it moved to creating a functional bundler inside the 'cache'
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
<shadoi>
using --standalone
<autojack>
oh, I see that in the 1.1 docs.
<shadoi>
yup
<autojack>
is it not in 1.0?
<shadoi>
nope
<autojack>
OK.
<shadoi>
1.1 is about 300X faster also. :)
<BrianE>
1.1's faster? :O
<autojack>
nice
<BrianE>
What about the intial rubygems.org search?
<shadoi>
literally many orders of magnitude faster.
<BrianE>
:O
<BrianE>
Is it in Rubygems?
<shadoi>
yeah, use --pre
<BrianE>
Awesome
<autojack>
so 1.1 is not final yet?
<shadoi>
rc7
<autojack>
OK.
<autojack>
thanks, this is very helpful :)
<BrianE>
Cool
<BrianE>
Just tried it out
<BrianE>
It's noticbly faster, though I wouldn't say "orders of magnitude"
<shadoi>
yeah, exaggeration. :)
<BrianE>
:P
<BrianE>
Good stuff :)
<shadoi>
although on one app we have that's got about 80 dependencies it was a huge difference.
<autojack>
you said literally!
<autojack>
;)
<shadoi>
I think as you added more dependencies < 1.1 got slower and slower.
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has quit ["Leaving"]
<shadoi>
and 1.9.2 requires are super slow also, 1.9.3 improves that a lot.
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has quit [#ruby]
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
Squarepy_ [Squarepy_!~Squarepy@vpn-144-53.vpn.uva.nl] has joined #ruby
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
jmccune [jmccune!~jeff@puppetlabs/ps/jmccune] has joined #ruby
<davidcelis>
Out of curiosity, what thoughts do you guys have on eval?
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby
<banisterfiend>
davidcelis: i use it all the time
<BrianE>
davidcelis: For what purpose?
<davidcelis>
BrianE: Well, I just used it to dynamically define some spec tests based on a set of controller actions and their HTTP methods.
<BrianE>
davidcelis: Paste the code?
<davidcelis>
I needed similar tests for each action, so I built up the actual request and eval'd it.
<davidcelis>
one sec
<shadoi>
davidcelis: as long as the input doesn't come from any outside source, it's fine. Sometimes it's uglier than alternatives...
<banisterfiend>
davidcelis: u probably dont need eval for that:
<wmoxam>
davidcelis: I never use it, but sometimes use instance_eval (and often use .send)
Squarepy_ [Squarepy_!~Squarepy@unaffiliated/squarepy] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
<shadoi>
I prefer .send / .__send__ in almost all cases also.
<BrianE>
davidcelis: I'd be very surprised if you couldn't just use define_method and friends
<davidcelis>
banisterfiend: Well, the method to call differs because RSpec uses the HTTP method as the actual method call (`post :create`, `get :edit`, etc)
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
<burgestrand>
send(http_verb, action)
<shadoi>
^^
<davidcelis>
god i feel stupid now.
<davidcelis>
ive even used send before
dmn001__ [dmn001__!~dav3@vserver-z74f52vm3.autovps.net] has quit [#ruby]
<davidcelis>
that is definitely a better alternative
<davidcelis>
tanks!
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
adman65 [adman65!~adman65@li74-160.members.linode.com] 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
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<autojack>
shadoi: nice, I just tried out --standalone. so it looks like I would just require vendor/bundle/bundler/setup.rb if I use that method?
<shadoi>
yup
<autojack>
neat.
<autojack>
thanks, that's very helpful!~
<shadoi>
welcome
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
<shadoi>
thank wycats though. ;)
<autojack>
hehe
<autojack>
how come that didn't make it into 1.0? just a neglected use case?
<shadoi>
yeah, I think it was assumed it would always be a system gem.
dmn001 [dmn001!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
<autojack>
nod
<autojack>
my problem is that since we have stuff that still uses 0.7, I can't use 1.0 in newer projects on the same box unless I use rvm.
<autojack>
it gets messy.
evenix [evenix!~evenix@149-169-127-83.nat.asu.edu] has joined #ruby
<autojack>
(we need to work on upgrading, but...)
<shadoi>
yeah
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<autojack>
we're still using 1.8.7 a lot of places though.
<autojack>
so... we suck at upgrading ;)
havenn [havenn!~skipper@pool-71-189-127-140.lsanca.fios.verizon.net] has joined #ruby
<shadoi>
Took me 2 hours to move from 1.8.7 -> 1.9.2 across 8 apps, around 10k lines of code.
<shadoi>
Just had to force myself to do it and test it.
<shadoi>
Annoying but not hard.
<ale`>
is there anything like private module methods?
<heftig>
ale`: for what purpose?
<autojack>
yeah, we're just lazy. I think.
<autojack>
(not my code, not my problem)
<ale`>
heftig: I would like some methods to be callable as Mymodule.somemethod, and some others that I want to call inside somemethod but don't want callable outside
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
<shadoi>
ale`: you can achieve it with namespacing, but even private methods are callable from anywhere with send.
<shadoi>
there's no "real" private methods.
<heftig>
class << Mymodule; private; def foo; :bar; end; end
tesmar [tesmar!~tesmar@184.76.224.211] has joined #ruby
<heftig>
or a bit more elaborate,
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
matled- [matled-!~matled@85.131.246.184] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby