summaryrefslogtreecommitdiffstats
path: root/lib/rss
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 09:22:55 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 09:22:55 +0000
commitb1d2fae232dd11135ca737087896e91873faaf09 (patch)
treedbe0db9ee9de40c41d247a05c275e50fb74a8f1d /lib/rss
parent1582e33aef02c48241807425781bda62152ee06a (diff)
downloadruby-b1d2fae232dd11135ca737087896e91873faaf09.tar.gz
ruby-b1d2fae232dd11135ca737087896e91873faaf09.tar.xz
ruby-b1d2fae232dd11135ca737087896e91873faaf09.zip
* lib/rss/maker.rb, lib/rss/maker/0.9.rb,
test/test_maker_*.rb: add RSS::Maker.supported? git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23450 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 ed3fff47d..a7ee200b3 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 ed992028c..aede4d7c2 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