==(other)
click to toggle source
def ==(other)
return unless other.is_a?(SpecGroup)
name == other.name &&
version == other.version &&
source == other.source
end
eql?(other)
click to toggle source
def eql?(other)
name.eql?(other.name) &&
version.eql?(other.version) &&
source.eql?(other.source)
end
for?(platform)
click to toggle source
def for?(platform)
spec = @specs[platform]
!spec.nil?
end
hash()
click to toggle source
def hash
to_s.hash ^ source.hash
end
to_s()
click to toggle source
def to_s
@to_s ||= "#{name} (#{version})"
end
to_specs()
click to toggle source
def to_specs
@activated_platforms.map do |p|
next unless s = @specs[p]
lazy_spec = LazySpecification.new(name, version, s.platform, source)
lazy_spec.dependencies.replace s.dependencies
lazy_spec
end.compact
end