mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS Maker. * lib/rss/taxonomy.rb: supported RSS Maker. * lib/rss/maker.rb: added taxonomy module support. * lib/rss/rss.rb: adjusted to other element API. * lib/rss/1.0.rb: adjusted to other element API but backward compatibility is reserved. * lib/rss/0.9.rb: ditto. * test/rss/test_maker_taxo.rb: added test case for taxonomy module for RSS Maker. * test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic. * test/rss/test_setup_maker_1.0.rb: added backward compatibility test. * test/rss/test_setup_maker_0.9.rb: ditto. * test/rss/test_setup_maker_2.0.rb: ditto. * test/rss/rss-testcase.rb: added convenience method for setting up taxo:topic. * test/rss/rss-assertions.rb: added assertion for taxo:topic. * sample/rss/blend.rb: followed new API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1c37d2bf9
commit
4a396a8b7a
12 changed files with 326 additions and 46 deletions
|
@ -76,6 +76,10 @@ module RSS
|
|||
def full_name
|
||||
tag_name_with_prefix(TAXO_PREFIX)
|
||||
end
|
||||
|
||||
def maker_target(target)
|
||||
target.taxo_topics
|
||||
end
|
||||
|
||||
def to_s(need_convert=true, indent=calc_indent)
|
||||
rv = tag(indent) do |next_indent|
|
||||
|
@ -95,7 +99,7 @@ module RSS
|
|||
[]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
def children
|
||||
[@Bag]
|
||||
|
@ -183,6 +187,10 @@ module RSS
|
|||
end
|
||||
end
|
||||
|
||||
def maker_target(target)
|
||||
target.new_taxo_topic
|
||||
end
|
||||
|
||||
private
|
||||
def children
|
||||
[@taxo_link, @taxo_topics]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue