class Bundler::Checksum

def from_api(digest, source_uri, algo = DEFAULT_ALGORITHM)

def from_api(digest, source_uri, algo = DEFAULT_ALGORITHM)
  return if Bundler.settings[:disable_checksum_validation]
  Checksum.new(algo, to_hexdigest(digest, algo), Source.new(:api, source_uri))
end