Codebase list libdata-visitor-perl / a4cf492
Merge tag 'upstream/0.30' Upstream version 0.30 Florian Schlichting 10 years ago
18 changed file(s) with 238 addition(s) and 181 deletion(s). Raw diff Collapse all Expand all
0 0.30 2013-06-24
1 - doy/data-visitor should probably be the canonical repository at this
2 point
3
4 0.29 2013-06-24
5 - The class callbacks to be run for an object are now chosen once, at the
6 start of visiting that object. Previously, it always looked through the
7 entire list of callbacks every time, in a loop in which the object in
8 question could be changed by the callback. Since the class callbacks are
9 only partially ordered, this lead to differences in whether a callback
10 would be called or not based on hash order. reported by Robin Smidsrød.
11
012 0.28 2012-02-12
113 - convert to dzil
214 - bump namespace::clean dep
0 This software is copyright (c) 2012 by Yuval Kogman.
0 This software is copyright (c) 2013 by Yuval Kogman.
11
22 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
1111
1212 --- The GNU General Public License, Version 1, February 1989 ---
1313
14 This software is Copyright (c) 2012 by Yuval Kogman.
14 This software is Copyright (c) 2013 by Yuval Kogman.
1515
1616 This is free software, licensed under:
1717
2121 Version 1, February 1989
2222
2323 Copyright (C) 1989 Free Software Foundation, Inc.
24 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
2525
2626 Everyone is permitted to copy and distribute verbatim copies
2727 of this license document, but changing it is not allowed.
271271
272272 --- The Artistic License 1.0 ---
273273
274 This software is Copyright (c) 2012 by Yuval Kogman.
274 This software is Copyright (c) 2013 by Yuval Kogman.
275275
276276 This is free software, licensed under:
277277
1313 t/callback.t
1414 t/callback_aliasing.t
1515 t/callback_hash_entry.t
16 t/callback_moose_tc.t
1617 t/circular_refs.t
1718 t/globs.t
1819 t/magic.t
19 t/release-eol.t
20 t/release-pod-coverage.t
21 t/release-pod-syntax.t
2220 t/weak.t
21 xt/release/eol.t
22 xt/release/pod-coverage.t
23 xt/release/pod-syntax.t
44 "Marcel Gr\u00c3\u00bcnauer <marcel@cpan.org>"
55 ],
66 "dynamic_config" : 0,
7 "generated_by" : "Dist::Zilla version 4.300007, CPAN::Meta::Converter version 2.113640",
7 "generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.120921",
88 "license" : [
99 "perl_5"
1010 ],
1919 "ExtUtils::MakeMaker" : "6.30"
2020 }
2121 },
22 "develop" : {
23 "requires" : {
24 "Pod::Coverage::TrustPod" : "0",
25 "Test::Pod" : "1.41",
26 "Test::Pod::Coverage" : "1.08"
27 }
28 },
2229 "runtime" : {
2330 "requires" : {
2431 "Class::Load" : "0.06",
2532 "Moose" : "0.89",
26 "Task::Weaken" : 0,
33 "Task::Weaken" : "0",
2734 "Tie::ToObject" : "0.01",
2835 "namespace::clean" : "0.19"
2936 }
3138 "test" : {
3239 "requires" : {
3340 "Test::More" : "0.88",
34 "Test::Requires" : 0
41 "Test::Requires" : "0"
3542 }
3643 }
3744 },
4451 "homepage" : "http://metacpan.org/release/Data-Visitor",
4552 "repository" : {
4653 "type" : "git",
47 "url" : "git://github.com/nothingmuch/data-visitor.git",
48 "web" : "https://github.com/nothingmuch/data-visitor"
54 "url" : "git://github.com/doy/data-visitor.git",
55 "web" : "https://github.com/doy/data-visitor"
4956 }
5057 },
51 "version" : "0.28",
58 "version" : "0.30",
5259 "x_Dist_Zilla" : {
60 "perl" : {
61 "version" : "5.018000"
62 },
5363 "plugins" : [
5464 {
5565 "class" : "Dist::Zilla::Plugin::Prereqs",
6070 }
6171 },
6272 "name" : "@Filter/TestMoreDoneTesting",
63 "version" : "4.300007"
73 "version" : "4.300034"
6474 },
6575 {
6676 "class" : "Dist::Zilla::Plugin::GatherDir",
6777 "name" : "@Filter/GatherDir",
68 "version" : "4.300007"
78 "version" : "4.300034"
6979 },
7080 {
7181 "class" : "Dist::Zilla::Plugin::PruneCruft",
7282 "name" : "@Filter/PruneCruft",
73 "version" : "4.300007"
83 "version" : "4.300034"
7484 },
7585 {
7686 "class" : "Dist::Zilla::Plugin::ManifestSkip",
7787 "name" : "@Filter/ManifestSkip",
78 "version" : "4.300007"
88 "version" : "4.300034"
7989 },
8090 {
8191 "class" : "Dist::Zilla::Plugin::MetaYAML",
8292 "name" : "@Filter/MetaYAML",
83 "version" : "4.300007"
93 "version" : "4.300034"
8494 },
8595 {
8696 "class" : "Dist::Zilla::Plugin::License",
8797 "name" : "@Filter/License",
88 "version" : "4.300007"
98 "version" : "4.300034"
8999 },
90100 {
91101 "class" : "Dist::Zilla::Plugin::Readme",
92102 "name" : "@Filter/Readme",
93 "version" : "4.300007"
94 },
95 {
96 "class" : "Dist::Zilla::Plugin::ExtraTests",
97 "name" : "@Filter/ExtraTests",
98 "version" : "4.300007"
103 "version" : "4.300034"
104 },
105 {
106 "class" : "Dist::Zilla::Plugin::RunExtraTests",
107 "name" : "@Filter/RunExtraTests",
108 "version" : "0.011"
99109 },
100110 {
101111 "class" : "Dist::Zilla::Plugin::ExecDir",
102112 "name" : "@Filter/ExecDir",
103 "version" : "4.300007"
113 "version" : "4.300034"
104114 },
105115 {
106116 "class" : "Dist::Zilla::Plugin::ShareDir",
107117 "name" : "@Filter/ShareDir",
108 "version" : "4.300007"
118 "version" : "4.300034"
109119 },
110120 {
111121 "class" : "Dist::Zilla::Plugin::MakeMaker",
112122 "name" : "@Filter/MakeMaker",
113 "version" : "4.300007"
123 "version" : "4.300034"
114124 },
115125 {
116126 "class" : "Dist::Zilla::Plugin::Manifest",
117127 "name" : "@Filter/Manifest",
118 "version" : "4.300007"
128 "version" : "4.300034"
119129 },
120130 {
121131 "class" : "Dist::Zilla::Plugin::TestRelease",
122132 "name" : "@Filter/TestRelease",
123 "version" : "4.300007"
133 "version" : "4.300034"
124134 },
125135 {
126136 "class" : "Dist::Zilla::Plugin::ConfirmRelease",
127137 "name" : "@Filter/ConfirmRelease",
128 "version" : "4.300007"
138 "version" : "4.300034"
129139 },
130140 {
131141 "class" : "Dist::Zilla::Plugin::MetaConfig",
132142 "name" : "@Filter/MetaConfig",
133 "version" : "4.300007"
143 "version" : "4.300034"
134144 },
135145 {
136146 "class" : "Dist::Zilla::Plugin::MetaJSON",
137147 "name" : "@Filter/MetaJSON",
138 "version" : "4.300007"
148 "version" : "4.300034"
139149 },
140150 {
141151 "class" : "Dist::Zilla::Plugin::NextRelease",
142152 "name" : "@Filter/NextRelease",
143 "version" : "4.300007"
153 "version" : "4.300034"
144154 },
145155 {
146156 "class" : "Dist::Zilla::Plugin::CheckChangesHasContent",
147157 "name" : "@Filter/CheckChangesHasContent",
148 "version" : "0.003"
158 "version" : "0.006"
149159 },
150160 {
151161 "class" : "Dist::Zilla::Plugin::PkgVersion",
152162 "name" : "@Filter/PkgVersion",
153 "version" : "4.300007"
163 "version" : "4.300034"
154164 },
155165 {
156166 "class" : "Dist::Zilla::Plugin::Authority",
160170 {
161171 "class" : "Dist::Zilla::Plugin::PodCoverageTests",
162172 "name" : "@Filter/PodCoverageTests",
163 "version" : "4.300007"
173 "version" : "4.300034"
164174 },
165175 {
166176 "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
167177 "name" : "@Filter/PodSyntaxTests",
168 "version" : "4.300007"
178 "version" : "4.300034"
169179 },
170180 {
171181 "class" : "Dist::Zilla::Plugin::EOLTests",
175185 {
176186 "class" : "Dist::Zilla::Plugin::Test::Compile",
177187 "name" : "@Filter/Test::Compile",
178 "version" : "1.112400"
188 "version" : "2.002"
179189 },
180190 {
181191 "class" : "Dist::Zilla::Plugin::Metadata",
185195 {
186196 "class" : "Dist::Zilla::Plugin::MetaResources",
187197 "name" : "@Filter/MetaResources",
188 "version" : "4.300007"
198 "version" : "4.300034"
189199 },
190200 {
191201 "class" : "Dist::Zilla::Plugin::Git::Check",
192202 "name" : "@Filter/Git::Check",
193 "version" : "1.112440"
203 "version" : "2.013"
194204 },
195205 {
196206 "class" : "Dist::Zilla::Plugin::Git::Commit",
197207 "name" : "@Filter/Git::Commit",
198 "version" : "1.112440"
208 "version" : "2.013"
199209 },
200210 {
201211 "class" : "Dist::Zilla::Plugin::Git::Tag",
202212 "name" : "@Filter/Git::Tag",
203 "version" : "1.112440"
213 "version" : "2.013"
204214 },
205215 {
206216 "class" : "Dist::Zilla::Plugin::Git::NextVersion",
207217 "name" : "@Filter/Git::NextVersion",
208 "version" : "1.112440"
218 "version" : "2.013"
209219 },
210220 {
211221 "class" : "Dist::Zilla::Plugin::PodWeaver",
215225 {
216226 "class" : "Dist::Zilla::Plugin::UploadToCPAN",
217227 "name" : "@Filter/UploadToCPAN",
218 "version" : "4.300007"
228 "version" : "4.300034"
219229 },
220230 {
221231 "class" : "Dist::Zilla::Plugin::Prereqs",
226236 }
227237 },
228238 "name" : "Prereqs",
229 "version" : "4.300007"
239 "version" : "4.300034"
230240 },
231241 {
232242 "class" : "Dist::Zilla::Plugin::Prereqs",
237247 }
238248 },
239249 "name" : "TestRequires",
240 "version" : "4.300007"
250 "version" : "4.300034"
241251 },
242252 {
243253 "class" : "Dist::Zilla::Plugin::FinderCode",
244254 "name" : ":InstallModules",
245 "version" : "4.300007"
255 "version" : "4.300034"
246256 },
247257 {
248258 "class" : "Dist::Zilla::Plugin::FinderCode",
249259 "name" : ":IncModules",
250 "version" : "4.300007"
260 "version" : "4.300034"
251261 },
252262 {
253263 "class" : "Dist::Zilla::Plugin::FinderCode",
254264 "name" : ":TestFiles",
255 "version" : "4.300007"
265 "version" : "4.300034"
256266 },
257267 {
258268 "class" : "Dist::Zilla::Plugin::FinderCode",
259269 "name" : ":ExecFiles",
260 "version" : "4.300007"
270 "version" : "4.300034"
261271 },
262272 {
263273 "class" : "Dist::Zilla::Plugin::FinderCode",
264274 "name" : ":ShareFiles",
265 "version" : "4.300007"
275 "version" : "4.300034"
266276 },
267277 {
268278 "class" : "Dist::Zilla::Plugin::FinderCode",
269279 "name" : ":MainModule",
270 "version" : "4.300007"
280 "version" : "4.300034"
271281 }
272282 ],
273283 "zilla" : {
275285 "config" : {
276286 "is_trial" : "0"
277287 },
278 "version" : "4.300007"
288 "version" : "4.300034"
279289 }
280290 },
281291 "x_authority" : "cpan:NUFFIN"
88 configure_requires:
99 ExtUtils::MakeMaker: 6.30
1010 dynamic_config: 0
11 generated_by: 'Dist::Zilla version 4.300007, CPAN::Meta::Converter version 2.113640'
11 generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.120921'
1212 license: perl
1313 meta-spec:
1414 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2323 resources:
2424 bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Visitor
2525 homepage: http://metacpan.org/release/Data-Visitor
26 repository: git://github.com/nothingmuch/data-visitor.git
27 version: 0.28
26 repository: git://github.com/doy/data-visitor.git
27 version: 0.30
2828 x_Dist_Zilla:
29 perl:
30 version: 5.018000
2931 plugins:
3032 -
3133 class: Dist::Zilla::Plugin::Prereqs
3436 phase: test
3537 type: requires
3638 name: '@Filter/TestMoreDoneTesting'
37 version: 4.300007
39 version: 4.300034
3840 -
3941 class: Dist::Zilla::Plugin::GatherDir
4042 name: '@Filter/GatherDir'
41 version: 4.300007
43 version: 4.300034
4244 -
4345 class: Dist::Zilla::Plugin::PruneCruft
4446 name: '@Filter/PruneCruft'
45 version: 4.300007
47 version: 4.300034
4648 -
4749 class: Dist::Zilla::Plugin::ManifestSkip
4850 name: '@Filter/ManifestSkip'
49 version: 4.300007
51 version: 4.300034
5052 -
5153 class: Dist::Zilla::Plugin::MetaYAML
5254 name: '@Filter/MetaYAML'
53 version: 4.300007
55 version: 4.300034
5456 -
5557 class: Dist::Zilla::Plugin::License
5658 name: '@Filter/License'
57 version: 4.300007
59 version: 4.300034
5860 -
5961 class: Dist::Zilla::Plugin::Readme
6062 name: '@Filter/Readme'
61 version: 4.300007
62 -
63 class: Dist::Zilla::Plugin::ExtraTests
64 name: '@Filter/ExtraTests'
65 version: 4.300007
63 version: 4.300034
64 -
65 class: Dist::Zilla::Plugin::RunExtraTests
66 name: '@Filter/RunExtraTests'
67 version: 0.011
6668 -
6769 class: Dist::Zilla::Plugin::ExecDir
6870 name: '@Filter/ExecDir'
69 version: 4.300007
71 version: 4.300034
7072 -
7173 class: Dist::Zilla::Plugin::ShareDir
7274 name: '@Filter/ShareDir'
73 version: 4.300007
75 version: 4.300034
7476 -
7577 class: Dist::Zilla::Plugin::MakeMaker
7678 name: '@Filter/MakeMaker'
77 version: 4.300007
79 version: 4.300034
7880 -
7981 class: Dist::Zilla::Plugin::Manifest
8082 name: '@Filter/Manifest'
81 version: 4.300007
83 version: 4.300034
8284 -
8385 class: Dist::Zilla::Plugin::TestRelease
8486 name: '@Filter/TestRelease'
85 version: 4.300007
87 version: 4.300034
8688 -
8789 class: Dist::Zilla::Plugin::ConfirmRelease
8890 name: '@Filter/ConfirmRelease'
89 version: 4.300007
91 version: 4.300034
9092 -
9193 class: Dist::Zilla::Plugin::MetaConfig
9294 name: '@Filter/MetaConfig'
93 version: 4.300007
95 version: 4.300034
9496 -
9597 class: Dist::Zilla::Plugin::MetaJSON
9698 name: '@Filter/MetaJSON'
97 version: 4.300007
99 version: 4.300034
98100 -
99101 class: Dist::Zilla::Plugin::NextRelease
100102 name: '@Filter/NextRelease'
101 version: 4.300007
103 version: 4.300034
102104 -
103105 class: Dist::Zilla::Plugin::CheckChangesHasContent
104106 name: '@Filter/CheckChangesHasContent'
105 version: 0.003
107 version: 0.006
106108 -
107109 class: Dist::Zilla::Plugin::PkgVersion
108110 name: '@Filter/PkgVersion'
109 version: 4.300007
111 version: 4.300034
110112 -
111113 class: Dist::Zilla::Plugin::Authority
112114 name: '@Filter/Authority'
114116 -
115117 class: Dist::Zilla::Plugin::PodCoverageTests
116118 name: '@Filter/PodCoverageTests'
117 version: 4.300007
119 version: 4.300034
118120 -
119121 class: Dist::Zilla::Plugin::PodSyntaxTests
120122 name: '@Filter/PodSyntaxTests'
121 version: 4.300007
123 version: 4.300034
122124 -
123125 class: Dist::Zilla::Plugin::EOLTests
124126 name: '@Filter/EOLTests'
126128 -
127129 class: Dist::Zilla::Plugin::Test::Compile
128130 name: '@Filter/Test::Compile'
129 version: 1.112400
131 version: 2.002
130132 -
131133 class: Dist::Zilla::Plugin::Metadata
132134 name: '@Filter/Metadata'
134136 -
135137 class: Dist::Zilla::Plugin::MetaResources
136138 name: '@Filter/MetaResources'
137 version: 4.300007
139 version: 4.300034
138140 -
139141 class: Dist::Zilla::Plugin::Git::Check
140142 name: '@Filter/Git::Check'
141 version: 1.112440
143 version: 2.013
142144 -
143145 class: Dist::Zilla::Plugin::Git::Commit
144146 name: '@Filter/Git::Commit'
145 version: 1.112440
147 version: 2.013
146148 -
147149 class: Dist::Zilla::Plugin::Git::Tag
148150 name: '@Filter/Git::Tag'
149 version: 1.112440
151 version: 2.013
150152 -
151153 class: Dist::Zilla::Plugin::Git::NextVersion
152154 name: '@Filter/Git::NextVersion'
153 version: 1.112440
155 version: 2.013
154156 -
155157 class: Dist::Zilla::Plugin::PodWeaver
156158 name: '@Filter/PodWeaver'
158160 -
159161 class: Dist::Zilla::Plugin::UploadToCPAN
160162 name: '@Filter/UploadToCPAN'
161 version: 4.300007
163 version: 4.300034
162164 -
163165 class: Dist::Zilla::Plugin::Prereqs
164166 config:
166168 phase: runtime
167169 type: requires
168170 name: Prereqs
169 version: 4.300007
171 version: 4.300034
170172 -
171173 class: Dist::Zilla::Plugin::Prereqs
172174 config:
174176 phase: test
175177 type: requires
176178 name: TestRequires
177 version: 4.300007
179 version: 4.300034
178180 -
179181 class: Dist::Zilla::Plugin::FinderCode
180182 name: ':InstallModules'
181 version: 4.300007
183 version: 4.300034
182184 -
183185 class: Dist::Zilla::Plugin::FinderCode
184186 name: ':IncModules'
185 version: 4.300007
187 version: 4.300034
186188 -
187189 class: Dist::Zilla::Plugin::FinderCode
188190 name: ':TestFiles'
189 version: 4.300007
191 version: 4.300034
190192 -
191193 class: Dist::Zilla::Plugin::FinderCode
192194 name: ':ExecFiles'
193 version: 4.300007
195 version: 4.300034
194196 -
195197 class: Dist::Zilla::Plugin::FinderCode
196198 name: ':ShareFiles'
197 version: 4.300007
199 version: 4.300034
198200 -
199201 class: Dist::Zilla::Plugin::FinderCode
200202 name: ':MainModule'
201 version: 4.300007
203 version: 4.300034
202204 zilla:
203205 class: Dist::Zilla::Dist::Builder
204206 config:
205207 is_trial: 0
206 version: 4.300007
208 version: 4.300034
207209 x_authority: cpan:NUFFIN
1010 my %WriteMakefileArgs = (
1111 "ABSTRACT" => "Visitor style traversal of Perl data structures",
1212 "AUTHOR" => "Yuval Kogman <nothingmuch\@woobling.org>, Marcel Gr\303\274nauer <marcel\@cpan.org>",
13 "BUILD_REQUIRES" => {
14 "Test::More" => "0.88",
15 "Test::Requires" => 0
16 },
13 "BUILD_REQUIRES" => {},
1714 "CONFIGURE_REQUIRES" => {
1815 "ExtUtils::MakeMaker" => "6.30"
1916 },
2825 "Tie::ToObject" => "0.01",
2926 "namespace::clean" => "0.19"
3027 },
31 "VERSION" => "0.28",
28 "TEST_REQUIRES" => {
29 "Test::More" => "0.88",
30 "Test::Requires" => 0
31 },
32 "VERSION" => "0.30",
3233 "test" => {
3334 "TESTS" => "t/*.t"
3435 }
3536 );
3637
38
39 unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
40 my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
41 my $br = $WriteMakefileArgs{BUILD_REQUIRES};
42 for my $mod ( keys %$tr ) {
43 if ( exists $br->{$mod} ) {
44 $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
45 }
46 else {
47 $br->{$mod} = $tr->{$mod};
48 }
49 }
50 }
3751
3852 unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
3953 my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
00
11
22 This archive contains the distribution Data-Visitor,
3 version 0.28:
3 version 0.30:
44
55 Visitor style traversal of Perl data structures
66
7 This software is copyright (c) 2012 by Yuval Kogman.
7 This software is copyright (c) 2013 by Yuval Kogman.
88
99 This is free software; you can redistribute it and/or modify it under
1010 the same terms as the Perl 5 programming language system itself.
88 -remove = NoTabsTests
99 dist = Data-Visitor
1010 repository = github
11 github_user = nothingmuch
1211 authority = cpan:NUFFIN
1312 Git::Tag_tag_format = %N-%v
1413 Git::NextVersion_version_regexp = ^Data-Visitor-(.+)$
22 $Data::Visitor::Callback::AUTHORITY = 'cpan:NUFFIN';
33 }
44 {
5 $Data::Visitor::Callback::VERSION = '0.28';
5 $Data::Visitor::Callback::VERSION = '0.30';
66 }
77 use Moose;
88 # ABSTRACT: A Data::Visitor with callbacks.
150150
151151 my $class_cb = 0;
152152
153 foreach my $class ( @{ $self->class_callbacks } ) {
153 foreach my $class ( grep { $data->isa($_) } @{ $self->class_callbacks } ) {
154154 last unless blessed($data);
155 next unless $data->isa($class);
155 die "Unexpected object $data found"
156 unless $data->isa($class);
156157 $self->trace( flow => class_callback => $class, on => $data ) if DEBUG;
157158
158159 $class_cb++;
288289
289290 __PACKAGE__;
290291
291
292 __END__
292293
293294 =pod
294295
298299
299300 =head1 VERSION
300301
301 version 0.28
302 version 0.30
302303
303304 =head1 SYNOPSIS
304305
489490
490491 =head1 COPYRIGHT AND LICENSE
491492
492 This software is copyright (c) 2012 by Yuval Kogman.
493 This software is copyright (c) 2013 by Yuval Kogman.
493494
494495 This is free software; you can redistribute it and/or modify it under
495496 the same terms as the Perl 5 programming language system itself.
496497
497498 =cut
498
499
500 __END__
501
22 $Data::Visitor::AUTHORITY = 'cpan:NUFFIN';
33 }
44 {
5 $Data::Visitor::VERSION = '0.28';
5 $Data::Visitor::VERSION = '0.30';
66 }
77 use Moose;
88 # ABSTRACT: Visitor style traversal of Perl data structures
452452
453453 __PACKAGE__;
454454
455
455 __END__
456456
457457 =pod
458458
462462
463463 =head1 VERSION
464464
465 version 0.28
465 version 0.30
466466
467467 =head1 SYNOPSIS
468468
693693
694694 =head1 COPYRIGHT AND LICENSE
695695
696 This software is copyright (c) 2012 by Yuval Kogman.
696 This software is copyright (c) 2013 by Yuval Kogman.
697697
698698 This is free software; you can redistribute it and/or modify it under
699699 the same terms as the Perl 5 programming language system itself.
700700
701701 =cut
702
703
704 __END__
705
706
707
2323 'lib',
2424 );
2525
26 my @scripts;
27 if ( -d 'bin' ) {
26 sub _find_scripts {
27 my $dir = shift @_;
28
29 my @found_scripts = ();
2830 find(
2931 sub {
3032 return unless -f;
3638 };
3739 my $shebang = <$FH>;
3840 return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
39 push @scripts, $found;
41 push @found_scripts, $found;
4042 },
41 'bin',
43 $dir,
4244 );
45
46 return @found_scripts;
4347 }
48
49 my @scripts;
50 do { push @scripts, _find_scripts($_) if -d $_ }
51 for qw{ bin script scripts };
4452
4553 my $plan = scalar(@modules) + scalar(@scripts);
4654 $plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
6169 script_compiles( $file, "$script script compiles" );
6270 }
6371 }
72
6473 }
0 #!perl
1
2 # Bug report that initiated this debugging:
3 # https://rt.cpan.org/Ticket/Display.html?id=81519
4
5 use strict;
6 use warnings;
7
8 use Test::More tests => 1;
9
10 use Data::Visitor::Callback;
11
12 BEGIN {
13 package W3C::XHTML::Image;
14 use Moose;
15
16 package W3C::XHTML::Body;
17 use Moose;
18 has 'images' => (
19 is => 'ro',
20 isa => 'ArrayRef[W3C::XHTML::Image]',
21 );
22 }
23
24 my $body = W3C::XHTML::Body->new( images => [ W3C::XHTML::Image->new ] );
25 my $tc = $body->meta->get_attribute('images')->type_constraint;
26
27 note "TC contains only one instance of W3C::XHTML::Image - $tc";
28
29 # Figure out classes mentioned in type constraint (isa)
30 my @classes;
31 Data::Visitor::Callback->new({
32 object => 'visit_ref',
33 'Moose::Meta::TypeConstraint::Union' => sub { return $_[1]->type_constraints; },
34 'Moose::Meta::TypeConstraint::Class' => sub { push @classes, $_[1]->class; return $_[1]; },
35 'Moose::Meta::TypeConstraint::Parameterized' => sub { return $_[1]->type_parameter; },
36 })->visit($tc);
37
38 note "Classes found: " . join(", ", @classes);
39
40 # On 5.16.2 it gives me only one item if mentioned once in TC,
41 # but on 5.17.6 it occasionally gives two items in @classes
42 is( scalar @classes, 1, "Only one case of W3C::XHTML::Image should be present");
+0
-16
t/release-eol.t less more
0
1 BEGIN {
2 unless ($ENV{RELEASE_TESTING}) {
3 require Test::More;
4 Test::More::plan(skip_all => 'these tests are for release candidate testing');
5 }
6 }
7
8 use strict;
9 use warnings;
10 use Test::More;
11
12 eval 'use Test::EOL';
13 plan skip_all => 'Test::EOL required' if $@;
14
15 all_perl_files_ok({ trailing_whitespace => 1 });
+0
-21
t/release-pod-coverage.t less more
0 #!perl
1
2 BEGIN {
3 unless ($ENV{RELEASE_TESTING}) {
4 require Test::More;
5 Test::More::plan(skip_all => 'these tests are for release candidate testing');
6 }
7 }
8
9
10 use Test::More;
11
12 eval "use Test::Pod::Coverage 1.08";
13 plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
14 if $@;
15
16 eval "use Pod::Coverage::TrustPod";
17 plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
18 if $@;
19
20 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
+0
-15
t/release-pod-syntax.t less more
0 #!perl
1
2 BEGIN {
3 unless ($ENV{RELEASE_TESTING}) {
4 require Test::More;
5 Test::More::plan(skip_all => 'these tests are for release candidate testing');
6 }
7 }
8
9 use Test::More;
10
11 eval "use Test::Pod 1.41";
12 plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
13
14 all_pod_files_ok();
0 use strict;
1 use warnings;
2 use Test::More;
3
4 eval 'use Test::EOL';
5 plan skip_all => 'Test::EOL required' if $@;
6
7 all_perl_files_ok({ trailing_whitespace => 1 });
0 #!perl
1
2 use Test::More;
3
4 eval "use Test::Pod::Coverage 1.08";
5 plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
6 if $@;
7
8 eval "use Pod::Coverage::TrustPod";
9 plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
10 if $@;
11
12 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
0 #!perl
1 use Test::More;
2
3 eval "use Test::Pod 1.41";
4 plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
5
6 all_pod_files_ok();