diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/rss/rss.rb | 10 | ||||
-rw-r--r-- | test/rss/test_version.rb | 2 |
3 files changed, 15 insertions, 4 deletions
@@ -1,3 +1,10 @@ +Wed Apr 13 23:40:21 2005 Kouhei Sutou <kou@cozmixng.org> + + * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4. + + * lib/rss/rss.rb (RSS::Element#converter): fixed converter + transmission bug. + Wed Apr 13 21:20:35 2005 WATANABE Hirofumi <eban@ruby-lang.org> * configure.in (mingw32): extract msvcr*.dll from objdump result. diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index f9740a1c33..9ad4f4aeb6 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -66,7 +66,7 @@ require "rss/xml-stylesheet" module RSS - VERSION = "0.1.3" + VERSION = "0.1.4" URI = "http://purl.org/rss/1.0/" @@ -523,8 +523,12 @@ EOC def converter=(converter) @converter = converter - children.each do |child| - child.converter = converter unless child.nil? + targets = children.dup + self.class.have_children_elements.each do |variable_name, plural_name| + targets.concat(__send__(plural_name)) + end + targets.each do |target| + target.converter = converter unless target.nil? end end diff --git a/test/rss/test_version.rb b/test/rss/test_version.rb index 9d3bcb3652..c4e83ac30d 100644 --- a/test/rss/test_version.rb +++ b/test/rss/test_version.rb @@ -3,7 +3,7 @@ require "rss-testcase" module RSS class TestVersion < TestCase def test_version - assert_equal("0.1.3", ::RSS::VERSION) + assert_equal("0.1.4", ::RSS::VERSION) end end end |