summaryrefslogtreecommitdiff
path: root/lib/rss
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 10:46:22 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 10:46:22 +0000
commit6a5794bd7cd44b897da117d24ef411190f7fe43a (patch)
treef064c736b014dd466fd4c1a5218226d3c2748135 /lib/rss
parentdf8d8394bae31933cdf521bed09990af68e2caf9 (diff)
merge r23450.
* lib/rss/maker.rb, lib/rss/maker/0.9.rb, test/test_maker_*.rb: add RSS::Maker.supported? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-rw-r--r--lib/rss/maker.rb4
-rw-r--r--lib/rss/maker/0.9.rb1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/rss/maker.rb b/lib/rss/maker.rb
index ed3fff47d8..a7ee200b32 100644
--- a/lib/rss/maker.rb
+++ b/lib/rss/maker.rb
@@ -27,6 +27,10 @@ module RSS
MAKERS.values.collect {|info| info[:maker]}.uniq
end
+ def supported?(version)
+ versions.include?(version)
+ end
+
private
# Can I remove this method?
def maker(version)
diff --git a/lib/rss/maker/0.9.rb b/lib/rss/maker/0.9.rb
index cc7db8c638..dc7dd2812b 100644
--- a/lib/rss/maker/0.9.rb
+++ b/lib/rss/maker/0.9.rb
@@ -501,6 +501,7 @@ module RSS
add_maker("0.9", "0.92", RSS092)
add_maker("0.91", "0.91", RSS091)
add_maker("0.92", "0.92", RSS092)
+ add_maker("rss0.9", "0.92", RSS092)
add_maker("rss0.91", "0.91", RSS091)
add_maker("rss0.92", "0.92", RSS092)
end