summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-16 12:02:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-16 12:02:34 +0000
commit75d694e535282cd5e2b0ab4ac3743042e0d03e05 (patch)
tree4a372bbad0a2fad44f3d2cd6576f1ebfebb196b5 /lib/rdoc/ri
parentd91f4777dffb2fda9e166803b5ffa642077f7a27 (diff)
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths.each): HOMEDIR can be nil
if $HOME is unset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-rw-r--r--lib/rdoc/ri/paths.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index df12045203..9b338d7ad8 100644
--- a/lib/rdoc/ri/paths.rb
+++ b/lib/rdoc/ri/paths.rb
@@ -26,7 +26,7 @@ module RDoc::RI::Paths
# true
# :site:: Where ri for installed libraries are stored. Yielded when
# +site+ is true. Normally no ri data is stored here.
- # :home:: ~/.ri. Yielded when +home+ is true.
+ # :home:: ~/.rdoc. Yielded when +home+ is true.
# :gem:: ri data for an installed gem. Yielded when +gems+ is true.
# :extra:: ri data directory from the command line. Yielded for each
# entry in +extra_dirs+
@@ -38,7 +38,7 @@ module RDoc::RI::Paths
yield SYSDIR, :system if system
yield SITEDIR, :site if site
- yield HOMEDIR, :home if home
+ yield HOMEDIR, :home if home and HOMEDIR
gemdirs.each do |dir|
yield dir, :gem