From 1c1b7ed6833b378c84284011d60bd9310fdf4ebf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 30 Jun 2013 14:36:12 -0700 Subject: Fix appending .rb to local formulae names Closes Homebrew/homebrew#20926. --- Library/Homebrew/formulary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew') 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 -- cgit v1.2.3