class Bundler::CompactIndexClient::CacheFile

def verify

Verify the digests, returning true on match, false on mismatch.
def verify
  return true unless @expected_digests && digests?
  @base64digests = @digests.transform_values!(&:base64digest)
  @digests = nil
  @base64digests.all? {|algo, digest| @expected_digests[algo] == digest }
end