Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
... ... @@ -0,0 +1,15 @@
  1 +appraise '3.0' do
  2 + gem 'rails', '3.0.17'
  3 +end
  4 +
  5 +appraise '3.1' do
  6 + gem 'rails', '3.1.8'
  7 + gem 'jquery-rails'
  8 + gem 'sass-rails'
  9 +end
  10 +
  11 +appraise '3.2' do
  12 + gem 'rails', '3.2.9'
  13 + gem 'jquery-rails'
  14 + gem 'sass-rails'
  15 +end
8 Rakefile
... ... @@ -1,6 +1,7 @@
1 1 require 'bundler/setup'
2 2 require 'bundler/gem_tasks'
3 3 require 'rake/testtask'
  4 +require 'appraisal'
4 5
5 6 $LOAD_PATH.unshift("lib")
6 7 load 'tasks/shoulda.rake'
@@ -11,5 +12,10 @@ Rake::TestTask.new do |t|
11 12 t.verbose = false
12 13 end
13 14
  15 +desc 'Test the plugin under all supported Rails versions.'
  16 +task :all => ['appraisal:cleanup', 'appraisal:install'] do
  17 + exec('rake appraisal test')
  18 +end
  19 +
14 20 desc 'Default: run tests'
15   -task :default => [:test]
  21 +task :default => [:all]
7 gemfiles/3.0.gemfile
... ... @@ -0,0 +1,7 @@
  1 +# This file was generated by Appraisal
  2 +
  3 +source "http://rubygems.org"
  4 +
  5 +gem "rails", "3.0.17"
  6 +
  7 +gemspec :path=>"../"
91 gemfiles/3.0.gemfile.lock
... ... @@ -0,0 +1,91 @@
  1 +PATH
  2 + remote: /Users/gabe/thoughtbot/open-source/shoulda-context
  3 + specs:
  4 + shoulda-context (1.0.0)
  5 +
  6 +GEM
  7 + remote: http://rubygems.org/
  8 + specs:
  9 + abstract (1.0.0)
  10 + actionmailer (3.0.17)
  11 + actionpack (= 3.0.17)
  12 + mail (~> 2.2.19)
  13 + actionpack (3.0.17)
  14 + activemodel (= 3.0.17)
  15 + activesupport (= 3.0.17)
  16 + builder (~> 2.1.2)
  17 + erubis (~> 2.6.6)
  18 + i18n (~> 0.5.0)
  19 + rack (~> 1.2.5)
  20 + rack-mount (~> 0.6.14)
  21 + rack-test (~> 0.5.7)
  22 + tzinfo (~> 0.3.23)
  23 + activemodel (3.0.17)
  24 + activesupport (= 3.0.17)
  25 + builder (~> 2.1.2)
  26 + i18n (~> 0.5.0)
  27 + activerecord (3.0.17)
  28 + activemodel (= 3.0.17)
  29 + activesupport (= 3.0.17)
  30 + arel (~> 2.0.10)
  31 + tzinfo (~> 0.3.23)
  32 + activeresource (3.0.17)
  33 + activemodel (= 3.0.17)
  34 + activesupport (= 3.0.17)
  35 + activesupport (3.0.17)
  36 + appraisal (0.5.1)
  37 + bundler
  38 + rake
  39 + arel (2.0.10)
  40 + builder (2.1.2)
  41 + erubis (2.6.6)
  42 + abstract (>= 1.0.0)
  43 + i18n (0.5.0)
  44 + json (1.7.5)
  45 + mail (2.2.19)
  46 + activesupport (>= 2.3.6)
  47 + i18n (>= 0.4.0)
  48 + mime-types (~> 1.16)
  49 + treetop (~> 1.4.8)
  50 + mime-types (1.19)
  51 + mocha (0.9.12)
  52 + polyglot (0.3.3)
  53 + rack (1.2.5)
  54 + rack-mount (0.6.14)
  55 + rack (>= 1.0.0)
  56 + rack-test (0.5.7)
  57 + rack (>= 1.0)
  58 + rails (3.0.17)
  59 + actionmailer (= 3.0.17)
  60 + actionpack (= 3.0.17)
  61 + activerecord (= 3.0.17)
  62 + activeresource (= 3.0.17)
  63 + activesupport (= 3.0.17)
  64 + bundler (~> 1.0)
  65 + railties (= 3.0.17)
  66 + railties (3.0.17)
  67 + actionpack (= 3.0.17)
  68 + activesupport (= 3.0.17)
  69 + rake (>= 0.8.7)
  70 + rdoc (~> 3.4)
  71 + thor (~> 0.14.4)
  72 + rake (10.0.3)
  73 + rdoc (3.12)
  74 + json (~> 1.4)
  75 + test-unit (2.1.2)
  76 + thor (0.14.6)
  77 + treetop (1.4.12)
  78 + polyglot
  79 + polyglot (>= 0.3.1)
  80 + tzinfo (0.3.35)
  81 +
  82 +PLATFORMS
  83 + ruby
  84 +
  85 +DEPENDENCIES
  86 + appraisal (~> 0.5)
  87 + mocha (~> 0.9.10)
  88 + rails (= 3.0.17)
  89 + rake
  90 + shoulda-context!
  91 + test-unit (~> 2.1.0)
