Skip to content

Commit 2599ac3

Browse files
committed
Expand $destdir to enable rdoc plugins for rubygems
`Gem::InstallerUninstallerUtils#regenerate_plugins_for` assumes that `plugins_dir` is an absolute path as same as the target plugin files.
1 parent fe2bc77 commit 2599ac3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tool/rbinstall.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def $mflags.defined?(var)
150150
end
151151

152152
$destdir ||= $mflags.defined?("DESTDIR")
153+
$destdir = File.expand_path($destdir) if $destdir
153154
if $extout ||= $mflags.defined?("EXTOUT")
154155
RbConfig.expand($extout)
155156
end
@@ -688,9 +689,6 @@ class UnpackedInstaller < Gem::Installer
688689
def write_cache_file
689690
end
690691

691-
def generate_plugins
692-
end
693-
694692
def shebang(bin_file_name)
695693
path = File.join(gem_dir, spec.bindir, bin_file_name)
696694
first_line = File.open(path, "rb") {|file| file.gets}

0 commit comments

Comments
 (0)