1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create

directories stealthily.  [ruby-core:20990]

* lib/rubygems.rb (Gem.find_home): expand_path deals with platform
  dependent envirionments.

* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto.

* instruby.rb (gem): creates gem directories at installation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-01-04 08:07:22 +00:00
parent ef7057fe2f
commit 6754cad8e9
4 changed files with 26 additions and 34 deletions

View file

@ -31,13 +31,7 @@ module RDoc::RI::Paths
base = File.join(RbConfig::CONFIG['datadir'], "ri", VERSION)
SYSDIR = File.join(base, "system")
SITEDIR = File.join(base, "site")
homedir = ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH']
if homedir then
HOMEDIR = File.join(homedir, ".rdoc")
else
HOMEDIR = nil
end
HOMEDIR = (File.expand_path("~/.rdoc") rescue nil)
begin
require 'rubygems' unless defined?(Gem) and defined?(Gem::Enable) and