From 430d2186b3a37fb26fa79205af09d58fae360f96 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Wed, 28 Sep 2016 13:47:42 -0400 Subject: [PATCH] fix builds on ruby 1.8.7 and 1.9.3 - drop rubocop from ruby 1.9.x builds as bundler doesn't allow the expresiveness needed for specifying different versions based on the platform. (see https://github.com/bundler/bundler/issues/751) --- Gemfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 62b9b85d..b55123f8 100644 --- a/Gemfile +++ b/Gemfile @@ -16,9 +16,16 @@ group :test do gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21] gem 'rest-client', '~> 1.6.0', :platforms => [:jruby_18, :ruby_18] gem 'rspec', '>= 3' - gem 'rubocop', '>= 0.37', :platforms => [:ruby_19, :ruby_20, :ruby_21] + gem 'rubocop', '>= 0.37', :platforms => [:ruby_20, :ruby_21] gem 'simplecov', '>= 0.9' gem 'yardstick' + + + platforms :ruby_18, :ruby_19 do + gem 'json', '< 2.0' + gem 'tins', '< 1.7' + gem 'term-ansicolor', '< 1.4.0' + end end gemspec