1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/parser.rb, lib/rss/1.0.rb: accepted rdf:resource or

resource attribute in rdf:li.
* test/rss/test_parser.rb: added test for above change.
* lib/rss/dublincore.rb: reverted style.
* lib/rss/xmlparser.rb: normalized XMLParser class hierarchy.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2004-04-07 03:36:38 +00:00
parent 4ded52b623
commit 8dfa6fb0a8
9 changed files with 84 additions and 38 deletions

View file

@ -10,7 +10,6 @@ class String
end
end
require "rss/parser"
require "rss/1.0"
require "rss/2.0"
require "rss/dublincore"
@ -72,13 +71,14 @@ processing_time = Time.now - before_time
channels.sort do |x, y|
x[0] <=> y[0]
end[0..20].each do |title, items|
puts "Channel : #{title}" unless items.empty?
puts "Channel: #{title}" unless items.empty?
items.sort do |x, y|
x.title <=> y.title
end[0..10].each do |item|
puts " Item : #{item.title.shorten(50)}"
puts " Description : #{item.description.shorten(50)}"
puts " Item: #{item.title.shorten(50)}"
puts " Description: #{item.description.shorten(50)}"
end
end
puts "Processing Time : #{processing_time}s"
puts "Used XML parser: #{RSS::Parser.default_parser}"
puts "Processing time: #{processing_time}s"