Merge pull request #31111 from koic/bump_rubocop_to_0_51_0

Bump RuboCop to 0.51.0
This commit is contained in:
Guillermo Iguaran 2017-11-09 23:15:12 -05:00 committed by GitHub
commit 8c7967c9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

@ -1,7 +1,7 @@
engines:
rubocop:
enabled: true
channel: rubocop-0-50
channel: rubocop-0-51
ratings:
paths:

@ -415,7 +415,7 @@ GEM
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
retriable (3.1.1)
rubocop (0.50.0)
rubocop (0.51.0)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)

@ -248,7 +248,7 @@ def decode_credentials_header(request)
def decode_credentials(header)
ActiveSupport::HashWithIndifferentAccess[header.to_s.gsub(/^Digest\s+/, "").split(",").map do |pair|
key, value = pair.split("=", 2)
[key.strip, value.to_s.gsub(/^"|"$/, "").delete('\'')]
[key.strip, value.to_s.gsub(/^"|"$/, "").delete("'")]
end]
end

@ -5,7 +5,7 @@
class TestLoadError < ActiveSupport::TestCase
def test_with_require
assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }
assert_raise(LoadError) { require "no_this_file_don't_exist" }
end
def test_with_load
assert_raise(LoadError) { load "nor_does_this_one" }