class Bundler::Resolver::SpecGroup

def __dependencies(spec)

def __dependencies(spec)
  dependencies = []
  spec.dependencies.each do |dep|
    next if dep.type == :development
    dependencies << Dependency.new(dep.name, dep.requirement)
  end
  dependencies
end

def dependencies

def dependencies
  @dependencies ||= @specs.map do |spec|
    __dependencies(spec) + metadata_dependencies(spec)
  end.flatten.uniq
end

def empty?

def empty?
  @specs.empty?
end

def exemplary_spec

def exemplary_spec
  @specs.first
end

def initialize(specs)

def initialize(specs)
  @specs = specs
end

def metadata_dependencies(spec)

def metadata_dependencies(spec)
  return [] if spec.is_a?(LazySpecification)
  [
    metadata_dependency("Ruby", spec.required_ruby_version),
    metadata_dependency("RubyGems", spec.required_rubygems_version),
  ].compact
end

def metadata_dependency(name, requirement)

def metadata_dependency(name, requirement)
  return if requirement.nil? || requirement.none?
  Dependency.new("#{name}\0", requirement)
end

def name

def name
  @name ||= exemplary_spec.name
end

def sorted_spec_names

def sorted_spec_names
  @sorted_spec_names ||= @specs.map(&:full_name).sort
end

def source

def source
  @source ||= exemplary_spec.source
end

def to_s

def to_s
  sorted_spec_names.join(", ")
end

def to_specs(force_ruby_platform)

def to_specs(force_ruby_platform)
  @specs.map do |s|
    lazy_spec = LazySpecification.new(name, version, s.platform, source)
    lazy_spec.force_ruby_platform = force_ruby_platform
    lazy_spec.dependencies.replace s.dependencies
    lazy_spec
  end
end

def version

def version
  @version ||= exemplary_spec.version
end