aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-30 16:43:28 -0700
committerAdam Vandenberg2013-07-02 09:23:48 -0700
commit5db5740cc27202b4e588eb1ab1c59049dde1f2ae (patch)
treebc9b22fdaaf09e5effc5ed3aaf89f9172f0640d0 /Library/Homebrew
parent9fdfdc568020e601d604dc4d7f497aa1df0675bb (diff)
downloadbrew-5db5740cc27202b4e588eb1ab1c59049dde1f2ae.tar.bz2
allow installation of formulae from the current folder
Closes Homebrew/homebrew#19177.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formulary.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 1f04ef3dd..c5d456955 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