From 59d5a246e7d7d86ee3535bc72a2fcef320ae6e90 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 4 Sep 2012 23:04:01 -0500 Subject: Clean up MacOS version method usage The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel --- Library/Homebrew/compat/compatibility.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/compat') diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index aff8e0be9..b6e01b290 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -165,6 +165,7 @@ class FailsWithLLVM end end +# TODO eventually some of these should print deprecation warnings module MacOS extend self def xcode_folder Xcode.folder -- cgit v1.2.3