Fix appending .rb to local formulae names

Closes Homebrew/homebrew#20926.
This commit is contained in:
Adam Vandenberg 2013-06-30 14:36:12 -07:00
parent 829675719b
commit 1c1b7ed683

View File

@ -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