audit: fix version audit for Version subclasses
The version isn't redundant if a subclass of Version is specified.
This commit is contained in:
parent
8b763acc2a
commit
132e6a3a8e
@ -273,7 +273,7 @@ class FormulaAuditor
|
|||||||
else
|
else
|
||||||
version_text = s.version unless s.version.detected_from_url?
|
version_text = s.version unless s.version.detected_from_url?
|
||||||
version_url = Version.parse(s.url)
|
version_url = Version.parse(s.url)
|
||||||
if version_url.to_s == version_text.to_s
|
if version_url.to_s == version_text.to_s && s.version.instance_of?(Version)
|
||||||
problem "#{spec} version #{version_text} is redundant with version scanned from URL"
|
problem "#{spec} version #{version_text} is redundant with version scanned from URL"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user