From 77f2d01739ba6738697bd834e6965023ae36eff6 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 25 May 2019 22:06:39 -0300 Subject: [PATCH] Add hash support --- Library/Homebrew/extend/os/mac/software_spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/mac/software_spec.rb b/Library/Homebrew/extend/os/mac/software_spec.rb index 3db2ab096f..c36584995d 100644 --- a/Library/Homebrew/extend/os/mac/software_spec.rb +++ b/Library/Homebrew/extend/os/mac/software_spec.rb @@ -2,6 +2,11 @@ class SoftwareSpec def uses_from_macos(deps, **args) + if deps.is_a?(Hash) + args = deps + deps = Hash[*args.shift] + end + depends_on(deps) if add_mac_dependency?(args) end @@ -14,6 +19,6 @@ class SoftwareSpec return false if args[:before] && OS::Mac.version >= args[:before] - true + args.present? end end