End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Source#download
download(spec, dir=Dir.pwd)
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/source.rb, line 206
def download(spec, dir=Dir.pwd)
fetcher = Gem::RemoteFetcher.fetcher
fetcher.download spec, uri.to_s, dir
end
Downloads spec and writes it to dir. See also Gem::RemoteFetcher#download.
See also
#cache_dir
#enforce_trailing_slash
#<=>
#fetch_spec
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0