From: Kouhei Sutou Date: 2011-01-19T00:01:30+09:00 Subject: Re: RSS Maker : LastBuildDate / TTL / Copyright Hi, In <73f90e19374a3d055da0b4f668ead97d@ruby-forum.com> "RSS Maker : LastBuildDate / TTL / Copyright" on Tue, 18 Jan 2011 23:43:37 +0900, Mike Flint wrote: > Does anyone know how to code an RSS maker to generate additional tags > for the header of the feed? The gem has a method for 'lastBuildDate=' > but I cannot get it to work ... > > ************************************************ > content = RSS::Maker.make(Version) do |m| > m.channel.title = "xxxx" > m.channel.link = "http://yyyyyyyy" > m.channel.description = "zzzzz" > m.channel.lastBuildDate= Time.now > ************************************************ > > - produces: > > /usr/lib/ruby/1.8/rss/0.9.rb:107:in `lastBuildDate=': value 14:22:44 +0000 2011> of tag is not available. > (RSS::NotAvailableValueError) What Ruby version are you using? I tried it in Ruby 1.8.7 and worked well. > I can't find anything that might set the ttl or copyright values. m.channel.ttl = 29 m.channel.copyright = "XXX" You need to specify "2.0" as "version" of RSS::Maker.make(version). Thanks, -- kou