Skip to content

Commit

Permalink
Force gem version based on Ruby version in Travis
Browse files Browse the repository at this point in the history
- Rack < 2.0 for Ruby < 2.2.2
- Json < 2.0 for Ruby < 2.0
  • Loading branch information
schneems committed Jul 1, 2016
1 parent 6123e14 commit f2e3623
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,7 @@ rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3.1

matrix:
include:
Expand Down
8 changes: 8 additions & 0 deletions Gemfile
@@ -1,2 +1,10 @@
source "https://rubygems.org"
gemspec

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
gem 'rack', '< 2.0'
end

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.0")
gem 'json', '< 2.0'
end
2 changes: 2 additions & 0 deletions gemfiles/Gemfile-1.9
@@ -1,3 +1,5 @@
source "https://rubygems.org"
gemspec path: '..'
gem 'sass', '< 3.4'
gem 'rack', '< 2.0'
gem 'json', '< 2.0'

0 comments on commit f2e3623

Please sign in to comment.