Sha256: e34d6837eb183cea8366d45f83c4a86ecb7df7cc93f93fea1e3d18a779ddcde5

Contents?: true

Size: 862 Bytes

Versions: 29

Compression:

Stored size: 862 Bytes

Contents

module Pod
  class Installer
    class Analyzer
      class SandboxAnalyzer
        original_analyze = instance_method(:analyze)
        define_method(:analyze) do
          state = original_analyze.bind(self).call
          state = alter_state(state)
          state
        end

        private

        def alter_state(state)
          return state if PodPrebuild.config.tracked_prebuilt_pod_names.empty?

          prebuilt = PodPrebuild.config.tracked_prebuilt_pod_names
          Pod::UI.message "Alter sandbox state: treat prebuilt frameworks as added: #{prebuilt.to_a}"
          SpecsState.new(
            :added => (state.added + prebuilt).uniq,
            :changed => state.changed - prebuilt,
            :removed => state.deleted - prebuilt,
            :unchanged => state.unchanged - prebuilt
          )
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.2 lib/cocoapods-binary-artifactory-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/cocoapods-binary-artifactory-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.14 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.13 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.12 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.11 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.10 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.9 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb
cocoapods-binary-cache-0.1.8 lib/cocoapods-binary-cache/pod-binary/integration/patch/sandbox_analyzer_state.rb