mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/rss.rb (RSS::VERSION), test/rss/test_version.rb, NEWS:
0.2.3 -> 0.2.4.
* lib/rss/maker.rb, lib/rss/maker/, test/rss/test_maker_2.0.rb:
fixed a bug that RSS::Maker.make("0.9")'s item doesn't make some
elements if description is missed.
Reported by Michael Auzenne. Thanks!!!
* lib/rss/maker/0.9.rb, test/rss/test_maker_0.9.rb:
RSS::Maker.make("0.9") generates RSS 0.92 not RSS 0.91.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52273f82e5
commit
d7a4285e9d
13 changed files with 92 additions and 35 deletions
|
|
@ -4,8 +4,8 @@ module RSS
|
|||
module Maker
|
||||
module Atom
|
||||
class Feed < RSSBase
|
||||
def initialize
|
||||
super("1.0")
|
||||
def initialize(feed_version="1.0")
|
||||
super
|
||||
@feed_type = "atom"
|
||||
@feed_subtype = "feed"
|
||||
end
|
||||
|
|
@ -421,9 +421,9 @@ module RSS
|
|||
end
|
||||
end
|
||||
|
||||
add_maker("atom", Atom::Feed)
|
||||
add_maker("atom:feed", Atom::Feed)
|
||||
add_maker("atom1.0", Atom::Feed)
|
||||
add_maker("atom1.0:feed", Atom::Feed)
|
||||
add_maker("atom", "1.0", Atom::Feed)
|
||||
add_maker("atom:feed", "1.0", Atom::Feed)
|
||||
add_maker("atom1.0", "1.0", Atom::Feed)
|
||||
add_maker("atom1.0:feed", "1.0", Atom::Feed)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue