diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-14 07:35:01 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-14 07:35:01 +0200 |
commit | aa524e806cc317793b00a74d45dd7ca03e27ba16 (patch) | |
tree | 07d7e27a85d0163b6efc6ae7115236c9b7ea4c5c /atom.rb | |
parent | 85543db60fe31f32217667240333a31c70351976 (diff) |
bugfix: atom didn't worked with git
Diffstat (limited to 'atom.rb')
-rwxr-xr-x | atom.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -43,13 +43,13 @@ feed.updated = File.new("data.yaml").mtime feed.authors << Atom::Person.new(:name => 'dudle automatic notificator') feed.links << Atom::Link.new(:href => SITEURL + "atom.cgi", :rel => "self") -log = VCS.longhistory "." -log.each {|rev,time,comment| +log = VCS.history +log.reverse_each {|l| feed.entries << Atom::Entry.new do |e| - e.title = comment - e.links << Atom::Link.new(:href => "#{SITEURL}?revision=#{rev}") - e.id = "urn:#{poll.class}:#{poll.name}:rev=#{rev}" - e.updated = time + e.title = l.comment + e.links << Atom::Link.new(:href => "#{SITEURL}history.cgi?revision=#{l.rev}") + e.id = "urn:#{poll.class}:#{poll.name}:rev=#{l.rev}" + e.updated = l.timestamp end } |