Use Appraisal to test against multiple versions

This commit is contained in:
hakanensari 2014-04-09 13:11:43 +01:00
parent ca2c0e5515
commit 0640a53cdf
13 changed files with 61 additions and 20 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ Gemfile.lock
bin
.bundle
*.gem
*.gemfile.lock

View file

@ -10,10 +10,11 @@ rvm:
- jruby-19mode
gemfile:
- gemfiles/activesupport3.2
- gemfiles/activesupport4.0
- gemfiles/dalli1.1
- gemfiles/dalli2
- gemfiles/activesupport3.2.gemfile
- gemfiles/activesupport4.0.gemfile
- gemfiles/activesupport4.1.gemfile
- gemfiles/dalli1.1.gemfile
- gemfiles/dalli2.gemfile
services:
- redis

19
Appraisals Normal file
View file

@ -0,0 +1,19 @@
appraise 'activesupport3.2' do
gem 'activesupport', '~> 3.2.0'
end
appraise 'activesupport4.0' do
gem 'activesupport', '~> 4.0.0'
end
appraise 'activesupport4.1' do
gem 'activesupport', '~> 4.1.0'
end
appraise 'dalli1.1' do
gem 'dalli', '1.1.5'
end
appraise 'dalli2' do
gem 'dalli', '~> 2.0'
end

View file

@ -1,4 +0,0 @@
source "https://rubygems.org"
gemspec path: '../'
gem 'activesupport', '~> 3.2.0'

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "activesupport", "~> 3.2.0"
gemspec :path => "../"

View file

@ -1,4 +0,0 @@
source "https://rubygems.org"
gemspec path: '../'
gem 'activesupport', '~> 4.0.0'

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "activesupport", "~> 4.0.0"
gemspec :path => "../"

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "activesupport", "~> 4.1.0"
gemspec :path => "../"

View file

@ -1,4 +0,0 @@
source "https://rubygems.org"
gemspec path: '../'
gem 'dalli', '~> 1.1.5'

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "dalli", "1.1.5"
gemspec :path => "../"

View file

@ -1,4 +0,0 @@
source "https://rubygems.org"
gemspec path: '../'
gem 'dalli', '~> 2.7'

7
gemfiles/dalli2.gemfile Normal file
View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "dalli", "~> 2.0"
gemspec :path => "../"

View file

@ -26,6 +26,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'minitest'
s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'activesupport', '>= 3.0.0'
s.add_development_dependency 'redis-activesupport'
s.add_development_dependency 'dalli'