Flowdock
method

matching_specs

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Dependency
matching_specs(platform_only = false) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/dependency.rb, line 215
  def matching_specs platform_only = false
    matches = Gem::Specification.find_all { |spec|
      self.name === spec.name and # TODO: == instead of ===
        requirement.satisfied_by? spec.version
    }

    if platform_only
      matches.reject! { |spec|
        not Gem::Platform.match spec.platform
      }
    end

    matches = matches.sort_by { |s| s.sort_obj } # HACK: shouldn't be needed
  end
Register or log in to add new notes.