first I would have been (well I am) grateful of the library you have
contributed to the Ruby world (if only I was able to run it).
I was trying the example found on this entry:
http://tenderlovemaking.com/2009/04/05/testing-javascript-outside-the-browser/
And I get the following output:
1) Error:
test_options_populated_by_onload(OptionTagsAppendedTest):
NameError: uninitialized constant Nokogiri::XML::EntityDeclaration
/opt/local/lib/ruby/gems/1.8/gems/taka-0.0.1/lib/taka/dom/
document.rb:147:in `decorate'
/opt/local/lib/ruby/gems/1.8/gems/taka-0.0.1/lib/taka/dom.rb:38:in
`decorate'
/opt/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
document.rb:131:in `root'
/opt/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
document.rb:131:in `namespaces'
/opt/local/lib/ruby/gems/1.8/gems/taka-0.0.1/lib/taka/dom/
document.rb:5:in `getElementsByTagName'
test-jkt.rb:20:in `setup'
I installed both gems Nokogiri 1.4.1 and Taka 0.0.1 (still surprised
by this low version number since I read somewhere Taka was 1.0.0,
might be a joke?!) using the gem installer.
If it matters, my system is a Snow Leopard.
Well, the error says that it does not recognize
Nokogiri::XML::EntityDeclaration which is required by the Document
Module of Taka. I would say "of course!", the said object does not
exist in Nokogiri. Maybe a miss. But without that, I guess Taka is not
functional. Or am I missing something?
Regards,
Greg
I was quick to point out the error but I was not going enough deep
into things. I found the mistake. Well it is written above in the
previous
message. It is just that you declared a nx::EntityDeclaration on line
147 in document.rb of the Taka::DOM Module while the real name
of Nokogiri object is EntityDecl.
So changing the name to EntityDecl prevent the failure. I guess you
should harmonize the way you name classes.
Regards,
Greg
On Apr 13, 6:01 pm, greg <gregory.bl...@gmail.com> wrote:
> Hello dear developers of Taka,
>
> first I would have been (well I am) grateful of the library you have
> contributed to the Ruby world (if only I was able to run it).
>
> I was trying the example found on this entry:http://tenderlovemaking.com/2009/04/05/testing-javascript-outside-the...