Permalink
Browse files

Test formtastic with Rails 3.0-3.2 using appraisals

  • Loading branch information...
1 parent 660a078 commit 6c57b5411e51139e9fdc60300459cbfeddd76aea @mjonuschat mjonuschat committed Dec 26, 2011
Showing with 44 additions and 5 deletions.
  1. +2 −1 .gitignore
  2. +11 −0 Appraisals
  3. +0 −2 Gemfile
  4. +8 −2 Rakefile
  5. +2 −0 formtastic.gemspec
  6. +7 −0 gemfiles/rails-3.0.gemfile
  7. +7 −0 gemfiles/rails-3.1.gemfile
  8. +7 −0 gemfiles/rails-3.2.gemfile
View
@@ -11,4 +11,5 @@ log/*
Gemfile.lock
.yardoc
doc/
-tmp
+tmp
+gemfiles/*.lock
View
@@ -0,0 +1,11 @@
+appraise 'rails-3.0' do
+ gem 'rails', '~> 3.0.0'
+end
+
+appraise 'rails-3.1' do
+ gem 'rails', '~> 3.1.0'
+end
+
+appraise 'rails-3.2' do
+ gem 'rails', '~> 3.2.0.rc1'
+end
View
@@ -1,5 +1,3 @@
source :rubygems
-gem 'rake', '< 0.9'
-
gemspec
View
@@ -1,15 +1,21 @@
# encoding: utf-8
+require 'bundler/setup'
+require 'appraisal'
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'tasks/verify_rcov'
-require 'bundler'
Bundler::GemHelper.install_tasks
desc 'Default: run unit specs.'
-task :default => :spec
+task :default => :all
+
+desc 'Test formtastic with all supported Rails versions.'
+task :all => ["appraisal:install"] do
+ exec('rake appraisal spec')
+end
desc 'Generate documentation for the formtastic plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
View
@@ -34,4 +34,6 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<colored>)
s.add_development_dependency(%q<tzinfo>)
s.add_development_dependency(%q<ammeter>, ["~> 0.1.2"])
+ s.add_development_dependency(%q<appraisal>)
+ s.add_development_dependency(%q<rake>)
end
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source :rubygems
+
+gem "rails", "~> 3.0.0"
+
+gemspec :path=>"../"
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source :rubygems
+
+gem "rails", "~> 3.1.0"
+
+gemspec :path=>"../"
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source :rubygems
+
+gem "rails", "~> 3.2.0.rc1"
+
+gemspec :path=>"../"

0 comments on commit 6c57b54

Please sign in to comment.