Class: Pod::Lockfile
- Inherits:
-
Object
- Object
- Pod::Lockfile
- Defined in:
- lib/cocoapods-jxedt/binary/helper/podfile_options.rb
Instance Method Summary collapse
Instance Method Details
#spec_checksums_hash_key(name) ⇒ Object
106 107 108 109 110 111 112 113 114 |
# File 'lib/cocoapods-jxedt/binary/helper/podfile_options.rb', line 106 def spec_checksums_hash_key(name) # git分支或commit依赖的组件的checksum值是用podspec文件做的hash,hash可能不变,所以有commitid时校验commitid = self.internal_data["CHECKOUT OPTIONS"] || {} checksum = [name][:commit] unless [name].nil? return checksum unless checksum.nil? checksums_hash = self.internal_data["SPEC CHECKSUMS"] return checksums_hash[name] if checksums_hash.include?("#{name}") end |