summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordblock <dblock@dblock.org>2014-12-30 16:07:47 -0500
committerdblock <dblock@dblock.org>2014-12-30 16:07:47 -0500
commitdab7dc54cf4e22b25e1bc4e27b3ae642247c0a07 (patch)
tree0e314a9fb296927ce8328b70350d7e0e748e3a0a
parenta285382047401a34c093e8501454bfb6824cb365 (diff)
downloadhashie-dab7dc54cf4e22b25e1bc4e27b3ae642247c0a07.tar.gz
Upgraded RuboCop to 0.28.0.
-rw-r--r--.rubocop_todo.yml16
-rw-r--r--Gemfile2
-rw-r--r--spec/hashie/dash_spec.rb2
-rw-r--r--spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb1
-rw-r--r--spec/hashie/extensions/mash/safe_assignment_spec.rb1
-rw-r--r--spec/hashie/trash_spec.rb1
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