From 68da1e7765567c64e46bd813eb139bc09e14d863 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 5 May 2014 15:30:28 -0500 Subject: [PATCH] Add a method_defined? guard for Pathname#/ This was added to the stdlib in https://github.com/ruby/ruby/commit/391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9. --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 33db3eed66..59061af88e 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