summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-08-08 23:48:02 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-08-23 10:45:57 +0900
commita9509068db84d6a86a718b5ae931b8d65fc15272 (patch)
tree7bfe60a98b98449811ca186037365b59aa306e48 /spec/bundler
parent29c443fedc0d3692cb52241318abb0de619ae178 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6268
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/support/artifice/compact_index_api_missing.rb7
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