Skip to content

Commit

Permalink
drop support for rails 3.2, add appraisal for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Aug 13, 2016
1 parent 926fb8b commit 2a81503
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Gemfile.lock
gemfiles/*.gemfile.lock
spec/support/log/**/*.log
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ services:
before_install:
- gem update --system
- gem update bundler
gemfile:
- gemfiles/rails_4.0.gemfile
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
15 changes: 15 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appraise 'rails_4.0' do
gem 'rails', '~> 4.0.0'
end

appraise 'rails_4.1' do
gem 'rails', '~> 4.1.0'
end

appraise 'rails_4.2' do
gem 'rails', '~> 4.2.0'
end

appraise 'rails_5.0' do
gem 'rails', '~> 5.0.0'
end
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module ::Guard
end
end

guard 'rspec', cmd: 'bundle exec rspec' do
guard 'rspec', cmd: 'bundle exec appraisal rspec' do
callback ServicesGemHelpers::OnStart.new, :start_begin
callback ServicesGemHelpers::OnStop.new, :stop_begin

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For disambiguation: in this README, when you read "Services" with a uppercase "S

#### Ruby >= 2.2.3

#### Rails >= 3.2
#### Rails >= 4.0

#### Redis >= 2.8

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rails_4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 4.0.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rails_4.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 4.1.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rails_4.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 4.2.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 5.0.0"

gemspec :path => "../"
3 changes: 2 additions & 1 deletion services.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'tries', '~> 0.3'
gem.add_development_dependency 'timecop', '~> 0.7'
gem.add_development_dependency 'sqlite3', '~> 1.3'
gem.add_runtime_dependency 'rails', '>= 3.2.0'
gem.add_development_dependency 'appraisal', '~> 2.1'
gem.add_runtime_dependency 'rails', '>= 4.0.0'
gem.add_runtime_dependency 'gem_config', '~> 0.3'
end

0 comments on commit 2a81503

Please sign in to comment.