diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:42:46 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:42:46 +0000 |
commit | 94031b9628f4a5e02df018a29111051a97a7a2cb (patch) | |
tree | 761525f578203bcad1eb01106ddd29b57d30b2c5 /lib/rss/maker/base.rb | |
parent | 7556f66e9cd2eaca3c7cc114f56be732c8845086 (diff) | |
download | ruby-94031b9628f4a5e02df018a29111051a97a7a2cb.tar.gz |
* lib/rss/maker/base.rb (RSS::Maker::RSSBase#to_feed): raise
exception not return nil if RSS::Maker.make can't get required information.
* test/rss/rss-assertions.rb: follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/maker/base.rb')
-rw-r--r-- | lib/rss/maker/base.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/rss/maker/base.rb b/lib/rss/maker/base.rb index 0713d276a4..2262a764ec 100644 --- a/lib/rss/maker/base.rb +++ b/lib/rss/maker/base.rb @@ -420,11 +420,8 @@ module RSS setup_xml_stylesheets(feed) setup_elements(feed) setup_other_elements(feed) - if feed.valid? - feed - else - nil - end + feed.validate + feed end private |