aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-05-07 13:52:57 +0100
committerMike McQuaid2017-05-07 13:52:57 +0100
commitee253e465b8e2f5acdb53daf572311e87055e082 (patch)
tree59d478b0a91845c3706e6cd312e7d3469c0a594a /Library/Homebrew/dev-cmd/audit.rb
parent6edf9382bcc1240ad6f97c8b752cfe56cef9965d (diff)
downloadbrew-ee253e465b8e2f5acdb53daf572311e87055e082.tar.bz2
Vendor all Homebrew's gems.
Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index cb25ca794..9ea3faf11 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -65,6 +65,9 @@ module Homebrew
ENV.activate_extensions!
ENV.setup_build_environment
+ # Add RubyGems (for RuboCop).
+ ENV["PATH"] = PATH.new(ENV["PATH"]).append(HOMEBREW_GEM_HOME/"bin")
+
if ARGV.named.empty?
ff = Formula
files = Tap.map(&:formula_dir)