Skip to content
Browse files

Appraise on Rails 3.0, 3.1, and 3.2

  • Loading branch information...
1 parent 269edcc commit 2f69485aab5c84ab3db843e6465e2e52b4a3b7e2 @mike-burns mike-burns committed
View
15 Appraisals
@@ -0,0 +1,15 @@
+appraise '3.0' do
+ gem 'rails', '3.0.12'
+end
+
+appraise '3.1' do
+ gem 'rails', '3.1.4'
+ gem 'jquery-rails'
+ gem 'sass-rails'
+end
+
+appraise '3.2' do
+ gem 'rails', '3.2.3'
+ gem 'jquery-rails'
+ gem 'sass-rails'
+end
View
8 Rakefile
@@ -1,11 +1,17 @@
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'cucumber/rake/task'
+require 'appraisal'
Cucumber::Rake::Task.new do |t|
t.fork = true
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
+desc 'Test the plugin under all supported Rails versions.'
+task :all => ["appraisal:cleanup", "appraisal:install"] do
+ exec('rake appraisal cucumber')
+end
+
desc 'Default: run cucumber features'
-task :default => [:cucumber]
+task :default => [:all]
View
2 features/step_definitions/rails_steps.rb
@@ -3,7 +3,7 @@
When /^I generate a new rails application$/ do
steps %{
- When I run `rails _3.0.12_ new #{APP_NAME}`
+ When I run `bundle exec rails new #{APP_NAME}`
And I cd to "#{APP_NAME}"
And I write to "Gemfile" with:
"""
View
9 features/support/env.rb
@@ -2,4 +2,13 @@
Before do
@aruba_timeout_seconds = 15
+
+ if ENV['DEBUG']
+ @puts = true
+ @announce_stdout = true
+ @announce_stderr = true
+ @announce_cmd = true
+ @announce_dir = true
+ @announce_env = true
+ end
end
View
7 gemfiles/3.0.gemfile
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "3.0.12"
+
+gemspec :path=>"../"
View
127 gemfiles/3.0.gemfile.lock
@@ -0,0 +1,127 @@
+PATH
+ remote: /home/mike/thoughtbot/shoulda
+ specs:
+ shoulda (3.0.1)
+ shoulda-context (~> 1.0)
+ shoulda-matchers (~> 1.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.12)
+ actionpack (= 3.0.12)
+ mail (~> 2.2.19)
+ actionpack (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.5)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.12)
+ activesupport (= 3.0.12)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ activesupport (3.0.12)
+ appraisal (0.4.1)
+ bundler
+ rake
+ arel (2.0.10)
+ aruba (0.4.11)
+ childprocess (>= 0.2.3)
+ cucumber (>= 1.1.1)
+ ffi (>= 1.0.11)
+ rspec (>= 2.7.0)
+ builder (2.1.2)
+ childprocess (0.3.3)
+ ffi (~> 1.0.6)
+ cucumber (1.1.9)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.9.0)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ diff-lcs (1.1.3)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ ffi (1.0.11)
+ gherkin (2.9.3)
+ json (>= 1.4.6)
+ i18n (0.5.0)
+ json (1.7.3)
+ mail (2.2.19)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ polyglot (0.3.3)
+ rack (1.2.5)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.12)
+ actionmailer (= 3.0.12)
+ actionpack (= 3.0.12)
+ activerecord (= 3.0.12)
+ activeresource (= 3.0.12)
+ activesupport (= 3.0.12)
+ bundler (~> 1.0)
+ railties (= 3.0.12)
+ railties (3.0.12)
+ actionpack (= 3.0.12)
+ activesupport (= 3.0.12)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.4)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.1)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ rspec-rails (2.7.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.7.0)
+ shoulda-context (1.0.0)
+ shoulda-matchers (1.2.0)
+ activesupport (>= 3.0.0)
+ sqlite3 (1.3.6)
+ term-ansicolor (1.0.7)
+ thor (0.14.6)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ appraisal (~> 0.4.0)
+ aruba (~> 0.4.11)
+ cucumber (~> 1.1.0)
+ rails (= 3.0.12)
+ rspec-rails (~> 2.7.0)
+ shoulda!
+ sqlite3 (~> 1.3.2)
View
9 gemfiles/3.1.gemfile
@@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "3.1.4"
+gem "jquery-rails"
+gem "sass-rails"
+
+gemspec :path=>"../"
View
149 gemfiles/3.1.gemfile.lock
@@ -0,0 +1,149 @@
+PATH
+ remote: /home/mike/thoughtbot/shoulda
+ specs:
+ shoulda (3.0.1)
+ shoulda-context (~> 1.0)
+ shoulda-matchers (~> 1.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.4)
+ actionpack (= 3.1.4)
+ mail (~> 2.3.0)
+ actionpack (3.1.4)
+ activemodel (= 3.1.4)
+ activesupport (= 3.1.4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.6)
+ rack-cache (~> 1.1)
+ rack-mount (~> 0.8.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.0.3)
+ activemodel (3.1.4)
+ activesupport (= 3.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.4)
+ activemodel (= 3.1.4)
+ activesupport (= 3.1.4)
+ arel (~> 2.2.3)
+ tzinfo (~> 0.3.29)
+ activeresource (3.1.4)
+ activemodel (= 3.1.4)
+ activesupport (= 3.1.4)
+ activesupport (3.1.4)
+ multi_json (~> 1.0)
+ appraisal (0.4.1)
+ bundler
+ rake
+ arel (2.2.3)
+ aruba (0.4.11)
+ childprocess (>= 0.2.3)
+ cucumber (>= 1.1.1)
+ ffi (>= 1.0.11)
+ rspec (>= 2.7.0)
+ builder (3.0.0)
+ childprocess (0.3.3)
+ ffi (~> 1.0.6)
+ cucumber (1.1.9)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.9.0)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ ffi (1.0.11)
+ gherkin (2.9.3)
+ json (>= 1.4.6)
+ hike (1.2.1)
+ i18n (0.6.0)
+ jquery-rails (1.0.19)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.7.3)
+ mail (2.3.3)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ polyglot (0.3.3)
+ rack (1.3.6)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-mount (0.8.3)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.1.4)
+ actionmailer (= 3.1.4)
+ actionpack (= 3.1.4)
+ activerecord (= 3.1.4)
+ activeresource (= 3.1.4)
+ activesupport (= 3.1.4)
+ bundler (~> 1.0)
+ railties (= 3.1.4)
+ railties (3.1.4)
+ actionpack (= 3.1.4)
+ activesupport (= 3.1.4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.1)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ rspec-rails (2.7.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.7.0)
+ sass (3.1.20)
+ sass-rails (3.1.6)
+ actionpack (~> 3.1.0)
+ railties (~> 3.1.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3.2)
+ shoulda-context (1.0.0)
+ shoulda-matchers (1.2.0)
+ activesupport (>= 3.0.0)
+ sprockets (2.0.4)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ term-ansicolor (1.0.7)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ appraisal (~> 0.4.0)
+ aruba (~> 0.4.11)
+ cucumber (~> 1.1.0)
+ jquery-rails
+ rails (= 3.1.4)
+ rspec-rails (~> 2.7.0)
+ sass-rails
+ shoulda!
+ sqlite3 (~> 1.3.2)
View
9 gemfiles/3.2.gemfile
@@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "3.2.3"
+gem "jquery-rails"
+gem "sass-rails"
+
+gemspec :path=>"../"
View
146 gemfiles/3.2.gemfile.lock
@@ -0,0 +1,146 @@
+PATH
+ remote: /home/mike/thoughtbot/shoulda
+ specs:
+ shoulda (3.0.1)
+ shoulda-context (~> 1.0)
+ shoulda-matchers (~> 1.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.2.3)
+ actionpack (= 3.2.3)
+ mail (~> 2.4.4)
+ actionpack (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.3)
+ activesupport (= 3.2.3)
+ builder (~> 3.0.0)
+ activerecord (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ activesupport (3.2.3)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ appraisal (0.4.1)
+ bundler
+ rake
+ arel (3.0.2)
+ aruba (0.4.11)
+ childprocess (>= 0.2.3)
+ cucumber (>= 1.1.1)
+ ffi (>= 1.0.11)
+ rspec (>= 2.7.0)
+ builder (3.0.0)
+ childprocess (0.3.3)
+ ffi (~> 1.0.6)
+ cucumber (1.1.9)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.9.0)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ ffi (1.0.11)
+ gherkin (2.9.3)
+ json (>= 1.4.6)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.4)
+ jquery-rails (2.0.2)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.3)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.3)
+ actionmailer (= 3.2.3)
+ actionpack (= 3.2.3)
+ activerecord (= 3.2.3)
+ activeresource (= 3.2.3)
+ activesupport (= 3.2.3)
+ bundler (~> 1.0)
+ railties (= 3.2.3)
+ railties (3.2.3)
+ actionpack (= 3.2.3)
+ activesupport (= 3.2.3)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.1)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ rspec-rails (2.7.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.7.0)
+ sass (3.1.20)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ shoulda-context (1.0.0)
+ shoulda-matchers (1.2.0)
+ activesupport (>= 3.0.0)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ term-ansicolor (1.0.7)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ appraisal (~> 0.4.0)
+ aruba (~> 0.4.11)
+ cucumber (~> 1.1.0)
+ jquery-rails
+ rails (= 3.2.3)
+ rspec-rails (~> 2.7.0)
+ sass-rails
+ shoulda!
+ sqlite3 (~> 1.3.2)
View
1 shoulda.gemspec
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
s.add_dependency("shoulda-context", "~> 1.0")
s.add_dependency("shoulda-matchers", "~> 1.0")
+ s.add_development_dependency('appraisal', '~> 0.4.0')
s.add_development_dependency("rails", "3.0.12")
s.add_development_dependency("sqlite3", "~> 1.3.2")
s.add_development_dependency("rspec-rails", "~> 2.7.0")

0 comments on commit 2f69485

Please sign in to comment.
Something went wrong with that request. Please try again.