aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorAlexey Muranov2014-05-05 16:59:43 +0200
committerJack Nagel2014-05-05 15:27:34 -0500
commit911206eae6127ea43534a475eb3cb8f1d04c9af5 (patch)
treef8329b175da90952dab3fb52f2a50cea59da3af9 /Library/Homebrew/extend
parent1fd0488ff4552f67380aa8f8d289658d3be1d09a (diff)
downloadbrew-911206eae6127ea43534a475eb3cb8f1d04c9af5.tar.bz2
Use #+ instead of #join to define Pathname#/
See also https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45826/diff/ext/pathname/lib/pathname.rb Closes Homebrew/homebrew#28972. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
-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 ae8e72eae..33db3eed6 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -297,7 +297,7 @@ class Pathname
end
def / that
- join that.to_s
+ self + that.to_s
end
def ensure_writable