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 matching_specs(platform_only = false)
    env_req = Gem.env_requirement(name)
    matches = Gem::Specification.stubs_for(name).find_all do |spec|
      requirement.satisfied_by?(spec.version) && env_req.satisfied_by?(spec.version)
    end.map(&:to_spec)
    Gem::BundlerVersionFinder.prioritize!(matches) if prioritizes_bundler?
    if platform_only
      matches.reject! do |spec|
        spec.nil? || !Gem::Platform.match_spec?(spec)
      end
    end
    matches
  end
def matching_specs ( platform_only = false ) env_req = Gem . env_requirement ( name ) matches = Gem :: Specification . stubs_for ( name ) . find_all do | spec | requirement . satisfied_by? ( spec . version ) && env_req . satisfied_by? ( spec . version ) end . map ( & :to_spec ) Gem :: BundlerVersionFinder . prioritize! ( matches ) if prioritizes_bundler? if platform_only matches . reject! do | spec | spec . nil? || ! Gem :: Platform . match_spec? ( spec ) end end matches end
Valid dependency types.
Valid dependency types .
platform_only
<not_specific>