Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > rubygems/dependency_installerライブラリ > Gem::DependencyInstallerクラス > find_gems_with_sources

instance method Gem::DependencyInstaller#find_gems_with_sources

find_gems_with_sources(dep) -> Array

与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。

Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。 結果は、バージョンの新しい順が先にきます。また、ローカルの Gem も先にきます。

[PARAM] dep:
Gem::Dependency のインスタンスを指定します。
class Gem::DependencyInstaller