Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #18 from thoughtbot/gbw-add-travis-and-multiple-ra…

…ils-versions

Test against Rails 3.x
  • Loading branch information...
commit 261b936db8349b2a6fb8b5965edc619d5b7836fa 2 parents c34386f + da11448
Travis Jeffery travisjeffery authored
15 Appraisals
View
@@ -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 Rakefile
View
@@ -1,6 +1,7 @@
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
+require 'appraisal'
$LOAD_PATH.unshift("lib")
load 'tasks/shoulda.rake'
@@ -11,5 +12,10 @@ Rake::TestTask.new do |t|
t.verbose = false
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'
-task :default => [:test]
+task :default => [:all]
7 gemfiles/3.0.gemfile
View
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "rails", "3.0.17"
+
+gemspec :path=>"../"
91 gemfiles/3.0.gemfile.lock
View
@@ -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 gemfiles/3.1.gemfile
View
@@ -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 gemfiles/3.1.gemfile.lock
View
@@ -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 gemfiles/3.2.gemfile
View
@@ -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 gemfiles/3.2.gemfile.lock
View
@@ -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  shoulda-context.gemspec
View
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
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("rake")
s.add_development_dependency("test-unit", "~> 2.1.0")
Please sign in to comment.
Something went wrong with that request. Please try again.