add basic rake file with appcache:update task
[2048.git] / Rakefile
Gabriele Cirulli 1 require "date"
2
3 namespace :appcache do
4 desc "update the date in the appcache file (in the gh-pages branch)"
5 task :update do
6 appcache = File.read("cache.appcache")
7 updated = "# Updated: #{DateTime.now}\n"
8
9 File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
10 end
11 end
12
comments