From 6b8d25f2d21a3c19ecb0809d619999137cb94565 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/Formula/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/node.rb') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index d8689eeaa..e522ad021 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -50,7 +50,7 @@ class Node < Formula head 'https://github.com/joyent/node.git' # Leopard OpenSSL is not new enough, so use our keg-only one - depends_on 'openssl' if MacOS.leopard? + depends_on 'openssl' if MacOS.version == :leopard depends_on NpmNotInstalled.new unless build.include? 'without-npm' depends_on PythonVersion.new -- cgit v1.2.3