views/atom.erb in geminabox-0.12.0 vs views/atom.erb in geminabox-0.12.1
- old
+ new
@@ -4,24 +4,25 @@
<title>Gem in a Box</title>
<link href="<%= url '/atom.xml' %>" rel="self" />
<link href="<%= url '/' %>" />
<id><%= url '/atom.xml' %></id>
<% @gems.by_name do |name, versions| %>
- <% spec = spec_for(name, versions.newest.number) %>
+ <% newest_gem = versions.newest %>
+ <% spec = spec_for(name, newest_gem.number, newest_gem.platform) %>
<entry>
<id><%= name %></id>
<updated><%= spec.date.w3cdtf %></updated>
<title><%= name %> (<%= versions.size == 1 ? versions.oldest.number : "#{versions.oldest.number} - #{versions.newest.number}" %>)</title>
<author><name><%= spec.authors.join(", ") %></name></author>
<% versions.each do |version| %>
- <link href="<%= url "/gems/#{name}-#{version.number}.gem" %>" />
+ <link href="<%= url "/gems/#{version.gemfile_name}.gem" %>" />
<% end %>
</entry>
<% end %>
<updated>
<% if newest_gem = @gems.newest %>
- <%= spec_for(newest_gem.name, newest_gem.number).date.w3cdtf %>
+ <%= spec_for(newest_gem.name, newest_gem.number, newest_gem.platform).date.w3cdtf %>
<% else %>
<%= Date.today %>
<% end %>
</updated>
</feed>