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