Sha256: 65e5a3737c4d10687c0d2e7fc4ce11a24642c0905d9939b9a4e0facd1e54afde

Contents?: true

Size: 417 Bytes

Versions: 17

Compression:

Stored size: 417 Bytes

Contents

require 'fileutils'

desc "Create nondigest versions of all dynaspan digest assets"
task "assets:precompile" do
  fingerprint = /\-[0-9a-f]{32}\./
  for file in Dir["public/assets/dynaspan/**/*"]
    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

17 entries across 17 versions & 1 rubygems

Version Path
dynaspan-0.1.5 lib/dynaspan/tasks.rake
dynaspan-0.1.4 lib/dynaspan/tasks.rake
dynaspan-0.1.3 lib/dynaspan/tasks.rake
dynaspan-0.1.3.beta1 lib/dynaspan/tasks.rake
dynaspan-0.1.2 lib/dynaspan/tasks.rake
dynaspan-0.1.2.beta1 lib/dynaspan/tasks.rake
dynaspan-0.1.1 lib/dynaspan/tasks.rake
dynaspan-0.1.0 lib/dynaspan/tasks.rake
dynaspan-0.0.9 lib/dynaspan/tasks.rake
dynaspan-0.0.8 lib/dynaspan/tasks.rake
dynaspan-0.0.7 lib/dynaspan/tasks.rake
dynaspan-0.0.6 lib/dynaspan/tasks.rake
dynaspan-0.0.5 lib/dynaspan/tasks.rake
dynaspan-0.0.4 lib/dynaspan/tasks.rake
dynaspan-0.0.3 lib/dynaspan/tasks.rake
dynaspan-0.0.2 lib/dynaspan/tasks.rake
dynaspan-0.0.1 lib/dynaspan/tasks.rake