Sha256: b89bd69d4df741586ef747ddd3b9b4a77a8c251c917e0c7551301dc913f02b67

Contents?: true

Size: 605 Bytes

Versions: 12

Compression:

Stored size: 605 Bytes

Contents

namespace :qbrick do
  namespace :db do
    desc 'Load qbrick seeds'
    task seed: :environment do
      Qbrick::Engine.load_seed
    end
  end
end

Rake::Task['db:seed'].enhance ['qbrick:db:seed']

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

12 entries across 12 versions & 1 rubygems

Version Path
qbrick-2.7.1 lib/tasks/qbrick_tasks.rake
qbrick-2.7 lib/tasks/qbrick_tasks.rake
qbrick-2.6.10 lib/tasks/qbrick_tasks.rake
qbrick-2.6.9 lib/tasks/qbrick_tasks.rake
qbrick-2.6.8 lib/tasks/qbrick_tasks.rake
qbrick-2.6.7 lib/tasks/qbrick_tasks.rake
qbrick-2.6.6 lib/tasks/qbrick_tasks.rake
qbrick-2.6.5 lib/tasks/qbrick_tasks.rake
qbrick-2.6.4 lib/tasks/qbrick_tasks.rake
qbrick-2.6.3 lib/tasks/qbrick_tasks.rake
qbrick-2.6.2 lib/tasks/qbrick_tasks.rake
qbrick-2.6.1 lib/tasks/qbrick_tasks.rake