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
|
@ -79,11 +79,13 @@ revert the gem.
|
|||
say "Restoring gem(s) to pristine condition..."
|
||||
|
||||
specs.each do |spec|
|
||||
gem = Dir[File.join(Gem.dir, 'cache', spec.file_name)].first
|
||||
gem = spec.cache_gem
|
||||
|
||||
if gem.nil? then
|
||||
alert_error "Cached gem for #{spec.full_name} not found, use `gem install` to restore"
|
||||
next
|
||||
say "Cached gem for #{spec.full_name} not found, attempting to fetch..."
|
||||
dep = Gem::Dependency.new spec.name, spec.version
|
||||
Gem::RemoteFetcher.fetcher.download_to_cache dep
|
||||
gem = spec.cache_gem
|
||||
end
|
||||
|
||||
# TODO use installer options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue