summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/paths.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-24 23:05:28 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-24 23:05:28 +0000
commit7222e82a8b98afdc61b9cf6ad7419068429a42e9 (patch)
tree9601822113feef70fe4f6fc19b5453dd378dcd62 /lib/rdoc/ri/paths.rb
parentda6300e8f888d0664347a5f2fb43dc749df7b5ad (diff)
Import RDoc 2.2.2 r192
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/paths.rb')
-rw-r--r--lib/rdoc/ri/paths.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index 037606ec27..2f72b9dfd5 100644
--- a/lib/rdoc/ri/paths.rb
+++ b/lib/rdoc/ri/paths.rb
@@ -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