Sha256: a1732e8e3cf447a3b72d7a4427031690332bc8ab8f7040dbd2e2f3a447eb4ec9
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
module Pod def self.inhibit_waning_condition_block @inhibit_waning_condition_block end def self.set_inhibit_waning_condition_block(block) @inhibit_waning_condition_block = block end end module Pod class PodTarget # the original code # https://github.com/CocoaPods/CocoaPods/blob/93011ece10dd76b8d783bc80db742dfd03f7cbac/lib/cocoapods/target/pod_target.rb # ---- patch ---- old_method = instance_method(:inhibit_warnings?) define_method(:inhibit_warnings?) do if Pod.inhibit_waning_condition_block == nil # return the original return old_method.bind(self).() else return Pod.inhibit_waning_condition_block.call(pod_name, self) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems