<% # NOTE: this file depends on constants defined in Rakefile require 'history' require 'date' require 'time' %> <?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <title><%= PROJECT_NAME %></title> <link><%= PROJECT_URL %></link> <description><%= PROJECT_DETAIL %></description> <% @history.each do |entry| link = HISTORY_URL + '#' + entry['Version'].to_html_anchor stamp = Time.parse entry['Date'].to_s rfc822 = stamp.strftime "%a, %d %b %Y 00:00:00 %Z" %> <item> <title>Version <%= entry['Version'] %> released</title> <link><%= link %></link> <guid><%= link %></guid> <description><%=ERB::Util.h entry.to_html %></description> <pubDate><%= rfc822 %></pubDate> </item> <% end %> </channel> </rss>