# File lib/rubygems/dependency.rb, line 237
  def to_specs
    matches = matching_specs true

    # TODO: check Gem.activated_spec[self.name] in case matches falls outside

    if matches.empty? then
      specs = Gem::Specification.all_names.join ", "
      error = Gem::LoadError.new "Could not find #{name} (#{requirement}) amongst [#{specs}]"
      error.name        = self.name
      error.requirement = self.requirement
      raise error
    end

    # TODO: any other resolver validations should go here

    matches
  end