aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss/maker/entry.rb
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 /lib/rss/maker/entry.rb
parent43009063c70fe62028eb035e67a06863b98dc540 (diff)
downloadruby-71976790ec02f88d9fb51fab151312124f6df223.tar.gz
* 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 'lib/rss/maker/entry.rb')
-rw-r--r--lib/rss/maker/entry.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/rss/maker/entry.rb b/lib/rss/maker/entry.rb
index baa22c5bf1..be648832c3 100644
--- a/lib/rss/maker/entry.rb
+++ b/lib/rss/maker/entry.rb
@@ -75,12 +75,6 @@ module RSS
end
end
- def have_required_values?
- set_default_values do
- super and title.have_required_values?
- end
- end
-
private
def required_variable_names
%w(id updated)
@@ -100,7 +94,7 @@ module RSS
if authors.all? {|author| !author.have_required_values?}
vars << "author"
end
- vars << "title" unless title.have_required_values?
+ vars << "title" unless title {|t| t.have_required_values?}
vars
end
end
@@ -126,9 +120,11 @@ module RSS
self.id ||= link || @maker.channel.id
links.replace(@maker.channel.links) if keep[:links].empty?
unless keep[:rights].variable_is_set?
- @rights = @maker.channel.rights
+ @maker.channel.rights {|r| @rights = r}
+ end
+ unless keep[:title].variable_is_set?
+ @maker.channel.title {|t| @title = t}
end
- @title = @maker.channel.title unless keep[:title].variable_is_set?
self.updated ||= @maker.channel.updated
super(&block)
ensure