From 101e9c8cbed91bc3df6b2322db34f7bdeaae535d Mon Sep 17 00:00:00 2001 From: Zachery Hostens Date: Wed, 30 Sep 2009 22:17:46 -0500 Subject: [PATCH] Pathname fix for ruby 1.9 [hack?] --- Library/Homebrew/pathname+yeast.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 79dfcb5499..1dbb99d8cf 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -153,6 +153,10 @@ class Pathname nil end + + if '1.9' <= RUBY_VERSION + alias_method :to_str, :to_s + end end # sets $n and $d so you can observe creation of stuff