Sha256: 098a0cb021e62435dd1a2e1260b7feea8122657ebd4ad4c309739e6a80200d3a
Contents?: true
Size: 994 Bytes
Versions: 1
Compression:
Stored size: 994 Bytes
Contents
require 'colored' require 'cocoapods' module CocoapodsAcknowledgementsFilter @@filter = Proc.new { |name| true } def self.exclude @@exclude end def self.filter @@filter end Pod::HooksManager.register('cocoapods-acknowledgements-filter', :pre_install) do |context, user_options| @@exclude = user_options["exclude"] filter = user_options["filter"] @@filter = filter unless filter.nil? end end module Pod module Generator class Acknowledgements alias_method :specs_before, :specs # @return [Array<Specification>] The root specifications for which the # acknowledgements should be generated. # def specs file_accessors.map { |accessor| accessor.spec.root }.uniq .select { |spec| not CocoapodsAcknowledgementsFilter::exclude.include? spec.name } .select { |spec| CocoapodsAcknowledgementsFilter::filter.call(spec.name) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-acknowledgements-filter-0.1.0 | lib/cocoapods_plugin.rb |