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

Version Path
cocoapods-binary-artifactory-cache-0.0.2 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.14 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.13 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.12 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.11 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.10 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.9 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.8 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.7 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.6 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-0.1.5 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb