Fred Hebert
f8f72b7cc5
Add compile-time switch for OTP-20 string funcs
...
Allows support for Unicode data, and prevents compile warnings that will
start with OTP-20.
2017-11-01 11:26:17 -04:00
Tristan Sloughter
fa1ec76a9b
Merge pull request #105 from filmor/semver-prefix
...
Make ec_git_vsn Windows-compatible, readd prefix functionality.
2017-09-04 19:46:16 -07:00
Tristan Sloughter
681973a29c
Merge pull request #118 from shopgun/master
...
Fixing #117 - microseconds not parsing when offset given
2017-09-04 19:43:46 -07:00
Warren Kenny
3ad087f8e0
Updated ISO8601 parsing to add leading zero to hour
2017-02-06 22:28:49 +00:00
Henrik Tudborg
f92f7de6f8
Fixing #117 - microseconds not parsing when offset given
2017-02-03 14:12:50 +01:00
Tristan Sloughter
c9f1c5debe
bump to version 1.0
2017-01-08 10:07:44 -08:00
Tristan Sloughter
69fbe53eea
remove unneeded export_all. in OTP20 it is a warning
2017-01-07 18:45:30 -08:00
Tristan Sloughter
4d2ab621ab
version bump
2016-11-27 11:15:30 -08:00
Joe DeVivo
f64a4b1661
Add the ability to explicitly turn off ANSI color
2016-10-29 05:35:41 -07:00
Radek Szymczyszyn
a91c96eb92
Support ISO 8601 fractions of a seconds up to 6 places after the comma
2016-08-22 11:10:18 +02:00
Radek Szymczyszyn
5d729253d3
Add one more parsing test (just 3 places after the comma)
2016-08-19 14:09:51 +02:00
Radek Szymczyszyn
a298a7b045
Fix support for ISO 8601 fractions of a second
...
This is limited to milli- and microseconds interpreted
as 3 or 6 places after decimal comma.
All of the following, while valid according to the standard, won't be accepted:
- 2001-03-10T17:16:17.1Z
- 2001-03-10T17:16:17.12Z
- 2001-03-10T17:16:17.1234Z
- 2001-03-10T17:16:17.12345Z
- 2001-03-10T17:16:17.1234567Z
2016-08-19 12:38:40 +02:00
Radek Szymczyszyn
ed107c94b4
Fix microsecond() range
2016-08-19 11:05:29 +02:00
Kirilll Zaborsky
ab321b16e6
Testcase showing broken microseconds parsing
2016-08-19 10:32:47 +02:00
Kirilll Zaborsky
8dd9f826db
pad2 spec fix
2016-08-19 10:32:47 +02:00
Kirilll Zaborsky
d052e63ba5
Proper zero padding for microseconds
2016-08-19 10:32:47 +02:00
Tristan Sloughter
b666164c0d
version bump
2016-05-12 21:58:56 -05:00
Tristan Sloughter
6d63ffde57
remove typespec syntax that was removed in OTP-19
2016-05-12 21:54:04 -05:00
Tristan Sloughter
001e7fcf4b
remove use of deprecated random module
2016-05-12 21:54:04 -05:00
Benedikt Reinartz
57f56c2860
Make ec_git_vsn Windows-compatible, readd prefix functionality.
2016-04-06 16:28:20 +02:00
Tristan Sloughter
906a32e6c3
correct hex metadata to maintainers for contributors
2015-11-21 15:25:33 -06:00
Tristan Sloughter
60eb82aed5
fix colorizing when not bold, type of fase for false
2015-11-21 15:23:06 -06:00
Jordan Wilberding
05f062d23d
Merge pull request #96 from tsloughter/rebar2_support
...
add rebar.config.script to fall back to rebar2 style deps if using rebar2
2015-11-03 20:05:53 -08:00
Tristan Sloughter
5ef37420b6
Merge pull request #97 from budzejko/master
...
fix DOWN messages from external sources issue
2015-11-02 14:32:59 -06:00
Jacek Budzejko
2240decb95
fix DOWN messages from external sources issue
2015-11-02 21:05:58 +01:00
Tristan Sloughter
505d35996d
add rebar.config.script to fall back to rebar2 style deps if using rebar2
2015-11-02 09:46:25 -06:00
Heinz N. Gies
f983b1ac85
Update cmd_log to use cf for color encoding, including term detection
2015-10-31 18:03:30 +01:00
Heinz N. Gies
87c76aeb2a
Alow less colourful output
...
Basically this adds a new/3 with a third argument of intensity.
The default (and by that the behaviour of new/1 and /2) remain
unchanged so existing code isn't affected.
If intenisty is set to `low` (instead of `high`) then only the
prefix is coloured making the whole output less colourful and
for some cases easyer to read.
2015-09-23 20:41:15 +02:00
Tristan Sloughter
3608a576fb
version bump to 0.16.0
2015-09-19 13:08:11 -05:00
Tristan Sloughter
7c37ecf949
make v optional as prefix to version in git_vsn
2015-09-19 13:08:11 -05:00
Eric Merritt
739a9bcf24
Swap DEV_ONLY for TEST in the test exclusion macros
2015-09-07 10:45:58 -07:00
Eric Merritt
885a516f03
remove proper as a testing tool from the package
...
PropEr has a problematic license and that makes it unusable.
Historically, there was some ideas that it was going to change but it
never did.
2015-09-04 10:48:21 -07:00
Tristan Sloughter
6813d5184c
version bump
2015-07-12 11:10:27 -05:00
Joe DeVivo
381189c006
Made grep version command's grep POSIX
2015-07-12 07:31:08 -07:00
Joe DeVivo
2d634c5e46
Made version prefix configurable in ec_git_vsn
2015-07-10 09:37:21 -07:00
Tristan Sloughter
d726ba2742
move to rebar3 and bump version
2015-06-22 17:06:50 -05:00
Jordan Wilberding
2e23e43079
Merge pull request #81 from tsloughter/master
...
fix conversion of ask/2 string
2015-06-01 11:15:41 -07:00
Tristan Sloughter
4c20e1903d
fix conversion of ask/2 string
2015-05-31 12:04:54 -05:00
Jordan Wilberding
ef0d252b11
Merge pull request #79 from tsloughter/master
...
18.0 Support
2015-04-23 16:16:34 -07:00
Tristan Sloughter
7015ba2951
remove use of deprecated function erlang:now/0
2015-04-23 17:56:56 -05:00
Tristan Sloughter
e07d08333a
use #atom{} syntax to support 18
2015-04-23 17:49:34 -05:00
Jesper Louis Andersen
aa373dddbe
Introduce simple, preliminary TERM capability query.
...
When erlware_commons logs to the command_line, it assumes the
environment has common modern capabilities and color display. In
general, this is not the case and then color codes are sent verbatim
to the terminal.
This patch introduces a new field in #state_t{}, term_cap, encoding
if the terminal runs with 'full' or 'dumb' capabilities. In the latter case,
color display is suppressed. Initialization of the #state_t{} record queries
the environment once for the TERM variable in order to figure out what
it supports. The default is 'full' capability to be fully backwards compatible.
2015-02-11 17:10:16 +01:00
Jesper Louis Andersen
6079300634
Refactor: fold colorize_/3 into colorize/4.
...
Fold a local one-line leaf function with exactly one call-site into its caller.
2015-02-11 17:05:33 +01:00
Brian Lee Yung Rowe
441d11820d
Parse Twitter-style dates
2014-12-10 10:59:24 -05:00
Jordan Wilberding
ae608d26e1
Merge pull request #74 from tsloughter/git_vsn
...
make git vsn the same as used in rebar_vsn_plugin
2014-11-03 13:57:18 -08:00
Tristan Sloughter
5ef8371020
make git vsn the same as used in rebar_vsn_plugin
2014-11-03 11:55:06 -06:00
Jordan Wilberding
d4d11ed1ba
Merge pull request #71 from wk8/jr/iso8601
...
Adding an `ec_test:format_iso8601/1` fun to format datetimes according to ISO8601 standards
2014-10-01 14:21:41 -07:00
Jean Rouge
0b47f60bfb
Have dialyzer run on Travis for OTP 17 too
...
v17 does not have the leading 'R'
```
erl -noshell -eval 'io:format("~p", [erlang:system_info(otp_release)]), erlang:halt(0).'
"17"
```
So the dialyzer wouldn't run in the Travis builds.
And a minor spec fix to appease v17's dialyzer.
2014-10-01 12:31:47 -07:00
Tristan Sloughter
4fb4199da3
fix error log message being colored green instead of red
2014-09-27 14:06:49 -05:00
Jean Rouge
c25dce9689
Adding an ec_test:format_iso8601/1
fun to format datetimes according to ISO8601 standards
...
And added a couple unit tests on it.
2014-09-12 12:28:59 -07:00