summaryrefslogtreecommitdiff
path: root/textproc/p5-Data-FormValidator
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2006-02-03 17:33:08 +0000
committerabs <abs@pkgsrc.org>2006-02-03 17:33:08 +0000
commit8895ab01bbb103fed8c2573ed7a514965141455e (patch)
treef4b8b6ca0d8bd9913c9db2cd1ef67803077c1e30 /textproc/p5-Data-FormValidator
parent53b465a2c455f53c52fd4279824db8040c3e390c (diff)
downloadpkgsrc-8895ab01bbb103fed8c2573ed7a514965141455e.tar.gz
Update testproc/p5-Data-FormValidator to 4.12
Changes since 3.63 4.12 Thu Jan 5 21:07:50 EST 2006 [INTERNALS] - Fix test suite to pass when CGI::Simple is not installed (Lee Carmichael, Davide Dente) 4.11 Tue Jan 3 18:38:23 EST 2006 [ENHANCEMENTS] - A new constraint for minimum image dimensions was added in Data::FormValidator::Constraints::Upload (Lee Carmichael) [INTERNALS] - refactoring of Upload.pm and t/upload.t (Lee Carmichael) 4.10 Thu Dec 22 19:55:34 EST 2005 [ENHANCEMENTS] - The msgs key can now take a callback, allow users to override how error message generation is done. Some alternative message generate routines will hopefully be published soon. (Cees Hek, Chris Laco and others) - New profile key: untaint_regexp_map (Michael Peters) [BUG FIXES] - bug was fixed for dependent fields that had false values, but were valid (Emanuele Zeppieri) - Failed constraints for multiple fields with the same name no longer return duplicate error messages (Will Hawes) - value of any_errors was wrongly added to msgs even when there are no errors (RT#14942, report and test script by Michael Graham) [INTERNALS] - bump Date::Calc requirement (RT#15715) 4.02 Wed Aug 31 21:22:58 EST 2005 [ENHANCEMENTS] - the use of custom signal handers for "die" has now been localized to avoid interfering with other applications. (Josh Miller). - initial support for qr in constraint_method profile key [BUG FIXES] - Updated ::Constraints example docs to be accurate: recommend :closures, not :all [INTERNALS] - provide a more accurate debugging message for constraint_method_regexp_map 4.01 Sat Aug 20 13:16:47 EST 2005 [ENHANCEMENTS] - get_input_data() now supports the parameters "as_hashref => 1" to return the input data in a uniform way. [INTERNALS] - Constraints may refer to fields that are 'unknown' to Data::FormValidator. These unknown values will remain unfiltered as before. (Michael Peters). - _get_data() was renamed to _get_input_as_hash(). You shouldn't care. 4.00 Sun Aug 14 10:57:25 EST 2005 *** NOTE *** This a major update with a significant code changes. While the test suite indicates we have 100% compatibility with 3.x, you are encouraged to test this release with your own applications before deploying it in a production environment. [ENHANCEMENTS] - The constraints interface has been overhauled to be more intuitive to use with parameterized constraints. This included added new two new profile keys: 'constraint_methods' and 'constraint_method_regexp_map'. All of the old syntax is still supported, but de-emphasized in the documentation. See RELEASE_NOTES for details. - A new method has been added to help building custom constraints: "set_current_constraint_name('foo')" will set the name of a constraint from within itself. An alias named 'name_this()' is provided for brevity. See the section on "Writing your own constraints" in DFV::Constraints for details. - success() method added to Results object. This is an easy way to check that there were no missing or invalid fields. (Michael Peters). - 'separator' was misspelled consistently in the the docs, code and tests. The proper spelling as well as the legacy typo spelling are now supported, although the typo'ed version is no longer documented, except for here. :) Thanks to Terrence Brannon for spotting this. - The 'msgs' hash in the profile is now validated to make sure it includes only valid keys. This should help to spot some errors faster. - ::Constraints::Upload now supports CGI::Simple, thanks to David Emery. - Documentation for required_regexp has been improved. (William McKee) - support for coderefs as default values (Marcello) - Improved field_filters documentation, thanks to Andrew Brosnan. [BUG FIXES] - RT#12220: Canadian Province RE were updated. (Steve Simms). - The preferred MIME type was not being returned by the 'file_format' constraint for file uploads. This would have only affected cases where the mime type sent by the browser differed from the one detected by DFV. Thanks to Randal Schwartz for spotting this. (RT#12744). - Profile re-use when constraint_regexp_map is used is now fixed (Thanks to Cees Hek). - The date_and_time constraint now understands this format: MMDDYYYY. (RT#12111, thanks to JMAY) - This one is worth a brief explanation. When this old syntax was used: my ( $valid, $missing, $invalid, $unknown ) = Data::FormValidator->validate({}, {} ); $invalid would be returned as an empty arrayref if there were no invalids. This return value was undocumented, and was later changed to be 'undef' sometime between 3.50 and 3.70. However, I found that some applications, including Cascade, depended on the undocumented return value (which they shouldn't have). I have now reverted the behavior to returning an empty arrayref in this case, added a test for it, and updated the docs to be explicit about the return value. This will save some people unexpected breakages when upgrading DFV from a very old version with very old applications. Those who use the $results object are unaffected. [INTERALS] - Add many failing TODO tests for built-in filters. See t/filters_builtin.t - A new test was added to check that no warnings are emitted when an untainted constraint returns undef (Michael Peters)
Diffstat (limited to 'textproc/p5-Data-FormValidator')
-rw-r--r--textproc/p5-Data-FormValidator/Makefile5
-rw-r--r--textproc/p5-Data-FormValidator/distinfo8
2 files changed, 6 insertions, 7 deletions
diff --git a/textproc/p5-Data-FormValidator/Makefile b/textproc/p5-Data-FormValidator/Makefile
index 5cf4ea0252e..9436db86a2d 100644
--- a/textproc/p5-Data-FormValidator/Makefile
+++ b/textproc/p5-Data-FormValidator/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2005/08/06 06:19:31 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2006/02/03 17:33:08 abs Exp $
-DISTNAME= Data-FormValidator-3.63
+DISTNAME= Data-FormValidator-4.12
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 2
CATEGORIES= perl5 textproc
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/}
diff --git a/textproc/p5-Data-FormValidator/distinfo b/textproc/p5-Data-FormValidator/distinfo
index 3efc8a03a82..1a3c9167d18 100644
--- a/textproc/p5-Data-FormValidator/distinfo
+++ b/textproc/p5-Data-FormValidator/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 14:48:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/02/03 17:33:08 abs Exp $
-SHA1 (Data-FormValidator-3.63.tar.gz) = 317c6c734ce6956033c127e053d50ccb024b1e30
-RMD160 (Data-FormValidator-3.63.tar.gz) = 51814d236f0bc00aa034108908292bf6c63cb757
-Size (Data-FormValidator-3.63.tar.gz) = 62970 bytes
+SHA1 (Data-FormValidator-4.12.tar.gz) = fc405c4a453f86c9d136408ee2520c0ce8d41054
+RMD160 (Data-FormValidator-4.12.tar.gz) = 75e12690d33d0751e2afebd81d49fa72a3bb49ca
+Size (Data-FormValidator-4.12.tar.gz) = 83548 bytes