summaryrefslogtreecommitdiff
path: root/lib/rubygems/server.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 19:51:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 12:42:10 +0900
commitba9dcdab3669f11b2e265712ceb43227c366fc3b (patch)
treee6aa19535d1b3388c9303497e1dc649e9e804ed8 /lib/rubygems/server.rb
parentf987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff)
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler. https://github.com/rubygems/rubygems/commit/ab0580fd65
Diffstat (limited to 'lib/rubygems/server.rb')
-rw-r--r--lib/rubygems/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/server.rb b/lib/rubygems/server.rb
index 83d7cf5abc..b2130852e0 100644
--- a/lib/rubygems/server.rb
+++ b/lib/rubygems/server.rb
@@ -573,7 +573,7 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
add_date res
case req.request_uri.path
- when %r|^/quick/(Marshal.#{Regexp.escape Gem.marshal_version}/)?(.*?)\.gemspec\.rz$| then
+ when %r{^/quick/(Marshal.#{Regexp.escape Gem.marshal_version}/)?(.*?)\.gemspec\.rz$} then
marshal_format, full_name = $1, $2
specs = Gem::Specification.find_all_by_full_name(full_name)