Projects

Ticket #472 (closed defect: fixed)

Opened 2 years ago

Last modified 9 months ago

built-in rss library doesn't work in HEAD

Reported by: sergio@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.11
Component: MacRuby Keywords:
Cc:

Description

Hiya!

Having problems using de built-in rss library. Snippet attached.

Thanks!

Attachments

rss-parse.rb Download (243 bytes) - added by sergio@… 2 years ago.

Change History

Changed 2 years ago by sergio@…

Changed 14 months ago by pthomson@…

  • milestone changed from MacRuby 0.5 to MacRuby 1.0

Still an issue in trunk:

superclass mismatch for class RSS::Maker::RSS10::TaxonomyTopics (TypeError)

Changed 13 months ago by pthomson@…

Printing out the names of the classes expected gives a surprising result:

superclass mismatch for class RSS::Maker::RSS10::TaxonomyTopics - got RSS::Maker::TaxonomyTopicModel::TaxonomyTopicsBase, expected RSS::Maker::TaxonomyTopicsModel::TaxonomyTopicsBase

Apparently there are two instances of TaxonomyTopicsBase at two different locations in memory. Mysterious.

Changed 9 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 1.0 to MacRuby 0.11

I'm getting the same output as CRuby 1.9 with MacRuby master:

$ DYLD_LIBRARY_PATH=. ./macruby t4.rb 
/Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/1.9.2/rss/rexmlparser.rb:24:in `_parse': This is not well formed XML
Missing end tag for 'link' (got "head")
Line: 29
Position: 1131
Last 80 unconsumed characters:
 (RSS::NotWellFormedError)
	from /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/1.9.2/rss/parser.rb:164:in `parse'
	from /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/1.9.2/rss/parser.rb:79:in `parse:'
	from /Users/lrz/src/macruby-master/t4.rb:9:in `<main>'
$ ruby1.9 t4.rb 
/usr/local/lib/ruby/1.9.1/rss/rexmlparser.rb:24:in `rescue in _parse': This is not well formed XML (RSS::NotWellFormedError)
Missing end tag for 'link' (got "head")
Line: 29
Position: 1131
Last 80 unconsumed characters:
	from /usr/local/lib/ruby/1.9.1/rss/rexmlparser.rb:21:in `_parse'
	from /usr/local/lib/ruby/1.9.1/rss/parser.rb:164:in `parse'
	from /usr/local/lib/ruby/1.9.1/rss/parser.rb:79:in `parse'
	from t4.rb:9:in `<main>'

So the bug is probably gone now! Closing.

Note: See TracTickets for help on using tickets.