summaryrefslogtreecommitdiff
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:26:41 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:26:41 +0000
commit4a396a8b7a1d806b9f3893ffd065536695245b1c (patch)
tree88c0ae0648d8f16759a9bb51d2ef1ae900c083ca /lib/rss/rss.rb
parentf1c37d2bf90986beddfc6fa60f45c1c55a6de94f (diff)
* 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
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 7ccf1aefa1..7acbef275d 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -655,7 +655,6 @@ EOC
def setup_maker_elements(parent)
self.class.have_children_elements.each do |name, plural_name|
- real_name = name.sub(/^[^_]+_/, '')
if parent.respond_to?(plural_name)
target = parent.__send__(plural_name)
__send__(plural_name).each do |elem|
@@ -894,9 +893,7 @@ EOC
channel.setup_maker(maker) if channel
image.setup_maker(maker) if image
textinput.setup_maker(maker) if textinput
- items.each do |item|
- item.setup_maker(maker)
- end
+ super(maker)
end
end