1
0
mirror of https://github.com/danog/2048.git synced 2024-11-29 20:08:58 +01:00
2048/Rakefile
2014-03-20 22:59:00 +01:00

12 lines
300 B
Ruby

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}"
File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
end
end