9 gemfiles/3.1.gemfile
... ... @@ -0,0 +1,9 @@
  1 +# This file was generated by Appraisal
  2 +
  3 +source "http://rubygems.org"
  4 +
  5 +gem "rails", "3.1.8"
  6 +gem "jquery-rails"
  7 +gem "sass-rails"
  8 +
  9 +gemspec :path=>"../"
113 gemfiles/3.1.gemfile.lock
... ... @@ -0,0 +1,113 @@
  1 +PATH
  2 + remote: /Users/gabe/thoughtbot/open-source/shoulda-context
  3 + specs:
  4 + shoulda-context (1.0.0)
  5 +
  6 +GEM
  7 + remote: http://rubygems.org/
  8 + specs:
  9 + actionmailer (3.1.8)
  10 + actionpack (= 3.1.8)
  11 + mail (~> 2.3.3)
  12 + actionpack (3.1.8)
  13 + activemodel (= 3.1.8)
  14 + activesupport (= 3.1.8)
  15 + builder (~> 3.0.0)
  16 + erubis (~> 2.7.0)
  17 + i18n (~> 0.6)
  18 + rack (~> 1.3.6)
  19 + rack-cache (~> 1.2)
  20 + rack-mount (~> 0.8.2)
  21 + rack-test (~> 0.6.1)
  22 + sprockets (~> 2.0.4)
  23 + activemodel (3.1.8)
  24 + activesupport (= 3.1.8)
  25 + builder (~> 3.0.0)
  26 + i18n (~> 0.6)
  27 + activerecord (3.1.8)
  28 + activemodel (= 3.1.8)
  29 + activesupport (= 3.1.8)
  30 + arel (~> 2.2.3)
  31 + tzinfo (~> 0.3.29)
  32 + activeresource (3.1.8)
  33 + activemodel (= 3.1.8)
  34 + activesupport (= 3.1.8)
  35 + activesupport (3.1.8)
  36 + multi_json (>= 1.0, < 1.3)
  37 + appraisal (0.5.1)
  38 + bundler
  39 + rake
  40 + arel (2.2.3)
  41 + builder (3.0.4)
  42 + erubis (2.7.0)
  43 + hike (1.2.1)
  44 + i18n (0.6.1)
  45 + jquery-rails (2.1.4)
  46 + railties (>= 3.0, < 5.0)
  47 + thor (>= 0.14, < 2.0)
  48 + json (1.7.5)
  49 + mail (2.3.3)
  50 + i18n (>= 0.4.0)
  51 + mime-types (~> 1.16)
  52 + treetop (~> 1.4.8)
  53 + mime-types (1.19)
  54 + mocha (0.9.12)
  55 + multi_json (1.2.0)
  56 + polyglot (0.3.3)
  57 + rack (1.3.6)
  58 + rack-cache (1.2)
  59 + rack (>= 0.4)
  60 + rack-mount (0.8.3)
  61 + rack (>= 1.0.0)
  62 + rack-ssl (1.3.2)
  63 + rack
  64 + rack-test (0.6.2)
  65 + rack (>= 1.0)
  66 + rails (3.1.8)
  67 + actionmailer (= 3.1.8)
  68 + actionpack (= 3.1.8)
  69 + activerecord (= 3.1.8)
  70 + activeresource (= 3.1.8)
  71 + activesupport (= 3.1.8)
  72 + bundler (~> 1.0)
  73 + railties (= 3.1.8)
  74 + railties (3.1.8)
  75 + actionpack (= 3.1.8)
  76 + activesupport (= 3.1.8)
  77 + rack-ssl (~> 1.3.2)
  78 + rake (>= 0.8.7)
  79 + rdoc (~> 3.4)
  80 + thor (~> 0.14.6)
  81 + rake (10.0.3)
  82 + rdoc (3.12)
  83 + json (~> 1.4)
  84 + sass (3.2.3)
  85 + sass-rails (3.1.6)
  86 + actionpack (~> 3.1.0)
  87 + railties (~> 3.1.0)
  88 + sass (>= 3.1.10)
  89 + tilt (~> 1.3.2)
  90 + sprockets (2.0.4)
  91 + hike (~> 1.2)
  92 + rack (~> 1.0)
  93 + tilt (~> 1.1, != 1.3.0)
  94 + test-unit (2.1.2)
  95 + thor (0.14.6)
  96 + tilt (1.3.3)
  97 + treetop (1.4.12)
  98 + polyglot
  99 + polyglot (>= 0.3.1)
  100 + tzinfo (0.3.35)
  101 +
  102 +PLATFORMS
  103 + ruby
  104 +
  105 +DEPENDENCIES
  106 + appraisal (~> 0.5)
  107 + jquery-rails
  108 + mocha (~> 0.9.10)
  109 + rails (= 3.1.8)
  110 + rake
  111 + sass-rails
  112 + shoulda-context!
  113 + test-unit (~> 2.1.0)
