From cf4080a9e0517efc16a71b686e80c3ebcc38f5a2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 5 Jul 2014 16:00:52 -0500 Subject: [PATCH] Remove a RUBY_VERSION check, add a FIXME comment --- Library/Homebrew/extend/pathname.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 521540717c..d38b6b2cd6 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -273,9 +273,8 @@ class Pathname raise ChecksumMismatchError.new(self, expected, actual) unless expected == actual end - if '1.9' <= RUBY_VERSION - alias_method :to_str, :to_s - end + # FIXME eliminate the places where we rely on this method + alias_method :to_str, :to_s unless method_defined?(:to_str) def cd Dir.chdir(self){ yield }