提交 6a4b3ec3 编写于 作者: G Gabriele Cirulli

add basic rake file with appcache:update task

上级 95ca6686
require "date"
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"
File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册