Merge branch 'master' into gh-pages

This commit is contained in:
Gabriele Cirulli
2014-03-20 22:59:33 +01:00
+2 -2
View File
@@ -4,8 +4,8 @@ namespace :appcache do
desc "update the date in the appcache file (in the gh-pages branch)"
task :update do
appcache = File.read("cache.appcache")
updated = "# Updated: #{DateTime.now}\n"
updated = "# Updated: #{DateTime.now}"
File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
end
end