Sha256: 5edb0520f13e5ee18eada9787534f5c20a28775de096ba3aee293d3570ed7bee

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

require 'fileutils'

desc "Create nondigest versions of all ckeditor digest assets"
task "assets:precompile" do
  fingerprint = /\-[0-9a-f]{32}\./
  for file in Dir["public/assets/ckeditor/**/*"]
    next unless file =~ fingerprint
    nondigest = file.sub fingerprint, '.'
    if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
      FileUtils.cp file, nondigest, verbose: true
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ckeditor_rails-4.4.6 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.4.5 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.4.3 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.4.2 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.4.1 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.4.0 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.3.4 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.3.1 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.2.2 lib/ckeditor-rails/tasks.rake
ckeditor_rails-4.2 lib/ckeditor-rails/tasks.rake