From 5db5740cc27202b4e588eb1ab1c59049dde1f2ae Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 30 Jun 2013 16:43:28 -0700 Subject: [PATCH] allow installation of formulae from the current folder Closes Homebrew/homebrew#19177. --- Library/Homebrew/formulary.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 1f04ef3dde..c5d4569550 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -166,8 +166,9 @@ class Formulary elsif name_or_path.include? "/" # If name was a path or mapped to a cached formula f = FromPathLoader.new(name_or_path) + elsif name_or_path =~ /\.rb$/ + f = FromPathLoader.new("./#{name_or_path}") else - # For names, map to the path and then require f = StandardLoader.new(name_or_path) end end