From b9962f0e8909b1163320fbcfe80060a259b2353d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 20 Apr 2020 21:20:54 +0900 Subject: [PATCH] Fixed incorrect man path with ruby installation path [Bug #15359][ruby-core:90164] --- lib/bundler/cli.rb | 2 ++ 1 file changed, 2 insertions(+) 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]