create: handle Version::NULL correctly.

Fixes #1688.
This commit is contained in:
Mike McQuaid 2016-12-18 13:32:29 -08:00
parent 482568579b
commit 61e370fb7a

View File

@ -119,7 +119,7 @@ class FormulaCreator
if @version
@version = Version.create(@version)
else
@version = Pathname.new(url).version
@version = Version.detect(url, {})
end
end