Sha256: bdc6062f5c1c4cfb6a2ccfd70804148e0df4abca1b47392652170db557d32384

Contents?: true

Size: 347 Bytes

Versions: 14

Compression:

Stored size: 347 Bytes

Contents

require 'fileutils'

desc 'Create nondigest versions of all chosen digest assets'
task 'assets:precompile' do
  fingerprint = /\-[0-9a-f]{32}\./
  Dir['public/assets/chosen-*'].each do |file|
    next unless file =~ fingerprint
    nondigest = file.sub fingerprint, '.'
    FileUtils.copy_entry file, nondigest, remove_destination: true
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
trln-chosen-rails-1.30.0 lib/chosen-rails/tasks.rake
trln-chosen-rails-1.30.0.pre.beta3 lib/chosen-rails/tasks.rake
trln-chosen-rails-1.30.0.pre.beta2 lib/chosen-rails/tasks.rake
trln-chosen-rails-1.30.0.pre.beta lib/chosen-rails/tasks.rake
trln-chosen-rails-1.20.0 lib/chosen-rails/tasks.rake
chosen-rails-1.10.0 lib/chosen-rails/tasks.rake
chosen-rails-1.9.0 lib/chosen-rails/tasks.rake
trln-chosen-rails-1.8.7 lib/chosen-rails/tasks.rake
chosen-rails-1.8.7 lib/chosen-rails/tasks.rake
chosen-rails-1.8.3 lib/chosen-rails/tasks.rake
chosen-rails-1.8.2 lib/chosen-rails/tasks.rake
chosen-rails-1.5.2 lib/chosen-rails/tasks.rake
chosen-rails-1.5.1 lib/chosen-rails/tasks.rake
chosen-rails-1.4.3 lib/chosen-rails/tasks.rake