Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/depreciated/deprecated/g

  • Loading branch information...
commit 77ac5af50d00f776cd0cd2316e6ac021df04adea 1 parent bff9f9b
@oalders oalders authored
View
2  CHANGES
@@ -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
View
8 lib/Validation/Class/Backwards.pm
@@ -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 {
@@ -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.
@@ -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
@@ -122,4 +122,4 @@ sub error { warning();
}
-1;
+1;
View
4 lib/Validation/Class/Prototype.pm
@@ -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 ;
@@ -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 ) {
View
6 t/regression/01-attributes.t
@@ -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';
View
4 t/regression/11-group-validation.t
@@ -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';
@@ -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';
View
6 t/regression/12-queued-rules.t
@@ -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';
@@ -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';
@@ -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';
View
2  t/regression/18-cloning.t
@@ -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');
View
2  t/regression/21-filtering-behavior.t
@@ -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';
View
2  t/regression/42-inheritence.t
@@ -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;
View
6 t/regression/99-battery.t
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.