Class: Pod::Specification::Set::External

Inherits:
Pod::Specification::Set show all
Defined in:
lib/cocoapods-core/specification/set.rb

Overview

Note:

External sources *don’t* support subspecs.

The Set::External class handles Pods from external sources. Pods from external sources don’t use the Pod::Source and are initialized by a given specification.

Instance Attribute Summary collapse

Attributes inherited from Pod::Specification::Set

#dependencies, #dependencies_by_requirer_name, #name, #sources

Instance Method Summary collapse

Methods inherited from Pod::Specification::Set

#acceptable_versions, #dependency, #highest_version, #highest_version_spec_path, #required_by, #required_version, #specification_path_for_version, #to_hash, #to_s, #versions_by_source

Constructor Details

#initialize(spec) ⇒ External

Returns a new instance of External.



209
210
211
212
# File 'lib/cocoapods-core/specification/set.rb', line 209

def initialize(spec)
  @specification = spec.root
  super(@specification.name)
end

Instance Attribute Details

#specificationObject (readonly)

Returns the value of attribute specification.



207
208
209
# File 'lib/cocoapods-core/specification/set.rb', line 207

def specification
  @specification
end

Instance Method Details

#==(other) ⇒ Object



214
215
216
# File 'lib/cocoapods-core/specification/set.rb', line 214

def ==(other)
  self.class == other.class && specification == other.specification
end

#specification_pathObject

Raises:



218
219
220
# File 'lib/cocoapods-core/specification/set.rb', line 218

def specification_path
  raise StandardError, 'specification_path'
end

#versionsObject



222
223
224
# File 'lib/cocoapods-core/specification/set.rb', line 222

def versions
  [specification.version]
end