[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems

So it matches the style used by bundler.

ab0580fd65
This commit is contained in:
David Rodríguez 2020-03-24 19:51:43 +01:00 committed by Hiroshi SHIBATA
parent f987302cf4
commit ba9dcdab36
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
47 changed files with 302 additions and 302 deletions

View file

@ -228,8 +228,8 @@ class Gem::Source::Git < Gem::Source
require 'digest' # required here to avoid deadlocking in Gem.activate_bin_path (because digest is a gem on 2.5+)
normalized =
if @repository =~ %r%^\w+://(\w+@)?%
uri = URI(@repository).normalize.to_s.sub %r%/$%,''
if @repository =~ %r{^\w+://(\w+@)?}
uri = URI(@repository).normalize.to_s.sub %r{/$},''
uri.sub(/\A(\w+)/) { $1.downcase }
else
@repository