aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZachery Hostens2009-09-30 22:17:46 -0500
committerZachery Hostens2009-09-30 22:26:52 -0500
commit101e9c8cbed91bc3df6b2322db34f7bdeaae535d (patch)
treedcaa8dfd7984c33d6b86f554dfaef8d7a824a4be /Library
parent668e3ee0806548cc36ba37688059a32c49d76f15 (diff)
downloadbrew-101e9c8cbed91bc3df6b2322db34f7bdeaae535d.tar.bz2
Pathname fix for ruby 1.9 [hack?]
Diffstat (limited to 'Library')
-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