Merge pull request #31111 from koic/bump_rubocop_to_0_51_0
Bump RuboCop to 0.51.0
This commit is contained in:
commit
8c7967c9b9
@ -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" }
|
||||
|
Loading…
Reference in New Issue
Block a user