mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Merge rubygems master.
This is RC version of Rubygems 2.7.0.
688fb7e83c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b05153a3a
commit
c00e84327f
96 changed files with 2021 additions and 701 deletions
|
@ -573,19 +573,11 @@ 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}/)?(.*?)-([0-9.]+[^-]*?)(-.*?)?\.gemspec\.rz$| then
|
||||
marshal_format, name, version, platform = $1, $2, $3, $4
|
||||
specs = Gem::Specification.find_all_by_name name, version
|
||||
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)
|
||||
|
||||
selector = [name, version, platform].map(&:inspect).join ' '
|
||||
|
||||
platform = if platform then
|
||||
Gem::Platform.new platform.sub(/^-/, '')
|
||||
else
|
||||
Gem::Platform::RUBY
|
||||
end
|
||||
|
||||
specs = specs.select { |s| s.platform == platform }
|
||||
selector = full_name.inspect
|
||||
|
||||
if specs.empty? then
|
||||
res.status = 404
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue