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

[rubygems/rubygems] Pass the rubocop lint

https://github.com/rubygems/rubygems/commit/d4486ca061
This commit is contained in:
Hiroshi SHIBATA 2020-04-21 19:34:26 +09:00
parent 5b77fc8abe
commit 442866c2d4

View file

@ -122,7 +122,7 @@ module Bundler
else command = "bundle-#{cli}"
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|