9 gemfiles/3.2.gemfile
... ... @@ -0,0 +1,9 @@
  1 +# This file was generated by Appraisal
  2 +
  3 +source "http://rubygems.org"
  4 +
  5 +gem "rails", "3.2.8"
  6 +gem "jquery-rails"
  7 +gem "sass-rails"
  8 +
  9 +gemspec :path=>"../"
110 gemfiles/3.2.gemfile.lock
... ... @@ -0,0 +1,110 @@
  1 +PATH
  2 + remote: /Users/gabe/thoughtbot/open-source/shoulda-context
  3 + specs:
  4 + shoulda-context (1.0.0)
  5 +
  6 +GEM
  7 + remote: http://rubygems.org/
  8 + specs:
  9 + actionmailer (3.2.8)
  10 + actionpack (= 3.2.8)
  11 + mail (~> 2.4.4)
  12 + actionpack (3.2.8)
  13 + activemodel (= 3.2.8)
  14 + activesupport (= 3.2.8)
  15 + builder (~> 3.0.0)
  16 + erubis (~> 2.7.0)
  17 + journey (~> 1.0.4)
  18 + rack (~> 1.4.0)
  19 + rack-cache (~> 1.2)
  20 + rack-test (~> 0.6.1)
  21 + sprockets (~> 2.1.3)
  22 + activemodel (3.2.8)
  23 + activesupport (= 3.2.8)
  24 + builder (~> 3.0.0)
  25 + activerecord (3.2.8)
  26 + activemodel (= 3.2.8)
  27 + activesupport (= 3.2.8)
  28 + arel (~> 3.0.2)
  29 + tzinfo (~> 0.3.29)
  30 + activeresource (3.2.8)
  31 + activemodel (= 3.2.8)
  32 + activesupport (= 3.2.8)
  33 + activesupport (3.2.8)
  34 + i18n (~> 0.6)
  35 + multi_json (~> 1.0)
  36 + appraisal (0.5.1)
  37 + bundler
  38 + rake
  39 + arel (3.0.2)
  40 + builder (3.0.4)
  41 + erubis (2.7.0)
  42 + hike (1.2.1)
  43 + i18n (0.6.1)
  44 + journey (1.0.4)
  45 + jquery-rails (2.1.4)
  46 + railties (>= 3.0, < 5.0)
  47 + thor (>= 0.14, < 2.0)
  48 + json (1.7.5)
  49 + mail (2.4.4)
  50 + i18n (>= 0.4.0)
  51 + mime-types (~> 1.16)
  52 + treetop (~> 1.4.8)
  53 + mime-types (1.19)
  54 + mocha (0.9.12)
  55 + multi_json (1.5.0)
  56 + polyglot (0.3.3)
  57 + rack (1.4.1)
  58 + rack-cache (1.2)
  59 + rack (>= 0.4)
  60 + rack-ssl (1.3.2)
  61 + rack
  62 + rack-test (0.6.2)
  63 + rack (>= 1.0)
  64 + rails (3.2.8)
  65 + actionmailer (= 3.2.8)
  66 + actionpack (= 3.2.8)
  67 + activerecord (= 3.2.8)
  68 + activeresource (= 3.2.8)
  69 + activesupport (= 3.2.8)
  70 + bundler (~> 1.0)
  71 + railties (= 3.2.8)
  72 + railties (3.2.8)
  73 + actionpack (= 3.2.8)
  74 + activesupport (= 3.2.8)
  75 + rack-ssl (~> 1.3.2)
  76 + rake (>= 0.8.7)
  77 + rdoc (~> 3.4)
  78 + thor (>= 0.14.6, < 2.0)
  79 + rake (10.0.3)
  80 + rdoc (3.12)
  81 + json (~> 1.4)
  82 + sass (3.2.3)
  83 + sass-rails (3.2.5)
  84 + railties (~> 3.2.0)
  85 + sass (>= 3.1.10)
  86 + tilt (~> 1.3)
  87 + sprockets (2.1.3)
  88 + hike (~> 1.2)
  89 + rack (~> 1.0)
  90 + tilt (~> 1.1, != 1.3.0)
  91 + test-unit (2.1.2)
  92 + thor (0.16.0)
  93 + tilt (1.3.3)
  94 + treetop (1.4.12)
  95 + polyglot
  96 + polyglot (>= 0.3.1)
  97 + tzinfo (0.3.35)
  98 +
  99 +PLATFORMS
  100 + ruby
  101 +
  102 +DEPENDENCIES
  103 + appraisal (~> 0.5)
  104 + jquery-rails
  105 + mocha (~> 0.9.10)
  106 + rails (= 3.2.8)
  107 + rake
  108 + sass-rails
  109 + shoulda-context!
  110 + test-unit (~> 2.1.0)
2  shoulda-context.gemspec
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18 18 s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19 19 s.require_paths = ["lib"]
20 20
  21 + s.add_development_dependency("appraisal", "~> 0.5")
  22 + s.add_development_dependency("rails", "3.2.9")
21 23 s.add_development_dependency("mocha", "~> 0.9.10")
22 24 s.add_development_dependency("rake")
23 25 s.add_development_dependency("test-unit", "~> 2.1.0")

0 comments on commit 261b936

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