Un-hide release notes for 1.0.

Shade prerelease standalone versions in download list.
This commit is contained in:
Christian Williams 2010-09-14 13:42:38 -07:00
parent 1530ad25f9
commit c8d9fc562f
2 changed files with 4 additions and 3 deletions

View File

@ -152,13 +152,14 @@ jasmine.version_= {
require 'digest/sha1' require 'digest/sha1'
download_html = "<!-- START_DOWNLOADS -->\n" download_html = "<!-- START_DOWNLOADS -->\n"
download_html += "<table>\n<tr><th></th><th>Version</th><th>Size</th><th>Date</th><th>SHA1</th></tr>\n" download_html += "<table id=\"standalone-downloads\">\n<tr><th></th><th>Version</th><th>Size</th><th>Date</th><th>SHA1</th></tr>\n"
Dir.glob('pages/downloads/*.zip').sort.reverse.each do |f| Dir.glob('pages/downloads/*.zip').sort.reverse.each do |f|
sha1 = Digest::SHA1.hexdigest File.read(f) sha1 = Digest::SHA1.hexdigest File.read(f)
fn = f.sub(/^pages\//, '') fn = f.sub(/^pages\//, '')
version = /jasmine-standalone-(.*).zip/.match(f)[1] version = /jasmine-standalone-(.*).zip/.match(f)[1]
download_html += "<tr>\n" prerelease = /\.rc/.match(f)
download_html += prerelease ? "<tr class=\"rc\">\n" : "<tr>\n"
download_html += "<td class=\"link\"><a href='#{fn}'>#{fn.sub(/downloads\//, '')}</a></td>\n" download_html += "<td class=\"link\"><a href='#{fn}'>#{fn.sub(/downloads\//, '')}</a></td>\n"
download_html += "<td class=\"version\">#{version}</td>\n" download_html += "<td class=\"version\">#{version}</td>\n"
download_html += "<td class=\"size\">#{File.size(f) / 1024}k</td>\n" download_html += "<td class=\"size\">#{File.size(f) / 1024}k</td>\n"

2
pages

@ -1 +1 @@
Subproject commit 60e240ad40f5324225a59c4a28a70ad8606db7c0 Subproject commit 9ef772465fe1af3d1a75a7bd30558594686f02cc