Skip to content

Commit

Permalink
Merge pull request #18 from thoughtbot/gbw-add-travis-and-multiple-ra…
Browse files Browse the repository at this point in the history
…ils-versions

Test against Rails 3.x
  • Loading branch information
Travis Jeffery committed Dec 18, 2012
2 parents c34386f + da11448 commit 261b936
Show file tree
Hide file tree
Showing 9 changed files with 363 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Appraisals
@@ -0,0 +1,15 @@
appraise '3.0' do
gem 'rails', '3.0.17'
end

appraise '3.1' do
gem 'rails', '3.1.8'
gem 'jquery-rails'
gem 'sass-rails'
end

appraise '3.2' do
gem 'rails', '3.2.9'
gem 'jquery-rails'
gem 'sass-rails'
end
8 changes: 7 additions & 1 deletion Rakefile
@@ -1,6 +1,7 @@
require 'bundler/setup' require 'bundler/setup'
require 'bundler/gem_tasks' require 'bundler/gem_tasks'
require 'rake/testtask' require 'rake/testtask'
require 'appraisal'


$LOAD_PATH.unshift("lib") $LOAD_PATH.unshift("lib")
load 'tasks/shoulda.rake' load 'tasks/shoulda.rake'
Expand All @@ -11,5 +12,10 @@ Rake::TestTask.new do |t|
t.verbose = false t.verbose = false
end end


desc 'Test the plugin under all supported Rails versions.'
task :all => ['appraisal:cleanup', 'appraisal:install'] do
exec('rake appraisal test')
end

desc 'Default: run tests' desc 'Default: run tests'
task :default => [:test] task :default => [:all]
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.17"

gemspec :path=>"../"
91 changes: 91 additions & 0 deletions gemfiles/3.0.gemfile.lock
@@ -0,0 +1,91 @@
PATH
remote: /Users/gabe/thoughtbot/open-source/shoulda-context
specs:
shoulda-context (1.0.0)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.17)
actionpack (= 3.0.17)
mail (~> 2.2.19)
actionpack (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
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.17)
activesupport (= 3.0.17)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.17)
activemodel (= 3.0.17)
activesupport (= 3.0.17)
activesupport (3.0.17)
appraisal (0.5.1)
bundler
rake
arel (2.0.10)
builder (2.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.0)
json (1.7.5)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
mocha (0.9.12)
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.17)
actionmailer (= 3.0.17)
actionpack (= 3.0.17)
activerecord (= 3.0.17)
activeresource (= 3.0.17)
activesupport (= 3.0.17)
bundler (~> 1.0)
railties (= 3.0.17)
railties (3.0.17)
actionpack (= 3.0.17)
activesupport (= 3.0.17)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (10.0.3)
rdoc (3.12)
json (~> 1.4)
test-unit (2.1.2)
thor (0.14.6)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)

PLATFORMS
ruby

DEPENDENCIES
appraisal (~> 0.5)
mocha (~> 0.9.10)
rails (= 3.0.17)
rake
shoulda-context!
test-unit (~> 2.1.0)
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.8"
gem "jquery-rails"
gem "sass-rails"

gemspec :path=>"../"
113 changes: 113 additions & 0 deletions gemfiles/3.1.gemfile.lock
@@ -0,0 +1,113 @@
PATH
remote: /Users/gabe/thoughtbot/open-source/shoulda-context
specs:
shoulda-context (1.0.0)

GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.8)
actionpack (= 3.1.8)
mail (~> 2.3.3)
actionpack (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.6)
rack-cache (~> 1.2)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.4)
activemodel (3.1.8)
activesupport (= 3.1.8)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
arel (~> 2.2.3)
tzinfo (~> 0.3.29)
activeresource (3.1.8)
activemodel (= 3.1.8)
activesupport (= 3.1.8)
activesupport (3.1.8)
multi_json (>= 1.0, < 1.3)
appraisal (0.5.1)
bundler
rake
arel (2.2.3)
builder (3.0.4)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.1)
jquery-rails (2.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.5)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
mocha (0.9.12)
multi_json (1.2.0)
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.2)
rack (>= 1.0)
rails (3.1.8)
actionmailer (= 3.1.8)
actionpack (= 3.1.8)
activerecord (= 3.1.8)
activeresource (= 3.1.8)
activesupport (= 3.1.8)
bundler (~> 1.0)
railties (= 3.1.8)
railties (3.1.8)
actionpack (= 3.1.8)
activesupport (= 3.1.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (10.0.3)
rdoc (3.12)
json (~> 1.4)
sass (3.2.3)
sass-rails (3.1.6)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (>= 3.1.10)
tilt (~> 1.3.2)
sprockets (2.0.4)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
test-unit (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)

PLATFORMS
ruby

DEPENDENCIES
appraisal (~> 0.5)
jquery-rails
mocha (~> 0.9.10)
rails (= 3.1.8)
rake
sass-rails
shoulda-context!
test-unit (~> 2.1.0)
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.8"
gem "jquery-rails"
gem "sass-rails"

gemspec :path=>"../"
110 changes: 110 additions & 0 deletions gemfiles/3.2.gemfile.lock
@@ -0,0 +1,110 @@
PATH
remote: /Users/gabe/thoughtbot/open-source/shoulda-context
specs:
shoulda-context (1.0.0)

GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.8)
actionpack (= 3.2.8)
mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
activerecord (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
activesupport (3.2.8)
i18n (~> 0.6)
multi_json (~> 1.0)
appraisal (0.5.1)
bundler
rake
arel (3.0.2)
builder (3.0.4)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.5)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
mocha (0.9.12)
multi_json (1.5.0)
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.2)
rack (>= 1.0)
rails (3.2.8)
actionmailer (= 3.2.8)
actionpack (= 3.2.8)
activerecord (= 3.2.8)
activeresource (= 3.2.8)
activesupport (= 3.2.8)
bundler (~> 1.0)
railties (= 3.2.8)
railties (3.2.8)
actionpack (= 3.2.8)
activesupport (= 3.2.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12)
json (~> 1.4)
sass (3.2.3)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
test-unit (2.1.2)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.35)

PLATFORMS
ruby

DEPENDENCIES
appraisal (~> 0.5)
jquery-rails
mocha (~> 0.9.10)
rails (= 3.2.8)
rake
sass-rails
shoulda-context!
test-unit (~> 2.1.0)
2 changes: 2 additions & 0 deletions shoulda-context.gemspec
Expand Up @@ -18,6 +18,8 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"] s.require_paths = ["lib"]


s.add_development_dependency("appraisal", "~> 0.5")
s.add_development_dependency("rails", "3.2.9")
s.add_development_dependency("mocha", "~> 0.9.10") s.add_development_dependency("mocha", "~> 0.9.10")
s.add_development_dependency("rake") s.add_development_dependency("rake")
s.add_development_dependency("test-unit", "~> 2.1.0") s.add_development_dependency("test-unit", "~> 2.1.0")
Expand Down

0 comments on commit 261b936

Please sign in to comment.