mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): expand_path deals with
platform dependent envirionments. reapplied r21312. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2553a96f9e
commit
6926a10297
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Apr 2 13:51:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): expand_path deals with
|
||||||
|
platform dependent envirionments. reapplied r21312.
|
||||||
|
|
||||||
Fri Apr 2 12:52:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Apr 2 12:52:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rdoc/parser.rb (binary?): regression.
|
* lib/rdoc/parser.rb (binary?): regression.
|
||||||
|
|
|
@ -13,12 +13,8 @@ module RDoc::RI::Paths
|
||||||
base = File.join RbConfig::CONFIG['datadir'], "ri", version
|
base = File.join RbConfig::CONFIG['datadir'], "ri", version
|
||||||
SYSDIR = File.join base, "system"
|
SYSDIR = File.join base, "system"
|
||||||
SITEDIR = File.join base, "site"
|
SITEDIR = File.join base, "site"
|
||||||
homedir = File.expand_path('~') ||
|
HOMEDIR = (File.expand_path("~/.rdoc") rescue nil)
|
||||||
ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH']
|
|
||||||
|
|
||||||
HOMEDIR = if homedir then
|
|
||||||
File.join homedir, ".rdoc"
|
|
||||||
end
|
|
||||||
#:startdoc:
|
#:startdoc:
|
||||||
|
|
||||||
@gemdirs = nil
|
@gemdirs = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue