another way to validate data before stuffing it in a database.

dep for some DBIx::Class:*, requires newer Class::Data::Accessor
This commit is contained in:
espie 2006-11-17 16:14:45 +00:00
parent 7d6b32c835
commit d69610e735
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/17 16:14:45 espie Exp $
COMMENT= "validate user input through a chain of constraints"
MODULES= cpan
DISTNAME= FormValidator-Simple-0.19
CATEGORIES= devel
# perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::devel/p5-Class-Accessor \
:p5-Class-Data-Accessor->=0.03:devel/p5-Class-Data-Accessor \
::devel/p5-Class-Data-Inheritable \
::devel/p5-Class-Inspector \
::devel/p5-Date-Calc \
::devel/p5-DateTime-Format-Strptime \
::mail/p5-Email-Valid \
::mail/p5-Email-Valid-Loose \
::devel/p5-List-MoreUtils \
::mail/p5-Mail-Tools \
::devel/p5-Tie-IxHash \
::devel/p5-Universal-require \
::devel/p5-YAML
MAKE_ENV= TEST_POD=Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/L/LY/LYOKATO/}
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (FormValidator-Simple-0.19.tar.gz) = 6dd7154695bb9588c95662283113e786
RMD160 (FormValidator-Simple-0.19.tar.gz) = 9ba920a49df737d93b5db9ee5ae7f9bb73b19c8c
SHA1 (FormValidator-Simple-0.19.tar.gz) = c80c2899b3f30d42288fa7da12fe6b00414efb09
SIZE (FormValidator-Simple-0.19.tar.gz) = 21858

View File

@ -0,0 +1,7 @@
This module provides you with form data validation through simple
constraints chains. You can write constraints on a single line for each
input data.
The idea is based on Sledge::Plugin::Validator, and most of the validation
code is borrowed from this plugin (Sledge is a MVC web application framework:
http://sl.edge.jp [Japanese])

View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/17 16:14:45 espie Exp $
${P5SITE}/FormValidator/
${P5SITE}/FormValidator/Simple/
${P5SITE}/FormValidator/Simple.pm
${P5SITE}/FormValidator/Simple/ArrayList.pm
${P5SITE}/FormValidator/Simple/Constants.pm
${P5SITE}/FormValidator/Simple/Constraint.pm
${P5SITE}/FormValidator/Simple/Constraints.pm
${P5SITE}/FormValidator/Simple/Data.pm
${P5SITE}/FormValidator/Simple/Exception.pm
${P5SITE}/FormValidator/Simple/Iterator.pm
${P5SITE}/FormValidator/Simple/Messages.pm
${P5SITE}/FormValidator/Simple/Profile.pm
${P5SITE}/FormValidator/Simple/Result.pm
${P5SITE}/FormValidator/Simple/Results.pm
${P5SITE}/FormValidator/Simple/Validator.pm
@man man/man3p/FormValidator::Simple.3p
@man man/man3p/FormValidator::Simple::Results.3p