Commit graph

5 commits

Author SHA1 Message Date
Seth Falcon
d9c6ec1d28 Make proper and neotoma dev-only dependencies
This patch makes erlware_commons easier to include as a dependency by
removing depedencies that are not needed at run time.

The top-level Makefile creates a .DEV_MODE marker file which is
detected by rebar.config.script. When the marker file is present, the
development only dependencies proper and neotoma are included and a
macro 'DEV_ONLY' is defined. The macro is used to only enable the
proper tests for development mode.

The ec_semver_parser.peg is now located in priv/ and is moved into
src/ by the Makefile. The generated ec_semver_parser.erl is now under
version control; it need not be rebuilt by all projects wishing to
include erlware_commons. It will be rebuilt, as before this change, on
every make invocation.
2013-04-22 14:48:08 -07:00
Eric Merritt
74b0d7318d support parsing a version with a leading 'v'
This *should* make version parsing much, much simpler.
2013-01-17 14:31:45 -08:00
Eric Merritt
7e4ba401fd support non-numeric versions in major/minor/patch/minor-patch
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>
2012-10-19 11:15:27 -06:00
Eric Merritt
b4ab414419 support four primary version numbers of in parsing
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>
2012-09-18 20:06:47 -06:00
Eric Merritt
bf37ad9492 suport proper semver parsing and comparison in the semver module
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:27 -05:00