summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Emde <[email protected]>2025-02-25 13:51:36 -0800
committerHiroshi SHIBATA <[email protected]>2025-02-27 13:32:32 +0900
commit61060d349d26f6ae6388b75899ba0a438906efdb (patch)
treeec02be626f6c360b45355041966980af1ca31b97 /lib
parent3e78a2f58e60c2cb7a6fdd2aacdea03b31ca21eb (diff)
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/compact_index_client.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/compact_index_client.rb b/lib/bundler/compact_index_client.rb
index a4f5bb1638..37e2ccced8 100644
--- a/lib/bundler/compact_index_client.rb
+++ b/lib/bundler/compact_index_client.rb
@@ -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: