From dbc7bb8a5a732df8741a026c1efbfabfa7ee7ed6 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Mon, 23 Jan 2017 13:36:46 +1100 Subject: [PATCH] limit rubocop to known working platforms --- Gemfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index 0d19a63f61..9750b723bd 100644 --- a/Gemfile +++ b/Gemfile @@ -40,14 +40,8 @@ end gem 'simplecov', '~> 0.8' -# There is no platform :ruby_193 and Rubocop only supports >= 1.9.3 -unless RUBY_VERSION == "1.9.2" - platforms = [:ruby_19, :ruby_20, :ruby_21, :ruby_22] - # There is no platform :ruby_23 on JRuby currently. - platforms << :ruby_23 if Bundler::Dependency::PLATFORM_MAP[:ruby_23] - gem "rubocop", - "~> 0.32.1", - :platform => platforms +if RUBY_VERSION >= '1.9.3' && RUBY_VERSION < '2.4.0' + gem "rubocop", "~> 0.32.1" end gem 'test-unit', '~> 3.0' if RUBY_VERSION.to_f >= 2.2