2012-07-25 13:46:07 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<rss version="2.0"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
|
|
|
|
xmlns:atom="http://www.w3.org/2005/Atom">
|
|
|
|
<% base_url = "http://melpa.milkbox.net/" %>
|
|
|
|
<channel>
|
|
|
|
<title>MELPA package updates</title>
|
|
|
|
<link>http://melpa.milkbox.net</link>
|
|
|
|
<atom:link href="<%= base_url %>updates.rss" rel="self" type="application/rss+xml" />
|
|
|
|
<language>en-us</language>
|
|
|
|
<ttl>40</ttl>
|
|
|
|
<description>News about package updates</description>
|
|
|
|
<%
|
|
|
|
require 'json'
|
|
|
|
require 'time'
|
|
|
|
require 'ostruct'
|
2013-08-24 10:06:45 +00:00
|
|
|
packages = JSON.parse(File.open("archive.json").read).map do |pkgname, info|
|
2012-07-25 13:46:07 +00:00
|
|
|
versions, deps, descr, pkgtype = info
|
2012-09-01 13:02:10 +00:00
|
|
|
version = versions.join('.')
|
2012-07-25 13:46:07 +00:00
|
|
|
package = OpenStruct.new
|
|
|
|
package.name = pkgname
|
|
|
|
package.version = version
|
2013-01-15 16:17:45 +00:00
|
|
|
package.description = descr.gsub(/ \[source:.*$/, '')
|
2012-09-01 19:26:20 +00:00
|
|
|
hour_portion = versions[1] ? sprintf("%04d", versions[1]) : "0000"
|
2012-09-01 13:02:10 +00:00
|
|
|
package.build_time = Time.new(version[0..3].to_i, version[4..5].to_i, version[6..7].to_i, hour_portion[0..1].to_i, hour_portion[2..3].to_i)
|
2012-07-25 13:46:07 +00:00
|
|
|
package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar")
|
2012-07-26 14:45:04 +00:00
|
|
|
package.info_url = "#{base_url}##{pkgname}"
|
2013-08-17 08:00:27 +00:00
|
|
|
package
|
|
|
|
end
|
|
|
|
packages.sort_by { |p| p.version }.reverse[0..200].each do |package|
|
2012-07-25 13:46:07 +00:00
|
|
|
%>
|
|
|
|
<item>
|
2013-01-16 19:36:02 +00:00
|
|
|
<title><%= package.name %> (<%= package.version %>) --- <%= ERB::Util.html_escape package.description %></title>
|
2012-07-25 13:46:07 +00:00
|
|
|
<description>The <%= package.name %> package in MELPA has been updated to version <%= package.version %>.</description>
|
|
|
|
<pubDate><%= package.build_time.rfc822 %></pubDate>
|
|
|
|
<guid isPermaLink="true"><%= package.url %></guid>
|
2012-07-26 14:45:04 +00:00
|
|
|
<link><%= package.info_url %></link>
|
2012-07-25 13:46:07 +00:00
|
|
|
</item>
|
|
|
|
<% end %>
|
|
|
|
</channel>
|
2012-09-01 19:26:20 +00:00
|
|
|
</rss>
|