aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-14 19:10:14 -0500
committerJack Nagel2013-06-14 19:10:14 -0500
commite59456515d337ea629b63c74e7a1b31e1439f06e (patch)
treefc1b53b47170988a5fc738dc0fa52ed1c74f5e27 /Library
parent113125d394d2b9530aec111574da10e46b554f5a (diff)
downloadbrew-e59456515d337ea629b63c74e7a1b31e1439f06e.tar.bz2
Pass these as strings, they get converted anyway
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/version.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb
index 90f0e97f7..cc1d65cfa 100644
--- a/Library/Homebrew/os/mac/version.rb
+++ b/Library/Homebrew/os/mac/version.rb
@@ -4,11 +4,11 @@ module MacOS
class Version < ::Version
def <=>(other)
v = case other
- when :mountain_lion then 10.8
- when :lion then 10.7
- when :snow_leopard then 10.6
- when :leopard then 10.5
- when :tiger then 10.4
+ when :mountain_lion then "10.8"
+ when :lion then "10.7"
+ when :snow_leopard then "10.6"
+ when :leopard then "10.5"
+ when :tiger then "10.4"
else other.to_s
end
super(Version.new(v))