diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-19 16:12:45 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-19 16:12:45 +0000 |
| commit | cbe369479e9f65e1f46ae2350e73ef935e145e93 (patch) | |
| tree | 485e53f3169d084c1f54f9a704095a4952eb0542 /lib/rss/2.0.rb | |
| parent | faf34ad5b1b8cbe7e68cf6bfe091fae80e0c4438 (diff) | |
| download | ruby-cbe369479e9f65e1f46ae2350e73ef935e145e93.tar.gz ruby-cbe369479e9f65e1f46ae2350e73ef935e145e93.tar.xz ruby-cbe369479e9f65e1f46ae2350e73ef935e145e93.zip | |
* lib/rss/rss.rb:
- cleanup validation mechanism. Now, #XXX_validation is
needless.
- changed internal variable name RSS::Element::MODEL to
RSS::Element::MODELS.
- RSS::Element.install_model requires uri.
* lib/rss/0.9.rb: followed new validation API.
* lib/rss/1.0.rb: ditto.
* lib/rss/2.0.rb: ditto.
* lib/rss/content.rb: ditto.
* lib/rss/dublincore.rb: ditto.
* lib/rss/image.rb: ditto.
* lib/rss/syndication.rb: ditto.
* lib/rss/taxonomy.rb: ditto.
* lib/rss/trackback.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/2.0.rb')
| -rw-r--r-- | lib/rss/2.0.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rss/2.0.rb b/lib/rss/2.0.rb index 5b3feab30..8d76411df 100644 --- a/lib/rss/2.0.rb +++ b/lib/rss/2.0.rb @@ -11,21 +11,21 @@ module RSS ["ttl", :integer], ].each do |name, type| install_text_element(name, type) - install_model(name, '?') + install_model(name, "", '?') end [ %w(category categories), ].each do |name, plural_name| install_have_children_element(name, plural_name) - install_model(name, '*') + install_model(name, "", '*') end [ ["image", "?"], ["language", "?"], ].each do |name, occurs| - install_model(name, occurs) + install_model(name, "", occurs) end private @@ -58,14 +58,14 @@ module RSS ["author", "?"], ].each do |name, occurs| install_text_element(name) - install_model(name, occurs) + install_model(name, "", occurs) end [ ["pubDate", '?'], ].each do |name, occurs| install_date_element(name, 'rfc822') - install_model(name, occurs) + install_model(name, "", occurs) end alias date pubDate alias date= pubDate= @@ -74,7 +74,7 @@ module RSS ["guid", '?'], ].each do |name, occurs| install_have_child_element(name) - install_model(name, occurs) + install_model(name, "", occurs) end private |
