Changeset 13411
- Timestamp:
- 06/07/08 21:41:11 (5 years ago)
- Location:
- lang/perl/FormValidator-LazyWay/branches/rebuild
- Files:
-
- 1 added
- 3 modified
-
lib/FormValidator/LazyWay.pm (modified) (1 diff)
-
lib/FormValidator/LazyWay/Utils.pm (modified) (1 diff)
-
t/lazyway-new.t (added)
-
t/message.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/FormValidator-LazyWay/branches/rebuild/lib/FormValidator/LazyWay.pm
r13091 r13411 2 2 3 3 use Moose; 4 use FormValidator::LazyWay::Rule; 5 use FormValidator::LazyWay::Message; 6 use Carp; 4 7 8 has config => ( is => 'ro' , isa => 'HashRef' ) ; 9 has rule => ( is => 'ro' , isa => 'FormValidator::LazyWay::Rule' ) ; 10 has message => ( is => 'ro' , isa => 'FormValidator::LazyWay::Message' ) ; 11 12 sub BUILD { 13 my $self = shift; 14 croak 'you msue set config' unless $self->config; 15 my $rule = FormValidator::LazyWay::Rule->new( config => $self->config ); 16 my $message = FormValidator::LazyWay::Message->new( config => $self->config , rule => $rule ); 17 $self->{rule} = $rule; 18 $self->{message} = $message; 19 } 5 20 6 21 1; 22 23 =head1 NAME 24 25 FormValidator::LazyWay - Yet Another Form Validator 26 27 =head1 SYNOPSYS 28 29 my $fv = FormValidator::LazyWay->new( $config ); 30 31 =head1 DESCRIPTION 32 33 =head1 AUTHOR 34 35 Tomohiro Teranishi <tomohiro.teranishi@gmail.com> 36 37 =cut -
lang/perl/FormValidator-LazyWay/branches/rebuild/lib/FormValidator/LazyWay/Utils.pm
r13409 r13411 27 27 28 28 for my $key ( keys %$profile ) { 29 next if $key =~ m/^use_/ ;29 next if $key =~ m/^use_/; 30 30 push @invalid, $key unless ( $key eq any(@valid_profile_keys) ); 31 31 } -
lang/perl/FormValidator-LazyWay/branches/rebuild/t/message.t
r13409 r13411 4 4 use FindBin; 5 5 use File::Spec; 6 use YAML::Syck;7 6 use Data::Dumper; 8 7 use lib File::Spec->catfile( $FindBin::Bin, 'lib' );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)