Sha256: 5f49726bb50899c4c28472bdc00996d9225bcc05802e7784d7a407d9d2364eee

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

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

desc 'Default: clean, appraisal:install, all.'
task :default => [:clean, :all]

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

desc 'Test the paperclip_database 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_database -r rubygems -r active_record -r paperclip -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"
  Dir.glob("paperclip_database-*.gem").each{|f| FileUtils.rm f }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paperclip_database-3.1.0 Rakefile
paperclip_database-3.0.0 Rakefile
paperclip_database-2.4.0 Rakefile
paperclip_database-2.3.1 Rakefile
paperclip_database-2.3.0 Rakefile