class Bundler::CompactIndexClient::CacheFile

def digests=(expected_digests)

set the digests that will be verified at the end
def digests=(expected_digests)
  @expected_digests = expected_digests
  if @expected_digests.nil?
    @digests = nil
  elsif @digests
    @digests = @digests.slice(*@expected_digests.keys)
  else
    initialize_digests(@expected_digests.keys)
  end
end