Skip to content

Commit

Permalink
Update rubocop dependency to >= 0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jan 16, 2017
1 parent 950a9c1 commit 4a15cce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ AllCops:
Exclude:
- 'spec/speed.rb'

Metrics/BlockLength:
Enabled: false

Metrics/BlockNesting:
Max: 5

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ group :test do
gem 'backports'
gem 'coveralls'
gem 'rspec', '>= 3'
gem 'rubocop', '>= 0.46'
gem 'rubocop', '>= 0.47'
gem 'simplecov', '>= 0.9'
gem 'yardstick'
end
Expand Down
2 changes: 1 addition & 1 deletion lib/multi_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(type)
'decimal' => proc { |number| BigDecimal(number) },
'boolean' => proc { |boolean| !%w(0 false).include?(boolean.strip) },
'string' => proc { |string| string.to_s },
'yaml' => proc { |yaml| YAML.load(yaml) rescue yaml }, # rubocop:disable RescueModifier
'yaml' => proc { |yaml| YAML.load(yaml) rescue yaml }, # rubocop:disable RescueModifier, YAMLLoad
'base64Binary' => proc { |binary| ::Base64.decode64(binary) },
'binary' => proc { |binary, entity| parse_binary(binary, entity) },
'file' => proc { |file, entity| parse_file(file, entity) },
Expand Down

0 comments on commit 4a15cce

Please sign in to comment.