Flowdock
method

to_specs

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Dependency
to_specs() 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 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
Register or log in to add new notes.