[rubygems/rubygems] Remove MD5 digesting of compact index responses

It has been over a year since the release, so let's stop MD5ing everything

https://github.com/rubygems/rubygems/commit/29ef4ca30b
This commit is contained in:
Martin Emde 2025-02-25 13:51:36 -08:00 committed by Hiroshi SHIBATA
parent 3e78a2f58e
commit 61060d349d
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -28,11 +28,7 @@ module Bundler
# It may be called concurrently without global interpreter lock in some Rubies.
# As a result, some methods may look more complex than necessary to save memory or time.
class CompactIndexClient
# NOTE: MD5 is here not because we expect a server to respond with it, but
# because we use it to generate the etag on first request during the upgrade
# to the compact index client that uses opaque etags saved to files.
# Remove once 2.5.0 has been out for a while.
SUPPORTED_DIGESTS = { "sha-256" => :SHA256, "md5" => :MD5 }.freeze
SUPPORTED_DIGESTS = { "sha-256" => :SHA256 }.freeze
DEBUG_MUTEX = Thread::Mutex.new
# info returns an Array of INFO Arrays. Each INFO Array has the following indices: