Skip to content

Commit

Permalink
s/depreciated/deprecated/g
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jun 7, 2012
1 parent bff9f9b commit 77ac5af
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Expand Up @@ -77,7 +77,7 @@ TODO (0000-00-00)
* removed load_classes and load_plugins
* changed options accepted by the load/set method
* no longer registering quickname for relatives
* depreciated load_plugins and load_classes methods
* deprecated load_plugins and load_classes methods
* removed Array::Unique finally
* cleanup error handling (needs its own class)
* merge half-ass cookbook into intro POD
Expand Down
8 changes: 4 additions & 4 deletions lib/Validation/Class/Backwards.pm
Expand Up @@ -10,7 +10,7 @@ use warnings;
use Carp 'confess';

$ENV{'VALIDATION_CLASS_BC_WARNING'} = <<'WARNING'; # usage warning
The method you're attempting to use is (or will be) DEPRECIATED.
The method you're attempting to use is (or will be) DEPRECATED.
WARNING

sub warning {
Expand All @@ -34,7 +34,7 @@ sub warning {
=head1 DESCRIPTION
Validation::Class::Backwards is responsible for providing depreciated
Validation::Class::Backwards is responsible for providing deprecated
functionality to the L<Validation::Class::Prototype> layer whilst clearly
remaining separate via namespacing.
Expand All @@ -47,7 +47,7 @@ unset the $ENV{'VALIDATION_CLASS_BC_WARNING'} environment variable.

=method error
DEPRECIATING:
DEPRECATING:
The error method is used to set and/or retrieve errors encountered during
validation. The error method with no parameters returns the error message object
Expand Down Expand Up @@ -122,4 +122,4 @@ sub error { warning();

}

1;
1;
4 changes: 2 additions & 2 deletions lib/Validation/Class/Prototype.pm
Expand Up @@ -3605,7 +3605,7 @@ sub validate {
}

# create alias map manually if requested
# extremely-depreciated but it remains for back-compat and nostalgia !!!
# extremely-deprecated but it remains for back-compat and nostalgia !!!

my $alias_map ;

Expand Down Expand Up @@ -3771,7 +3771,7 @@ sub validate {

my $valid = $self->error_count ? 0 : 1;

# restore parameters from depreciated alias map functionality
# restore parameters from deprecated alias map functionality

if ( defined $alias_map ) {

Expand Down
6 changes: 3 additions & 3 deletions t/regression/01-attributes.t
Expand Up @@ -11,13 +11,13 @@ my $v = MyVal->new;
ok $v->params, 'params attr ok';
ok $v->fields, 'fields attr ok';

# ok $v->filters({}), 'filters attr ok'; - DEPRECIATED
# ok $v->filters({}), 'filters attr ok'; - DEPRECATED
ok $v->proto->filters, 'filters attr ok';

# ok $v->mixins({}), 'mixins attr ok'; - DEPRECIATED
# ok $v->mixins({}), 'mixins attr ok'; - DEPRECATED
ok $v->proto->mixins, 'mixins attr ok';

# ok $v->types({}), 'types attr ok'; - DEPRECIATED
# ok $v->types({}), 'types attr ok'; - DEPRECATED
ok $v->proto->types, 'types attr ok';

ok $v->ignore_unknown(1), 'ignore unknown attr ok';
Expand Down
4 changes: 2 additions & 2 deletions t/regression/11-group-validation.t
Expand Up @@ -56,7 +56,7 @@ ok $v->errors_to_string eq '', 'no error messages found';
# grouped fields perform like normal fields, now testing validation and
# extraction routines

# my $obj = $v->unflatten_params(); - DEPRECIATED
# my $obj = $v->unflatten_params(); - DEPRECATED
my $obj = $v->proto->unflatten_params($v->proto->params->hash);
ok defined $obj->{user}->{login} && $obj->{user}->{login}, 'unflatten_params has user hash with login key';
ok defined $obj->{user}->{password} && $obj->{user}->{password}, 'unflatten_params has user hash with password key';
Expand Down Expand Up @@ -114,7 +114,7 @@ ok $v->validate, 'alternate use of validation validates';
ok $v->error_count == 0, 'error count is zero';
ok $v->errors_to_string eq '', 'no error messages found';

# $obj = $v->unflatten_params(); - DEPRECIATED
# $obj = $v->unflatten_params(); - DEPRECATED
$obj = $v->proto->unflatten_params($v->proto->params->hash);
ok defined $obj->{user}->{login} && $obj->{user}->{login}, 'unflatten_params has user hash with login key';
ok defined $obj->{user}->{password} && $obj->{user}->{password}, 'unflatten_params has user hash with password key';
Expand Down
6 changes: 3 additions & 3 deletions t/regression/12-queued-rules.t
Expand Up @@ -63,7 +63,7 @@ ok $v->validate, 'validation succesful';
ok ! $v->error_count, 'no errors';
ok $v->validate('id'), 'validation succesful';
ok ! $v->error_count, 'no errors';
# ok $v->reset, 'reset ok'; - DEPRECIATED
# ok $v->reset, 'reset ok'; - DEPRECATED
ok $v->proto->reset, 'reset ok';
ok ! $v->validate(keys %{$v->fields}), 'validate all (not queued) failed';
ok $v->error_count == 1, 'error - email_confirm not set';
Expand All @@ -73,7 +73,7 @@ $v->param($_ => '') for qw(id name);
ok $v->queue('+id'), 'queued id w/requirement';
ok $v->queue('+name'), 'queued name w/requirement';
ok $v->queue('email'), 'queued email';
# ok 3 == @{$v->queued}, '3 fields queued'; - DEPRECIATED
# ok 3 == @{$v->queued}, '3 fields queued'; - DEPRECATED
ok 3 == @{$v->proto->queued}, '3 fields queued';
ok ! $v->validate, 'error: both fields required, no input';
ok 2 == $v->error_count, '2 errors encoutered';
Expand All @@ -82,5 +82,5 @@ $v->param(name => 456);
ok 3 == $v->clear_queue(my($id, $name)), 'rid the queue of 3 fields, 2 set';
ok $id == 123, 'local variable (id) set correctly';
ok $name == 456, 'local variable (name) set correctly';
# ok ! @{$v->queued}, 'no fields queued' - DEPRECIATED;
# ok ! @{$v->queued}, 'no fields queued' - DEPRECATED;
ok ! @{$v->proto->queued}, 'no fields queued';
2 changes: 1 addition & 1 deletion t/regression/18-cloning.t
Expand Up @@ -17,7 +17,7 @@ my $v = MyVal->new( params => {

ok $v, 'initialization successful';

# $v->clone - DEPRECIATED
# $v->clone - DEPRECATED
$v->proto->clone('email', 'email3', { label => 'Third Email', required => 0 });
$v->proto->clone('email', 'email2');
$v->proto->clone('email', 'email1');
Expand Down
2 changes: 1 addition & 1 deletion t/regression/21-filtering-behavior.t
Expand Up @@ -61,7 +61,7 @@ $nope->validate;
ok $nope->params->{foobar} =~ /^1@%23abc45@%#@#%6d666ef\.\.$/,
'explicit no-filtering after validate ok';

# ok $nope->apply_filters('manual'), 'applying filters manually'; - DEPRECIATED
# ok $nope->apply_filters('manual'), 'applying filters manually'; - DEPRECATED
ok $nope->proto->apply_filters('manual'), 'applying filters manually';
ok $nope->params->{foobar} =~ /^123abc456d666ef$/, 'filtering applied manually';

Expand Down
2 changes: 1 addition & 1 deletion t/regression/42-inheritence.t
Expand Up @@ -17,7 +17,7 @@ ok $v->fields->{email}, 'temp obj has email';
ok $v->fields->{login}, 'temp obj has login';
ok $v->fields->{password}, 'temp obj has password';

# ok $v->mixins->{TMP}, 'temp obj has TMP mixin'; - DEPRECIATED
# ok $v->mixins->{TMP}, 'temp obj has TMP mixin'; - DEPRECATED
ok $v->proto->mixins->{TMP}, 'temp obj has TMP mixin';

done_testing;
6 changes: 3 additions & 3 deletions t/regression/99-battery.t
Expand Up @@ -56,13 +56,13 @@ ok defined $v->fields->{password}->{required}
ok $v->params, 'params attr ok';
ok $v->fields, 'fields attr ok';

# ok $v->mixins, 'mixins attr ok'; - DEPRECIATED
# ok $v->mixins, 'mixins attr ok'; - DEPRECATED
ok $v->proto->mixins, 'mixins attr ok';

# ok $v->filters, 'filters attr ok'; - DEPRECIATED
# ok $v->filters, 'filters attr ok'; - DEPRECATED
ok $v->proto->filters, 'filters attr ok';

# ok $v->types, 'types attr ok'; - DEPRECIATED
# ok $v->types, 'types attr ok'; - DEPRECATED
ok $v->proto->types, 'types attr ok';

# process field with multiple mixins
Expand Down

0 comments on commit 77ac5af

Please sign in to comment.