dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
gasbakid__ [gasbakid__!~gasbakid@41.96.88.76] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
locks [locks!u130@gateway/web/irccloud.com/x-twycghtwllwgaeam] has quit [#ruby-lang]
WillMarshall [WillMarshall!~willmarsh@ppp121-44-64-47.lns20.syd6.internode.on.net] has joined #ruby-lang
benanne [benanne!~rijdier@41.104-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
<postmodern>
ah was a \n in uri.query
<postmodern>
not sure why URI::HTTP.build doesn't auto-escape those
indstry [indstry!~indstry@2001:470:1f11:1ec:dd8a:c20b:d977:9cd3] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0261.bb.online.no] has joined #ruby-lang
mndoci [mndoci!~mndoci@216.9.28.154] has joined #ruby-lang
Aphelion [Aphelion!~ttilley@unaffiliated/lv] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
<shevy>
Ruby in 2012
<shevy>
faster
<shevy>
better
<shevy>
stronger
<robgleeson>
SCOOTER!
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
cartercheng [cartercheng!~carterche@173-11-117-109-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby-lang
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
lsegal` [lsegal`!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@115.240.113.215] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
Marco [Marco!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
<andrewvos>
Happy new year
<andrewvos>
!!
<densebits>
andrewvos, same to you!
<andrewvos>
densebits: WOOHOO
looopy [looopy!~looopy@pool-141-156-51-124.washdc.btas.verizon.net] has joined #ruby-lang
<andrewvos>
Not new year yet here though.
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@118.82.176.204] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
jessemc [jessemc!~jessemc@S010678cd8e6f175f.ed.shawcable.net] has joined #ruby-lang
andrewhl [andrewhl!~andrewhl@out-pq-188.wireless.telus.com] has joined #ruby-lang
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
thone_ [thone_!~thone@g230186102.adsl.alicedsl.de] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
Weems [Weems!Weems@68-117-153-32.dhcp.unas.al.charter.com] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
rippa [rippa!~rippa@109-161-68-156.pppoe.yaroslavl.ru] has joined #ruby-lang
<josh9>
I need some design guidance. i have a user in my app. it's a simple class. i want to be able to save and find users on my db so i created a DB class with some class methods. this is how i use those classes - user = User.new("tod"); user.save
<josh9>
def save; DB.save(self); end
<josh9>
so all the db related stuff is being done by DB class. i also have User.find that calles DB.find(name)
<josh9>
and User.all that calls DB.all_users
<josh9>
does this design make sense? i am afraid that my DB class will get bloated since i'll have more entities i want to handle.
<josh9>
the nice think is that my DB class is the only class (and file) that knows about the specific db i use (mongo, in my case).
<josh9>
it's not very accurate, since the DB class returns back json, so the User method that calls it need to maniplate that json and return back object.
thone__ [thone__!~thone@g226035086.adsl.alicedsl.de] has joined #ruby-lang
<josh9>
so the User class is actually coupled with the DB class.
thone___ [thone___!~thone@g226035086.adsl.alicedsl.de] has joined #ruby-lang
asi [asi!~asi@112.134.198.178] has joined #ruby-lang
<asi>
Hi. I developed a Ruby gem that deals with system level command like restarting the server and all. Currently it cannot run with RVM as it doesn't encourage the "sudo gem install". How can I fix this and make a RVM compatible version.?
<josh9>
asi: maybe u can try running 'rvm' and if rvm is installed, don't run it with sudo.
<josh9>
asi: that's how u test: type rvm | head -1
<josh9>
the response should be: rvm is a function
<asi>
josh9: I think you misunderstood the question.
<asi>
one sec.
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
<andrewvos>
asi: ?
<andrewvos>
Why can't it run
rippa [rippa!~rippa@109-161-68-156.pppoe.yaroslavl.ru] has joined #ruby-lang
<TTilus>
asi: you want your gem to be installed system-wide?
cartercheng [cartercheng!~carterche@173-11-117-109-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
<TTilus>
asi: whats that have to do with you being able to run commands that affect the whole system?
replore [replore!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
Soleone [Soleone!~soleone@206-248-177-9.dsl.teksavvy.com] has joined #ruby-lang
<asi>
andrewvos: TTilus: Nope. It runs some system level commands like restarting the apache server...
<andrewvos>
So run it with sudo
<asi>
it's a gem to deploy rails app rapidly with Passenger and Apache.
<andrewvos>
asi: ^
shevy [shevy!~shevy@213-33-21-94.adsl.highway.telekom.at] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@118.82.176.204] has joined #ruby-lang
<TTilus>
asi: so you need sudo -E ?
<josh9>
is vcr works with nokogiri? i didn't see nokogiri on their readme.
punknology [punknology!~textual@190.74.83.254] has joined #ruby-lang
<andrewvos>
josh9: They are unrelated
<josh9>
andrewvos: it seems to work. i guess vcr detect any http related activity.
<andrewvos>
josh9: Your questions are rather vague :)
<josh9>
andrewvos: sorry, what was unclear with the vcr question?
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
<andrewvos>
josh9: nokogirl is an xml parser.
<andrewvos>
josh9: It is unrelated to a request mocking library.
<andrewvos>
You're talking about the way it takes over net/http?
<josh9>
andrewvos: i have a test that scrape a webpage. i use nokogiri and i wanted a way to mock the http response.
<andrewvos>
Ok well then it should work with nokogiri. I'm assuming nokogiri uses the default net/http stuff.
<josh9>
vcr seems to record the response from Nokogiri::HTML(open(@url)) and now my test is fast and not dependent on internet connection.
<andrewvos>
Yes. also you can save the request response and then not have to make the first request.
<andrewvos>
josh9: Pretty sure #open is not nokogiri.\
<josh9>
andrewvos: good catch. let me see
kyrylo [kyrylo!~kyrylo@46.118.220.105] has joined #ruby-lang
<josh9>
maybe it's open-uri
<andrewvos>
josh9: Nope Ruby testa.
<josh9>
what's that?
<andrewvos>
josh9: I mean open is built in to ruby.
<josh9>
gotcha
<rue>
It's open-uri, when you're opening an URL
<andrewvos>
oh
<andrewvos>
rue: When was your new years?
vmatiyko [vmatiyko!~vmatiyko@178.121.154.149] has joined #ruby-lang
<rue>
11 hours ago
Defusal_ [Defusal_!DeFi@dsl-241-6-03.telkomadsl.co.za] has joined #ruby-lang
Defusal_ [Defusal_!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
cartercheng [cartercheng!~carterche@173-11-117-109-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.190] has joined #ruby-lang
james [james!~jredville@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
jredville [jredville!~jredville@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
jredville [jredville!~jredville@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
bjensen [bjensen!~brianj@3007ds3-ar.0.fullrate.dk] has joined #ruby-lang
robgleeson [robgleeson!~rob@87-198-38-47.ptr.magnet.ie] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<nekid>
how do i copy and paste from cmd prompt
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<nekid>
Installing json (1.6.4) with native extensions
<nekid>
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
<nekid>
.
<nekid>
C:/Ruby193/bin/ruby.exe extconf.rb
<nekid>
C:/Ruby193/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<manveru>
nekid: 1.9.3 has json in stdlib
<nekid>
i updated it though
<manveru>
since 1.9.1 i think
<nekid>
from 1.9.2
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
solars [solars!~solars@mk089144206038.a1.net] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@89-93-156-41.hfc.dyn.abo.bbox.fr] has joined #ruby-lang
benanne [benanne!~rijdier@41.104-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
StevenRingo [StevenRingo!~nevets@ppp121-44-18-141.lns20.syd6.internode.on.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<yorickpeterse>
Rubygems is down :[
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
<shevy>
:(
<shevy>
bring back 2011!!!
thrcka [thrcka!~thrcka@adsl-dyn175.91-127-200.t-com.sk] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
petercooper [petercooper!~petercoop@82.144.254.2] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
Stromgol [Stromgol!~Stromgol@modemcable131.171-162-184.mc.videotron.ca] has joined #ruby-lang
workmad3 [workmad3!~workmad3@host-84-13-69-129.opaltelecom.net] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl17-17-151.dsl.telepac.pt] has joined #ruby-lang
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
goshakkk [goshakkk!~goshakkk@46.28.101.224] has joined #ruby-lang
jimmyy111 [jimmyy111!jimmy@112.238.26.196] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0C894.dip0.t-ipconnect.de] has joined #ruby-lang
jxie_ [jxie_!~jxie@115.197.84.209] has joined #ruby-lang
cartercheng [cartercheng!~carterche@173-11-117-109-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d076cd4.pool.mediaWays.net] has joined #ruby-lang
deanh [deanh!~deanh@p-67-158-178-155.dsl1.rtr.chat.fpma.frpt.net] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@89-93-156-41.hfc.dyn.abo.bbox.fr] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby-lang
Stromgol [Stromgol!~Stromgol@modemcable131.171-162-184.mc.videotron.ca] has joined #ruby-lang
Stromgol [Stromgol!~Stromgol@modemcable131.171-162-184.mc.videotron.ca] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0261.bb.online.no] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
<dFire>
When using Timeout::timeout( whatever )
<erikh>
Asher: cmake rules. thanks for suggesting it eons ago.
<dFire>
when you're in that do-end loop, is there any way to reset the timer?
solars [solars!~solars@mk089144206038.a1.net] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0D197.dip0.t-ipconnect.de] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
iande [iande!~ieccles@dynamic-acs-24-144-204-51.zoominternet.net] has joined #ruby-lang
workmad3 [workmad3!~workmad3@host-84-13-69-129.opaltelecom.net] has joined #ruby-lang
enebo [enebo!~enebo@75-168-44-241.mpls.qwest.net] has joined #ruby-lang
enebo [enebo!~enebo@75-168-44-241.mpls.qwest.net] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
enebo [enebo!~enebo@75-168-44-241.mpls.qwest.net] has joined #ruby-lang
<dFire>
Or does anyone have an idea how I can close a socket when I don't receive data on it for x seconds?
<dreinull>
Soleone: thank you
<Soleone>
np sir
<mtkd>
Does anyone know how I can load a nested module A::B (using that namespace syntax) when A doesn't already exist
<mtkd>
This works eval("module A; module B; end; end"), but this doesn't eval("module A::B; end")
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<Soleone>
Why would you ever want to do something like that? Looks dangerously dynamic...
<mtkd>
I've got some dangerously dynamic code I need to load
<mtkd>
it's very nested and I need the shorter syntax
<Soleone>
How can the nested module not define that A namespace btw? Shouldn't the nested module always depend on the outer namespace being existent?
<mtkd>
Rails will load it like that without the parents existing
<mtkd>
so it's possible
<mtkd>
I'll have to work it backwards from that
vmatiyko [vmatiyko!~vmatiyko@178.121.154.149] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.154.149] has quit [#ruby-lang]
<rue>
dFire: What's the problem with Timeout?
andrewhl [andrewhl!~andrew@CPE78cd8e6671d8-CM78cd8e6671d5.cpe.net.cable.rogers.com] has joined #ruby-lang
<dFire>
I'm in a while loop, receiving lines from a socket
<dFire>
but I can't reset the timeout when I receive a line
<rue>
You need to exit the block then
<rue>
loop { blah; timeout { receive only }; do stuff here }
<rue>
Or depending on your particulars, you could poll the socket manually
<dFire>
That's just sensible enough to work
uniqanomaly_ [uniqanomaly_!~ua@dynamic-78-8-84-85.ssp.dialog.net.pl] has joined #ruby-lang
<dreinull>
don't use Time.now in your tests if the results depend on 2011.
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby-lang
jredville [jredville!~jredville@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
tychobrailleur_ [tychobrailleur_!~sebastien@89-93-156-41.hfc.dyn.abo.bbox.fr] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-232-66.washdc.east.verizon.net] has joined #ruby-lang
mikeric [mikeric!~mike@modemcable144.119-37-24.mc.videotron.ca] has joined #ruby-lang
sczizzo [sczizzo!~sczizzo@99-94-128-224.lightspeed.mmphtn.sbcglobal.net] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-232-66.washdc.east.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
sczizzo [sczizzo!~sczizzo@99-94-128-224.lightspeed.mmphtn.sbcglobal.net] has quit [#ruby-lang]
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@hlfxns0169w-142068026252.dhcp-dynamic.FibreOp.ns.bellaliant.net] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
<nekid>
does it matter which directory I "gem install rails"
<nekid>
or "ruby setup.rb"
<href>
for a gem install, no. For a `ruby setup.rb`, yeah. You must be in the directoy where the "setup.rb" file is.
<rue>
It'll install into standard (or provided) locations still
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
confounds [confounds!~confounds@208.113.46.214] has joined #ruby-lang
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0261.bb.online.no] has joined #ruby-lang
<nekid>
ty
<nekid>
file 'lib' not found
<nekid>
win7
<shevy>
can you be shorter
<nekid>
I was installing rails and I got a file 'lib' not found at the end
<nekid>
also Installing ri documentation for rails-3.1.3...
<nekid>
file 'lib' not found
<nekid>
Installing RDoc documentation for multi_json-1.0.4...
leaping [leaping!~leaping@cpe-76-170-28-102.socal.res.rr.com] has joined #ruby-lang
leaping [leaping!~leaping@cpe-76-170-28-102.socal.res.rr.com] has quit [#ruby-lang]
davidtspf01 [davidtspf01!~leaping@cpe-76-170-28-102.socal.res.rr.com] has joined #ruby-lang
<davidtspf01>
hello
<davidtspf01>
I wrote a basic script with this line: "start = html.index(starting_regexp)". And I am getting the error "undefined method `index' for #<File:testfile.html> (NoMethodError)". testfile.html is a file i read in.
<davidtspf01>
Any idea why the error?
looopy [looopy!~looopy@static-71-166-232-66.washdc.east.verizon.net] has joined #ruby-lang
<rue>
nekid: Don't worry about the docs. You should probably be using railsinstaller, though. Check with #ror
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby-lang
<rue>
Did I just actually disconnect?
<davidtspf01>
This line: " %r{<td width="33%" class="table-item-1">(.*?)</td\s*>}m =~ html" is causing this error: "invalid byte sequence in UTF-8 (ArgumentError)". Any idea why?
<shevy>
does it pull data in?
<rue>
Presumably the html variable contains an invalid sequence
<shevy>
yeah
<davidtspf01>
What does that even mean?
<shevy>
encoding thing
<davidtspf01>
html is an html file i read in
<rue>
Also, using Nokogiri would be a preferrable option…
<shevy>
html variable is not of regex type?
<davidtspf01>
I would love to, but can't figure it out.
<shevy>
=~ html
<davidtspf01>
Here's how I read in the html file: file = File.open("testfile.html", "r") / page = file.read
<shevy>
and where does html come from?
<rue>
davidtspf01: Nokogiri::HTML(html).css "td.table-item-1" or something like that should work
<davidtspf01>
Well, then I call this method: company_info = scrape_personnel_info(page), which is def scrape_personnel_info(html)
<davidtspf01>
so page and html are the same
<rue>
Is the html file actually UTF-8? If it is, and presumed valid, you can do a replace on invalid bytes
<davidtspf01>
rue: how do i do that?
<rue>
ri String#encode
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby-lang
<davidtspf01>
rue: I'm not following
<shevy>
it is hopeless
<shevy>
use ruby 1.8.7
lianj [lianj!~lianj@17.145.34.193.static.giga-dns.com] has joined #ruby-lang
lianj [lianj!~lianj@subtle/user/lianj] has joined #ruby-lang
<chris2>
hey shevy
<chris2>
i'm pondering moving to ruby 1.9
<rue>
O M G
<chris2>
need to make a list of things i need to port first
<rue>
davidtspf01: See the String#encode docs, you can re-encode the string
<chris2>
1.9.3 is production ready?
<rue>
Yep
<chris2>
good
<chris2>
porting stuff is easier than supporting both
<shevy>
chris2 :D
<chris2>
i dont actually have that much code i use
<shevy>
I have almost switched! need to rewrite one thing with "circular require detected"
<chris2>
^^
<shevy>
hey my delay is only 4 years :P
<chris2>
yeah
<chris2>
but q1.9 seems viable now
<chris2>
and i like the new license
<shevy>
anyone knows when and if there will be a 1.9.4?
<rue>
ruby-head knows
looopy [looopy!~looopy@static-71-166-232-66.washdc.east.verizon.net] has joined #ruby-lang
znz_jp [znz_jp!~znz@ns5.n-z.jp] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0261.bb.online.no] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d076620.pool.mediaWays.net] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
<davidtspf01>
Argh. Getting an error on join, when doing "name = company_info[:name].join(', ')". Error is ndefined method `join' for 0:Fixnum (NoMethodError). Wtf.
andrewhl [andrewhl!~andrew@CPE78cd8e6671d8-CM78cd8e6671d5.cpe.net.cable.rogers.com] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<rue>
It tells you what's wrong
<rue>
You're doing 0.join
<rue>
Which is why?
<davidtspf01>
Oh, I see. It should not be doing that.
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
znz_jp [znz_jp!~znz@ns5.n-z.jp] has joined #ruby-lang
<davidtspf01>
Ok, getting same error even though I'm now trying to join a string: "in `csv_string': undefined method `join' for "Michelle Myers":String (NoMethodError)"
<davidtspf01>
Off this: name = company_info[:name].join(', ')
<davidtspf01>
Isn't join a built-in method?
datanoise [datanoise!~datanoise@24-145-66-018-dhcp.mia.fl.atlanticbb.net] has joined #ruby-lang
<Asher1>
on Array
<Asher>
not on String
<josh9>
i want to use the recent stable version of a gem. can i simply clone it and require_relative 'gem-folder/lib/gem-name.rb' ?
<injekt>
josh9: no
<Asher>
you probably want to install teh gem
<injekt>
install it
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang