ruby-changes:73038
From: David <ko1@a...>
Date: Tue, 23 Aug 2022 10:46:23 +0900 (JST)
Subject: [ruby-changes:73038] a9509068db (master): [rubygems/rubygems] Make `compact_index_api_missing` server more strict
https://git.ruby-lang.org/ruby.git/commit/?id=a9509068db From a9509068db84d6a86a718b5ae931b8d65fc15272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 8 Aug 2022 23:48:02 +0200 Subject: [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 --- spec/bundler/support/artifice/compact_index_api_missing.rb | 7 +------ 1 file changed, 1 insertion(+), 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 https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/artifice/compact_index_api_missing.rb#L6 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/