aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/xcode.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-15 09:33:30 -0500
committerJack Nagel2013-06-15 10:13:20 -0500
commitfaa35b4fcd840a0c4644075ddff97dc65caef369 (patch)
tree36d41d25a8a4d1366048d2f70695369422a4110f /Library/Homebrew/os/mac/xcode.rb
parentdac6c10a19b94f2556f8624a612ca0dbac581643 (diff)
downloadhomebrew-faa35b4fcd840a0c4644075ddff97dc65caef369.tar.bz2
Avoid unnecessary float to string conversion
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index eaae6fbf8..3fdd90463 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -19,11 +19,11 @@ module MacOS::Xcode extend self
def latest_version
case MacOS.version
- when 10.4 then "2.5"
- when 10.5 then "3.1.4"
- when 10.6 then "3.2.6"
- when 10.7, 10.8 then "4.6.3"
- when 10.9 then "5.0"
+ when "10.4" then "2.5"
+ when "10.5" then "3.1.4"
+ when "10.6" then "3.2.6"
+ when "10.7", "10.8" then "4.6.3"
+ when "10.9" then "5.0"
else
# Default to newest known version of Xcode for unreleased OSX versions.
if MacOS.version > 10.9