* 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
This commit is contained in:
nobu 2010-09-16 12:02:34 +00:00
Родитель d91f4777df
Коммит 75d694e535
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Sep 16 21:02:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths.each): HOMEDIR can be nil
if $HOME is unset.
Thu Sep 16 20:16:07 2010 Akinori MUSHA <knu@iDaemons.org> Thu Sep 16 20:16:07 2010 Akinori MUSHA <knu@iDaemons.org>
* LEGAL: Rephrase the leading sentences for clarification. Avoid * LEGAL: Rephrase the leading sentences for clarification. Avoid

Просмотреть файл

@ -26,7 +26,7 @@ module RDoc::RI::Paths
# true # true
# :site:: Where ri for installed libraries are stored. Yielded when # :site:: Where ri for installed libraries are stored. Yielded when
# +site+ is true. Normally no ri data is stored here. # +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. # :gem:: ri data for an installed gem. Yielded when +gems+ is true.
# :extra:: ri data directory from the command line. Yielded for each # :extra:: ri data directory from the command line. Yielded for each
# entry in +extra_dirs+ # entry in +extra_dirs+
@ -38,7 +38,7 @@ module RDoc::RI::Paths
yield SYSDIR, :system if system yield SYSDIR, :system if system
yield SITEDIR, :site if site yield SITEDIR, :site if site
yield HOMEDIR, :home if home yield HOMEDIR, :home if home and HOMEDIR
gemdirs.each do |dir| gemdirs.each do |dir|
yield dir, :gem yield dir, :gem