method

spec_for_dependency

ruby latest stable - Class: Gem::SpecFetcher
spec_for_dependency(dependency, matching_platform=true)
public

Find and fetch specs that match dependency.

If matching_platform is false, gems for all platforms are returned.