Class: Pod::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-spm/def/spec.rb

Instance Method Summary collapse

Instance Method Details

#spm_dependenciesObject



6
7
8
# File 'lib/cocoapods-spm/def/spec.rb', line 6

def spm_dependencies
  @spm_dependencies ||= []
end

#spm_dependency(name, options = {}) ⇒ Object



10
11
12
# File 'lib/cocoapods-spm/def/spec.rb', line 10

def spm_dependency(name, options = {})
  spm_dependencies << SPM::Dependency.new(name, options)
end

#with {|spec| ... } ⇒ Object

Yields:

  • (spec)


14
15
16
17
18
19
20
21
22
23
24
# File 'lib/cocoapods-spm/def/spec.rb', line 14

def with
  spec = Pod::Spec.new(
    parent,
    name,
    test_specification,
    app_specification: app_specification
  )
  spec.attributes_hash = attributes_hash.dup
  yield spec if block_given?
  spec
end