This allows for two things. The first is support for non rigorous
versions. However, it still fully supports semver. So if you have
semver versions they work correctly, if you have alpha versions they
also work correctly but using natural alpha ordering.
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
The OTP Versions distributed with erlang tend to have four version
numbers not three. This is a fairly minor deviation from semver that
we can support. Basically, the semver parser treats the fourth version
in exactly the same way as the other three.
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
This patch exports types that are needed and adds specs where they did
not previously exist. It also cleans up and expands the specs where
they needed to be cleaned up.
This code implements comparisons using (list based) strings as
semantic versions. It follows the stadard dictated by semvar.org.
Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>