diff options
author | Yorhel <git@yorhel.nl> | 2019-06-17 09:17:25 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-06-17 09:17:25 +0200 |
commit | 641a69b5d422b6eabfc45464331e17c00bc35b42 (patch) | |
tree | 5713f4898a4d5116b25a47e9c64d4865d25baf0d | |
parent | f5e442d68dc529187407ba7d1f7a662f3fa76508 (diff) |
Year + version bump for 1.3v1.3
-rw-r--r-- | Build.PL | 2 | ||||
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | MANIFEST | 5 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | lib/TUWF.pm | 2 | ||||
-rw-r--r-- | lib/TUWF.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/DB.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/DB.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Intro.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Misc.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/Misc.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Request.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/Request.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Response.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/Response.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Validate.pm | 1 | ||||
-rw-r--r-- | lib/TUWF/Validate.pod | 2 | ||||
-rw-r--r-- | lib/TUWF/Validate/Interop.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/XML.pm | 2 | ||||
-rw-r--r-- | lib/TUWF/XML.pod | 2 |
21 files changed, 36 insertions, 20 deletions
@@ -4,7 +4,7 @@ use Module::Build; Module::Build->new( dist_name => 'TUWF', - dist_version => '1.2', + dist_version => '1.3', dist_author => 'Yoran Heling <projects@yorhel.nl>', dist_abstract => 'The Ultimate Website Framework', license => 'mit', @@ -1,4 +1,4 @@ -Copyright (c) 2008-2018 Yoran Heling +Copyright (c) 2008-2019 Yoran Heling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -1,3 +1,11 @@ +1.3 - 2019-06-17 + - Add TUWF::Validate module for generic data structure validation + - Add tuwf->compile() and tuwf->validate() interfaces for input validation + - Add 'custom_validations' setting + - Add setting to write emails to the log file instead of mailing them + - Add (undocumented) TUWF::Validate::Interop module for JSON coercion, HTML5 validation patterns and Elm code generation. + - Fix logging of JSON request body on error + 1.2 - 2018-02-18 - Add tuwf() exported function as alias to $self or $TUWF::OBJ - Add TUWF::get/put/post/etc() as better alternative to TUWF::register() @@ -53,5 +61,5 @@ - Lowered minimum Perl version to 5.8.0 0.1 - 2011-02-07 - Initial version + - Initial version @@ -17,6 +17,9 @@ lib/TUWF/Request.pm lib/TUWF/Request.pod lib/TUWF/Response.pm lib/TUWF/Response.pod +lib/TUWF/Validate.pm +lib/TUWF/Validate.pod +lib/TUWF/Validate/Interop.pm lib/TUWF/XML.pm lib/TUWF/XML.pod Makefile.PL @@ -24,4 +27,6 @@ MANIFEST This list of files META.json META.yml README.md +t/interop.t t/kv_validate.t +t/validate.t @@ -10,9 +10,9 @@ This package provides the following set of modules: - [TUWF::Validate](https://dev.yorhel.nl/tuwf/man/validate) - [TUWF::XML](https://dev.yorhel.nl/tuwf/man/xml) -Documentation for each of these modules is provided in a .pod file along -their .pm implementations. Check out the documentation of the main TUWF -module for a general introduction. +Documentation for each of these modules is provided in a .pod file along their +.pm implementations. Check out +[TUWF::Intro](https://dev.yorhel.nl/tuwf/man/intro) for a general introduction. More information is available on the homepage at [https://dev.yorhel.nl/tuwf](https://dev.yorhel.nl/tuwf). diff --git a/lib/TUWF.pm b/lib/TUWF.pm index 3d87ddb..a20e18c 100644 --- a/lib/TUWF.pm +++ b/lib/TUWF.pm @@ -7,7 +7,7 @@ use strict; use warnings; use Carp 'croak'; -our $VERSION = '1.2'; +our $VERSION = '1.3'; # Store the object in a global variable for some functions that don't get it diff --git a/lib/TUWF.pod b/lib/TUWF.pod index 2332321..8f18f84 100644 --- a/lib/TUWF.pod +++ b/lib/TUWF.pod @@ -851,7 +851,7 @@ L<https://code.blicky.net/yorhel/tuwf|https://code.blicky.net/yorhel/tuwf>. =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/DB.pm b/lib/TUWF/DB.pm index d50774f..088dd94 100644 --- a/lib/TUWF/DB.pm +++ b/lib/TUWF/DB.pm @@ -7,7 +7,7 @@ use Carp 'croak'; use Exporter 'import'; use Time::HiRes 'time'; -our $VERSION = '1.2'; +our $VERSION = '1.3'; our @EXPORT = qw| dbInit dbh dbCheck dbDisconnect dbCommit dbRollBack dbExec dbVal dbRow dbAll dbPage diff --git a/lib/TUWF/DB.pod b/lib/TUWF/DB.pod index e520e19..e01322d 100644 --- a/lib/TUWF/DB.pod +++ b/lib/TUWF/DB.pod @@ -252,7 +252,7 @@ L<TUWF> =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Intro.pod b/lib/TUWF/Intro.pod index deb0236..2e6d257 100644 --- a/lib/TUWF/Intro.pod +++ b/lib/TUWF/Intro.pod @@ -290,7 +290,7 @@ L<https://dev.yorhel.nl/tuwf|https://dev.yorhel.nl/tuwf>. =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Misc.pm b/lib/TUWF/Misc.pm index c3714d7..aa09e34 100644 --- a/lib/TUWF/Misc.pm +++ b/lib/TUWF/Misc.pm @@ -12,7 +12,7 @@ use Scalar::Util 'looks_like_number'; use TUWF::Validate; -our $VERSION = '1.2'; +our $VERSION = '1.3'; our @EXPORT_OK = ('uri_escape', 'kv_validate'); diff --git a/lib/TUWF/Misc.pod b/lib/TUWF/Misc.pod index f2fd61d..8500b8a 100644 --- a/lib/TUWF/Misc.pod +++ b/lib/TUWF/Misc.pod @@ -375,7 +375,7 @@ L<TUWF>, L<URI::Escape>. =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Request.pm b/lib/TUWF/Request.pm index 0ff4c08..37950df 100644 --- a/lib/TUWF/Request.pm +++ b/lib/TUWF/Request.pm @@ -7,7 +7,7 @@ use Encode 'decode_utf8', 'encode_utf8'; use Exporter 'import'; use Carp 'croak'; -our $VERSION = '1.2'; +our $VERSION = '1.3'; our @EXPORT = qw| reqInit reqGets reqGet reqPosts reqPost reqParams reqParam reqJSON reqUploadMIMEs reqUploadMIME reqUploadRaws reqUploadRaw reqSaveUpload diff --git a/lib/TUWF/Request.pod b/lib/TUWF/Request.pod index 6b65e58..44b8050 100644 --- a/lib/TUWF/Request.pod +++ b/lib/TUWF/Request.pod @@ -218,7 +218,7 @@ L<TUWF> =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Response.pm b/lib/TUWF/Response.pm index 07c01ed..f44cc81 100644 --- a/lib/TUWF/Response.pm +++ b/lib/TUWF/Response.pm @@ -9,7 +9,7 @@ use POSIX 'strftime'; use Carp 'croak'; -our $VERSION = '1.2'; +our $VERSION = '1.3'; our @EXPORT = qw| resInit resHeader resCookie resBuffer resFd resStatus resRedirect resNotFound resJSON resBinary resFile resFinish diff --git a/lib/TUWF/Response.pod b/lib/TUWF/Response.pod index 87d8bfd..febe915 100644 --- a/lib/TUWF/Response.pod +++ b/lib/TUWF/Response.pod @@ -251,7 +251,7 @@ L<TUWF> =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Validate.pm b/lib/TUWF/Validate.pm index ceba99a..8cd9477 100644 --- a/lib/TUWF/Validate.pm +++ b/lib/TUWF/Validate.pm @@ -7,6 +7,7 @@ use Exporter 'import'; use Scalar::Util 'blessed'; our @EXPORT_OK = qw/compile validate/; +our $VERSION = '1.3'; # Unavailable as custom validation names diff --git a/lib/TUWF/Validate.pod b/lib/TUWF/Validate.pod index 94fee3d..0a47404 100644 --- a/lib/TUWF/Validate.pod +++ b/lib/TUWF/Validate.pod @@ -561,7 +561,7 @@ the module has more dependencies than I'd prefer. =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the diff --git a/lib/TUWF/Validate/Interop.pm b/lib/TUWF/Validate/Interop.pm index 25feb44..f172701 100644 --- a/lib/TUWF/Validate/Interop.pm +++ b/lib/TUWF/Validate/Interop.pm @@ -5,7 +5,9 @@ use warnings; use TUWF::Validate; use Exporter 'import'; use Carp 'croak'; + our @EXPORT_OK = ('analyze'); +our $VERSION = '1.3'; # Analyzed ("flattened") object: diff --git a/lib/TUWF/XML.pm b/lib/TUWF/XML.pm index 7730ab7..52fc0be 100644 --- a/lib/TUWF/XML.pm +++ b/lib/TUWF/XML.pm @@ -10,7 +10,7 @@ use Exporter 'import'; use Carp 'carp', 'croak'; -our $VERSION = '1.2'; +our $VERSION = '1.3'; our(@EXPORT_OK, %EXPORT_TAGS, $OBJ); # List::Util provides a uniq() since 1.45, but for some reason my Perl comes diff --git a/lib/TUWF/XML.pod b/lib/TUWF/XML.pod index 2253b66..e56a89e 100644 --- a/lib/TUWF/XML.pod +++ b/lib/TUWF/XML.pod @@ -396,7 +396,7 @@ instead of whatever is available on CPAN. =head1 COPYRIGHT -Copyright (c) 2008-2018 Yoran Heling. +Copyright (c) 2008-2019 Yoran Heling. This module is part of the TUWF framework and is free software available under the liberal MIT license. See the COPYING file in the TUWF distribution for the |