Class: Pod::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-tdfire-binary/specification_dsl.rb,
lib/cocoapods-tdfire-binary/binary_specification_refactor.rb

Defined Under Namespace

Modules: DSL

Instance Method Summary collapse

Instance Method Details

#tdfire_recursive_value(name, platform = :ios) ⇒ Object

store_attribute(name, temp) unless temp.empty? end



36
37
38
39
40
41
42
43
# File 'lib/cocoapods-tdfire-binary/binary_specification_refactor.rb', line 36

def tdfire_recursive_value(name, platform = :ios)
  subspec_consumers = recursive_subspecs
                          .select { |s| s.supported_on_platform?(platform) }
                          .map { |s| s.consumer(platform) }
                          .uniq
  value = (Array(consumer(platform)) + subspec_consumers).map { |c| c.send(name) }.flatten
  value
end

#tdfire_refactorObject



8
9
10
# File 'lib/cocoapods-tdfire-binary/specification_dsl.rb', line 8

def tdfire_refactor
  @refactor ||= Pod::Tdfire::BinarySpecificationRefactor.new(self)
end