Sha256: 47385e839b382c38ad682d9106732804fe5ea97ae9351dbc0e1f98febc83decb

Contents?: true

Size: 857 Bytes

Versions: 29

Compression:

Stored size: 857 Bytes

Contents

require_relative "base"

module PodPrebuild
  class IntegrationDiagnosis < BaseDiagnosis
    def run
      should_be_integrated = if PodPrebuild.config.prebuild_job? \
                             then @cache_validation.hit + @cache_validation.missed \
                             else @cache_validation.hit \
                             end
      should_be_integrated = should_be_integrated.map { |name| name.split("/")[0] }.to_set
      unintegrated = should_be_integrated.reject do |name|
        module_name = spec(name)&.module_name || name
        framework_path = \
          @standard_sandbox.pod_dir(name) + \
          PodPrebuild.config.prebuilt_path(path: "#{module_name}.framework")
        framework_path.exist?
      end
      return [] if unintegrated.empty?

      [[:error, "Unintegrated frameworks: #{unintegrated}"]]
    end
  end
end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
cocoapods-binary-cache-next-0.1.16 lib/cocoapods-binary-cache/diagnosis/integration.rb
cocoapods-binary-cache-next-0.1.15 lib/cocoapods-binary-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.19 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-ht-1.0.0 lib/cocoapods-binary-ht/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/cocoapods-binary-artifactory-cache/diagnosis/integration.rb