diff --git a/README.md b/README.md index 6b0d3bf298d40df97b6a2384852a363f23d1b6cf..96a85a75ecf3c8eb87c5f9bff1d6127bc366f733 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Made just for fun. [Play it here!](http://gabrielecirulli.github.io/2048/) - [TimPetricola](https://github.com/TimPetricola) added best score storage - [chrisprice](https://github.com/chrisprice) added custom code for swipe handling on mobile + - [elektryk](https://github.com/elektryk) made swipes work on Windows Phone Many thanks to [rayhaanj](https://github.com/rayhaanj), [Mechazawa](https://github.com/Mechazawa), [grant](https://github.com/grant), [remram44](https://github.com/remram44) and [ghoullier](https://github.com/ghoullier) for the many other good contributions. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000000000000000000000000000000000000..673b2733b70aaaf917128eda375b19865206356e --- /dev/null +++ b/Rakefile @@ -0,0 +1,11 @@ +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