Skip to content

Commit

Permalink
Fix travis CI builds
Browse files Browse the repository at this point in the history
* pin json dependency to one supporting ruby <2.0
* update ruby versions to test
  • Loading branch information
grobie committed Aug 8, 2016
1 parent 0444e5e commit 14f7ee5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ language: ruby
rvm:
- 1.9.3
- 2.2
- 2.3.0
- jruby-19mode
- 2.3.1
- jruby-9.0.5.0
9 changes: 8 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ source 'https://rubygems.org'

gemspec

def ruby_version?(constraint)
Gem::Dependency.new('', constraint).match?('', RUBY_VERSION)
end

group :test do
gem 'json', '< 2.0' if ruby_version?('< 2.0')
gem 'coveralls'
gem 'rack', '< 2.0' if ruby_version?('< 2.2.2')
gem 'rack-test'
gem 'rake'
gem 'rspec'
gem 'rubocop'
gem 'rubocop', ruby_version?('< 2.0') ? '< 0.42' : nil
gem 'tins', '< 1.7' if ruby_version?('< 2.0')
end

0 comments on commit 14f7ee5

Please sign in to comment.