Method: Pod::Lockfile.generate_checksums

Defined in:
lib/cocoapods-core/lockfile.rb

.generate_checksums(specs) ⇒ Hash (private)

Generates the relative to the checksum of the specifications.

Examples:

Output

{
  "BananaLib"=>"9906b267592664126923875ce2c8d03824372c79",
  "JSONKit"=>"92ae5f71b77c8dec0cd8d0744adab79d38560949"
}

Returns:

  • (Hash)

    a hash where the keys are the names of the root specifications and the values are the SHA1 digest of the podspec file.



540
541
542
543
544
545
546
# File 'lib/cocoapods-core/lockfile.rb', line 540

def generate_checksums(specs)
  checksums = {}
  specs.select(&:defined_in_file).each do |spec|
    checksums[spec.root.name] = spec.checksum
  end
  checksums
end