diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-17 10:13:25 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-17 10:13:25 +0000 |
| commit | c3adb681b3e5281044d5bebd91851fd9afea0b8a (patch) | |
| tree | 847090e856c9901ab2cc19251c179b9b0985e65b /sample/rss/blend.rb | |
| parent | 8c9c2f26929b0f077188546492d38dddaa966b9a (diff) | |
| download | ruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.tar.gz ruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.tar.xz ruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.zip | |
* lib/rss, test/rss:
- supported Atom.
- bumped version 0.1.6 to 0.1.7.
* sample/rss/convert.rb: added new sample.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/rss/blend.rb')
| -rwxr-xr-x | sample/rss/blend.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sample/rss/blend.rb b/sample/rss/blend.rb index 2fbd6efed..7d6b23961 100755 --- a/sample/rss/blend.rb +++ b/sample/rss/blend.rb @@ -64,6 +64,12 @@ rss = RSS::Maker.make("1.0") do |maker| item.setup_maker(maker.items) end end + + maker.items.each do |item| + item.title.content ||= "UNKNOWN" + item.link ||= "UNKNOWN" + end + maker.items.do_sort = true maker.items.max_size = 15 end |
