Sha256: fbd33f529f3770577079b7b983c9275e800e27d90cfc494ce4aa504c4d1e2f65
Contents?: true
Size: 805 Bytes
Versions: 32
Compression:
Stored size: 805 Bytes
Contents
module PodPrebuild class DevPodsCacheValidator < BaseCacheValidator def validate(*) return PodPrebuild::CacheValidationResult.new if @pod_lockfile.nil? validate_pods( pods: @pod_lockfile.dev_pods, subspec_pods: [], prebuilt_pods: @prebuilt_lockfile.nil? ? {} : @prebuilt_lockfile.dev_pods ) end def incompatible_pod(name) diff = super(name) return diff unless diff.empty? incompatible_source(name) end def incompatible_source(name) diff = {} prebuilt_hash = read_source_hash(name) expected_hash = pod_lockfile.dev_pod_hash(name) unless prebuilt_hash == expected_hash diff[name] = { :prebuilt_hash => prebuilt_hash, :expected_hash => expected_hash} end diff end end end
Version data entries
32 entries across 32 versions & 4 rubygems