Skip to content

Commit 1093303

Browse files
authored
Merge pull request #765 from nobu/drop-old-rubies
Drop old rubies
2 parents e8c56dd + a3a614e commit 1093303

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

lib/rdoc/ri/paths.rb

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,12 @@ module RDoc::RI::Paths
1212

1313
version = RbConfig::CONFIG['ruby_version']
1414

15-
BASE = if RbConfig::CONFIG.key? 'ridir' then
16-
File.join RbConfig::CONFIG['ridir'], version
17-
else
18-
File.join RbConfig::CONFIG['datadir'], 'ri', version
19-
end
15+
BASE = File.join RbConfig::CONFIG['ridir'], version
2016

21-
homedir = begin
22-
File.expand_path('~')
17+
HOMEDIR = begin
18+
File.expand_path('~/.rdoc')
2319
rescue ArgumentError
2420
end
25-
26-
homedir ||= ENV['HOME'] ||
27-
ENV['USERPROFILE'] || ENV['HOMEPATH'] # for 1.8 compatibility
28-
29-
HOMEDIR = if homedir then
30-
File.join homedir, ".rdoc"
31-
end
3221
#:startdoc:
3322

3423
##

0 commit comments

Comments
 (0)