diff options
| author | Jack Nagel | 2013-10-22 20:48:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-10-22 20:48:22 -0500 |
| commit | a5e8962ae762fea3bc22f350c5ad6e1526dd3b5f (patch) | |
| tree | 9dc28811efce2ea626698db4901d296edcfe5d28 /Library/Homebrew/os/mac/xcode.rb | |
| parent | df824a22a764538ab4a54f186a761d7fff90f7fd (diff) | |
| download | brew-a5e8962ae762fea3bc22f350c5ad6e1526dd3b5f.tar.bz2 | |
Avoid comparing Xcode.version to floats
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 0a4a9a8fb..40bc06765 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -143,15 +143,15 @@ module OS end def provides_autotools? - version.to_f < 4.3 + version < "4.3" end def provides_gcc? - version.to_f < 4.3 + version < "4.3" end def default_prefix? - if version.to_f < 4.3 + if version < "4.3" %r{^/Developer} === prefix else %r{^/Applications/Xcode.app} === prefix |
