Work towards authentication through opening window
This commit is contained in:
Executable
+7
@@ -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
|
||||
Reference in New Issue
Block a user