From dab7dc54cf4e22b25e1bc4e27b3ae642247c0a07 Mon Sep 17 00:00:00 2001 From: dblock Date: Tue, 30 Dec 2014 16:07:47 -0500 Subject: Upgraded RuboCop to 0.28.0. --- .rubocop_todo.yml | 16 ++++++++-------- Gemfile | 2 +- spec/hashie/dash_spec.rb | 2 -- .../indifferent_access_with_rails_hwia_spec.rb | 1 - spec/hashie/extensions/mash/safe_assignment_spec.rb | 1 - spec/hashie/trash_spec.rb | 1 - 6 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ae8b17f..c2702da 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,11 +1,11 @@ # This configuration was generated by `rubocop --auto-gen-config` -# on 2014-11-18 09:12:11 -0500 using RuboCop version 0.27.1. +# on 2014-12-30 16:07:22 -0500 using RuboCop version 0.28.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 10 +# Offense count: 9 Metrics/AbcSize: Max: 37 @@ -18,28 +18,28 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Max: 11 -# Offense count: 159 +# Offense count: 167 # Configuration parameters: AllowURI, URISchemes. Metrics/LineLength: Max: 170 -# Offense count: 15 +# Offense count: 14 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 28 -# Offense count: 7 +# Offense count: 8 Metrics/PerceivedComplexity: Max: 10 -# Offense count: 7 +# Offense count: 2 Style/CaseEquality: Enabled: false -# Offense count: 80 +# Offense count: 84 Style/Documentation: Enabled: false -# Offense count: 6 +# Offense count: 9 Style/DoubleNegation: Enabled: false diff --git a/Gemfile b/Gemfile index 35592dd..8a7b20f 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ gemspec group :development do gem 'pry' gem 'pry-stack_explorer', platforms: [:ruby_19, :ruby_20, :ruby_21] - gem 'rubocop', '0.27.1' + gem 'rubocop', '0.28.0' gem 'guard', '~> 2.6.1' gem 'guard-rspec', '~> 4.3.1', require: false end diff --git a/spec/hashie/dash_spec.rb b/spec/hashie/dash_spec.rb index a6e8866..0d5d345 100644 --- a/spec/hashie/dash_spec.rb +++ b/spec/hashie/dash_spec.rb @@ -353,7 +353,6 @@ describe DashTest do end end end - end describe Hashie::Dash, 'inheritance' do @@ -400,7 +399,6 @@ describe Hashie::Dash, 'inheritance' do expect(@bottom.new).to have_key(:echo) expect(@bottom.new).to_not have_key('echo') end - end describe SubclassedTest do diff --git a/spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb b/spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb index 79f84a7..2f58042 100644 --- a/spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb +++ b/spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb @@ -192,6 +192,5 @@ describe Hashie::Extensions::IndifferentAccess do expect(instance[:foo].values).to all(be_coerced) expect(instance[:foo]).to be_a(ActiveSupport::HashWithIndifferentAccess) end - end end diff --git a/spec/hashie/extensions/mash/safe_assignment_spec.rb b/spec/hashie/extensions/mash/safe_assignment_spec.rb index 2d73127..a4cd3b1 100644 --- a/spec/hashie/extensions/mash/safe_assignment_spec.rb +++ b/spec/hashie/extensions/mash/safe_assignment_spec.rb @@ -19,6 +19,5 @@ describe Hashie::Extensions::Mash::SafeAssignment do expect { subject[:zip] = 'Test' }.to raise_error(ArgumentError) end end - end end diff --git a/spec/hashie/trash_spec.rb b/spec/hashie/trash_spec.rb index c1e5627..80b093e 100644 --- a/spec/hashie/trash_spec.rb +++ b/spec/hashie/trash_spec.rb @@ -205,7 +205,6 @@ describe Hashie::Trash do t.first_name = 'Michael' expect(t.first_name).to eq 'Michael' end - end end -- cgit v1.2.1