Merge pull request #96 from jimminning/patch-3
[2048.git] / Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
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

comments