mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: update to 1.3.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65544f575b
commit
b551e8c8b3
119 changed files with 2735 additions and 2613 deletions
|
@ -2,7 +2,6 @@ require 'rubygems/command'
|
|||
require 'fileutils'
|
||||
require 'rbconfig'
|
||||
require 'tmpdir'
|
||||
require 'pathname'
|
||||
|
||||
##
|
||||
# Installs RubyGems itself. This command is ordinarily only available from a
|
||||
|
@ -117,6 +116,8 @@ By default, this RubyGems will install gem as:
|
|||
|
||||
say "RubyGems #{Gem::VERSION} installed"
|
||||
|
||||
uninstall_old_gemcutter
|
||||
|
||||
install_rdoc
|
||||
|
||||
say
|
||||
|
@ -359,5 +360,14 @@ abort "#{deprecation_message}"
|
|||
r.document args
|
||||
end
|
||||
|
||||
def uninstall_old_gemcutter
|
||||
require 'rubygems/uninstaller'
|
||||
|
||||
ui = Gem::Uninstaller.new('gemcutter', :all => true, :ignore => true,
|
||||
:version => '< 0.4')
|
||||
ui.uninstall
|
||||
rescue Gem::InstallError
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue