refactor grid, gamemanager, tile
[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")
Gabriele Cirulli 7 updated = "# Updated: #{DateTime.now}"
Gabriele Cirulli 8
Gabriele Cirulli 9 File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
Gabriele Cirulli 10 end
11 end
12
comments