diff options
| author | Adam Vandenberg | 2013-06-30 14:36:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-30 14:36:12 -0700 |
| commit | 1c1b7ed6833b378c84284011d60bd9310fdf4ebf (patch) | |
| tree | 018efb40a19703188c20c1991791472ee762f413 /Library | |
| parent | 829675719b6e6bdeb01a71ddd79b2e69402bc09f (diff) | |
| download | brew-1c1b7ed6833b378c84284011d60bd9310fdf4ebf.tar.bz2 | |
Fix appending .rb to local formulae names
Closes Homebrew/homebrew#20926.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index fb633d661..1f04ef3dd 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -97,7 +97,7 @@ class Formulary def initialize path # require allows filenames to drop the .rb extension, but everything else # in our codebase will require an exact and fullpath. - path = "#{name}.rb" unless path =~ /\.rb$/ + path = "#{path}.rb" unless path =~ /\.rb$/ @path = Pathname.new(path) @name = @path.stem |
