Revert "man: fix Ruby syntax warning"

This reverts commit 2caf7b76bb3e09ffabf8c56d3934ba8190673fdc.
This commit is contained in:
Xu Cheng 2016-04-19 15:25:44 +08:00
parent 612f70fba1
commit 9b79f45e94

View File

@ -41,7 +41,7 @@ module Homebrew
def build_man_page def build_man_page
template = (SOURCE_PATH/"brew.1.md.erb").read template = (SOURCE_PATH/"brew.1.md.erb").read
Pathname.glob("#{HOMEBREW_LIBRARY_PATH}/cmd/*.{rb,sh}"). commands = Pathname.glob("#{HOMEBREW_LIBRARY_PATH}/cmd/*.{rb,sh}").
sort_by { |source_file| source_file.basename.sub(/\.(rb|sh)$/, "") }. sort_by { |source_file| source_file.basename.sub(/\.(rb|sh)$/, "") }.
map { |source_file| map { |source_file|
source_file.read.lines. source_file.read.lines.