Codebase list libparams-validate-perl / ef4d259
Imported Upstream version 1.10 gregor herrmann 9 years ago
17 changed file(s) with 106 addition(s) and 146 deletion(s). Raw diff Collapse all Expand all
1515 },
1616 "dist_abstract" => "Validate method/function parameters",
1717 "dist_author" => [
18 "Dave Rolsky, <autarch\@urth.org> and Ilya Martynov <ilya\@martynov.org>"
18 "Dave Rolsky <autarch\@urth.org>",
19 "Ilya Martynov <ilya\@martynov.org>"
1920 ],
2021 "dist_name" => "Params-Validate",
21 "dist_version" => "1.09",
22 "dist_version" => "1.10",
2223 "license" => "artistic_2",
2324 "module_name" => "Params::Validate",
2425 "recommends" => {},
0 1.10 2014-05-11
1
2 - Require Readonly 1.03+ and Scalar::Util 1.20 for testing with
3 Readonly. AFAICT, earlier versions of Readonly worked very differently,
4 and/or this is related to Scalar::Util. Either way, this test isn't that
5 important anyway. RT #95402.
6
7
08 1.09 2014-05-04
19
210 - A call to validate() where the spec was a reference to a Readonly hash would
00 {
11 "abstract" : "Validate method/function parameters",
22 "author" : [
3 "Dave Rolsky, <autarch@urth.org> and Ilya Martynov <ilya@martynov.org>"
3 "Dave Rolsky <autarch@urth.org>",
4 "Ilya Martynov <ilya@martynov.org>"
45 ],
56 "dynamic_config" : 0,
6 "generated_by" : "Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.120921",
7 "generated_by" : "Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.131560",
78 "license" : [
89 "artistic_2"
910 ],
2526 },
2627 "develop" : {
2728 "requires" : {
29 "Test::CPAN::Changes" : "0.19",
2830 "Test::More" : "0",
2931 "Test::NoTabs" : "0",
3032 "Test::Pod" : "1.41"
7375 "web" : "http://git.urth.org/Params-Validate.git"
7476 }
7577 },
76 "version" : "1.09"
78 "version" : "1.10"
7779 }
7880
00 ---
11 abstract: 'Validate method/function parameters'
22 author:
3 - 'Dave Rolsky, <autarch@urth.org> and Ilya Martynov <ilya@martynov.org>'
3 - 'Dave Rolsky <autarch@urth.org>'
4 - 'Ilya Martynov <ilya@martynov.org>'
45 build_requires:
5 Devel::Peek: 0
6 File::Spec: 0
7 File::Temp: 0
8 Module::Build: 0.3601
9 Test::Fatal: 0
10 Test::More: 0.88
11 Test::Requires: 0
12 Tie::Array: 0
13 Tie::Hash: 0
14 base: 0
15 lib: 0
16 overload: 0
6 Devel::Peek: '0'
7 File::Spec: '0'
8 File::Temp: '0'
9 Module::Build: '0.3601'
10 Test::Fatal: '0'
11 Test::More: '0.88'
12 Test::Requires: '0'
13 Tie::Array: '0'
14 Tie::Hash: '0'
15 base: '0'
16 lib: '0'
17 overload: '0'
1718 configure_requires:
18 Module::Build: 0.3601
19 Module::Build: '0.3601'
1920 dynamic_config: 0
20 generated_by: 'Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.120921'
21 generated_by: 'Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.131560'
2122 license: artistic_2
2223 meta-spec:
2324 url: http://module-build.sourceforge.net/META-spec-v1.4.html
24 version: 1.4
25 version: '1.4'
2526 name: Params-Validate
2627 requires:
27 Attribute::Handlers: 0.79
28 Carp: 0
29 Exporter: 0
30 Module::Implementation: 0
31 Scalar::Util: 1.10
32 XSLoader: 0
33 attributes: 0
34 perl: 5.008001
35 strict: 0
36 vars: 0
37 warnings: 0
28 Attribute::Handlers: '0.79'
29 Carp: '0'
30 Exporter: '0'
31 Module::Implementation: '0'
32 Scalar::Util: '1.10'
33 XSLoader: '0'
34 attributes: '0'
35 perl: '5.008001'
36 strict: '0'
37 vars: '0'
38 warnings: '0'
3839 resources:
3940 bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Params-Validate
4041 repository: git://git.urth.org/Params-Validate.git
41 version: 1.09
42 version: '1.10'
00
11
22 This archive contains the distribution Params-Validate,
3 version 1.09:
3 version 1.10:
44
55 Validate method/function parameters
66
00 name = Params-Validate
1 author = Dave Rolsky, <autarch@urth.org> and Ilya Martynov <ilya@martynov.org>
1 author = Dave Rolsky <autarch@urth.org>
2 author = Ilya Martynov <ilya@martynov.org>
23 license = Artistic_2_0
34 copyright_holder = Dave Rolsky and Ilya Martynov
45
5 version = 1.09
6 version = 1.10
67
78 [NextRelease]
89 format = %-7v %{yyyy-MM-dd}d
00 package Attribute::Params::Validate;
1 $Attribute::Params::Validate::VERSION = '1.09';
1 $Attribute::Params::Validate::VERSION = '1.10';
22 use strict;
33 use warnings;
44
9797
9898 =head1 VERSION
9999
100 version 1.09
100 version 1.10
101101
102102 =head1 SYNOPSIS
103103
180180
181181 Params::Validate
182182
183 =head1 AUTHOR
184
185 Dave Rolsky, <autarch@urth.org> and Ilya Martynov <ilya@martynov.org>
183 =head1 AUTHORS
184
185 =over 4
186
187 =item *
188
189 Dave Rolsky <autarch@urth.org>
190
191 =item *
192
193 Ilya Martynov <ilya@martynov.org>
194
195 =back
186196
187197 =head1 COPYRIGHT AND LICENSE
188198
00 package Params::Validate::Constants;
1 $Params::Validate::Constants::VERSION = '1.09';
1 $Params::Validate::Constants::VERSION = '1.10';
22 use strict;
33 use warnings;
44
00 package Params::Validate::PP;
1 $Params::Validate::PP::VERSION = '1.09';
1 $Params::Validate::PP::VERSION = '1.10';
22 use strict;
33 use warnings;
44
00 package Params::Validate::XS;
1 $Params::Validate::XS::VERSION = '1.09';
1 $Params::Validate::XS::VERSION = '1.10';
22 use strict;
33 use warnings;
44
00 package Params::Validate;
1 $Params::Validate::VERSION = '1.09';
1 $Params::Validate::VERSION = '1.10';
22 use 5.008001;
33
44 use strict;
7676
7777 =head1 VERSION
7878
79 version 1.09
79 version 1.10
8080
8181 =head1 SYNOPSIS
8282
771771 But if you want to shoot yourself in the foot and just turn it off, go
772772 ahead!
773773
774 =head1 TAINT MODE
775
776 The XS implementation of this module has some problems Under taint mode with
777 version of Perl before 5.14. If validation I<fails>, then instead of getting
778 the expected error message you'll get a message like "Insecure dependency in
779 eval_sv". This can be worked around by either untainting the arguments
780 yourself, using the pure Perl implementation, or upgrading your Perl.
781
774782 =head1 LIMITATIONS
775783
776784 Right now there is no way (short of a callback) to specify that
810818 the button on this page:
811819 L<http://www.urth.org/~autarch/fs-donation.html>
812820
813 =head1 AUTHOR
814
815 Dave Rolsky, <autarch@urth.org> and Ilya Martynov <ilya@martynov.org>
821 =head1 AUTHORS
822
823 =over 4
824
825 =item *
826
827 Dave Rolsky <autarch@urth.org>
828
829 =item *
830
831 Ilya Martynov <ilya@martynov.org>
832
833 =back
816834
817835 =head1 COPYRIGHT AND LICENSE
818836
00 package Params::Validate;
1 $Params::Validate::VERSION = '1.09';
1 $Params::Validate::VERSION = '1.10';
22 BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'PP' }
33 use Params::Validate;
44
00 package Params::Validate;
1 $Params::Validate::VERSION = '1.09';
1 $Params::Validate::VERSION = '1.10';
22 BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'XS' }
33 use Params::Validate;
44
11 use warnings;
22
33 use Test::Requires {
4 Readonly => 0,
4 Readonly => '1.03',
5 'Scalar::Util' => '1.20',
56 };
67
78 use Params::Validate qw(validate validate_pos SCALAR);
77 }
88
99
10 use Test::More;
11 eval 'use Test::CPAN::Changes';
12 plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
13 changes_ok();
10 use strict;
11 use warnings;
12
13 use Test::More 0.96 tests => 2;
14 use_ok('Test::CPAN::Changes');
15 subtest 'changes_ok' => sub {
16 changes_file_ok('Changes');
17 };
1418 done_testing();
88 use strict;
99 use warnings;
1010
11 # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.07
11 # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.06
1212
1313 use Test::More 0.88;
1414 use Test::NoTabs;
2020 'lib/Params/Validate/PP.pm',
2121 'lib/Params/Validate/XS.pm',
2222 'lib/Params/ValidatePP.pm',
23 'lib/Params/ValidateXS.pm',
24 't/01-validate.t',
25 't/02-noop.t',
26 't/03-attribute.t',
27 't/04-defaults.t',
28 't/05-noop_default.t',
29 't/06-options.t',
30 't/07-with.t',
31 't/08-noop_with.t',
32 't/09-regex.t',
33 't/10-noop_regex.t',
34 't/11-cb.t',
35 't/12-noop_cb.t',
36 't/13-taint.t',
37 't/14-no_validate.t',
38 't/15-case.t',
39 't/16-normalize.t',
40 't/17-callbacks.t',
41 't/18-depends.t',
42 't/19-untaint.t',
43 't/21-can.t',
44 't/22-overload-can-bug.t',
45 't/23-readonly.t',
46 't/24-tied.t',
47 't/25-undef-regex.t',
48 't/26-isa.t',
49 't/27-string-as-type.t',
50 't/28-readonly-return.t',
51 't/29-taint-mode.t',
52 't/30-hashref-alteration.t',
53 't/31-incorrect-spelling.t',
54 't/32-regex-as-value.t',
55 't/33-keep-errsv.t',
56 't/34-recursive-validation.t',
57 't/35-default-xs-bug.t',
58 't/35-large-arrays.t',
59 't/lib/PVTests.pm',
60 't/lib/PVTests/Callbacks.pm',
61 't/lib/PVTests/Defaults.pm',
62 't/lib/PVTests/Regex.pm',
63 't/lib/PVTests/Standard.pm',
64 't/lib/PVTests/With.pm',
65 't/release-cpan-changes.t',
66 't/release-eol.t',
67 't/release-no-tabs.t',
68 't/release-pod-coverage.t',
69 't/release-pod-linkcheck.t',
70 't/release-pod-no404s.t',
71 't/release-pod-spell.t',
72 't/release-pod-syntax.t',
73 't/release-pp-01-validate.t',
74 't/release-pp-02-noop.t',
75 't/release-pp-03-attribute.t',
76 't/release-pp-04-defaults.t',
77 't/release-pp-05-noop_default.t',
78 't/release-pp-06-options.t',
79 't/release-pp-07-with.t',
80 't/release-pp-08-noop_with.t',
81 't/release-pp-09-regex.t',
82 't/release-pp-10-noop_regex.t',
83 't/release-pp-11-cb.t',
84 't/release-pp-12-noop_cb.t',
85 't/release-pp-13-taint.t',
86 't/release-pp-14-no_validate.t',
87 't/release-pp-15-case.t',
88 't/release-pp-16-normalize.t',
89 't/release-pp-17-callbacks.t',
90 't/release-pp-18-depends.t',
91 't/release-pp-19-untaint.t',
92 't/release-pp-21-can.t',
93 't/release-pp-22-overload-can-bug.t',
94 't/release-pp-23-readonly.t',
95 't/release-pp-24-tied.t',
96 't/release-pp-25-undef-regex.t',
97 't/release-pp-26-isa.t',
98 't/release-pp-27-string-as-type.t',
99 't/release-pp-28-readonly-return.t',
100 't/release-pp-29-taint-mode.t',
101 't/release-pp-30-hashref-alteration.t',
102 't/release-pp-31-incorrect-spelling.t',
103 't/release-pp-32-regex-as-value.t',
104 't/release-pp-33-keep-errsv.t',
105 't/release-pp-34-recursive-validation.t',
106 't/release-pp-35-default-xs-bug.t',
107 't/release-pp-35-large-arrays.t',
108 't/release-pp-is-loaded.t',
109 't/release-xs-is-loaded.t',
110 't/release-xs-segfault.t'
23 'lib/Params/ValidateXS.pm'
11124 );
11225
11326 notabs_ok($_) foreach @files;
1313 use warnings;
1414
1515 use Test::Requires {
16 Readonly => 0,
16 Readonly => '1.03',
17 'Scalar::Util' => '1.20',
1718 };
1819
1920 use Params::Validate qw(validate validate_pos SCALAR);