Flowdock
method

find_in_unresolved_tree

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: GemPathSearcher
find_in_unresolved_tree(glob) public

No documentation

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

Hide source
# File lib/rubygems/gem_path_searcher.rb, line 96
  def find_in_unresolved_tree glob
    # HACK violation
    # TODO: inverted responsibility
    specs = Gem.unresolved_deps.values.map { |dep|
      Gem.source_index.search dep, true
    }.flatten

    specs.reverse_each do |spec|
      trails = matching_paths(spec, glob)
      next if trails.empty?
      return trails.map(&:reverse).sort.first.reverse
    end

    []
  end
Register or log in to add new notes.