prof: use ruby-prof 0.18.0
This is the newest version that works with Ruby 2.3. Also, update the `.gitignore` to hide it while we're here.
This commit is contained in:
parent
4a3442d1a4
commit
4b30a61732
1
.gitignore
vendored
1
.gitignore
vendored
@ -134,6 +134,7 @@
|
|||||||
**/vendor/bundle/ruby/*/gems/rspec-support-*/
|
**/vendor/bundle/ruby/*/gems/rspec-support-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
|
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-0*/
|
**/vendor/bundle/ruby/*/gems/rubocop-0*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/ruby-prof-*/
|
||||||
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
|
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
|
||||||
**/vendor/bundle/ruby/*/gems/simplecov-*/
|
**/vendor/bundle/ruby/*/gems/simplecov-*/
|
||||||
**/vendor/bundle/ruby/*/gems/simplecov-cobertura-*/
|
**/vendor/bundle/ruby/*/gems/simplecov-cobertura-*/
|
||||||
|
@ -18,7 +18,7 @@ module Homebrew
|
|||||||
def prof
|
def prof
|
||||||
prof_args.parse
|
prof_args.parse
|
||||||
|
|
||||||
Homebrew.install_gem_setup_path! "ruby-prof"
|
Homebrew.install_gem_setup_path! "ruby-prof", version: "0.18.0"
|
||||||
FileUtils.mkdir_p "prof"
|
FileUtils.mkdir_p "prof"
|
||||||
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
|
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
|
||||||
safe_system "ruby-prof", "--printer=multi", "--file=prof", brew_rb, "--", *ARGV
|
safe_system "ruby-prof", "--printer=multi", "--file=prof", brew_rb, "--", *ARGV
|
||||||
|
Loading…
x
Reference in New Issue
Block a user