<% base_url = "http://melpa.milkbox.net/" %> MELPA package updates http://melpa.milkbox.net en-us 40 News about package updates <% require 'json' require 'time' require 'ostruct' JSON.parse(File.open("../archive.json").read).each do |pkgname, info| versions, deps, descr, pkgtype = info version = versions.max.to_s package = OpenStruct.new package.name = pkgname package.version = version package.build_time = Time.new(version[0..3].to_i, version[4..5].to_i, version[6..7].to_i) package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar") %> Package update: <%= package.name %> is now at version <%= package.version %> The <%= package.name %> package in MELPA has been updated to version <%= package.version %>. <%= package.build_time.rfc822 %> <%= package.url %> <%= package.url %> <% end %>