Pass these as strings, they get converted anyway
This commit is contained in:
parent
113125d394
commit
e59456515d
@ -4,11 +4,11 @@ module MacOS
|
|||||||
class Version < ::Version
|
class Version < ::Version
|
||||||
def <=>(other)
|
def <=>(other)
|
||||||
v = case other
|
v = case other
|
||||||
when :mountain_lion then 10.8
|
when :mountain_lion then "10.8"
|
||||||
when :lion then 10.7
|
when :lion then "10.7"
|
||||||
when :snow_leopard then 10.6
|
when :snow_leopard then "10.6"
|
||||||
when :leopard then 10.5
|
when :leopard then "10.5"
|
||||||
when :tiger then 10.4
|
when :tiger then "10.4"
|
||||||
else other.to_s
|
else other.to_s
|
||||||
end
|
end
|
||||||
super(Version.new(v))
|
super(Version.new(v))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user