* lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bug

that RSS Maker doesn't accept 'false' as guid's isPermaLink.
  Reported by Joe Holt. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2009-08-24 12:32:24 +00:00
parent b3efcdcb7a
commit bcffee6938
3 changed files with 27 additions and 1 deletions

View file

@ -238,7 +238,7 @@ module RSS
setter = "#{var}="
if target.respond_to?(setter)
value = __send__(var)
if value
unless value.nil?
target.__send__(setter, value)
set = true
end