From f134c6e386f5e0c90c71d6e5447ba450fe498038 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Wed, 25 Aug 2010 18:44:27 -0700 Subject: [PATCH] Regenerate download page. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 9d38bff..8984f58 100644 --- a/Rakefile +++ b/Rakefile @@ -151,17 +151,19 @@ jasmine.version_= { require 'digest/sha1' download_html = "\n" - download_html += "\n\n" + download_html += "
VersionSizeDateSHA1
\n\n" Dir.glob('pages/downloads/*.zip').sort.reverse.each do |f| sha1 = Digest::SHA1.hexdigest File.read(f) fn = f.sub(/^pages\//, '') version = /jasmine-standalone-(.*).zip/.match(f)[1] + download_html += "\n" download_html += "\n" download_html += "\n" download_html += "\n" download_html += "\n" download_html += "\n" + download_html += "\n" end download_html += "
VersionSizeDateSHA1
#{fn.sub(/downloads\//, '')}#{version}#{File.size(f) / 1024}k#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")}#{sha1}
\n"