Skip to content
Snippets Groups Projects
Commit a3daca1b authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Allow depending on requirement class or instance.

parent ff4baa3f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment