diff options
| author | Xu Cheng | 2016-01-15 20:06:15 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-01-17 14:52:09 +0800 |
| commit | 09a79106d762bf5cf7c3623c3d27b4e1851fbb83 (patch) | |
| tree | 38fad5d663750d1030a4409c5bb374ded29d2a51 | |
| parent | b32d21fea07a77f20fbf0c1ba7996bd77e750239 (diff) | |
| download | brew-09a79106d762bf5cf7c3623c3d27b4e1851fbb83.tar.bz2 | |
Tap: allow invoking formula_file_to_name by Homebrew internally
| -rw-r--r-- | Library/Homebrew/core_formula_repository.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/tap.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/core_formula_repository.rb b/Library/Homebrew/core_formula_repository.rb index 0c9994327..124e9ea3a 100644 --- a/Library/Homebrew/core_formula_repository.rb +++ b/Library/Homebrew/core_formula_repository.rb @@ -68,12 +68,12 @@ class CoreFormulaRepository < Tap FORMULA_RENAMES end - private - + # @private def formula_file_to_name(file) file.basename(".rb").to_s end + # @private def alias_file_to_name(file) file.basename.to_s end diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 2d091ba33..a577d3b97 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -366,12 +366,12 @@ class Tap map(&:name) end - private - + # @private def formula_file_to_name(file) "#{name}/#{file.basename(".rb")}" end + # @private def alias_file_to_name(file) "#{name}/#{file.basename}" end |
