class SourceHelper
In charge of host the Pods names that comes from our private sources
NOTE: The safest way to handle this was to host the complete specification and not only the pods
names as rubydocs specified (https://www.rubydoc.info/github/CocoaPods/Core/Pod/Source#all_specs-instance_method) However, the execution time was considerably slower.
Attributes
specs[RW]
Public Class Methods
new()
click to toggle source
# File lib/cocoapods-whitelist/helpers/source_helper.rb, line 15 def initialize() @specs ||= [] end
Public Instance Methods
is_filled()
click to toggle source
# File lib/cocoapods-whitelist/helpers/source_helper.rb, line 26 def is_filled return !@specs.empty? end
setup(sources, private_sources)
click to toggle source
# File lib/cocoapods-whitelist/helpers/source_helper.rb, line 19 def setup(sources, private_sources) private_sources = sources.select {|s| private_sources.include? s.url} private_sources.each do |s| @specs.concat s.pods end end