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-cache-next-0.1.16 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-cache-next-0.1.15 lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.19 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-ht-1.0.0 lib/cocoapods-binary-ht/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/cocoapods-binary-artifactory-cache/cache/validator_dev_pods.rb