Skip to content

Commit

Permalink
Appraise on Rails 3.0, 3.1, and 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Jul 10, 2012
1 parent 269edcc commit 2f69485
Show file tree
Hide file tree
Showing 11 changed files with 480 additions and 2 deletions.
15 changes: 15 additions & 0 deletions 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
8 changes: 7 additions & 1 deletion 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]
2 changes: 1 addition & 1 deletion features/step_definitions/rails_steps.rb
Expand Up @@ -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:
"""
Expand Down
9 changes: 9 additions & 0 deletions features/support/env.rb
Expand Up @@ -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
7 changes: 7 additions & 0 deletions 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=>"../"
127 changes: 127 additions & 0 deletions 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)
9 changes: 9 additions & 0 deletions 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=>"../"
149 changes: 149 additions & 0 deletions 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)
9 changes: 9 additions & 0 deletions 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=>"../"

0 comments on commit 2f69485

Please sign in to comment.