Sha256: 194811c44fb4068048b548da267b633c9738b862fbff3209163b0450c8afc9bc

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

require 'bundler/gem_tasks'
require 'appraisal'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'

desc 'Default: run unit tests.'
task :default => [:clean, :all]

desc 'Test the paperclip plugin under all supported Rails versions.'
task :all do |t|
  if ENV['BUNDLE_GEMFILE']
    exec('rake spec cucumber')
  else
    exec("rm -f gemfiles/*.lock")
    Rake::Task["appraisal:gemfiles"].execute
    Rake::Task["appraisal:install"].execute
    exec('rake appraisal')
  end
end

desc 'Test the paperclip plugin.'
RSpec::Core::RakeTask.new(:spec)

desc 'Run integration test'
Cucumber::Rake::Task.new do |t|
  t.cucumber_opts = %w{--format progress}
end

desc 'Start an IRB session with all necessary files required.'
task :shell do |t|
  chdir File.dirname(__FILE__)
  exec 'irb -I lib/ -I lib/paperclip -r rubygems -r active_record -r tempfile -r init'
end

desc 'Clean up files.'
task :clean do |t|
  FileUtils.rm_rf "doc"
  FileUtils.rm_rf "tmp"
  FileUtils.rm_rf "pkg"
  FileUtils.rm_rf "public"
  FileUtils.rm "test/debug.log" rescue nil
  FileUtils.rm "test/paperclip.db" rescue nil
  Dir.glob("paperclip-*.gem").each{|f| FileUtils.rm f }
end

Version data entries

16 entries across 16 versions & 5 rubygems

Version Path
kt-paperclip-4.4.0 Rakefile
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/Rakefile
paperclip-5.1.0 Rakefile
paperclip-5.0.0 Rakefile
paperclip-4.3.7 Rakefile
paperclip_jk-5.0.0.beta2 Rakefile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/paperclip-4.3.6/Rakefile
paperclip-5.0.0.beta2 Rakefile
paperclip-5.0.0.beta1 Rakefile
paperclip-4.3.6 Rakefile
paperclip-4.3.5 Rakefile
paperclip-4.3.4 Rakefile
paperclip-4.3.3 Rakefile
paperclip-4.3.2 Rakefile
paperclip-4.3.1 Rakefile
paperclip-4.3.0 Rakefile