aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-03 11:32:26 -0500
committerJack Nagel2014-06-03 11:32:26 -0500
commitd3e19b1504906183705c1285b82826152ddedbc4 (patch)
treefce9d750673f8b0914112ca98f6715b27811677a /Library
parentf1808cd66d0a1197679772c3cfe1457224fc6c21 (diff)
downloadbrew-d3e19b1504906183705c1285b82826152ddedbc4.tar.bz2
Simplify MacOS.version.to_sym
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/version.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb
index d40c94bcd..bd766e940 100644
--- a/Library/Homebrew/os/mac/version.rb
+++ b/Library/Homebrew/os/mac/version.rb
@@ -29,15 +29,7 @@ module OS
end
def to_sym
- case @version
- when '10.9' then :mavericks
- when '10.8' then :mountain_lion
- when '10.7' then :lion
- when '10.6' then :snow_leopard
- when '10.5' then :leopard
- when '10.4' then :tiger
- else :dunno
- end
+ SYMBOLS.invert.fetch(@version) { :dunno }
end
def pretty_name