diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..aba9f35 --- /dev/null +++ b/Appraisals @@ -0,0 +1,13 @@ +appraise "rails3.0" do + gem "rails", "~> 3.0.17" +end + +appraise "rails3.1" do + gem "rails", "~> 3.1.8" + gem "sqlite3", ">= 1.3.4" +end + +appraise "rails3.2" do + gem "rails", "~> 3.2.8" + gem "sqlite3", ">= 1.3.4" +end diff --git a/Rakefile b/Rakefile index e0a8e33..2797003 100644 --- a/Rakefile +++ b/Rakefile @@ -7,5 +7,17 @@ Cucumber::Rake::Task.new(:cucumber) do |t| t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')] end -desc "Default: run the cucumber scenarios" -task :default => :cucumber +require 'appraisal' + +desc 'Run the test suite' +task :default do |t| + if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/ + exec 'rake cucumber' + else + Rake::Task['appraise'].execute + end +end + +task :appraise => ['appraisal:install'] do |t| + exec 'rake appraisal' +end diff --git a/factory_girl_rails.gemspec b/factory_girl_rails.gemspec index 4304bfe..fe13782 100644 --- a/factory_girl_rails.gemspec +++ b/factory_girl_rails.gemspec @@ -11,16 +11,16 @@ Gem::Specification.new do |s| loading)} s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.test_files = `git ls-files -- Appraisals {spec,features,gemfiles}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] s.add_runtime_dependency('railties', '>= 3.0.0') s.add_runtime_dependency('factory_girl', '~> 4.1.0') + s.add_development_dependency('appraisal', '~> 0.5.0') s.add_development_dependency('rake') - s.add_development_dependency('rspec', '~> 2.6.0') + s.add_development_dependency('rspec', '~> 2.11.0') s.add_development_dependency('cucumber', '~> 1.0.0') s.add_development_dependency('aruba') - s.add_development_dependency('rails', '3.0.7') end diff --git a/gemfiles/rails30.gemfile b/gemfiles/rails30.gemfile new file mode 100644 index 0000000..650920e --- /dev/null +++ b/gemfiles/rails30.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "rails", "~> 3.0.17" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails30.gemfile.lock b/gemfiles/rails30.gemfile.lock new file mode 100644 index 0000000..39187f0 --- /dev/null +++ b/gemfiles/rails30.gemfile.lock @@ -0,0 +1,124 @@ +PATH + remote: /Users/joshuaclayton/dev/gems/factory_girl_rails + specs: + factory_girl_rails (4.1.0) + factory_girl (~> 4.1.0) + railties (>= 3.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.0) + bundler + rake + arel (2.0.10) + aruba (0.4.6) + bcat (>= 0.6.1) + childprocess (>= 0.2.0) + cucumber (>= 1.0.2) + rdiscount (>= 1.6.8) + rspec (>= 2.6.0) + bcat (0.6.2) + rack (~> 1.0) + builder (2.1.2) + childprocess (0.3.6) + ffi (~> 1.0, >= 1.0.6) + cucumber (1.0.6) + builder (>= 2.1.2) + diff-lcs (>= 1.1.2) + gherkin (~> 2.4.18) + json (>= 1.4.6) + term-ansicolor (>= 1.0.6) + diff-lcs (1.1.3) + erubis (2.6.6) + abstract (>= 1.0.0) + factory_girl (4.1.0) + activesupport (>= 3.0.0) + ffi (1.1.5) + gherkin (2.4.21) + json (>= 1.4.6) + 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) + 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 (0.9.2.2) + rdiscount (1.6.8) + rdoc (3.12) + json (~> 1.4) + rspec (2.11.0) + rspec-core (~> 2.11.0) + rspec-expectations (~> 2.11.0) + rspec-mocks (~> 2.11.0) + rspec-core (2.11.1) + rspec-expectations (2.11.3) + diff-lcs (~> 1.1.3) + rspec-mocks (2.11.3) + term-ansicolor (1.0.7) + thor (0.14.6) + treetop (1.4.12) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.34) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal (~> 0.5.0) + aruba + cucumber (~> 1.0.0) + factory_girl_rails! + rails (~> 3.0.17) + rake + rspec (~> 2.11.0) diff --git a/gemfiles/rails31.gemfile b/gemfiles/rails31.gemfile new file mode 100644 index 0000000..b2d1e87 --- /dev/null +++ b/gemfiles/rails31.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "rails", "~> 3.1.8" +gem "sqlite3", ">= 1.3.4" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails31.gemfile.lock b/gemfiles/rails31.gemfile.lock new file mode 100644 index 0000000..937ed3e --- /dev/null +++ b/gemfiles/rails31.gemfile.lock @@ -0,0 +1,137 @@ +PATH + remote: /Users/joshuaclayton/dev/gems/factory_girl_rails + specs: + factory_girl_rails (4.1.0) + factory_girl (~> 4.1.0) + railties (>= 3.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.0) + bundler + rake + arel (2.2.3) + aruba (0.4.6) + bcat (>= 0.6.1) + childprocess (>= 0.2.0) + cucumber (>= 1.0.2) + rdiscount (>= 1.6.8) + rspec (>= 2.6.0) + bcat (0.6.2) + rack (~> 1.0) + builder (3.0.4) + childprocess (0.3.6) + ffi (~> 1.0, >= 1.0.6) + cucumber (1.0.6) + builder (>= 2.1.2) + diff-lcs (>= 1.1.2) + gherkin (~> 2.4.18) + json (>= 1.4.6) + term-ansicolor (>= 1.0.6) + diff-lcs (1.1.3) + erubis (2.7.0) + factory_girl (4.1.0) + activesupport (>= 3.0.0) + ffi (1.1.5) + gherkin (2.4.21) + json (>= 1.4.6) + hike (1.2.1) + i18n (0.6.1) + json (1.7.5) + mail (2.3.3) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.19) + 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 (0.9.2.2) + rdiscount (1.6.8) + rdoc (3.12) + json (~> 1.4) + rspec (2.11.0) + rspec-core (~> 2.11.0) + rspec-expectations (~> 2.11.0) + rspec-mocks (~> 2.11.0) + rspec-core (2.11.1) + rspec-expectations (2.11.3) + diff-lcs (~> 1.1.3) + rspec-mocks (2.11.3) + 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.12) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.34) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal (~> 0.5.0) + aruba + cucumber (~> 1.0.0) + factory_girl_rails! + rails (~> 3.1.8) + rake + rspec (~> 2.11.0) + sqlite3 (>= 1.3.4) diff --git a/gemfiles/rails32.gemfile b/gemfiles/rails32.gemfile new file mode 100644 index 0000000..c6aff57 --- /dev/null +++ b/gemfiles/rails32.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "rails", "~> 3.2.8" +gem "sqlite3", ">= 1.3.4" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails32.gemfile.lock b/gemfiles/rails32.gemfile.lock new file mode 100644 index 0000000..8ba9aa3 --- /dev/null +++ b/gemfiles/rails32.gemfile.lock @@ -0,0 +1,135 @@ +PATH + remote: /Users/joshuaclayton/dev/gems/factory_girl_rails + specs: + factory_girl_rails (4.1.0) + factory_girl (~> 4.1.0) + railties (>= 3.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.0) + bundler + rake + arel (3.0.2) + aruba (0.4.6) + bcat (>= 0.6.1) + childprocess (>= 0.2.0) + cucumber (>= 1.0.2) + rdiscount (>= 1.6.8) + rspec (>= 2.6.0) + bcat (0.6.2) + rack (~> 1.0) + builder (3.0.4) + childprocess (0.3.6) + ffi (~> 1.0, >= 1.0.6) + cucumber (1.0.6) + builder (>= 2.1.2) + diff-lcs (>= 1.1.2) + gherkin (~> 2.4.18) + json (>= 1.4.6) + term-ansicolor (>= 1.0.6) + diff-lcs (1.1.3) + erubis (2.7.0) + factory_girl (4.1.0) + activesupport (>= 3.0.0) + ffi (1.1.5) + gherkin (2.4.21) + json (>= 1.4.6) + hike (1.2.1) + i18n (0.6.1) + journey (1.0.4) + json (1.7.5) + mail (2.4.4) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.19) + multi_json (1.3.7) + 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 (0.9.2.2) + rdiscount (1.6.8) + rdoc (3.12) + json (~> 1.4) + rspec (2.11.0) + rspec-core (~> 2.11.0) + rspec-expectations (~> 2.11.0) + rspec-mocks (~> 2.11.0) + rspec-core (2.11.1) + rspec-expectations (2.11.3) + diff-lcs (~> 1.1.3) + rspec-mocks (2.11.3) + 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.16.0) + tilt (1.3.3) + treetop (1.4.12) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.34) + +PLATFORMS + ruby + +DEPENDENCIES + appraisal (~> 0.5.0) + aruba + cucumber (~> 1.0.0) + factory_girl_rails! + rails (~> 3.2.8) + rake + rspec (~> 2.11.0) + sqlite3 (>= 1.3.4)