From 66fd66c514e402cdedc9e53b66f1d45e61858b68 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 15 Jan 2013 16:17:45 +0000 Subject: [PATCH] Nicer titles for updates.rss (and hence Twitter) --- html/updates.rss.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/updates.rss.erb b/html/updates.rss.erb index 2dd6e964..4d6c0057 100644 --- a/html/updates.rss.erb +++ b/html/updates.rss.erb @@ -21,13 +21,14 @@ package = OpenStruct.new package.name = pkgname package.version = version + package.description = descr.gsub(/ \[source:.*$/, '') hour_portion = versions[1] ? sprintf("%04d", versions[1]) : "0000" 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) package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar") package.info_url = "#{base_url}##{pkgname}" %> - Package update: <%= package.name %> is now at version <%= package.version %> + <%= package.name %> (<%= package.version %>) --- <%= package.description %> The <%= package.name %> package in MELPA has been updated to version <%= package.version %>. <%= package.build_time.rfc822 %> <%= package.url %>