Commit graph

150 commits

Author SHA1 Message Date
Ben Kearns
e28130d9f3 Added parsing of ISO formats i.e. "2012-12-19T12:12:12.00001"
Conflicts:

	src/ec_date.erl
2013-02-26 17:40:13 -05:00
Ben Kearns
21c5f9fc74 Added parsing of ISO formats i.e. "2012-12-19T12:12:12.00001"
Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>
2013-01-21 10:51:10 -08: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
407ccf886f support printing erl_syntax meta calls in the same way as erl source
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-12-07 05:53:25 -07:00
Eric Merritt
95f723e1e0 make erlware_commons work on pre-R15 releases
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-12-07 05:53:21 -07:00
Eric Merritt
c7717743ed bring ec_plists up to erlware standards
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-30 11:45:21 -06:00
Eric Merritt
31ebca114a replace ec_plists with Stephan's plists
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-30 11:45:21 -06:00
Eric Merritt
0e10d59b3a add Stephen Marsh's plists to the system
origin: http://code.google.com/p/plists/
detail: http://plists.wordpress.com/2007/09/20/introducing-plists-an-erlang-module-for-doing-list-operations-in-parallel/
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-30 11:45:21 -06:00
Eric Merritt
c4887e2021 enable the rebar semver plugin on erlware_commons
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-30 11:45:21 -06: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
0db7042ff9 support reasonable versioning for erlware_commons
You should get the latest and greatest rebar to build this.

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-19 11:15:15 -06:00
Eric Merritt
f77afd43c3 add exists to ec_file
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-10-19 11:15:09 -06:00
Eric Merritt
a9f2a771f0 fix bug in ec_file:copy/3 spec
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
eab58fb660 export mkdir_p (this should have been done already)
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -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
1b01380613 compilation utilities for the implementors
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-18 20:06:47 -06:00
Eric Merritt
c42581887a version bump 0.8.0
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:31 -05:00
Eric Merritt
4db670c812 given a complete semver parser ec_string no longer makes sense to retain
It was really poorly named in any case

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:28 -05: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
9b9f070a5f move ec_file away from exceptions to return values
In an attempt to unify on the accepted use of return values ec_file is
changing its API to use return values instead of exceptions.

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:26 -05:00
Eric Merritt
a2672cafb1 minor whitespace cleanup
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:59:24 -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
d7b60ccf19 fix edoc errors in various modules
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-09-08 09:51:32 -05:00
Eric Merritt
b4eb83cf53 make insecure nature of ec_file:mkdtemp obvious fixes erlware/erlware_commons#16 2012-06-05 17:59:52 -05:00
Eric Merritt
261fb422f9 fix eunit tests so that they actually work and run 2012-06-05 17:59:51 -05:00
Eric Merritt
10557e421e make mkdtemp a lot more secure (still not fully secure but more). 2012-06-05 17:59:50 -05:00
Eric Merritt
c828f7415a Migrate erlware_commons to rebar support 2012-06-05 17:59:46 -05:00
Jesse Gumm
e7d175d0db Add support for shorter times (7PM, 7AM, 7a, 7p) 2012-03-23 10:00:11 -05:00
Jesse Gumm
30184d4f77 Fix for 12am and 12pm.
12am should be hour 0, 12pm should be hour 12.

Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>
2012-03-23 09:58:34 -05:00
Eric Merritt
8353035a1e whitespace and comment refactoring
This patch replaces tabs with spaces and converts the '%' inline
comments (which according to the emacs mode are actually end of line
comments) to the mode acceptable '%%' inline comments.

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
2012-02-20 15:15:23 -05:00
Gordon Guthrie
de3f0530d6 Fix for typo.
Pushed up stream from choptastic's bug fix to dh_date
https://github.com/daleharvey/dh_date/pull/4
2011-12-19 11:03:27 +00:00
Eric Merritt
6d17415cdd support US style date parsing using the same defaults from php as the original
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-10-17 17:39:05 -04:00
Eric Merritt
6d969cd55e convert date parsing library from tagged return types to exceptions
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-10-17 17:38:58 -04:00
Eric Merritt
8898f93f61 add date parsing and formatting support from Dale Harvey
The original implementation was https://github.com/daleharvey/dh_date.git

Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-10-16 22:26:43 -04:00
Eric Merritt
ff3557d883 add suport and documentation for signatures for dictionaries
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-10-16 22:26:43 -04:00
Eric Merritt
cea6de7c84 move ewl_talk from ewlib to erlware commons
This is a heavily used module from erlware lib. It makes sense to make
it available in erlware commons.

Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-10-16 22:26:42 -04: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
284ada2bd9 add search function for lists to ec_lists
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-09-26 23:50:05 -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
eee087794f added in plists
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-04-03 23:04:21 -04:00
Martin J. Logan
431b13e942 added ec_file helper functions for working with files.
Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
2011-04-03 23:04:17 -04:00
Martin J. Logan
3c9e60c5a2 altered ordering on the fetch and find functions, version patch bumped
Ordering altered to match existing list functions, Version patch
bumped because because API is not yet final

Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>
2011-03-14 11:21:10 -04:00
Martin J. Logan
b4981ff4b5 added code for dealing with strings. Initial commit for version strings
Signed-off-by: Eric Merritt <ericbmerritt@gmail.com>
2011-03-14 11:20:23 -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
Eric Merritt
251d8543b9 Add the initial lists support 2011-03-10 15:04:20 -06:00