3 Prevent access to HOME when --install-root is used.
5 --- lib/rubygems/doc_manager.rb.orig 2011-07-27 02:04:03.000000000 +0000
6 +++ lib/rubygems/doc_manager.rb
7 @@ -60,7 +60,7 @@ class Gem::DocManager
9 # Updates the RI cache for RDoc 2 if it is installed
11 - def self.update_ri_cache
12 + def self.update_ri_cache(install_root = nil)
13 load_rdoc rescue return
15 return unless defined? RDoc::VERSION # RDoc 1 does not have VERSION
16 @@ -71,7 +71,7 @@ class Gem::DocManager
21 + :use_home => (install_root == nil)? true: false,
23 :formatter => RDoc::RI::Formatter,