method

download_to_cache

v1_9_3_392 - Show latest stable - Class: Gem::FakeFetcher
download_to_cache(dependency)
public

No documentation available.

# File lib/rubygems/test_utilities.rb, line 116
  def download_to_cache dependency
    found = Gem::SpecFetcher.fetcher.fetch dependency, true, true,
                                           dependency.prerelease?

    return if found.empty?

    spec, source_uri = found.first

    download spec, source_uri
  end