1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed incorrect man path with ruby installation path

[Bug #15359][ruby-core:90164]
This commit is contained in:
Hiroshi SHIBATA 2020-04-20 21:20:54 +09:00
parent 8e51794265
commit b9962f0e89
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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]