summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-13 14:48:00 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-13 14:48:00 +0000
commit18061401ccace4d94bccd8a69466ef129684ed8f (patch)
treeef6d0ddc6afcb45b76e13926356e071c32c64a2b
parentb665dfd531e76e8f1bfdc461d2c6c6cf88cb5d15 (diff)
* lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.
* lib/rss/rss.rb (RSS::Element#converter): fixed converter transmission bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--lib/rss/rss.rb10
-rw-r--r--test/rss/test_version.rb2
3 files changed, 15 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b871ef105..aa7f1cbd47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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