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:
parent
8e51794265
commit
b9962f0e89
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ module Bundler
|
||||||
end
|
end
|
||||||
|
|
||||||
man_path = File.expand_path("../../../man", __FILE__)
|
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|
|
man_pages = Hash[Dir.glob(File.join(man_path, "*")).grep(/.*\.\d*\Z/).collect do |f|
|
||||||
[File.basename(f, ".*"), f]
|
[File.basename(f, ".*"), f]
|
||||||
end]
|
end]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue