Permalink
Browse files

use appraisal to test against different gemfile setups (rails 3 and 3.1)

  • Loading branch information...
joshk committed Sep 12, 2011
1 parent 66a3065 commit e5165d0c6f63fa32af387b62bc0eac3099f3fe2d
Showing with 65 additions and 28 deletions.
  1. +4 −2 .travis.yml
  2. +7 −0 Appraisals
  3. +6 −1 Gemfile
  4. +16 −14 Gemfile.lock
  5. +1 −0 Rakefile
  6. +11 −11 completeness-fu.gemspec
  7. +10 −0 gemfiles/rails-3-1.gemfile
  8. +10 −0 gemfiles/rails-3.gemfile
View
@@ -1,10 +1,12 @@
rvm:
- 1.8.7
- - 1.9.1
- 1.9.2
- 1.9.3
- ruby-head
- ree
- jruby
- rbx
- - rbx-2.0
+ - rbx-2.0
+gemfiles:
+ - gemfiles/rails-3.gemfile
+ - gemfiles/rails-3-1.gemfile
View
@@ -0,0 +1,7 @@
+appraise "rails-3" do
+ gem "activemodel", "~> 3.0.0"
+end
+
+appraise "rails-3-1" do
+ gem "activemodel", "~> 3.1.0"
+end
View
@@ -1,3 +1,8 @@
source :rubygems
-gemspec
+gem 'activemodel', '~> 3.0'
+gem 'rake', '~> 0.8.7'
+gem 'shoulda', '~> 2.11.3'
+gem 'mocha', '~> 0.9.8'
+
+gem 'appraisal'
View
@@ -1,28 +1,30 @@
-PATH
- remote: .
- specs:
- completeness-fu (0.6.0)
-
GEM
remote: http://rubygems.org/
specs:
- activemodel (3.0.5)
- activesupport (= 3.0.5)
- builder (~> 2.1.2)
- i18n (~> 0.4)
- activesupport (3.0.5)
- builder (2.1.2)
- i18n (0.5.0)
+ activemodel (3.1.0)
+ activesupport (= 3.1.0)
+ bcrypt-ruby (~> 3.0.0)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activesupport (3.1.0)
+ multi_json (~> 1.0)
+ appraisal (0.3.8)
+ bundler
+ rake
+ bcrypt-ruby (3.0.0)
+ builder (3.0.0)
+ i18n (0.6.0)
mocha (0.9.12)
+ multi_json (1.0.3)
rake (0.8.7)
shoulda (2.11.3)
PLATFORMS
ruby
DEPENDENCIES
- activemodel (~> 3.0.0)
- completeness-fu!
+ activemodel (~> 3.0)
+ appraisal
mocha (~> 0.9.8)
rake (~> 0.8.7)
shoulda (~> 2.11.3)
View
@@ -1,6 +1,7 @@
require 'rubygems'
begin
require 'bundler/setup'
+ require 'appraisal'
rescue LoadError
puts 'although not required, its recommended you use bundler during development'
end
View
@@ -31,21 +31,21 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<activemodel>, ["~> 3.0.0"])
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_dependency(%q<activemodel>, ["~> 3.0"])
+ s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
- s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
+ s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
else
- s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
- s.add_dependency(%q<mocha>, ["~> 0.9.8"])
+ s.add_dependency(%q<activemodel>, ["~> 3.0"])
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
+ s.add_dependency(%q<mocha>, ["~> 0.9.8"])
end
else
- s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
- s.add_dependency(%q<mocha>, ["~> 0.9.8"])
+ s.add_dependency(%q<activemodel>, ["~> 3.0"])
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
+ s.add_dependency(%q<mocha>, ["~> 0.9.8"])
end
end
View
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "rubygems"
+
+gem "activemodel", "~> 3.1.0"
+gem "rake", "~> 0.8.7"
+gem "shoulda", "~> 2.11.3"
+gem "mocha", "~> 0.9.8"
+gem "appraisal"
+
View
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "rubygems"
+
+gem "activemodel", "~> 3.0.0"
+gem "rake", "~> 0.8.7"
+gem "shoulda", "~> 2.11.3"
+gem "mocha", "~> 0.9.8"
+gem "appraisal"
+

0 comments on commit e5165d0

Please sign in to comment.