Skip to content
Snippets Groups Projects
Commit ac16822a authored by Tim D. Smith's avatar Tim D. Smith
Browse files

Prioritize TapDependency in parse_string_spec

test-bot expects the dependencies returned from SoftwareSpec#deps to
satisfy is_a?(TapDependency) if they come from a tap which might need to
be tapped.
parent a5e1f698
No related branches found
No related tags found
No related merge requests found
......@@ -89,12 +89,12 @@ class DependencyCollector
end
def parse_string_spec(spec, tags)
if tags.empty?
if HOMEBREW_TAP_FORMULA_REGEX === spec
TapDependency.new(spec, tags)
elsif tags.empty?
Dependency.new(spec, tags)
elsif (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
LanguageModuleDependency.new(tag, spec, tags[1])
elsif HOMEBREW_TAP_FORMULA_REGEX === spec
TapDependency.new(spec, tags)
else
Dependency.new(spec, tags)
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