<drbrain>
but it depends on patches that are only in ruby-trunk
<drbrain>
and needs a bit more help in rdoc to have README and whatnot show up in rdoc as things you can read
<drbrain>
and it's more info-like than man-like
<Harzilein>
yeah, i'm thinking of pinfo etc.
<Harzilein>
maybe that's more colorful than a manpage, but i really like the interface. something like perldoc -f something that integrates ri-style searching with troff pages would be good
MistyM [MistyM!MistyM@conference/code4lib/x-jnznyggdikaoxoxm] has joined #ruby-lang
<drbrain>
ri is presently geared too much towards methods without a good way of joining "here is what this method does" with "here are examples of how to use this method with other methods in the class"
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
qpingu [qpingu!~Adium@99-45-170-65.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
chimkan [chimkan!~chimkan@184.175.39.28] has joined #ruby-lang
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby-lang
ccontrast [ccontrast!~m@c-24-130-81-47.hsd1.ca.comcast.net] has joined #ruby-lang
<Harzilein>
drbrain: how does ruby-doc.org determine what goes into core and what into stdlib?
<Harzilein>
drbrain: if i understand it right, what i'm generating now with rdoc in the ruby directory will be an aggregate of both
<drbrain>
Harzilein: in short, if it's in lib/ or ext/ it's "stdlib" if it's not (root .c files) core
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<drbrain>
yes
<Harzilein>
drbrain: do you think it would make sense to have an aggregate of core in one manpage? after all, perl has man perlfunc fore the "core" and regular perldoc for the dual-lived cpan modules
<Harzilein>
for*
<drbrain>
Harzilein: that would be… big
<Harzilein>
well, the text of man perlfunc weighs in at 47k words
<drbrain>
it may be difficult to search through
<Harzilein>
yeah, but if you already know what is there but just want to refresh a detail it should be enough
<drbrain>
I'm not sure how many words would be in all of core, but it doesn't sound unreasonable compared to perl
<Harzilein>
the idea is that ri could give you an index into that file
<Harzilein>
as in: type man rubycore if you want to search for keywords or browse around its sections (could use a html manpage viewer to get a toc), use ri to jump to a method
localadmin [localadmin!~chatzilla@115.111.125.90] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
<drbrain>
… but windows users ☹
<Harzilein>
...
<Harzilein>
dunno, they could get a .chm? ;)
<drbrain>
I dunno
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host78-84-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby-lang
<drbrain>
the nice thing about rdoc is that it's self-contained and works everywhere ruby does
<drbrain>
the un-nice thing is that it doesn't draw from awesome pre-existing platform tools :/
Stalkr_ [Stalkr_!~Stalkr@x1-6-e0-46-9a-1f-97-a2.k617.webspeed.dk] has joined #ruby-lang
<drbrain>
Harzilein: however, if you want to build this thing, I'll help you make it a success
<rippa>
[10:56:01] <Harzilein> dunno, they could get a .chm? ;)
<rippa>
they already have a .chm
<drbrain>
rippa: I abandoned rdoc-chm… I have no way to test it :/
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
sideshownz [sideshownz!~sideshown@121.98.77.84] has joined #ruby-lang
carlosed [carlosed!~carlosed@5ac60f73.bb.sky.com] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-5f7336c1.pool.mediaWays.net] has joined #ruby-lang
thone_ [thone_!~thone@g226050047.adsl.alicedsl.de] has joined #ruby-lang
qpingu [qpingu!~Adium@99-45-170-65.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
daglees [daglees!~belvedere@92.62.115.195] has joined #ruby-lang
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby-lang
alexeyKolosov [alexeyKolosov!~quassel@ns1.zbku.ru] has joined #ruby-lang
zmack [zmack!~zmack@109.99.235.103] has joined #ruby-lang
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
lele [lele!~lele@fangorn.windmill.it] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
nemesit [nemesit!~nemesit@fbivpn.informatik.uni-hamburg.de] has joined #ruby-lang
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby-lang
<ylluminate>
was running pry-nav and ran into a segfault. i'm wondering if i should report it as a ruby bug or what might be taking place here.
<ylluminate>
essentially simply `next`'d on a method call and then got into mon_synchronize
priteshjain [priteshjain!~priteshja@27.97.197.233] has joined #ruby-lang
<ryanf>
yeah it probably is a ruby bug. I'm pretty sure pry-nav is pure ruby
<ryanf>
maybe something's wrong with set_trace_func in 1.9.3-p0
<shevy>
hmm
kitallis [kitallis!~kitallis@122.178.202.187] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
hh__ [hh__!~h@173.255.227.83] has joined #ruby-lang
hh__ [hh__!~h@173.255.227.83] has quit [#ruby-lang]
fayimora [fayimora!~fayimora@2a01:388:201:3721:206f:37aa:bb30:790f] has joined #ruby-lang
<drbrain>
you've got several C extensions loaded
cyri_ [cyri_!~cyri_@152.107.70.86.rev.sfr.net] has joined #ruby-lang
<ryanf>
oh, one is ruby-debug. I think that's bad news on 1.9.3 still, isn't it?
<ylluminate>
hmm
<drbrain>
nokogiri, unicorn, ...
<drbrain>
look for '.bundle'
<drbrain>
before submitting it to ruby, load fewer libraries
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby-lang
<ylluminate>
in this case drbrain i can't limit this particular project down; but i suppose i'll just create a new rails project to test this on without the additions
priteshjain [priteshjain!~priteshja@27.97.197.233] has joined #ruby-lang
<ryanf>
can you reproduce it at all?
<ylluminate>
but when you say look for .bundle, you're just saying to trace those down in the segfault stacktrace
<ryanf>
nah he means in the list of loaded stuff at the bottom
<ylluminate>
yes ryanf, i can reproduce it in my scenario on my app each time; i've not tried it elsewhere yet
<ryanf>
every file with .bundle in there is a C library
<ryanf>
oh cool
<ryanf>
maybe tag your repo or something to make sure you don't lose the scenario before you can try getting to a more minimal case
<ylluminate>
one note that was thrown out on the pry-nav readme is that it's not threadsafe yet, but i didn't think that this was running in a threaded environment
<ylluminate>
yet i wasn't sure how it's jumping into monitor.rb. from what i'm seeing i didn't think that it should be doing that
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
yorickpeterse1 [yorickpeterse1!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.179.56.160] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-216-75-94.lnse1.ken.bigpond.net.au] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@27.97.197.233] has joined #ruby-lang
<ylluminate>
interesting
<ylluminate>
it actually seems to come from Mysql2::Error
Nss [Nss!~mosca@2001:1418:16b:1:bcc5:b4ff:fe10:cd61] has joined #ruby-lang
csherin [csherin!~csherin@202.164.151.252] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has quit [#ruby-lang]
priteshjain [priteshjain!~priteshja@27.97.197.233] has joined #ruby-lang
yumike [yumike!~yumike@213.154.168.130] has joined #ruby-lang
nick_h [nick_h!~nick@li46-53.members.linode.com] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
fayimora [fayimora!~fayimora@138.37.230.156] has joined #ruby-lang
dhruvasagar_ [dhruvasagar_!~dhruvasag@65.98.79.137] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@27.97.197.233] has joined #ruby-lang
workmad3 [workmad3!~workmad3@vpn146.its.manchester.ac.uk] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@101.171.249.34] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@115.242.58.238] has joined #ruby-lang
shevy [shevy!~shevy@178-191-176-230.adsl.highway.telekom.at] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
srbartle_ [srbartle_!~srbartlet@101.171.249.34] has joined #ruby-lang
antinitro_ [antinitro_!~adam@93-97-23-188.zone5.bethere.co.uk] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
tomasky [tomasky!~chatzilla@210.22.24.67] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:3:226:8ff:fedd:31a3] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
tbuehlmann [tbuehlmann!~tobias@unaffiliated/tovias] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-87-105-21-95.ssp.dialog.net.pl] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310B68.dip0.t-ipconnect.de] has joined #ruby-lang
gnufied1 [gnufied1!~gnufied@223.228.145.231] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby-lang
gnufied2 [gnufied2!~gnufied@122.179.30.253] has joined #ruby-lang
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has quit [#ruby-lang]
thisirs [thisirs!~user@sic01043.sp2mi.univ-poitiers.fr] has joined #ruby-lang
<apeiros_>
what's the easiest way to unpack a foo.gem file? I want the unpacked data entry in the tar.
<shevy>
apeiros_ hmmm "gem unpack" does not work?
<apeiros_>
I see Gem::Installer, Gem::Package::TarReader and Gem.gunzip - and I'm sure I could build something from these (or just plain shelling out)
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
<apeiros_>
shevy: that's already a nice improvement over my shoddy tar -xf & gunzip shell-out I currently use
<shevy>
it seems to call "Gem::Installer.new(path, :unpack => true).unpack target_dir" I am finding out where Installere is
<apeiros_>
dang, I missed Gem::Installer#unpack accepting a dir…
* apeiros_
tries
<shevy>
hmm that is the code part that seems to do the unpack stuff:
<tbuehlmann>
EM.system? why not just em-hhtp-request
<lianj>
tbuehlmann: dependencies :P
<tbuehlmann>
if it's not an URL, what is it?
<tbuehlmann>
I don't think you can shellout on heroku, right?
<lianj>
dunno
<lianj>
iirc you can
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<lianj>
tbuehlmann: you can, heroku console '`cat /proc/cpuinfo`' :)
<tbuehlmann>
nice
<tbuehlmann>
don't do it :P
<lianj>
hehe
stic02 [stic02!~stic02@odcvpn.csgsupport.com] has joined #ruby-lang
<andrewvos>
heroku run bash <-- something like that
fujimaru [fujimaru!~fujimaru@180.241.250.131] has joined #ruby-lang
<lianj>
anyhow, are you sure your forking does update @songs at all?
<andrewvos>
lianj: True
<andrewvos>
lianj: I should have written tests :|
<lianj>
besides the point that using EM for non blocking io if youre using Thin already is prolly better idea
<lianj>
my first example (from above) does not update the ivar
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
ankurgel [ankurgel!~ankur@59.178.38.32] has joined #ruby-lang
<andrewvos>
:/
<injekt>
doesn't that only get populated when you restart?
MistyM [MistyM!MistyM@conference/code4lib/x-fdutvrivgywpzait] has joined #ruby-lang
<andrewvos>
injekt: Hope not
gnufied [gnufied!~gnufied@122.178.200.63] has joined #ruby-lang
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby-lang
naz [naz!~n@70.44.235.1.res-cmts.bus.ptd.net] has joined #ruby-lang
chimkan__ [chimkan__!~chimkan@184.175.39.28] has joined #ruby-lang
chimkan_ [chimkan_!~chimkan@184.175.39.28] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
<apeiros_>
injekt: did you write slop?
<apeiros_>
ah, yepp, github seems to say you did :)
bitrot [bitrot!~smd@rrcs-50-84-14-82.sw.biz.rr.com] has joined #ruby-lang
<lianj>
andrewvos: please just use EM.system or em-http-request :P
<andrewvos>
lianj: Meh, I've already coded it
<andrewvos>
:)
<andrewvos>
lianj: Pull requests are turned on ;)
<kalleth>
mex = Mutex.new
<kalleth>
;)
<TTilus>
*sob* seems i need to communicate to VB.NET software on the client side of my webapp using DCOM+
<lianj>
andrewvos: coded what? the 4 lines fork crap?
chimkan [chimkan!~chimkan@184.175.39.28] has joined #ruby-lang
<andrewvos>
lianj: Yep
<TTilus>
anyone done anything like that?
PatrixCR [PatrixCR!~pcr@114.79.18.208] has joined #ruby-lang
<andrewvos>
TTilus: lolwhut
<andrewvos>
TTilus: Client side? YOu need to communicate with vb.net from JS?
<TTilus>
do i really need to go put together an activex control or somethng shit like that?
<TTilus>
andrewvos: essentially
<TTilus>
andrewvos: i guess its more or less impossible from js running within browser
<kalleth>
erm, what
<TTilus>
andrewvos: but applet/flash/activex/*duh* might do it
<kalleth>
doesn't IE have bindings to activex shite?
<kalleth>
like, js bindings?
<kalleth>
hm, no
<TTilus>
hum, ie only requirement when dcom is needed and those could do the job
<TTilus>
if there are any
<TTilus>
damn need to read more
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
MistyM [MistyM!MistyM@conference/code4lib/x-wucpzhwnyphlhfix] has joined #ruby-lang
rayners [rayners!~rayners@pool-151-196-35-20.balt.east.verizon.net] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<PatrixCR>
can someone please tell me why Kernel.class returns Module instead of Class?
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby-lang
<Mon_Ouie>
Because Kernel is not a class
<PatrixCR>
So, Kernel is what? a module?
savage- [savage-!~savage_@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
<Mon_Ouie>
Yep, just like Math or Enumerable
<apeiros_>
ruby actually told you what it is when you did Kernel.class…
<PatrixCR>
do you know a place where I can find Ruby's object hierarchy graph?
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<Mon_Ouie>
ri Class
MistyM [MistyM!MistyM@conference/code4lib/x-affvjezsabiwznns] has joined #ruby-lang
slimfit [slimfit!~slimfit@65-114-233-205.dia.static.qwest.net] has joined #ruby-lang
daystrom [daystrom!~daigoro@adsl-99-140-250-144.dsl.chcgil.sbcglobal.net] has joined #ruby-lang
singpolyma [singpolyma!~singpolym@69.171.154.34] has joined #ruby-lang
<PatrixCR>
a module's class is Module, a class' class is Class. Is there anything else?
<apeiros_>
yes
<apeiros_>
all the classes that are
<apeiros_>
[].class # => Array
<apeiros_>
etc.
<Mon_Ouie>
Also classes are modules
<Mon_Ouie>
Array.is_a? Module #=> true
<apeiros_>
that's because Class < Module
Skif_home [Skif_home!~Skif@72.1.92.57] has joined #ruby-lang
Skif_home [Skif_home!~Skif@72.1.92.57] has joined #ruby-lang
<apeiros_>
(Class inherits from Module --> Class < Module)
<PatrixCR>
I know about that
<PatrixCR>
what's shocking to me when I type Kernel.class and I got Module as the answer. I was like: WTF?
<heftig>
You can't instantiate a "Kernel"
<apeiros_>
and why'd that be? (the WTF)
<PatrixCR>
I thought all classes' class is Class. Didn't know that Kernel is not a class.
<PatrixCR>
but Module itself is a class, isn't it?
<apeiros_>
yes
<apeiros_>
and all classes' class is indeed Class
<PatrixCR>
man, this stuff is confusing for java programmer :D
<heftig>
module is a bit like a package. it can be used for namespacing
<apeiros_>
well, for a java programmer, it might also be surprising that: classes are object, that class methods are really instance methods too, just of a different class (the singleton_class)
<shevy>
PatrixCR you can think of Modules like crippled, stupid classes if that helps you
Sailias [Sailias!~jonathan@bas1-burlington02-1176191570.dsl.bell.ca] has joined #ruby-lang
<shevy>
classes can be used for namespacing too, just look at apeiros_ code :)
<heftig>
shevy: of course, that follows from Class < Module
<PatrixCR>
I know that classes are objects. When I first read it, I was totally shocked :D
<PatrixCR>
thanks everyone
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
voker57 [voker57!~voker57@128-70-10-216.broadband.corbina.ru] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
Manhose_ [Manhose_!~Manhose@188.251.92.26] has joined #ruby-lang
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby-lang
Nss [Nss!~mosca@host230-31-dynamic.51-79-r.retail.telecomitalia.it] has joined #ruby-lang
<PatrixCR>
One more thing. Is "metaclass" the same as "singleton class"?
<Mon_Ouie>
Depends. In Ruby it is (or has been) used for that too, but usually it means a class whose instances are classes too
<Mon_Ouie>
singleton class is the term used in Ruby method names
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby-lang
<rue>
In Ruby-related texts, they are indeed the same thing
<PatrixCR>
so, if: foo = Foo.new. and then I do: class << foo ... end , it alters the foo's metaclass, no?
plusk [plusk!~plusk@201-34-216-120.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby-lang
<Mon_Ouie>
Right
LanceHaig [LanceHaig!4b72c7ec5c@foresight/member/lhaig] has joined #ruby-lang
<PatrixCR>
hm, I'm starting to get it now. :D :D :D
<PatrixCR>
thanks mon_ouie, thanks everyone
rahult_ [rahult_!~rahult_@182-239-190-68.ip.adam.com.au] has joined #ruby-lang
MistyM [MistyM!MistyM@conference/code4lib/x-zicmlicwjmrtfgpf] has joined #ruby-lang
PatrixCR [PatrixCR!~pcr@114.79.18.208] has quit [#ruby-lang]
malev_ [malev_!~malev@190.210.138.237] has joined #ruby-lang
lordofthedance [lordofthedance!~daddycool@wnpgmb0909w-ad01-151-60.dynamic.mtsallstream.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
workmad3 [workmad3!~workmad3@vpn202.its.manchester.ac.uk] has joined #ruby-lang
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby-lang
kurko_ [kurko_!~kurko@201.35.92.37] has joined #ruby-lang
malev [malev!~malev@74.10.95.2] has joined #ruby-lang
divoxx [divoxx!~divoxx@189.59.0.26] has joined #ruby-lang
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby-lang
mosca_ [mosca_!~mosca@2001:1418:16b:1:e00c:2cff:fefd:70c6] has joined #ruby-lang
savage- [savage-!~savage_@istep.static.monkeybrains.net] has joined #ruby-lang
elux [elux!~peter@96.45.198.150] has joined #ruby-lang
voker57_ [voker57_!~voker57@128-70-179-86.broadband.corbina.ru] has joined #ruby-lang
turboladen [turboladen!~kvirc@12.104.144.2] has joined #ruby-lang
kurko__ [kurko__!~kurko@201.35.92.37] has joined #ruby-lang
kurko__ [kurko__!~kurko@201.35.92.37] has quit [#ruby-lang]
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
headius [headius!~headius@71-210-148-40.mpls.qwest.net] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
qpingu [qpingu!~Adium@99-45-170-65.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
mytrile [mytrile!~mytrile@77.70.29.148] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
Heimidal_ [Heimidal_!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
joast [joast!~rick@98.145.65.117] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
harlanhorbach [harlanhorbach!~harlanhor@174-127-47-2.static-ip.telepacific.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
skiz [skiz!~skiz@216-75-227-188.static.wiline.com] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-94-179.ssp.dialog.net.pl] has joined #ruby-lang
<necromancer>
how do you test for a certain exception being raised in RSpec? I want to see if a method in my model throws a custom exception that I created, but when I use lead.save.should raise_error(DuplicateLeadError), i get "expected Leader::DuplicateLeadError, got #<NoMethodError: undefined method `call' for true:TrueClass>"
<nofxx>
necromancer, wrap it in lambda
<nofxx>
lambda { wow! }.should raise_error
<necromancer>
uhh
<necromancer>
so lambda { lead.save! }.should raise_error?
<nofxx>
yup.. you need a scope to return from
<necromancer>
oh that makes sense now :)
<necromancer>
thanks nofxx
<Mon_Ouie>
Lack of quotes gets confusing at some point
<nofxx>
necromancer, cool, np
<Mon_Ouie>
(Because 'raise_error?' is a valid method name)
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
andkerosine [andkerosine!~donnie@adsl-067-034-186-046.sip.mco.bellsouth.net] has joined #ruby-lang
<andkerosine>
Fun fact: you need 323 zeroes before a 1 before Ruby will incorrectly recognize it as equaling zero.
<rue>
For a float, you mean?
<andkerosine>
Mm-hmm.
<andkerosine>
I realize it's architecture-dependent.
rUBYbuby [rUBYbuby!~nekid@117.193.230.49] has joined #ruby-lang
<rUBYbuby>
json is installed! time to celebrate
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
MistyM_ [MistyM_!MistyM@conference/code4lib/x-visykoxixofhrewm] has joined #ruby-lang
jredville [jredville!~james.dev@173-160-211-253-Washington.hfc.comcastbusiness.net] has joined #ruby-lang
rUBYbuby [rUBYbuby!~nekid@117.193.230.49] has joined #ruby-lang
rUBYbuby [rUBYbuby!~nekid@117.193.230.49] has joined #ruby-lang
chimkan [chimkan!~chimkan@76-10-173-74.dsl.teksavvy.com] has joined #ruby-lang
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
carlosed [carlosed!~carlosed@5ac60f73.bb.sky.com] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
plusk [plusk!~plusk@201-34-216-120.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
kurko__ [kurko__!~kurko@201.35.92.37] has joined #ruby-lang
Defusal [Defusal!Defusal@dsl-240-253-01.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!Defusal@unaffiliated/ecnerifed] has joined #ruby-lang
grandy [grandy!~user@c-98-234-61-119.hsd1.ca.comcast.net] has joined #ruby-lang
<grandy>
hello i'm writing some code w/ mixins and there is some odd behavior (odd to me) where a method is not found. This is when I call a method defined by a previously included module from a different module... as in C includes A and B, and A has the method foo. When an instance of B tries to call foo() it complains that the method can't be found
<andkerosine>
You'll likely need to post your code for a proper diagnosis.
Slackwise [Slackwise!~Slackwise@c-98-228-245-82.hsd1.il.comcast.net] has joined #ruby-lang
SuperTa__ [SuperTa__!~supertaz_@38.99.52.59] has joined #ruby-lang
Slackwise [Slackwise!~Slackwise@c-98-228-245-82.hsd1.il.comcast.net] has joined #ruby-lang
<Mon_Ouie>
Why would B get the method from A?
<shevy>
code code code we must see code!
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
<grandy>
Mon_Ouie: ahh i thought the context of execution was inside C
<grandy>
Mon_Ouie: which would mean that C saw all methods, so that even if a method was defined inside A, since C called the method from B it would also see hte method in A
tychobrailleur_ [tychobrailleur_!~sebastien@176.61.72.130] has joined #ruby-lang
gigamonk` [gigamonk`!~user@adsl-99-24-217-187.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
<rue>
Willejs_: I dunno about your context (what is a mash?), but #map won't produce a Hash, it'll give you an Array
<rue>
And I dunno what “doesn't work” means
<Willejs_>
haha, right, i think i need to use #collect
<grandy>
does anyone know if there's a way to implement an after filter? ie, a method that is called after every other method?
<Willejs_>
and i wasn't declaring value as a variable
<rue>
That's an alias for #map
harlanhorbach [harlanhorbach!~harlanhor@174.127.47.2] has joined #ruby-lang
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
<MistyM_>
#collect just makes so much more sense to me than #map
<MistyM_>
Not coming from perl anyway
<rue>
It implies more selection to me.
<MistyM_>
#select implies selection to me ;)
<lianj>
i used collect too at first, but map is just shorter :p
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<MistyM_>
Short is nice :b
<MistyM_>
PS - lianj, can I snag your OpenAL ffi mappings at some point?
<lianj>
sure, didnt i sent you the source?
<MistyM_>
If you did I totally forgot.
<MistyM_>
(Which is entirely possible. I've only been semi of this earth the past few weeks.)
<lianj>
hm, maybe i prepared it but didnt. hold on
<MistyM_>
Thanks!
<shevy>
MistyM_ for me it's the other way, I always loved .map and hated .collect
<shevy>
as the years passed by though, I settled for the shorter variants... .map vs. .collect ... .size vs. .length dunno of any other commonly used method name that has an alias hmm
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby-lang
ankurgel [ankurgel!~ankur@59.178.59.54] has joined #ruby-lang
grandy [grandy!~user@c-98-234-61-119.hsd1.ca.comcast.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
<lianj>
MistyM_: pm
<Spooner>
shevy: I use #size for collections and #length for strings. Oddly, I've recently moved from #select to #find_all because RubyMine marks #select as an error (wrong number of arguments) for no good reason :)
<shevy>
hmm odd
<shevy>
I normally love the _ token, but in #find_all I hate it ... I tend to prefer #select. Curious that the editor has an impact on the code produced :) for me too, when I look at my ruby code in default geany, I cant stand it
<shevy>
also in vim
<shevy>
it only looks nice in bluefish :P
<Spooner>
shevy: What about _ in #find_all?
<shevy>
I need to press that Control key on the left side
<shevy>
I hate that!
<Spooner>
Oh right, I thgouht you meant the _ variable.
<shevy>
ah that one is ok, even though I have to press the control key... I like that it kinda has no name. so I dont have to come up with a name
<shevy>
I used to have variables like _tmp though
<shevy>
or _ary
curtism [curtism!~curtis@bas11-montreal02-1128531121.dsl.bell.ca] has joined #ruby-lang
<TTilus>
coming from mathematics theres really alternative to .map ;)
dejongge [dejongge!~jonke@pD9E0D2B7.dip0.t-ipconnect.de] has joined #ruby-lang
<TTilus>
s/really/really no/
<TTilus>
*whoopsie*
<shevy>
nono dont sub it
<shevy>
it is more fun when you keep the sentence as is :)
<ged>
Does anyone know how to ask Psych what versions of YAML it supports?
<rue>
Interesting
<drbrain>
ged: tenderlove doesn't know
<drbrain>
ged: but he says 1.0 and 1.1 are supported
<rue>
There's the LIBYAML_VERSION constant, but that's probably not helpful.
<rue>
Or, well, maybe it is.
Sailias [Sailias!~jonathan@bas1-burlington02-1176191570.dsl.bell.ca] has joined #ruby-lang
<ged>
I guess if you had a mapping of libyaml versions to YAML specs supported, it'd be useful.
Heimidal_ [Heimidal_!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
<ged>
I was just looking for an analogue of the old YAML::SUPPORTED_YAML_VERSIONS
niklasb [niklasb!~codeslay0@p5B310B68.dip0.t-ipconnect.de] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
andkerosine [andkerosine!~donnie@adsl-067-034-186-046.sip.mco.bellsouth.net] has quit [#ruby-lang]
gregf [gregf!~gregf@207.5.168.94] has joined #ruby-lang
fritzek [fritzek!~fritzek@81.92.21.242] has joined #ruby-lang
brushbox [brushbox!~brushbox@174.24.233.220.static.exetel.com.au] has joined #ruby-lang
magicbeef [magicbeef!~magicbeef@c-76-102-230-45.hsd1.ca.comcast.net] has joined #ruby-lang
mytrile [mytrile!~mytrile@77.70.29.148] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby-lang
slimfit [slimfit!~slimfit@65-114-233-201.dia.static.qwest.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
mksm [mksm!~ramorim@pdpc/supporter/professional/mksm] has joined #ruby-lang
anjen [anjen!~anjen@99-29-152-246.lightspeed.bcvloh.sbcglobal.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
DEac- [DEac-!~deac@81.16.104.86] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has quit [#ruby-lang]
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
jfelchner [jfelchner!~jfelchner@207.207.28.55] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
jkprg [jkprg!~jarda@bzq-218-174-178.red.bezeqint.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
malev_ [malev_!~malev@190.210.138.237] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
flak [flak!~rippa@87-253-29-75.pppoe.yaroslavl.ru] has joined #ruby-lang
pxjorge [pxjorge!~pxjorge@a89-152-235-119.cpe.netcabo.pt] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
benanne [benanne!~rijdier@ip-83-134-149-44.dsl.scarlet.be] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@65.209.85.34] has joined #ruby-lang
lordofthedance [lordofthedance!~daddycool@wnpgmb0910w-ad02-159-230.dynamic.mtsallstream.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
singpolyma [singpolyma!~singpolym@69.171.154.34] has joined #ruby-lang
divoxx [divoxx!~divoxx@187.107.57.175] has joined #ruby-lang
y3llow [y3llow!~y3llow@114.36.231.66] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
mytrile [mytrile!~mytrile@77.70.29.148] has joined #ruby-lang
qpingu [qpingu!~Adium@67.218.117.238] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby-lang
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@mo-65-41-196-26.sta.embarqhsd.net] has joined #ruby-lang
slimfit [slimfit!~slimfit@50-76-131-66-static.hfc.comcastbusiness.net] has joined #ruby-lang
brownies [brownies!~brownies@216.38.150.34] has joined #ruby-lang
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@203.48.101.90] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-ngbtdxtpusclmyvl] has joined #ruby-lang
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
benanne [benanne!~rijdier@ip-213-49-83-244.dsl.scarlet.be] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
ddollar [ddollar!~ddollar@pdpc/supporter/professional/ddollar] has quit ["Textual IRC Client: http://www.textualapp.com/"]
slimfit [slimfit!~slimfit@50-76-131-66-static.hfc.comcastbusiness.net] has joined #ruby-lang
anjen [anjen!~anjen@99-29-152-246.lightspeed.bcvloh.sbcglobal.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.222.245] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
kurko_ [kurko_!~kurko@201.35.92.37] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-216-75-94.lnse1.ken.bigpond.net.au] has joined #ruby-lang
MistyM [MistyM!MistyM@conference/code4lib/x-esxsdulevrhugysj] has joined #ruby-lang
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
tbuehlmann [tbuehlmann!~tobias@unaffiliated/tovias] has joined #ruby-lang
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
sirfilip [sirfilip!~filip@77.29.2.213] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-216-75-94.lnse1.ken.bigpond.net.au] has joined #ruby-lang
harlanhorbach [harlanhorbach!~harlanhor@174-127-47-2.static-ip.telepacific.net] has joined #ruby-lang
kurko_ [kurko_!~kurko@201.35.92.37] has joined #ruby-lang
divoxx [divoxx!~divoxx@187.107.57.175] has joined #ruby-lang
twittard_ [twittard_!~twittard@vpn.lax.truecarcorp.com] has joined #ruby-lang
kurko__ [kurko__!~kurko@201.35.92.37] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
lordofthedance [lordofthedance!~daddycool@wnpgmb0910w-ad02-159-230.dynamic.mtsallstream.net] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang