Add touch events

This commit is contained in:
2014-12-16 22:14:47 +01:00
parent 9b72ff173f
commit 6a8d517727
14 changed files with 2140 additions and 53 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
#!/usr/bin/env ruby
extensions = %w[jpg jpeg png js css gif svg json woff eot ttf otf ]
start_time = Time.now
Dir.glob(File.join('public/assets/**', "*.{#{extensions.join(',')}}")).each do |asset_path|
next unless asset_path =~ /-[a-f0-9]{32}\.(#{extensions.join('|')})\Z/
dedigest_path = asset_path.sub(/-[a-f0-9]{32}/, '')
`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
#`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
`mv '#{asset_path}' '#{dedigest_path}'`
end
end_time = Time.now
puts "Dedigested assets in #{(end_time - start_time).round} seconds}"