diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-20 21:20:54 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-21 06:53:29 +0900 |
commit | b9962f0e8909b1163320fbcfe80060a259b2353d (patch) | |
tree | 8c0dbc160470484e09da0b1229fb60c67d69be79 /lib/bundler | |
parent | 8e517942656f095af2b3417f0df85ae0b216002a (diff) | |
download | ruby-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.rb | 2 |
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] |