Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Un-hide release notes for 1.0.

Shade prerelease standalone versions in download list.
  • Loading branch information...
commit c8d9fc562f93889b3c6a5c6521c4b257fc05bd78 1 parent 1530ad2
@xian xian authored
Showing with 4 additions and 3 deletions.
  1. +3 −2 Rakefile
  2. +1 −1  pages
View
5 Rakefile
@@ -152,13 +152,14 @@ jasmine.version_= {
require 'digest/sha1'
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|
sha1 = Digest::SHA1.hexdigest File.read(f)
fn = f.sub(/^pages\//, '')
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=\"version\">#{version}</td>\n"
download_html += "<td class=\"size\">#{File.size(f) / 1024}k</td>\n"
2  pages
@@ -1 +1 @@
-Subproject commit 60e240ad40f5324225a59c4a28a70ad8606db7c0
+Subproject commit 9ef772465fe1af3d1a75a7bd30558594686f02cc
Please sign in to comment.
Something went wrong with that request. Please try again.