mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +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
|
@ -49,7 +49,7 @@ class Gem::FakeFetcher
|
|||
|
||||
path = path.to_s
|
||||
@paths << path
|
||||
raise ArgumentError, 'need full URI' unless path =~ %r'^https?://'
|
||||
raise ArgumentError, 'need full URI' unless path =~ %r{^https?://}
|
||||
|
||||
unless @data.key? path
|
||||
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
|
||||
|
@ -121,7 +121,7 @@ class Gem::FakeFetcher
|
|||
path = path.to_s
|
||||
@paths << path
|
||||
|
||||
raise ArgumentError, 'need full URI' unless path =~ %r'^http://'
|
||||
raise ArgumentError, 'need full URI' unless path =~ %r{^http://}
|
||||
|
||||
unless @data.key? path
|
||||
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue