Subject: CVS commit: pkgsrc/textproc/p5-Data-FormValidator
To: None <pkgsrc-changes@NetBSD.org>
From: David Brownlee <abs@netbsd.org>
List: pkgsrc-changes
Date: 02/03/2006 17:33:08
Module Name:	pkgsrc
Committed By:	abs
Date:		Fri Feb  3 17:33:08 UTC 2006

Modified Files:
	pkgsrc/textproc/p5-Data-FormValidator: Makefile distinfo

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 pkgsrc/textproc/p5-Data-FormValidator/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/textproc/p5-Data-FormValidator/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.