download(spec, dir=Dir.pwd)
public
Downloads spec and writes it to dir. See also
Gem::RemoteFetcher#download.
# File lib/rubygems/source.rb, line 213
def download(spec, dir=Dir.pwd)
fetcher = Gem::RemoteFetcher.fetcher
fetcher.download spec, api_uri.to_s, dir
end