Commit graph

16 commits

Author SHA1 Message Date
Eric Merritt
739a9bcf24 Swap DEV_ONLY for TEST in the test exclusion macros 2015-09-07 10:45:58 -07:00
Eric Merritt
16b441f0e3 fix up tests to reflect the actual NOTEST variable DEV_ONLY 2013-10-14 14:10:25 -07:00
Jesse Gumm
8bc27f62fd Add vi modelines to files. Ignore vim backup files 2013-08-30 06:56:06 -05: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
5105df48f9 minor whitespace cleanup for ec_semver
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
e9161d8688 provide the ability to format a version into a string as well as parse a version
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
3a29539285 fixes for edoc compilation
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
Eric Merritt
e035ae3dbf fixes to dialyzer
All types should now be correct and dialyzer runs successfully

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:21 -05:00
Eric Merritt
694e805012 Minor reformatting/whitespace removal
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-09-26 23:50:13 -04:00
Eric Merritt
eecbb26a2d remove old style catches from the library
This removes the old style catches and replaces them with
try/catch. It seems to make the code much clearer and its certainly
less failure prone.
2011-04-22 14:55:16 -04:00
Eric Merritt
8dda138814 A little minor formatting cleanup 2011-04-22 14:55:10 -04:00
Eric Merritt
07a54bb518 add specs and exported types where needed
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.
2011-04-22 14:55:04 -04:00
Martin J. Logan
9e6f98ba81 added in module for semvar comparisons
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>
2011-03-14 11:13:05 -04:00