mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler.
ab0580fd65
This commit is contained in:
parent
f987302cf4
commit
ba9dcdab36
47 changed files with 302 additions and 302 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue