mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.6.0 (released version @ 58d8a0b9)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86bb0af7ea
commit
25a9b62d45
73 changed files with 2408 additions and 719 deletions
|
@ -104,7 +104,7 @@ class Gem::FakeFetcher
|
|||
|
||||
def download spec, source_uri, install_dir = Gem.dir
|
||||
name = spec.file_name
|
||||
path = File.join(install_dir, 'cache', name)
|
||||
path = Gem.cache_gem(name, install_dir)
|
||||
|
||||
Gem.ensure_gem_subdirectories install_dir
|
||||
|
||||
|
@ -119,6 +119,16 @@ class Gem::FakeFetcher
|
|||
path
|
||||
end
|
||||
|
||||
def download_to_cache dependency
|
||||
found = Gem::SpecFetcher.fetcher.fetch dependency
|
||||
|
||||
return if found.empty?
|
||||
|
||||
spec, source_uri = found.first
|
||||
|
||||
download spec, source_uri
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# :stopdoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue