diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-08-08 23:48:02 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-08-23 10:45:57 +0900 |
commit | a9509068db84d6a86a718b5ae931b8d65fc15272 (patch) | |
tree | 7bfe60a98b98449811ca186037365b59aa306e48 /spec/bundler/support | |
parent | 29c443fedc0d3692cb52241318abb0de619ae178 (diff) | |
download | ruby-a9509068db84d6a86a718b5ae931b8d65fc15272.tar.gz |
[rubygems/rubygems] Make `compact_index_api_missing` server more strict
The compact index should not request any marshaled gemspecs whatsoever.
https://github.com/rubygems/rubygems/commit/6dbd44d0c0
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/artifice/compact_index_api_missing.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/bundler/support/artifice/compact_index_api_missing.rb b/spec/bundler/support/artifice/compact_index_api_missing.rb index 6514fde01e..2fd8b6d2e9 100644 --- a/spec/bundler/support/artifice/compact_index_api_missing.rb +++ b/spec/bundler/support/artifice/compact_index_api_missing.rb @@ -6,12 +6,7 @@ Artifice.deactivate class CompactIndexApiMissing < CompactIndexAPI get "/fetch/actual/gem/:id" do - warn params[:id] - if params[:id] == "rack-1.0.gemspec.rz" - halt 404 - else - File.binread("#{gem_repo2}/quick/Marshal.4.8/#{params[:id]}") - end + halt 404 end end |