lib/rubygems/dependency.rb
##
# Valid dependency types.
#--
# When this list is updated, be sure to change
# Gem::Specification::CURRENT_SPECIFICATION_VERSION as well.
#
# REFACTOR: This type of constant, TYPES, indicates we might want
# two classes, used via inheritance or duck typing.
Valid dependency types.
When this list is updated, be sure to change
Gem::Specification::CURRENT_SPECIFICATION_VERSION as well.

This type of constant, TYPES, indicates we might want
two classes, used via inheritance or duck typing.
Valid dependency types . When this list is updated be sure to change Gem :: Specification :: CURRENT_SPECIFICATION_VERSION as well . This type of constant TYPES indicates we might want two classes used via inheritance or duck typing .
def to_specs
    matches = matching_specs true
    if matches.empty?
      specs = Gem::Specification.stubs_for name
      if specs.empty?
        raise Gem::MissingSpecError.new name, requirement
      else
        raise Gem::MissingSpecVersionError.new name, requirement, specs
      end
    end
    matches
  end
def to_specs matches = matching_specs true if matches . empty? specs = Gem :: Specification . stubs_for name if specs . empty? raise Gem :: MissingSpecError . new name , requirement else raise Gem :: MissingSpecVersionError . new name , requirement , specs end end matches end
Valid dependency types.
Valid dependency types .
# TODO: check Gem.activated_spec[self.name] in case matches falls outside # TODO: any other resolver validations should go here