diff options
| author | Mike McQuaid | 2017-05-07 15:33:54 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-05-07 15:33:54 +0100 |
| commit | 33f83be10e5256ce628cb128f25d0a9f399d37ef (patch) | |
| tree | 1f2f4ad3d7376208bf280486474e62293c43f204 /Library/Homebrew/os | |
| parent | 3e4547f52e7ebec633f8bfefc8a396d944edf908 (diff) | |
| download | brew-33f83be10e5256ce628cb128f25d0a9f399d37ef.tar.bz2 | |
Tweak Gem vendoring.
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather
confusing fashion. Instead, run `bundle` for them with the arguments
that they'd want.
Also, move `macho` requires into the module itself; it's a pain having
to do everything for Bundler before requiring `pathname` which is a core
Ruby class.
Diffstat (limited to 'Library/Homebrew/os')
| -rw-r--r-- | Library/Homebrew/os/mac/mach.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index 71f501fe9..416183f68 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -1,10 +1,11 @@ -require "macho" require "os/mac/architecture_list" module MachOShim # @private def macho @macho ||= begin + require "macho" + MachO.open(to_s) end end @@ -12,6 +13,8 @@ module MachOShim # @private def mach_data @mach_data ||= begin + require "macho" + machos = [] mach_data = [] |
