From: daz Date: 2004-02-09T09:44:51+09:00 Subject: Re: HTML Parsing (round 2) cc: Johannes Brodwall (email) ------------------------------ In comp.lang.ruby NG / ruby-talk ML, "Martin Hart" wrote: > [...] > Then I downloaded htmltools from rubyforge which first fails to install > because the sgml-parser.rb file is not in "html/sgml-parser" which is where > it is supposed(?) to be. > > Anyway, after moving files to where I presume they should be installed to, the > htmltools library fails to install because the tests do not run (all 15 unit > tests fail with "NameError: uninitialized constant > HTML::TestStackingParser"). > > My next step is to just install the files by hand and then try again - but I > would be interested to hear if anybody else has experienced similar > installation problems - or if I am just missing something obvious? > In ruby-htmltools/test/tc_stacking-parser.rb, replace line 35: @parser = HTML::TestStackingParser.new(true, self) with: @parser = TestStackingParser.new(true, self) ---- Occurrences of "set_up" have been changed to "setup" for Test::Unit. For consistency, all "tear_down" should be changed to "teardown". ---- It seems that Johannes' idea is to include sgml-parser with the updated htmltools library. (It's in his CVS tarball) IMHO, this would make a good home for the whole of html-parser (patched) (only 31Kb including docs). As long as the original author and packager are credited in the README, I don't know that anyone would object on grounds other than duplication of dormant library code. Development could be continued here. There should be no need (?) to distribute the RDoc output now that it's built into Ruby. daz