diff --git a/Gemfile b/Gemfile index ea22c38..d442802 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,7 @@ group :test do gem 'backports' gem 'coveralls' gem 'rspec', '>= 2.14' - gem 'rubocop', '>= 0.25' + gem 'rubocop', '>= 0.27' gem 'simplecov' gem 'webmock' gem 'yardstick' diff --git a/lib/mlb/team.rb b/lib/mlb/team.rb index 15578b9..24e02b2 100644 --- a/lib/mlb/team.rb +++ b/lib/mlb/team.rb @@ -54,7 +54,7 @@ module MLB File.new(File.expand_path('../../../cache', __FILE__) + '/' + file_name) end - def self.results_to_team(results) # rubocop:disable CyclomaticComplexity, MethodLength, PerceivedComplexity + def self.results_to_team(results) # rubocop:disable AbcSize, CyclomaticComplexity, MethodLength, PerceivedComplexity results['result'].map do |result| league = result['league'] division = result['division']