aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-09 14:54:49 -0500
committerJack Nagel2014-06-09 14:57:21 -0500
commite3f082c294862619847a7f5234340b6b69964ff8 (patch)
treed7bbaa5aeedb804eaa118de5c56c0729a27150e2 /Library/Homebrew/extend/pathname.rb
parent974b7e71ef11a09f188f0f5e40d609c0732b3406 (diff)
downloadbrew-e3f082c294862619847a7f5234340b6b69964ff8.tar.bz2
Stop joining symbols to pathnames
Ruby 2.2's native Pathname#/ accepts only string-like objects.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 018877e84..d0e77682c 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -321,7 +321,7 @@ class Pathname
end
def find_formula
- [self/:Formula, self/:HomebrewFormula, self].each do |d|
+ [join("Formula"), join("HomebrewFormula"), self].each do |d|
if d.exist?
d.children.each do |pn|
yield pn if pn.extname == ".rb"