aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependencies.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb
index 4a4cd6d91..b519de111 100644
--- a/Library/Homebrew/dependencies.rb
+++ b/Library/Homebrew/dependencies.rb
@@ -54,6 +54,12 @@ private
Dependency.new(spec.name, tag)
when Dependency, Requirement
spec
+ when Class
+ if spec < Requirement
+ spec.new
+ else
+ raise "#{spec} is not a Requirement subclass"
+ end
else
raise "Unsupported type #{spec.class} for #{spec}"
end