summaryrefslogtreecommitdiff
path: root/sample/rss
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 03:03:05 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 03:03:05 +0000
commit71976790ec02f88d9fb51fab151312124f6df223 (patch)
tree0a70c0031e53d40f05e846486b25f91070274d66 /sample/rss
parent43009063c70fe62028eb035e67a06863b98dc540 (diff)
* lib/rss, sample/rss, test/rss:
- 0.1.7 -> 0.1.8. - supported <itunes:XXX>. - reverted backward incompatibility API changes introduced 0.1.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/rss')
-rwxr-xr-xsample/rss/blend.rb2
-rwxr-xr-xsample/rss/list_description.rb4
-rwxr-xr-xsample/rss/rss_recent.rb3
3 files changed, 5 insertions, 4 deletions
diff --git a/sample/rss/blend.rb b/sample/rss/blend.rb
index 7d6b239..351f6f3 100755
--- a/sample/rss/blend.rb
+++ b/sample/rss/blend.rb
@@ -66,7 +66,7 @@ rss = RSS::Maker.make("1.0") do |maker|
end
maker.items.each do |item|
- item.title.content ||= "UNKNOWN"
+ item.title ||= "UNKNOWN"
item.link ||= "UNKNOWN"
end
diff --git a/sample/rss/list_description.rb b/sample/rss/list_description.rb
index 5f7069f..d4b98a9 100755
--- a/sample/rss/list_description.rb
+++ b/sample/rss/list_description.rb
@@ -59,9 +59,9 @@ ARGV.each do |fname|
rss = rss.to_rss("1.0") do |maker|
maker.channel.about ||= maker.channel.link
- maker.channel.description.content ||= "No description"
+ maker.channel.description ||= "No description"
maker.items.each do |item|
- item.title.content ||= "No title"
+ item.title ||= "No title"
item.link ||= "UNKNOWN"
end
end
diff --git a/sample/rss/rss_recent.rb b/sample/rss/rss_recent.rb
index 1b02835..38b57c3 100755
--- a/sample/rss/rss_recent.rb
+++ b/sample/rss/rss_recent.rb
@@ -58,8 +58,9 @@ ARGV.each do |fname|
rss = rss.to_rss("1.0") do |maker|
maker.channel.about ||= maker.channel.link
- maker.channel.description.content ||= "No description"
+ maker.channel.description ||= "No description"
maker.items.each do |item|
+ item.title ||= "UNKNOWN"
item.link ||= "UNKNOWN"
end
end