diff options
| author | Jack Nagel | 2014-03-27 22:34:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-27 22:34:22 -0500 |
| commit | 149abcdba85acfd2860c14f7efc26f4e8210f36c (patch) | |
| tree | 6e9864225922319da935530ba85a3fd54ced1721 | |
| parent | 0d32cafc7a89b8996cef2d4f7d4c18a65a798b82 (diff) | |
| download | homebrew-149abcdba85acfd2860c14f7efc26f4e8210f36c.tar.bz2 | |
Fix class definition so we can require files first
| -rw-r--r-- | Library/Homebrew/keg.rb | 9 | ||||
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 32680d35e..d40b53d99 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -1,6 +1,7 @@ -require 'extend/pathname' -require 'formula_lock' -require 'ostruct' +require "extend/pathname" +require "keg_fix_install_names" +require "formula_lock" +require "ostruct" class Keg < Pathname def initialize path @@ -311,5 +312,3 @@ class Keg < Pathname end end end - -require 'keg_fix_install_names' diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 7356efcd2..22c3af848 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -1,4 +1,4 @@ -class Keg +class Keg < Pathname PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze |
