Sha256: b6dea1d75af2e0cb7c48a4be5939e3fe8fbed87969b595b9436eb611c48df1eb

Contents?: true

Size: 728 Bytes

Versions: 28

Compression:

Stored size: 728 Bytes

Contents

namespace :effective_datatables do
  desc 'Create nondigest versions of some effective_datatables assets'
  task :create_nondigest_assets do
    fingerprint = /\-[0-9a-f]{32}\./
    for file in Dir['public/assets/dataTables/*.*', 'public/assets/effective_datatables/*.*']
      next unless file =~ fingerprint
      nondigest = file.sub fingerprint, '.' # contents-0d8ffa186a00f5063461bc0ba0d96087.css => contents.css
      FileUtils.cp file, nondigest, verbose: true
    end
  end
end

# auto run ckeditor:create_nondigest_assets after assets:precompile
Rake::Task['assets:precompile'].enhance do
  puts 'undigesting required effective_datatables assets'
  Rake::Task['effective_datatables:create_nondigest_assets'].invoke
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
effective_datatables-1.4.1 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.4.0 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.8 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.7 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.6 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.5 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.4 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.3 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.2 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.1 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.3.0 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.5 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.4 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.3 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.2 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.1 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.2.0 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.1.6 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.1.5 lib/tasks/effective_datatables_tasks.rake
effective_datatables-1.1.4 lib/tasks/effective_datatables_tasks.rake