diff options
| author | Jack Nagel | 2014-05-05 15:30:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-05 15:30:28 -0500 |
| commit | 4003cf6e4a6aa24ada9d4f3a9a8b533fdf6deb18 (patch) | |
| tree | 49d0ec415c909fbe01851915a576219b0ac7e67b /Library/Homebrew/extend | |
| parent | 00448edc4df043894b44d45bc596f5c2cf605c89 (diff) | |
| download | homebrew-4003cf6e4a6aa24ada9d4f3a9a8b533fdf6deb18.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/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
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 |
