method

find_gems_with_sources

ruby latest stable - Class: Gem::DependencyInstaller
find_gems_with_sources(dep, best_only=false)
public

Returns a list of pairs of gemspecs and source_uris that match Gem::Dependency dep from both local (Dir.pwd) and remote (Gem.sources) sources. Gems are sorted with newer gems preferred over older gems, and local gems preferred over remote gems.