Sha256: 5bd42f9080f6a4c8591536403923e33c8ed16357f82ac6f702c5a0c395553972

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

require 'bundler/gem_tasks'
require 'appraisal'
require 'rake/testtask'
require 'cucumber/rake/task'

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

desc 'Test the paperclip plugin under all supported Rails versions.'
task :all do |t|
  exec('rake appraisal test cucumber')
end

desc 'Test the paperclip plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib' << 'profile'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

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

12 entries across 12 versions & 3 rubygems

Version Path
paperclip-v2_7-patched-ruby-1_8_6-2.7.5 Rakefile
paperclip-2.7.5 Rakefile
paperclip-2.7.4 Rakefile
paperclip-2.7.2 Rakefile
paperclip-2.8.0 Rakefile
paperclip-2.7.1 Rakefile
cloudfuji_paperclip-2.4.6 Rakefile
paperclip-2.7.0 Rakefile
paperclip-2.6.0 Rakefile
paperclip-2.5.2 Rakefile
paperclip-2.5.1 Rakefile
paperclip-2.5.0 Rakefile