mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 2.2.2 r192
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da6300e8f8
commit
7222e82a8b
22 changed files with 115 additions and 54 deletions
|
@ -28,15 +28,13 @@ module RDoc::RI::Paths
|
|||
|
||||
VERSION = RbConfig::CONFIG['ruby_version']
|
||||
|
||||
ri = RbConfig::CONFIG['RUBY_INSTALL_NAME'].sub(/ruby/, 'ri')
|
||||
base = File.join(RbConfig::CONFIG['datadir'], ri, VERSION)
|
||||
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
|
||||
rdoc = RbConfig::CONFIG['RUBY_INSTALL_NAME'].sub(/ruby/, 'rdoc')
|
||||
HOMEDIR = File.join(homedir, ".#{rdoc}")
|
||||
HOMEDIR = File.join(homedir, ".rdoc")
|
||||
else
|
||||
HOMEDIR = nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue