Work towards authentication through opening window

This commit is contained in:
2014-08-18 18:20:58 +02:00
parent bfa6bb66b0
commit 268c5aabb9
8 changed files with 44 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby
extensions = %w[jpg jpeg png js css gif svg json woff eot ttf otf ]
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`
end