tomzx [tomzx!~tomzx@dsl-59-207.aei.ca] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
<shevy>
hmm
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby-lang
<shevy>
I used to use a yaml file for config stuff
<shevy>
with my last project, I still use yaml files... but it is more, and slowly becoming something like about:config in firefox
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
knu [knu!chuck@v055125.ppp.asahi-net.or.jp] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
bougyman [bougyman!bougyman@pdpc/supporter/gold/bougyman] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
ilyam_ [ilyam_!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
Defusal [Defusal!DeFi@196-209-88-169.dynamic.isadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
<Tasser>
shevy, use a ruby dsl then ;-)
<shevy>
Tasser one important ability is to modify settings at runtime
yfeldblum [yfeldblum!~Jay@c-71-206-30-119.hsd1.md.comcast.net] has joined #ruby-lang
<shevy>
and store them persistently
<petercooper>
If XML doesn't solve your problem, you're not using enough of it.
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
<shevy>
XML should have never existed
<petercooper>
what about XML using utf-8?
<shevy>
is that better?
<petercooper>
People who want to write it in Klingon finally get their chance
<jmontross>
json > xml?
<petercooper>
I like YAML, though it feels a bit "kitchen sink" in terms of its scope.
<shevy>
* > xml
<andrewvos>
I agree with shevy for once.
<shevy>
andrewvos we are like brothers :-)
<shevy>
I once kept my video files collection in XML format
<shevy>
<genre> Comedy </genre>
<shevy>
<addition_date> 2005 </addition_date>
<shevy>
that was very annoying
<samuelkadolph>
Freak
<shevy>
but that was the past man
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
<shevy>
I am glad I got off of XML
<shevy>
it's like the worst drug there is out there
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@adsl-74-161-100-70.mia.bellsouth.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-50-58.washdc.btas.verizon.net] has joined #ruby-lang
<andrewvos>
Yeah I've seen some xml abominations in my time.
<andrewvos>
Short as it may be
<andrewvos>
Especially in the microsoft world
wmoxam__ [wmoxam__!~wmoxam@184.175.20.158] has joined #ruby-lang
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby-lang
Austin__ [Austin__!~halostatu@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has joined #ruby-lang
<lianj>
meh, ruby-openssl and ffi-openssl dont play along in the same app in my tests
jkyle_ [jkyle_!~krunk-@75-59-236-83.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby-lang
sodani [sodani!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby-lang
Austin__ [Austin__!~halostatu@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has joined #ruby-lang
<sodani>
If I'm reading some text in from a Google results page and there's no encoding set, how would I figure out what encoding to use? just trial and error?
<lianj>
ah nevermind, it works now :D
<manveru>
sodani: no meta tags?
<sodani>
nope. google doesn't output them
<sodani>
at least not if you're a user agent that it recognizes afaik
<shevy>
I am sure people here will say ... UTF-8
<manveru>
Content-Type: text/html; charset=UTF-8
<manveru>
it gives you an header anyway :)
<sodani>
yeah, i figured utf-8 or iso-8859-1 but those don't seem to be working right for me. or maybe I'm just not transcoding it properly
<manveru>
got an example?
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
<sodani>
I'm having trouble with the registered mark on the first couple of ads on this page
ryanf [ryanf!~revfitz@adsl-67-117-145-61.dsl.snfc21.pacbell.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
io_syl [io_syl!~io_syl@69.105.118.125] has joined #ruby-lang
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby-lang
ascarter [ascarter!~ascarter@67-42-84-171.tukw.qwest.net] has joined #ruby-lang
ascarter [ascarter!~ascarter@67-42-84-171.tukw.qwest.net] has joined #ruby-lang
Austin__ [Austin__!~halostatu@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
lightcap [lightcap!~lightcap@97-115-89-163.ptld.qwest.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-17-224.a149.priv.bahnhof.se] has joined #ruby-lang
coffeant [coffeant!~coffeant@125.34.42.254] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.243.203] has joined #ruby-lang
coffeant [coffeant!~coffeant@125.34.42.254] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.243.203] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
toretore [toretore!~toretore@195.204.240.108] has joined #ruby-lang
grafthez [grafthez!~John@78.8.207.2] has joined #ruby-lang
scottschecter [scottschecter!~scott@98.252.167.171] has joined #ruby-lang
gix [gix!~gix@e180015071.adsl.alicedsl.de] has joined #ruby-lang
<grafthez>
guys, if I put something into the hash I use symbols as key like that myhash[:mykey] = 'value'. Then to get this value in the future I also use symbol as a key. Now suppose I have several places I need this value so I use this symbol several times. What about the case if suddenly I need to change this key to another value? Am I forced to look through all my code and change it by hand? Or mayeb there is something like constant in java where I have one defini
<grafthez>
ton of key user everywhere I need?
hangingclowns [hangingclowns!~Adium@58.247.100.206] has quit [#ruby-lang]
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
AlHafoudh [AlHafoudh!~textual@dsl-static-173.212-5-200.telecom.sk] has joined #ruby-lang
<rue>
grafthez: Well, there's sed. Or the edit functionality in your editor
grefab [grefab!~asx@p57BD6654.dip0.t-ipconnect.de] has joined #ruby-lang
<rue>
You're just talking about refactoring, I assume
<rue>
If you *did* consistently use for example a constant like MYLOOKUP = :mykey, then you could just change that, obviously
<rue>
Or, more OO, if you'd wrapped the whole thing inside a method
h4ck3r [h4ck3r!~h4ck3r@14.140.43.50] has joined #ruby-lang
flatliner [flatliner!~flatlline@cshpc.rrze.uni-erlangen.de] has joined #ruby-lang
stepnem [stepnem!~stepnem@90.177.119.176] has joined #ruby-lang
<grafthez>
rue, that's what I'm thinking about, to use MYLOOKUP = :mykey
<grafthez>
but I wonder if this is right way and convention in ruby
<rue>
Depends on the situation, but usually not
grefab [grefab!~asx@p57BD6654.dip0.t-ipconnect.de] has joined #ruby-lang
ryanf [ryanf!~revfitz@adsl-67-117-145-61.dsl.snfc21.pacbell.net] has joined #ruby-lang
thrcka [thrcka!thrcka@nat/redhat/x-gcdhmbztzphcbssj] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@80.79.35.95] has joined #ruby-lang
mksm [mksm!~mksm@201.20.236.65.user.ajato.com.br] has joined #ruby-lang
stepnem [stepnem!~stepnem@90.177.119.176] has joined #ruby-lang
IoGA [IoGA!~ioga@91.191.181.77] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.243.203] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Austin__ [Austin__!~halostatu@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has quit [#ruby-lang]
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
cyri_ [cyri_!~cyri_@86.72.200.236] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-168-81-150.dyn.iinet.net.au] has joined #ruby-lang
yukiy [yukiy!~yukiy@182.148.191.40] has joined #ruby-lang
Asher [Asher!~asher@c-24-126-149-16.hsd1.ga.comcast.net] has joined #ruby-lang
bjensen [bjensen!~brianj@176.20.2.148] has joined #ruby-lang
Asher1 [Asher1!~asher@98.158.127.150] has joined #ruby-lang
yukiy [yukiy!~yukiy@182.148.191.40] has quit ["Leaving"]
mikeric [mikeric!~mike@174.6.165.175] has joined #ruby-lang
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-170-47-158.dyn.iinet.net.au] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.253.157] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-170-47-158.dyn.iinet.net.au] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
Jade [Jade!~useless@unaffiliated/jade] has joined #ruby-lang
valcker [valcker!~valcker@228-7-190-109.dsl.ovh.fr] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@112.134.195.17] has joined #ruby-lang
pp01bit [pp01bit!~pp01bitDo@111.92.240.242] has joined #ruby-lang
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl18-45-1.dsl.telepac.pt] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.99.112] has joined #ruby-lang
Pupeno [Pupeno!~pupeno@pdpc/supporter/active/pupeno] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@unaffiliated/octopod] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-d932390c.pool.mediaWays.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-170-47-158.dyn.iinet.net.au] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
workmad3 [workmad3!~workmad3@vpn176.its.manchester.ac.uk] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatek.thls.bbc.co.uk] has joined #ruby-lang
kedare [kedare!~kedare@bau91-1-82-239-247-128.fbx.proxad.net] has joined #ruby-lang
lenilson_dias [lenilson_dias!~lenilson_@c934d329.virtua.com.br] has joined #ruby-lang
benanne [benanne!~sander@b252h039.ugent.be] has joined #ruby-lang
<shevy>
hmm
<shevy>
$:.unshift(File.dirname(__FILE__)) is the same as $: << File.dirname(__FILE__) ?
<shevy>
guess not, the latter appends to $LOAD_PATH
<shevy>
but I wonder if that would make a big difference? the latter seems more succint
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
<dreinull>
trying to translate some rails tests to minitest. What can I do about this one: http://fpaste.org/FiEy/ Seems like I need must_throw :password but that doesnt really work
<andrewvos>
dreinull: fpaste.org?
<andrewvos>
dreinull: I think rspec just matches have_error_on to error_on?
<dreinull>
andrewvos: yes, fpaste. Great service and pastes actually expire. Don't want to keep that stuff forever.
Adrieuxo [Adrieuxo!~jorixHmAI@115.64.27.246] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.243.203] has joined #ruby-lang
<dreinull>
andrewvos: where do you see that?
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
gnufied1 [gnufied1!~gnufied@122.172.253.157] has joined #ruby-lang
matti [matti!matti@madwifi/support/matti] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
<jsaak>
anyone used nokogiri or similar xml lib, i have a noobish question i want to have the output:"text" here -> http://pastie.org/3009652
dasil003 [dasil003!~dasil003@188.39.65.134] has joined #ruby-lang
<andrewvos>
dreinull: Look for "have" on that page
<andrewvos>
Holy crap I thought I may have left my headphones at home! They were just plugged into my macbook.
<andrewvos>
That was close
<dreinull>
andrewvos: I cahnged the test now to raise an exception, which can be done by triggering an exception upon invalid doc creation.
<dreinull>
F it
gnufied [gnufied!~gnufied@122.172.253.157] has joined #ruby-lang
<molgrew>
jsaak: //div/child::text()
<jsaak>
thank you molgrew it works
Adrieuxo [Adrieuxo!~jorixHmAI@115.64.27.246] has joined #ruby-lang
hebz0rl [hebz0rl!~hebz0rl@95.130.165.85] has joined #ruby-lang
<andrewvos>
dreinull: Ok sorry I couldn't help :)
<dreinull>
F it
<dreinull>
argh, wrng window
<shevy>
lol
<shevy>
F it too!
<dreinull>
these tests again take longer than the code tested.
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby-lang
<shevy>
hehe
Pip [Pip!~Pip@host-189-146-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.167.223.193] has joined #ruby-lang
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
burgestrand1 [burgestrand1!~burgestra@62.65.124.23] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.216.18] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
<andrewvos>
WHAT?? invalid attribute name `success?'
<andrewvos>
Is this normal?
<andrewvos>
Im using attr_reader
<andrewvos>
attr_reader :success? <-- not worky
<apeiros_>
you'd need an ivar named @success?
<apeiros_>
and that's not valid
<andrewvos>
apeiros_: Hmm
<andrewvos>
apeiros_: So what can I do
<andrewvos>
?
<apeiros_>
def success?; @success; end
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
<andrewvos>
apeiros_: That's a bit shit. Thanks though
<apeiros_>
o0
<ddfreyne>
so make a battr_{reader,writer,accessor} :P
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
yalue [yalue!yalue@nat/ibm/x-xmqtsqkgpykmgmln] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.99.112] has quit ["Konversation terminated!"]
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
<havenn>
andrewvos: How bout: attr_reader :success; alias :success? :success
jasox [jasox!~jxx@178.239.26.139] has joined #ruby-lang
<shevy>
yeah
<shevy>
I made my own attr for that
<shevy>
but it is not very practical to carry around modified attr's in projects
<rippa>
ruby makes people want elegance
<shevy>
and ponies
<apeiros_>
I thought unicorns
<imperator>
just got here; are we wanting to do attr_reader :success?
<imperator>
or attr_accessor :success?
<shevy>
that would be cool
<shevy>
or perhaps not hmm
<shevy>
def success; @success ... and ... def success?; @success
<rippa>
attr_accessor?
<rippa>
derp.success?=true
<rippa>
hurr
<apeiros_>
class Module; alias original_attr_reader; def attr_reader(*names); names.each do |name| if name =~ /\?$/ then class_eval("def #{name}; @#{name[0..-2]}; end") else original_attr_reader name end end end
probst [probst!~probst@131.80-202-169.nextgentel.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<shevy>
eval magic!
<theoros>
ruby object model should be simple enough. i was going to go with something unrelated to ruby, but i need to know it quite well to field questions, so ruby would be good
<theoros>
since it's at short notice
<shevy>
hey
<shevy>
$:.unshift(File.dirname(__FILE__)) is the same as $: << File.dirname(__FILE__), except that the latter is shorter, and appends to the array rather than have it as first element right?
<judofyr>
shevy: yes
<shevy>
hmm
<shevy>
ok
<ddfreyne>
shevy: prepending is the word
<shevy>
yeah
spectra [spectra!~spectra@debian/developer/spectra] has joined #ruby-lang
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
<shevy>
I am turning all my larger-to-medium projects into that convention now
<shevy>
I think...
jkyle_ [jkyle_!~krunk-@74.175.27.253] has joined #ruby-lang
io_syl [io_syl!~io_syl@66.201.45.155] has joined #ruby-lang
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby-lang
<shevy>
or perhaps not
<shevy>
need to create many lib/ directories
<shevy>
:\
<theoros>
ask yourself why you would want it at the beginning of $: instead of the end
<shevy>
don't know
<shevy>
if both work then I prefer <<
<judofyr>
shevy: why do you muck with $: anyway?
<shevy>
judofyr so I can use require 'name'
<judofyr>
shevy: ruby -Ilib
<judofyr>
shevy: rubygems will fix it for you anyway
<shevy>
that does not work within a project
<judofyr>
I believe that those who *uses* the project should make sure that its lib-path is correctly
<judofyr>
it makes me wonder: how did it require the file that did $:.unshift(File.dirname(__FILE__))?
adam12 [adam12!~adam12@d216-121-144-209.home3.cgocable.net] has joined #ruby-lang
<ddfreyne>
judofyr: that will make it difficult to use it without rubygems
<shevy>
that file is the base file for "name_of_project/" directory
<shevy>
I really would not know how else to use the "require 'name'" scheme than to modify $:, other than use absolute paths, or symlinks into ruby's lib dir
<judofyr>
shevy: why do you require name_of_project without putting its dir in the load path first?
<shevy>
?
<shevy>
but I am doing that, don't I?
<judofyr>
shevy: how do you require name_of_project?
<judofyr>
relative/absolute path?
<judofyr>
or `require "name_of_project"`
<shevy>
that confuses me
<judofyr>
ddfreyne: yeah, it's probably fine in binaries
RickHull [RickHull!~rhull@pdpc/supporter/active/rickhull] has joined #ruby-lang
<judofyr>
shevy: if you do `require "name_of_project"`, then the directory is already in the load path
<shevy>
oh
<shevy>
that only works if I modify $:
<ddfreyne>
judofyr: at least I don'trequire rubygems ;)
<shevy>
if I don't do that then it does not work
<imperator>
don't mangle $: in your gems
<judofyr>
shevy: but you need to modify $: *before* name_of_project.rb loads, right?
<imperator>
because that's a global
<shevy>
judofyr yeah
<shevy>
well
<ddfreyne>
imperator: but in binaries you pretty much need to
<shevy>
name_of_project.rb first does the $: and then it calls the other .rb files in that project
<ddfreyne>
(unless you're invoking it with rubygems,b ut that is not always the case)
<imperator>
ddfreyne, huh?
<judofyr>
shevy: but what required name_of_project.rb?
<imperator>
with binaries i put the .so file under lib using a rake task
<judofyr>
imperator: binaries != extensions
<ddfreyne>
imperator: executables, not binaries (silly name)
<imperator>
judofyr, what's your point?
<judofyr>
imperator: he's talking about making bin/foo work as intended
<shevy>
judofyr I am not sure what you mean there. I require that when I call it from within another project, for instance in a gtk-app.rb file, I could first call the user interface project, like with "require 'ui'", from within that gtk-app.rb
<shevy>
but that ui project would be a different project
<rippa>
everything is binaries
<imperator>
judofyr, using rubygems?
<judofyr>
shevy: my point: who ever requires "name_of_project" should be responsible for setting up its load path. not name_of_project.rb itself.
<judofyr>
imperator: no, outside of rubygems
<imperator>
oic
<judofyr>
imperator: or, you'll probably target both
<judofyr>
ddfreyne: maybe `begin; require "foo"; rescue LoadError; $:.unshift …; end` is a better pattern?
<imperator>
well, within rubygems you put your executables in 'bin' and set the spec.executables dir
<imperator>
and it Just Works (TM)
<ddfreyne>
judofyr: but if I ./bin/nanoc then, I will get the rubygems version and not the one in ./lib :(
heppy [heppy!~heppy@75-101-31-55.dsl.dynamic.sonic.net] has joined #ruby-lang
<shevy>
oh
<shevy>
now that you mention that
<shevy>
I think I had such a similar error with rubygems
<judofyr>
ddfreyne: ah
<shevy>
when I install into /Programs/Ruby/Version
<judofyr>
ddfreyne: I usually just ruby -Ilib anyway
<judofyr>
ddfreyne: maybe I'll go for RUBYLIB="lib" too
<judofyr>
(only in development of course)
<shevy>
github makes reporting issues really simple
<shevy>
I can't stand bugzilla anymore :\
RomD [RomD!~Roman@nrbg-d93236c7.pool.mediaWays.net] has joined #ruby-lang
<judofyr>
ddfreyne: but I see your point
firetonton [firetonton!~firetonto@163.5.131.104] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@adsl-99-39-150-102.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
scampbell [scampbell!~scampbell@c-98-224-240-62.hsd1.mi.comcast.net] has joined #ruby-lang
zomgbie [zomgbie!~jesus@213.162.68.117] has joined #ruby-lang
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
scampbell [scampbell!~scampbell@c-98-224-240-62.hsd1.mi.comcast.net] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.167.88.254] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Kivi [Kivi!~joni@ec2-79-125-13-112.eu-west-1.compute.amazonaws.com] has joined #ruby-lang
<manveru>
if you don't want to verify the certificate
<manveru>
not sure why you'd use https then though
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
Squarepy [Squarepy!~Squarepy@wcw-staff-214-224.wireless.uva.nl] has joined #ruby-lang
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby-lang
lightcap [lightcap!~lightcap@97-115-90-248.ptld.qwest.net] has joined #ruby-lang
<amh345>
manveru: that's the thing. i dont need to verify the cert. i just need to connect to an API via https. most of the info im finding pertains to ssl and http
<amh345>
im trying to locate what i actually need. also, im on 1.8.7 for this particular app.
Pip [Pip!~Pip@host-87-156-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<manveru>
ah, yeah
<manveru>
there's been a lot of improvment in 1.9
<amh345>
i saw :(
<amh345>
booooo
<amh345>
im going to move this app over to 1.9 when i have some time.
towski [towski!~towski@204-15-1-114-static.ipnetworksinc.net] has joined #ruby-lang
felipe [felipe!~felipe@unaffiliated/felipe] has joined #ruby-lang
<MistyM>
Is there a quick way to list the links available in an HTML document?
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
DEac- [DEac-!~deac@81.16.104.86] has joined #ruby-lang
lightcap [lightcap!~lightcap@184-100-144-60.ptld.qwest.net] has joined #ruby-lang
<any-key>
MistyM: you could either search with a regex or use an HTML/XML parser like Nokogiri
<any-key>
the parser route might be a tad bit slower but it's by far the easiest and most reliable way in my opinion
<MistyM>
I'll give Nokogiri a shot.
dejongge [dejongge!~jonke@pD9E0CF23.dip0.t-ipconnect.de] has joined #ruby-lang
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby-lang
firetonton [firetonton!~firetonto@163.5.131.104] has joined #ruby-lang
<shevy>
hmm how do you guys layout your documentation?
<shevy>
up until recently I was writing documentation for every method, though it was often very very terse
<shevy>
so every method had a small header
<apeiros_>
MistyM: links as in <a href…> tags?
<MistyM>
apeiros_: Yeah.
<apeiros_>
trivial with nokogiri: Nokogiri.HTML(html).css('a') # the result is a NodeSet with all links
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
Sailias [Sailias!~jonathan@69.158.82.233] has joined #ruby-lang
firetonton [firetonton!~firetonto@163.5.131.104] has joined #ruby-lang
cldwalker_ [cldwalker_!~cldwalker@c-65-96-165-236.hsd1.ma.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<MistyM>
Oh, awesome, thanks!
jasox [jasox!~jxx@178.239.26.139] has joined #ruby-lang
firetonton [firetonton!~firetonto@163.5.131.104] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
firetonton [firetonton!~firetonto@163.5.131.104] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-168-154.dclient.hispeed.ch] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
jmontross1 [jmontross1!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
sepp2k [sepp2k!~sexy@g224100061.adsl.alicedsl.de] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S0106001e58eab184.vc.shawcable.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby-lang
<shevy>
andrewvos I am bored :(
<apeiros_>
shevy: i-am-bored.com
<yorickpeterse>
Same here, have to do some design work but can't be fucked :[
<WhiteHorse>
I think that if you dont know anything about ruby then this tutorial walk you through the basics of the language very quickly
<mrdodo>
deryldoucette: thanks a bunch
<deryldoucette>
mrdodo: welcome
<WhiteHorse>
it just gives you a foundation very quickly so you can build upon this with other tutorials
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<WhiteHorse>
you all know that the most difficult part of learning a new language is the beggining, once you jump that part things start to make more sense and the learning process accelerates
<workmad3>
WhiteHorse: as long as you know programming, then yes
<manveru>
heh
<manveru>
well, this site uses print all the time
oilpastels [oilpastels!~rafael@20151185010.user.veloxzone.com.br] has joined #ruby-lang
<workmad3>
WhiteHorse: also, if the new language is a substantially different paradigm and has little crossover with anything you're familiar with, it's not just the syntax that's going to cause issues
<WhiteHorse>
for me, this one is better than tryruby.org to get started
<manveru>
for me, nothing beats a repl and a reference :)
kyrylo [kyrylo!~kyrylo@46.118.220.90] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
<WhiteHorse>
so you have hundreds of entries in a language reference... how are you supposed to know what are the most important ones and the ones that you should learn first
<WhiteHorse>
I think references are just for that.. reference
<workmad3>
manveru: a repl and a reference is going to be the tough road if you're only used to say OO programming and you're trying to pick up something like haskell :)
<WhiteHorse>
thats what tutorials are meant for
<workmad3>
admittedly, for haskell, an intro to category theory is going to be your main reference :)
<manveru>
workmad3: that's why i never got into haskell
<deryldoucette>
haskell scares me because my math skills are crap
<deryldoucette>
i admit it, i live by my calculator! :)
<workmad3>
deryldoucette: arithmetic != maths
<workmad3>
ok, I'm being told I should be getting to bed
<workmad3>
my laptop is being shut to the sound of the music from jaws :/
<manveru>
oO
<workmad3>
night all
<manveru>
cu
<cored>
hello all
<cored>
night
<cored>
that was a funny way to leave
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
Asher1 [Asher1!~asher@c-24-126-149-16.hsd1.ga.comcast.net] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
slackstation [slackstation!~eman@174-127-33-234.static-ip.telepacific.net] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
<hipe>
manveru: where are you these days, in terms of locality?
jaimef [jaimef!jaimef@dns.mauthesis.com] has joined #ruby-lang
jlnr [jlnr!~jlnr@lurado.com] has joined #ruby-lang