Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::RemoteFetcher#download_to_cache

download_to_cache(dependency)

Given a name and requirement, downloads this gem into cache and returns the filename. Returns nil if the gem cannot be located.

See also #download #fetch_file #close_all #fetch_http also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0