17 lines
346 B
Ruby
17 lines
346 B
Ruby
require 'version'
|
|
|
|
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
|
|
else other.to_s
|
|
end
|
|
super(Version.new(v))
|
|
end
|
|
end
|
|
end
|