summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 447f051e05..87a7b4d6d0 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 22:12:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (OptionParser#order!): call handlers iff matches
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