diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-31 14:14:21 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-31 14:14:21 +0000 |
commit | d58d59b0a4fa6859a3d3efd1a9d40832c3007ecf (patch) | |
tree | f9ae1db068b4fe971550f6cb2afda5a2c399f2bd /lib/rss/syndication.rb | |
parent | c6cf2e24fe9895b84308374017100cb77900d6db (diff) | |
download | ruby-d58d59b0a4fa6859a3d3efd1a9d40832c3007ecf.tar.gz |
* lib/rss/maker/*.rb: added RSS Maker.
* test/rss/test_maker_*.rb: added tests for RSS Maker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/syndication.rb')
-rw-r--r-- | lib/rss/syndication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rss/syndication.rb b/lib/rss/syndication.rb index 75f612864d..b8200ad70d 100644 --- a/lib/rss/syndication.rb +++ b/lib/rss/syndication.rb @@ -34,7 +34,6 @@ module RSS alias_method(:_sy_updateFrequency=, :sy_updateFrequency=) def sy_updateFrequency=(new_value) - new_value = new_value.strip validate_sy_updateFrequency(new_value) if @do_validate self._sy_updateFrequency = new_value.to_i end @@ -65,6 +64,7 @@ module RSS SY_UPDATEFREQUENCY_AVAILABLE_RE = /\A\s*\+?\d+\s*\z/ def validate_sy_updateFrequency(value) + value = value.to_s.strip if SY_UPDATEFREQUENCY_AVAILABLE_RE !~ value raise NotAvailableValueError.new("updateFrequency", value) end |