added: global validators, dynamic validators with arguments, new builtin type range(start-end)

This commit is contained in:
TLINDEN
2014-11-06 00:07:03 +01:00
parent ae5817dd17
commit eddbde83bd
3 changed files with 147 additions and 30 deletions

View File

@@ -1,11 +1,22 @@
0.08
o applied patches by Per Carlson:
- don't die on 1st error, rather collect them and
and issue a full report
issue a full report
- use errors() to retrieve all those collected errors
- enhanced unit tests
- proper utf8 handling
- lots of minor tweaks (typos, ambuities and such)
- lots of minor tweaks (typos, ambiguities and such)
o added support for dynamic arguments to validators,
which is used by the new range type, see below.
arguments passed to coderefs: val, unparsed args, array
of args tokenized by , or -.
o added new builtin validator type: range(start-end),
use it like: { loginport => range(22-23) }.
o export a class method add_validators() [only if requested],
which can be used to add validator types globally.
0.07
o lost [updated 11/2014]
@@ -34,7 +45,7 @@
o started with 0.x version numbering to show the
early stage of the module.
o added ipv6 type
o fixed several bugs with existing types. Thanks to
@@ -47,12 +58,12 @@
1.03
o oops - forgot to increase version number, therefore CPAN
didn't get it.
1.02
o removed inheritance of Config::General, which is senceless
1.01
o added Regex::Common support
1.00
o initial release