Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1530ad25f9 | |||
| b2557e4ebe | |||
| 85c265e7c5 | |||
| cc36a1808b | |||
| 685344342a | |||
| a4eab045a0 | |||
| cd0346b449 | |||
| f134c6e386 |
@@ -74,9 +74,9 @@ namespace :jasmine do
|
|||||||
|
|
||||||
jasmine.puts %{
|
jasmine.puts %{
|
||||||
jasmine.version_= {
|
jasmine.version_= {
|
||||||
"major": #{version['major']},
|
"major": #{version['major'].to_json},
|
||||||
"minor": #{version['minor']},
|
"minor": #{version['minor'].to_json},
|
||||||
"build": #{version['build']},
|
"build": #{version['build'].to_json},
|
||||||
"revision": #{Time.now.to_i}
|
"revision": #{Time.now.to_i}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,8 @@ jasmine.version_= {
|
|||||||
{
|
{
|
||||||
"lib/jasmine.js" => "jasmine.js",
|
"lib/jasmine.js" => "jasmine.js",
|
||||||
"lib/jasmine-html.js" => "jasmine-html.js",
|
"lib/jasmine-html.js" => "jasmine-html.js",
|
||||||
"src/html/jasmine.css" => "jasmine.css"
|
"src/html/jasmine.css" => "jasmine.css",
|
||||||
|
"MIT.LICENSE" => "MIT.LICENSE"
|
||||||
}.each_pair do |src, dest|
|
}.each_pair do |src, dest|
|
||||||
FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
|
FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
|
||||||
end
|
end
|
||||||
@@ -151,17 +152,19 @@ 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>Version</th><th>Size</th><th>Date</th><th>SHA1</th></tr>\n"
|
download_html += "<table>\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"
|
||||||
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"
|
||||||
download_html += "<td class=\"date\">#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")}</td>\n"
|
download_html += "<td class=\"date\">#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")}</td>\n"
|
||||||
download_html += "<td class=\"sha\">#{sha1}</td>\n"
|
download_html += "<td class=\"sha\">#{sha1}</td>\n"
|
||||||
|
download_html += "</tr>\n"
|
||||||
end
|
end
|
||||||
download_html += "</table>\n<!-- END_DOWNLOADS -->"
|
download_html += "</table>\n<!-- END_DOWNLOADS -->"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
|
|||||||
this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },
|
this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },
|
||||||
this.createDom('div', { className: 'banner' },
|
this.createDom('div', { className: 'banner' },
|
||||||
this.createDom('div', { className: 'logo' },
|
this.createDom('div', { className: 'logo' },
|
||||||
"Jasmine",
|
this.createDom('a', { href: 'http://pivotal.github.com/jasmine/', target: "_blank" }, "Jasmine"),
|
||||||
this.createDom('span', { className: 'version' }, runner.env.versionString())),
|
this.createDom('span', { className: 'version' }, runner.env.versionString())),
|
||||||
this.createDom('div', { className: 'options' },
|
this.createDom('div', { className: 'options' },
|
||||||
"Show ",
|
"Show ",
|
||||||
|
|||||||
+1
-1
@@ -2417,5 +2417,5 @@ jasmine.version_= {
|
|||||||
"major": 1,
|
"major": 1,
|
||||||
"minor": 0,
|
"minor": 0,
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"revision": 1282785684
|
"revision": 1284494074
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
Submodule pages updated: 82623c4398...60e240ad40
@@ -34,7 +34,7 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
|
|||||||
this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },
|
this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },
|
||||||
this.createDom('div', { className: 'banner' },
|
this.createDom('div', { className: 'banner' },
|
||||||
this.createDom('div', { className: 'logo' },
|
this.createDom('div', { className: 'logo' },
|
||||||
"Jasmine",
|
this.createDom('a', { href: 'http://pivotal.github.com/jasmine/', target: "_blank" }, "Jasmine"),
|
||||||
this.createDom('span', { className: 'version' }, runner.env.versionString())),
|
this.createDom('span', { className: 'version' }, runner.env.versionString())),
|
||||||
this.createDom('div', { className: 'options' },
|
this.createDom('div', { className: 'options' },
|
||||||
"Show ",
|
"Show ",
|
||||||
|
|||||||
Reference in New Issue
Block a user