aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorZachery Hostens2009-09-30 22:17:46 -0500
committerZachery Hostens2009-09-30 22:26:52 -0500
commitb4227e5215fecd86a2dd2cc23f2946537f3fbacc (patch)
treec1c2d5a7e91666f8379cf1d0d861264450e730e2 /Library/Homebrew
parentc53e16afaa10171f6005872ffda7342e0dbb11d6 (diff)
downloadhomebrew-b4227e5215fecd86a2dd2cc23f2946537f3fbacc.tar.bz2
Pathname fix for ruby 1.9 [hack?]
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/pathname+yeast.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb
index 79dfcb549..1dbb99d8c 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