summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 03:16:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 03:16:34 +0000
commitfc0df967d776c3c7b0c2e47400940ef91b25b978 (patch)
tree722d75f18f459b84e2a40888060c308f01d24193 /lib/rdoc
parentcc479b25ba715099ac721ad9d0b1b4237fa2b9f9 (diff)
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths::HOMEDIR): no exception if
HOME is not set. [ruby-core:33867] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/ri/paths.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index ec4d16b857..f44b0e1e95 100644
--- a/lib/rdoc/ri/paths.rb
+++ b/lib/rdoc/ri/paths.rb
@@ -19,12 +19,7 @@ module RDoc::RI::Paths
SYSDIR = File.join base, "system"
SITEDIR = File.join base, "site"
- homedir = File.expand_path('~') ||
- ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH']
-
- HOMEDIR = if homedir then
- File.join homedir, ".rdoc"
- end
+ HOMEDIR = File.expand_path('~/.rdoc') rescue nil
#:startdoc:
@gemdirs = nil