aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos/version.rb
blob: 090b1ffb7d0dec6007c0870a1e2acb9c77830490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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