class Bundler::Resolver::SpecGroup

def __dependencies

def __dependencies
  @dependencies ||= begin
    dependencies = {}
    ALL.each do |p|
      if spec = @specs[p]
        dependencies[p] = []
        spec.dependencies.each do |dep|
          next if dep.type == :development
          dependencies[p] << DepProxy.new(dep, p)
        end
      end
    end
    dependencies
  end
end

def activate_platform(platform)

def activate_platform(platform)
  unless @activated.include?(platform)
    @activated << platform
    return __dependencies[platform] || []
  end
  []
end

def for?(platform)

def for?(platform)
  @specs[platform]
end

def initialize(a)

def initialize(a)
  super
  @required_by  = []
  @activated    = []
  @dependencies = nil
  @specs        = {}
  ALL.each do |p|
    @specs[p] = reverse.find { |s| s.match_platform(p) }
  end
end

def initialize_copy(o)

def initialize_copy(o)
  super
  @required_by = o.required_by.dup
  @activated   = o.activated.dup
end

def name

def name
  @name ||= first.name
end

def source

def source
  @source ||= first.source
end

def to_s

def to_s
  "#{name} (#{version})"
end

def to_specs

def to_specs
  specs = {}
  @activated.each do |p|
    if s = @specs[p]
      platform = generic(Gem::Platform.new(s.platform))
      next if specs[platform]
      lazy_spec = LazySpecification.new(name, version, platform, source)
      lazy_spec.dependencies.replace s.dependencies
      specs[platform] = lazy_spec
    end
  end
  specs.values
end

def version

def version
  @version ||= first.version
end