Imported Upstream version 1.10
gregor herrmann
9 years ago
15 | 15 | }, |
16 | 16 | "dist_abstract" => "Validate method/function parameters", |
17 | 17 | "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>" | |
19 | 20 | ], |
20 | 21 | "dist_name" => "Params-Validate", |
21 | "dist_version" => "1.09", | |
22 | "dist_version" => "1.10", | |
22 | 23 | "license" => "artistic_2", |
23 | 24 | "module_name" => "Params::Validate", |
24 | 25 | "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 | ||
0 | 8 | 1.09 2014-05-04 |
1 | 9 | |
2 | 10 | - A call to validate() where the spec was a reference to a Readonly hash would |
0 | 0 | { |
1 | 1 | "abstract" : "Validate method/function parameters", |
2 | 2 | "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>" | |
4 | 5 | ], |
5 | 6 | "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", | |
7 | 8 | "license" : [ |
8 | 9 | "artistic_2" |
9 | 10 | ], |
25 | 26 | }, |
26 | 27 | "develop" : { |
27 | 28 | "requires" : { |
29 | "Test::CPAN::Changes" : "0.19", | |
28 | 30 | "Test::More" : "0", |
29 | 31 | "Test::NoTabs" : "0", |
30 | 32 | "Test::Pod" : "1.41" |
73 | 75 | "web" : "http://git.urth.org/Params-Validate.git" |
74 | 76 | } |
75 | 77 | }, |
76 | "version" : "1.09" | |
78 | "version" : "1.10" | |
77 | 79 | } |
78 | 80 |
0 | 0 | --- |
1 | 1 | abstract: 'Validate method/function parameters' |
2 | 2 | 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>' | |
4 | 5 | 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' | |
17 | 18 | configure_requires: |
18 | Module::Build: 0.3601 | |
19 | Module::Build: '0.3601' | |
19 | 20 | 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' | |
21 | 22 | license: artistic_2 |
22 | 23 | meta-spec: |
23 | 24 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
24 | version: 1.4 | |
25 | version: '1.4' | |
25 | 26 | name: Params-Validate |
26 | 27 | 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' | |
38 | 39 | resources: |
39 | 40 | bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Params-Validate |
40 | 41 | repository: git://git.urth.org/Params-Validate.git |
41 | version: 1.09 | |
42 | version: '1.10' |
0 | 0 | |
1 | 1 | |
2 | 2 | This archive contains the distribution Params-Validate, |
3 | version 1.09: | |
3 | version 1.10: | |
4 | 4 | |
5 | 5 | Validate method/function parameters |
6 | 6 |
0 | 0 | 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> | |
2 | 3 | license = Artistic_2_0 |
3 | 4 | copyright_holder = Dave Rolsky and Ilya Martynov |
4 | 5 | |
5 | version = 1.09 | |
6 | version = 1.10 | |
6 | 7 | |
7 | 8 | [NextRelease] |
8 | 9 | format = %-7v %{yyyy-MM-dd}d |
0 | 0 | package Attribute::Params::Validate; |
1 | $Attribute::Params::Validate::VERSION = '1.09'; | |
1 | $Attribute::Params::Validate::VERSION = '1.10'; | |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 | |
97 | 97 | |
98 | 98 | =head1 VERSION |
99 | 99 | |
100 | version 1.09 | |
100 | version 1.10 | |
101 | 101 | |
102 | 102 | =head1 SYNOPSIS |
103 | 103 | |
180 | 180 | |
181 | 181 | Params::Validate |
182 | 182 | |
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 | |
186 | 196 | |
187 | 197 | =head1 COPYRIGHT AND LICENSE |
188 | 198 |
0 | 0 | package Params::Validate::Constants; |
1 | $Params::Validate::Constants::VERSION = '1.09'; | |
1 | $Params::Validate::Constants::VERSION = '1.10'; | |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 |
0 | 0 | package Params::Validate::PP; |
1 | $Params::Validate::PP::VERSION = '1.09'; | |
1 | $Params::Validate::PP::VERSION = '1.10'; | |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 |
0 | 0 | package Params::Validate::XS; |
1 | $Params::Validate::XS::VERSION = '1.09'; | |
1 | $Params::Validate::XS::VERSION = '1.10'; | |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 |
0 | 0 | package Params::Validate; |
1 | $Params::Validate::VERSION = '1.09'; | |
1 | $Params::Validate::VERSION = '1.10'; | |
2 | 2 | use 5.008001; |
3 | 3 | |
4 | 4 | use strict; |
76 | 76 | |
77 | 77 | =head1 VERSION |
78 | 78 | |
79 | version 1.09 | |
79 | version 1.10 | |
80 | 80 | |
81 | 81 | =head1 SYNOPSIS |
82 | 82 | |
771 | 771 | But if you want to shoot yourself in the foot and just turn it off, go |
772 | 772 | ahead! |
773 | 773 | |
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 | ||
774 | 782 | =head1 LIMITATIONS |
775 | 783 | |
776 | 784 | Right now there is no way (short of a callback) to specify that |
810 | 818 | the button on this page: |
811 | 819 | L<http://www.urth.org/~autarch/fs-donation.html> |
812 | 820 | |
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 | |
816 | 834 | |
817 | 835 | =head1 COPYRIGHT AND LICENSE |
818 | 836 |
0 | 0 | package Params::Validate; |
1 | $Params::Validate::VERSION = '1.09'; | |
1 | $Params::Validate::VERSION = '1.10'; | |
2 | 2 | BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'PP' } |
3 | 3 | use Params::Validate; |
4 | 4 |
0 | 0 | package Params::Validate; |
1 | $Params::Validate::VERSION = '1.09'; | |
1 | $Params::Validate::VERSION = '1.10'; | |
2 | 2 | BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'XS' } |
3 | 3 | use Params::Validate; |
4 | 4 |
1 | 1 | use warnings; |
2 | 2 | |
3 | 3 | use Test::Requires { |
4 | Readonly => 0, | |
4 | Readonly => '1.03', | |
5 | 'Scalar::Util' => '1.20', | |
5 | 6 | }; |
6 | 7 | |
7 | 8 | use Params::Validate qw(validate validate_pos SCALAR); |
7 | 7 | } |
8 | 8 | |
9 | 9 | |
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 | }; | |
14 | 18 | done_testing(); |
8 | 8 | use strict; |
9 | 9 | use warnings; |
10 | 10 | |
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 | |
12 | 12 | |
13 | 13 | use Test::More 0.88; |
14 | 14 | use Test::NoTabs; |
20 | 20 | 'lib/Params/Validate/PP.pm', |
21 | 21 | 'lib/Params/Validate/XS.pm', |
22 | 22 | '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' | |
111 | 24 | ); |
112 | 25 | |
113 | 26 | notabs_ok($_) foreach @files; |