Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use appraisal instead of buggy self-built multi-test

  • Loading branch information...
commit 81d7916b159511dfad9712de062cdcb20e300c64 1 parent 376f567
@grosser authored
View
7 Appraisals
@@ -0,0 +1,7 @@
+appraise "rails2" do
+ gem "activerecord", "~>2.3.14"
+end
+
+appraise "rails3" do
+ gem "activerecord", "~>3.2.7"
+end
View
12 Gemfile
@@ -1,10 +1,8 @@
source :rubygems
-puts ENV['RAILS']
+gemspec
-group :dev do
- gem 'rake'
- gem 'rspec', '~>2'
- gem 'mysql'
- gem 'activerecord', ENV['RAILS'] || '~>3', :require => 'active_record'
-end
+gem 'appraisal'
+gem 'rake'
+gem 'rspec', '~>2'
+gem 'mysql'
View
12 Gemfile.lock
@@ -1,3 +1,9 @@
+PATH
+ remote: .
+ specs:
+ ar_after_transaction (0.2.4)
+ activerecord
+
GEM
remote: http://rubygems.org/
specs:
@@ -12,6 +18,9 @@ GEM
activesupport (3.2.7)
i18n (~> 0.6)
multi_json (~> 1.0)
+ appraisal (0.4.1)
+ bundler
+ rake
arel (3.0.2)
builder (3.0.3)
diff-lcs (1.1.3)
@@ -33,7 +42,8 @@ PLATFORMS
ruby
DEPENDENCIES
- activerecord (~> 3)
+ appraisal
+ ar_after_transaction!
mysql
rake
rspec (~> 2)
View
8 Rakefile
@@ -1,12 +1,14 @@
-require 'bundler/gem_tasks'
+require "bundler/setup"
+require "bundler/gem_tasks"
+require "appraisal"
+
task :spec do
sh "rspec spec"
end
task :default do
- sh "export RAILS='~>2' && (bundle || bundle install) && bundle exec rake spec"
- sh "export RAILS='~>3' && (bundle || bundle install) && bundle exec rake spec"
+ sh "bundle exec rake appraisal:install && bundle exec rake appraisal spec"
end
# extracted from https://github.com/grosser/project_template
View
1  ar_after_transaction.gemspec
@@ -8,4 +8,5 @@ Gem::Specification.new "ar_after_transaction", ARAfterTransaction::VERSION do |s
s.homepage = "http://github.com/grosser/ar_after_transaction"
s.files = `git ls-files`.split("\n")
s.add_runtime_dependency "activerecord"
+ s.license = "MIT"
end
View
11 gemfiles/rails2.gemfile
@@ -0,0 +1,11 @@
+# This file was generated by Appraisal
+
+source :rubygems
+
+gem "appraisal"
+gem "rake"
+gem "rspec", "~>2"
+gem "mysql"
+gem "activerecord", "~>2.3.14"
+
+gemspec :path=>"../"
View
37 gemfiles/rails2.gemfile.lock
@@ -0,0 +1,37 @@
+PATH
+ remote: /Users/mgrosser/code/tools/ar_after_transaction
+ specs:
+ ar_after_transaction (0.2.4)
+ activerecord
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activerecord (2.3.14)
+ activesupport (= 2.3.14)
+ activesupport (2.3.14)
+ appraisal (0.4.1)
+ bundler
+ rake
+ diff-lcs (1.1.3)
+ mysql (2.8.1)
+ rake (0.9.2.2)
+ 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)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord (~> 2.3.14)
+ appraisal
+ ar_after_transaction!
+ mysql
+ rake
+ rspec (~> 2)
View
11 gemfiles/rails3.gemfile
@@ -0,0 +1,11 @@
+# This file was generated by Appraisal
+
+source :rubygems
+
+gem "appraisal"
+gem "rake"
+gem "rspec", "~>2"
+gem "mysql"
+gem "activerecord", "~>3.2.7"
+
+gemspec :path=>"../"
View
50 gemfiles/rails3.gemfile.lock
@@ -0,0 +1,50 @@
+PATH
+ remote: /Users/mgrosser/code/tools/ar_after_transaction
+ specs:
+ ar_after_transaction (0.2.4)
+ activerecord
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ 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)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ appraisal (0.4.1)
+ bundler
+ rake
+ arel (3.0.2)
+ builder (3.0.4)
+ diff-lcs (1.1.3)
+ i18n (0.6.1)
+ multi_json (1.3.6)
+ mysql (2.8.1)
+ rake (0.9.2.2)
+ 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)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord (~> 3.2.7)
+ appraisal
+ ar_after_transaction!
+ mysql
+ rake
+ rspec (~> 2)
Please sign in to comment.
Something went wrong with that request. Please try again.