diff --git a/Rakefile b/Rakefile index e06b9a5..8b574aa 100644 --- a/Rakefile +++ b/Rakefile @@ -91,8 +91,9 @@ jasmine.version_= { FileUtils.cp("src/html/jasmine.css", "lib/jasmine.css") end + downloads_file = 'pages/download.html.md' task :need_pages_submodule do - unless File.exists?('pages/index.html.md') + unless File.exists?(downloads_file) raise "Jasmine pages submodule isn't present. Run git submodule update --init" end end @@ -154,7 +155,6 @@ jasmine.version_= { require 'digest/sha1' download_html = "\n" - download_html += "
Version | Size | Date | SHA1 | ||||||
---|---|---|---|---|---|---|---|---|---|
#{fn.sub(/downloads\//, '')} | \n" - download_html += "#{version} | \n" - download_html += "#{File.size(f) / 1024}k | \n" - download_html += "#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")} | \n" - download_html += "#{sha1} | \n" + download_html += "#{fn.sub(/downloads\//, '')} | \n" + download_html += "#{version} | \n" + download_html += "#{File.size(f) / 1024}k | \n" + download_html += "#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S %Z")} | \n" + download_html += "#{sha1} | \n" download_html += "