Commit 9e3b5db6 by Jon Yurek

Added Appraisal to Gemfile and have the default task run all appraisals

parent ffe66096
...@@ -5,3 +5,4 @@ gem "rake" ...@@ -5,3 +5,4 @@ gem "rake"
gem "ruby-debug" gem "ruby-debug"
gem "aws-s3", :require => "aws/s3" gem "aws-s3", :require => "aws/s3"
gem "sqlite3-ruby", "~>1.3.0" gem "sqlite3-ruby", "~>1.3.0"
gem "appraisal"
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
appraisal (0.1)
bundler
rake
aws-s3 (0.6.2) aws-s3 (0.6.2)
builder builder
mime-types mime-types
...@@ -25,6 +28,7 @@ PLATFORMS ...@@ -25,6 +28,7 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
appraisal
aws-s3 aws-s3
mocha mocha
rake rake
......
...@@ -10,11 +10,11 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib') ...@@ -10,11 +10,11 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
require 'paperclip' require 'paperclip'
desc 'Default: run unit tests.' desc 'Default: run unit tests.'
task :default => [:clean, :test] task :default => [:clean, :all]
desc 'Test the paperclip plugin under all supported Rails versions.' desc 'Test the paperclip plugin under all supported Rails versions.'
task :all do |t| task :all do |t|
exec('rake RAILS_VERSION=2.1 && rake RAILS_VERSION=2.3 && rake RAILS_VERSION=3.0') exec('rake appraisal test')
end end
desc 'Test the paperclip plugin.' desc 'Test the paperclip plugin.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment