Permalink
Browse files

Merge pull request #31111 from koic/bump_rubocop_to_0_51_0

Bump RuboCop to 0.51.0
  • Loading branch information...
guilleiguaran committed Nov 10, 2017
2 parents 78fc853 + 8c5115f commit 8c7967c9b916fe625e7ce10591b101abde3be4f5
View
@@ -1,7 +1,7 @@
engines:
rubocop:
enabled: true
channel: rubocop-0-50
channel: rubocop-0-51
ratings:
paths:
View
@@ -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" }

0 comments on commit 8c7967c

Please sign in to comment.