aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-04-20 21:20:54 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-04-21 06:53:29 +0900
commitb9962f0e8909b1163320fbcfe80060a259b2353d (patch)
tree8c0dbc160470484e09da0b1229fb60c67d69be79 /lib/bundler
parent8e517942656f095af2b3417f0df85ae0b216002a (diff)
downloadruby-b9962f0e8909b1163320fbcfe80060a259b2353d.tar.gz
Fixed incorrect man path with ruby installation path
[Bug #15359][ruby-core:90164]
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 443458f2d9..22fca7fdf4 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -123,6 +123,8 @@ module Bundler
end
man_path = File.expand_path("../../../man", __FILE__)
+ # man files are located under the share directory with the default gems of bundler
+ man_path = File.expand_path("../../../../../share/man/man1", __FILE__) unless File.directory?(man_path)
man_pages = Hash[Dir.glob(File.join(man_path, "*")).grep(/.*\.\d*\Z/).collect do |f|
[File.basename(f, ".*"), f]
end]