aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-05 15:30:28 -0500
committerJack Nagel2014-05-05 15:30:28 -0500
commit68da1e7765567c64e46bd813eb139bc09e14d863 (patch)
treef6c31abcb73ebe789d6380ed2b3ef9d137dbf3e7 /Library
parent911206eae6127ea43534a475eb3cb8f1d04c9af5 (diff)
downloadbrew-68da1e7765567c64e46bd813eb139bc09e14d863.tar.bz2
Add a method_defined? guard for Pathname#/
This was added to the stdlib in https://github.com/ruby/ruby/commit/391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9.
Diffstat (limited to 'Library')
-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 33db3eed6..59061af88 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -298,7 +298,7 @@ class Pathname
def / that
self + that.to_s
- end
+ end unless method_defined?(:/)
def ensure_writable
saved_perms = nil