From: ara.t.howard@... Date: 2006-02-14T08:52:49+09:00 Subject: Re: xx lib On Tue, 14 Feb 2006, Joel VanderWerf wrote: > ara.t.howard@noaa.gov wrote: >> On Tue, 14 Feb 2006, Joel VanderWerf wrote: >> >>> ara.t.howard@noaa.gov wrote: >>> >>>> http://rubyforge.org/frs/download.php/8234/xx-0.1.0.tgz >>> >>> I'd like to play around with this, as an alternative to Amrita. >>> >>> But the tests are broken because here is no sample dir installed with >>> the gem. Is this fixable with gems? >> >> hmmm. i'm not sure what to do - but i'm open to suggestion! maybe i >> should >> just reloate the samples directory into the test directory? >> >> for now you can just grab the tarball - sorry for inconvenience. >> >> cheers. >> >> -a >> > > Tnx! tests pass now. > > However, the example at the end of xx.rb seems to be failing: > > $ ruby lib/xx.rb > ------------------------------------------ > ------------------------------------------ > lib/xx.rb:200:in `method_missing': undefined method `cdata_' for [["0", > "1", "2"], ["a", "b", "c"]]:Table (NoMethodError) > from lib/xx.rb:704:in `doc' > from lib/xx.rb:72:in `create' > from lib/xx.rb:48:in `tracking_additions' > from lib/xx.rb:71:in `create' > from (eval):10:in `script_' > from lib/xx.rb:208:in `method_missing' > from lib/xx.rb:704:in `doc' > from lib/xx.rb:72:in `create' > ... 10 levels... > from lib/xx.rb:578:in `xhtml_' > from lib/xx.rb:708:in `to_xhtml' > from lib/xx.rb:724 > from lib/xx.rb:722 oops! typo. here's a fix harp:~/xx-0.1.0/xx-0.1.0 > diff -u lib/xx.rb.org lib/xx.rb --- lib/xx.rb.org 2006-02-13 16:50:38.000000000 -0700 +++ lib/xx.rb 2006-02-13 16:50:52.000000000 -0700 @@ -356,6 +356,7 @@ #--}}} end alias_method "c_", "xx_cdata_" + alias_method "cdata_", "xx_cdata_" def xx_parse_attributes string #--{{{ string = string.to_s i'll incorporate the fix into the next release - and hopefully figure out the test/sample bit too. cheers. -a -- judge your success by what you had to give up in order to get it. - h.h. the 14th dali lama