Codebase list libcpan-uploader-perl / 2cc6824
Update upstream source from tag 'upstream/0.103018' Update to upstream version '0.103018' with Debian dir c97afb0fdb2bc2325941c0fc73019cb293bb9132 gregor herrmann 1 year, 3 months ago
13 changed file(s) with 216 addition(s) and 128 deletion(s). Raw diff Collapse all Expand all
00 Revision history for CPAN-Uploader
1
2 0.103018 2023-01-13 21:11:24-05:00 America/New_York
3 - a bit of refactoring and testing of .pause parser (thanks, Shlomi
4 Fish)
15
26 0.103017 2022-12-31 21:14:55-05:00 America/New_York
37 - update author contact info
0 This software is copyright (c) 2022 by Ricardo SIGNES.
0 This software is copyright (c) 2023 by Ricardo SIGNES.
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) 2022 by Ricardo SIGNES.
14 This software is Copyright (c) 2023 by Ricardo SIGNES.
1515
1616 This is free software, licensed under:
1717
271271
272272 --- The Artistic License 1.0 ---
273273
274 This software is Copyright (c) 2022 by Ricardo SIGNES.
274 This software is Copyright (c) 2023 by Ricardo SIGNES.
275275
276276 This is free software, licensed under:
277277
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.029.
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030.
11 Changes
22 LICENSE
33 MANIFEST
1111 t/00-load.t
1212 t/00-report-prereqs.dd
1313 t/00-report-prereqs.t
14 t/01-parse-dot-pause-errors.t
1415 xt/author/pod-syntax.t
1516 xt/release/changes_has_content.t
33 "Ricardo SIGNES <cpan@semiotic.systems>"
44 ],
55 "dynamic_config" : 0,
6 "generated_by" : "Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010",
6 "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "perl_5"
99 ],
3838 "LWP::Protocol::https" : "1",
3939 "LWP::UserAgent" : "0",
4040 "Term::ReadKey" : "0",
41 "perl" : "5.012",
41 "perl" : "v5.12.0",
4242 "strict" : "0",
4343 "warnings" : "0"
4444 }
5050 "requires" : {
5151 "ExtUtils::MakeMaker" : "0",
5252 "File::Spec" : "0",
53 "Test::More" : "0.96"
53 "File::Temp" : "0",
54 "Test::More" : "0.96",
55 "perl" : "v5.12.0"
5456 }
5557 }
5658 },
6668 "web" : "https://github.com/rjbs/CPAN-Uploader"
6769 }
6870 },
69 "version" : "0.103017",
71 "version" : "0.103018",
7072 "x_Dist_Zilla" : {
7173 "perl" : {
7274 "version" : "5.037002"
9496 {
9597 "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
9698 "name" : "@RJBS/CheckPrereqsIndexed",
97 "version" : "0.021"
99 "version" : "0.022"
98100 },
99101 {
100102 "class" : "Dist::Zilla::Plugin::CheckExtraTests",
138140 {
139141 "class" : "Dist::Zilla::Plugin::PruneCruft",
140142 "name" : "@RJBS/@Filter/PruneCruft",
141 "version" : "6.029"
143 "version" : "6.030"
142144 },
143145 {
144146 "class" : "Dist::Zilla::Plugin::ManifestSkip",
145147 "name" : "@RJBS/@Filter/ManifestSkip",
146 "version" : "6.029"
148 "version" : "6.030"
147149 },
148150 {
149151 "class" : "Dist::Zilla::Plugin::MetaYAML",
150152 "name" : "@RJBS/@Filter/MetaYAML",
151 "version" : "6.029"
153 "version" : "6.030"
152154 },
153155 {
154156 "class" : "Dist::Zilla::Plugin::License",
155157 "name" : "@RJBS/@Filter/License",
156 "version" : "6.029"
158 "version" : "6.030"
157159 },
158160 {
159161 "class" : "Dist::Zilla::Plugin::Readme",
160162 "name" : "@RJBS/@Filter/Readme",
161 "version" : "6.029"
163 "version" : "6.030"
162164 },
163165 {
164166 "class" : "Dist::Zilla::Plugin::ExecDir",
165167 "name" : "@RJBS/@Filter/ExecDir",
166 "version" : "6.029"
168 "version" : "6.030"
167169 },
168170 {
169171 "class" : "Dist::Zilla::Plugin::ShareDir",
170172 "name" : "@RJBS/@Filter/ShareDir",
171 "version" : "6.029"
173 "version" : "6.030"
172174 },
173175 {
174176 "class" : "Dist::Zilla::Plugin::Manifest",
175177 "name" : "@RJBS/@Filter/Manifest",
176 "version" : "6.029"
178 "version" : "6.030"
177179 },
178180 {
179181 "class" : "Dist::Zilla::Plugin::TestRelease",
180182 "name" : "@RJBS/@Filter/TestRelease",
181 "version" : "6.029"
183 "version" : "6.030"
182184 },
183185 {
184186 "class" : "Dist::Zilla::Plugin::ConfirmRelease",
185187 "name" : "@RJBS/@Filter/ConfirmRelease",
186 "version" : "6.029"
188 "version" : "6.030"
187189 },
188190 {
189191 "class" : "Dist::Zilla::Plugin::UploadToCPAN",
190192 "name" : "@RJBS/@Filter/UploadToCPAN",
191 "version" : "6.029"
193 "version" : "6.030"
192194 },
193195 {
194196 "class" : "Dist::Zilla::Plugin::MakeMaker",
198200 }
199201 },
200202 "name" : "@RJBS/MakeMaker",
201 "version" : "6.029"
203 "version" : "6.030"
202204 },
203205 {
204206 "class" : "Dist::Zilla::Plugin::AutoPrereqs",
205207 "name" : "@RJBS/AutoPrereqs",
206 "version" : "6.029"
208 "version" : "6.030"
207209 },
208210 {
209211 "class" : "Dist::Zilla::Plugin::Git::NextVersion",
224226 {
225227 "class" : "Dist::Zilla::Plugin::PkgVersion",
226228 "name" : "@RJBS/PkgVersion",
227 "version" : "6.029"
229 "version" : "6.030"
228230 },
229231 {
230232 "class" : "Dist::Zilla::Plugin::MetaConfig",
231233 "name" : "@RJBS/MetaConfig",
232 "version" : "6.029"
234 "version" : "6.030"
233235 },
234236 {
235237 "class" : "Dist::Zilla::Plugin::MetaJSON",
236238 "name" : "@RJBS/MetaJSON",
237 "version" : "6.029"
239 "version" : "6.030"
238240 },
239241 {
240242 "class" : "Dist::Zilla::Plugin::NextRelease",
241243 "name" : "@RJBS/NextRelease",
242 "version" : "6.029"
244 "version" : "6.030"
243245 },
244246 {
245247 "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
249251 {
250252 "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
251253 "name" : "@RJBS/PodSyntaxTests",
252 "version" : "6.029"
254 "version" : "6.030"
253255 },
254256 {
255257 "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
256258 "name" : "@RJBS/Test::ReportPrereqs",
257 "version" : "0.028"
259 "version" : "0.029"
258260 },
259261 {
260262 "class" : "Dist::Zilla::Plugin::Git::Remote::Check",
270272 }
271273 },
272274 "name" : "@RJBS/TestMoreWithSubtests",
273 "version" : "6.029"
275 "version" : "6.030"
274276 },
275277 {
276278 "class" : "Dist::Zilla::Plugin::PodWeaver",
281283 ],
282284 "finder" : [
283285 ":InstallModules",
284 ":ExecFiles"
286 ":PerlExecFiles"
285287 ],
286288 "plugins" : [
287289 {
388390 }
389391 },
390392 "name" : "@RJBS/PodWeaver",
391 "version" : "4.009"
393 "version" : "4.010"
392394 },
393395 {
394396 "class" : "Dist::Zilla::Plugin::RJBSMisc",
395397 "name" : "@RJBS/RJBSMisc",
396 "version" : "5.021"
398 "version" : "5.023"
397399 },
398400 {
399401 "class" : "Dist::Zilla::Plugin::GithubMeta",
456458 "branch" : null,
457459 "changelog" : "Changes",
458460 "signed" : 0,
459 "tag" : "0.103017",
461 "tag" : "0.103018",
460462 "tag_format" : "%v",
461463 "tag_message" : "v%V"
462464 },
511513 }
512514 },
513515 "name" : "Prereqs",
514 "version" : "6.029"
516 "version" : "6.030"
515517 },
516518 {
517519 "class" : "Dist::Zilla::Plugin::RemovePrereqs",
523525 }
524526 },
525527 "name" : "RemovePrereqs",
526 "version" : "6.029"
528 "version" : "6.030"
527529 },
528530 {
529531 "class" : "Dist::Zilla::Plugin::FinderCode",
530532 "name" : ":InstallModules",
531 "version" : "6.029"
533 "version" : "6.030"
532534 },
533535 {
534536 "class" : "Dist::Zilla::Plugin::FinderCode",
535537 "name" : ":IncModules",
536 "version" : "6.029"
538 "version" : "6.030"
537539 },
538540 {
539541 "class" : "Dist::Zilla::Plugin::FinderCode",
540542 "name" : ":TestFiles",
541 "version" : "6.029"
543 "version" : "6.030"
542544 },
543545 {
544546 "class" : "Dist::Zilla::Plugin::FinderCode",
545547 "name" : ":ExtraTestFiles",
546 "version" : "6.029"
548 "version" : "6.030"
547549 },
548550 {
549551 "class" : "Dist::Zilla::Plugin::FinderCode",
550552 "name" : ":ExecFiles",
551 "version" : "6.029"
553 "version" : "6.030"
552554 },
553555 {
554556 "class" : "Dist::Zilla::Plugin::FinderCode",
555557 "name" : ":PerlExecFiles",
556 "version" : "6.029"
558 "version" : "6.030"
557559 },
558560 {
559561 "class" : "Dist::Zilla::Plugin::FinderCode",
560562 "name" : ":ShareFiles",
561 "version" : "6.029"
563 "version" : "6.030"
562564 },
563565 {
564566 "class" : "Dist::Zilla::Plugin::FinderCode",
565567 "name" : ":MainModule",
566 "version" : "6.029"
568 "version" : "6.030"
567569 },
568570 {
569571 "class" : "Dist::Zilla::Plugin::FinderCode",
570572 "name" : ":AllFiles",
571 "version" : "6.029"
573 "version" : "6.030"
572574 },
573575 {
574576 "class" : "Dist::Zilla::Plugin::FinderCode",
575577 "name" : ":NoFiles",
576 "version" : "6.029"
578 "version" : "6.030"
577579 }
578580 ],
579581 "zilla" : {
581583 "config" : {
582584 "is_trial" : 0
583585 },
584 "version" : "6.029"
586 "version" : "6.030"
585587 }
586588 },
587589 "x_contributors" : [
599601 "Mike Doherty <doherty@cs.dal.ca>",
600602 "perlancar <perlancar@gmail.com>",
601603 "Ricardo Signes <rjbs@semiotic.systems>",
604 "Shlomi Fish <shlomif@shlomifish.org>",
602605 "Steven Haryanto (on Asus Zenbook) <stevenharyanto@gmail.com>",
603606 "sungo <sungo@sungo.us>",
604607 "Thibault DUPONCHELLE <thibault.duponchelle@amadeus.com>",
44 build_requires:
55 ExtUtils::MakeMaker: '0'
66 File::Spec: '0'
7 File::Temp: '0'
78 Test::More: '0.96'
9 perl: v5.12.0
810 configure_requires:
911 ExtUtils::MakeMaker: '6.78'
1012 dynamic_config: 0
11 generated_by: 'Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010'
13 generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010'
1214 license: perl
1315 meta-spec:
1416 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2628 LWP::Protocol::https: '1'
2729 LWP::UserAgent: '0'
2830 Term::ReadKey: '0'
29 perl: '5.012'
31 perl: v5.12.0
3032 strict: '0'
3133 warnings: '0'
3234 resources:
3335 bugtracker: https://github.com/rjbs/CPAN-Uploader/issues
3436 homepage: https://github.com/rjbs/CPAN-Uploader
3537 repository: https://github.com/rjbs/CPAN-Uploader.git
36 version: '0.103017'
38 version: '0.103018'
3739 x_Dist_Zilla:
3840 perl:
3941 version: '5.037002'
5658 -
5759 class: Dist::Zilla::Plugin::CheckPrereqsIndexed
5860 name: '@RJBS/CheckPrereqsIndexed'
59 version: '0.021'
61 version: '0.022'
6062 -
6163 class: Dist::Zilla::Plugin::CheckExtraTests
6264 name: '@RJBS/CheckExtraTests'
9092 -
9193 class: Dist::Zilla::Plugin::PruneCruft
9294 name: '@RJBS/@Filter/PruneCruft'
93 version: '6.029'
95 version: '6.030'
9496 -
9597 class: Dist::Zilla::Plugin::ManifestSkip
9698 name: '@RJBS/@Filter/ManifestSkip'
97 version: '6.029'
99 version: '6.030'
98100 -
99101 class: Dist::Zilla::Plugin::MetaYAML
100102 name: '@RJBS/@Filter/MetaYAML'
101 version: '6.029'
103 version: '6.030'
102104 -
103105 class: Dist::Zilla::Plugin::License
104106 name: '@RJBS/@Filter/License'
105 version: '6.029'
107 version: '6.030'
106108 -
107109 class: Dist::Zilla::Plugin::Readme
108110 name: '@RJBS/@Filter/Readme'
109 version: '6.029'
111 version: '6.030'
110112 -
111113 class: Dist::Zilla::Plugin::ExecDir
112114 name: '@RJBS/@Filter/ExecDir'
113 version: '6.029'
115 version: '6.030'
114116 -
115117 class: Dist::Zilla::Plugin::ShareDir
116118 name: '@RJBS/@Filter/ShareDir'
117 version: '6.029'
119 version: '6.030'
118120 -
119121 class: Dist::Zilla::Plugin::Manifest
120122 name: '@RJBS/@Filter/Manifest'
121 version: '6.029'
123 version: '6.030'
122124 -
123125 class: Dist::Zilla::Plugin::TestRelease
124126 name: '@RJBS/@Filter/TestRelease'
125 version: '6.029'
127 version: '6.030'
126128 -
127129 class: Dist::Zilla::Plugin::ConfirmRelease
128130 name: '@RJBS/@Filter/ConfirmRelease'
129 version: '6.029'
131 version: '6.030'
130132 -
131133 class: Dist::Zilla::Plugin::UploadToCPAN
132134 name: '@RJBS/@Filter/UploadToCPAN'
133 version: '6.029'
135 version: '6.030'
134136 -
135137 class: Dist::Zilla::Plugin::MakeMaker
136138 config:
137139 Dist::Zilla::Role::TestRunner:
138140 default_jobs: 9
139141 name: '@RJBS/MakeMaker'
140 version: '6.029'
142 version: '6.030'
141143 -
142144 class: Dist::Zilla::Plugin::AutoPrereqs
143145 name: '@RJBS/AutoPrereqs'
144 version: '6.029'
146 version: '6.030'
145147 -
146148 class: Dist::Zilla::Plugin::Git::NextVersion
147149 config:
157159 -
158160 class: Dist::Zilla::Plugin::PkgVersion
159161 name: '@RJBS/PkgVersion'
160 version: '6.029'
162 version: '6.030'
161163 -
162164 class: Dist::Zilla::Plugin::MetaConfig
163165 name: '@RJBS/MetaConfig'
164 version: '6.029'
166 version: '6.030'
165167 -
166168 class: Dist::Zilla::Plugin::MetaJSON
167169 name: '@RJBS/MetaJSON'
168 version: '6.029'
170 version: '6.030'
169171 -
170172 class: Dist::Zilla::Plugin::NextRelease
171173 name: '@RJBS/NextRelease'
172 version: '6.029'
174 version: '6.030'
173175 -
174176 class: Dist::Zilla::Plugin::Test::ChangesHasContent
175177 name: '@RJBS/Test::ChangesHasContent'
177179 -
178180 class: Dist::Zilla::Plugin::PodSyntaxTests
179181 name: '@RJBS/PodSyntaxTests'
180 version: '6.029'
182 version: '6.030'
181183 -
182184 class: Dist::Zilla::Plugin::Test::ReportPrereqs
183185 name: '@RJBS/Test::ReportPrereqs'
184 version: '0.028'
186 version: '0.029'
185187 -
186188 class: Dist::Zilla::Plugin::Git::Remote::Check
187189 name: '@RJBS/Git::Remote::Check'
193195 phase: test
194196 type: requires
195197 name: '@RJBS/TestMoreWithSubtests'
196 version: '6.029'
198 version: '6.030'
197199 -
198200 class: Dist::Zilla::Plugin::PodWeaver
199201 config:
202204 - '@RJBS'
203205 finder:
204206 - ':InstallModules'
205 - ':ExecFiles'
207 - ':PerlExecFiles'
206208 plugins:
207209 -
208210 class: Pod::Weaver::Plugin::EnsurePod5
285287 name: '@RJBS/List'
286288 version: '4.018'
287289 name: '@RJBS/PodWeaver'
288 version: '4.009'
290 version: '4.010'
289291 -
290292 class: Dist::Zilla::Plugin::RJBSMisc
291293 name: '@RJBS/RJBSMisc'
292 version: '5.021'
294 version: '5.023'
293295 -
294296 class: Dist::Zilla::Plugin::GithubMeta
295297 name: '@RJBS/GithubMeta'
337339 branch: ~
338340 changelog: Changes
339341 signed: 0
340 tag: '0.103017'
342 tag: '0.103018'
341343 tag_format: '%v'
342344 tag_message: v%V
343345 Dist::Zilla::Role::Git::Repo:
377379 phase: runtime
378380 type: requires
379381 name: Prereqs
380 version: '6.029'
382 version: '6.030'
381383 -
382384 class: Dist::Zilla::Plugin::RemovePrereqs
383385 config:
385387 modules_to_remove:
386388 - Config::Identity
387389 name: RemovePrereqs
388 version: '6.029'
390 version: '6.030'
389391 -
390392 class: Dist::Zilla::Plugin::FinderCode
391393 name: ':InstallModules'
392 version: '6.029'
394 version: '6.030'
393395 -
394396 class: Dist::Zilla::Plugin::FinderCode
395397 name: ':IncModules'
396 version: '6.029'
398 version: '6.030'
397399 -
398400 class: Dist::Zilla::Plugin::FinderCode
399401 name: ':TestFiles'
400 version: '6.029'
402 version: '6.030'
401403 -
402404 class: Dist::Zilla::Plugin::FinderCode
403405 name: ':ExtraTestFiles'
404 version: '6.029'
406 version: '6.030'
405407 -
406408 class: Dist::Zilla::Plugin::FinderCode
407409 name: ':ExecFiles'
408 version: '6.029'
410 version: '6.030'
409411 -
410412 class: Dist::Zilla::Plugin::FinderCode
411413 name: ':PerlExecFiles'
412 version: '6.029'
414 version: '6.030'
413415 -
414416 class: Dist::Zilla::Plugin::FinderCode
415417 name: ':ShareFiles'
416 version: '6.029'
418 version: '6.030'
417419 -
418420 class: Dist::Zilla::Plugin::FinderCode
419421 name: ':MainModule'
420 version: '6.029'
422 version: '6.030'
421423 -
422424 class: Dist::Zilla::Plugin::FinderCode
423425 name: ':AllFiles'
424 version: '6.029'
426 version: '6.030'
425427 -
426428 class: Dist::Zilla::Plugin::FinderCode
427429 name: ':NoFiles'
428 version: '6.029'
430 version: '6.030'
429431 zilla:
430432 class: Dist::Zilla::Dist::Builder
431433 config:
432434 is_trial: 0
433 version: '6.029'
435 version: '6.030'
434436 x_contributors:
435437 - 'Barbie <barbie@missbarbell.co.uk>'
436438 - 'Christian Walde <walde.christian@googlemail.com>'
446448 - 'Mike Doherty <doherty@cs.dal.ca>'
447449 - 'perlancar <perlancar@gmail.com>'
448450 - 'Ricardo Signes <rjbs@semiotic.systems>'
451 - 'Shlomi Fish <shlomif@shlomifish.org>'
449452 - 'Steven Haryanto (on Asus Zenbook) <stevenharyanto@gmail.com>'
450453 - 'sungo <sungo@sungo.us>'
451454 - 'Thibault DUPONCHELLE <thibault.duponchelle@amadeus.com>'
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.029.
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030.
11 use strict;
22 use warnings;
33
4 use 5.012;
4 use 5.012000;
55
66 use ExtUtils::MakeMaker 6.78;
77
1616 "bin/cpan-upload"
1717 ],
1818 "LICENSE" => "perl",
19 "MIN_PERL_VERSION" => "5.012",
19 "MIN_PERL_VERSION" => "5.012000",
2020 "NAME" => "CPAN::Uploader",
2121 "PREREQ_PM" => {
2222 "Carp" => 0,
3636 "TEST_REQUIRES" => {
3737 "ExtUtils::MakeMaker" => 0,
3838 "File::Spec" => 0,
39 "File::Temp" => 0,
3940 "Test::More" => "0.96"
4041 },
41 "VERSION" => "0.103017",
42 "VERSION" => "0.103018",
4243 "test" => {
4344 "TESTS" => "t/*.t"
4445 }
5253 "ExtUtils::MakeMaker" => 0,
5354 "File::Basename" => 0,
5455 "File::Spec" => 0,
56 "File::Temp" => 0,
5557 "Getopt::Long::Descriptive" => "0.084",
5658 "HTTP::Request::Common" => 0,
5759 "HTTP::Status" => 0,
00 This archive contains the distribution CPAN-Uploader,
1 version 0.103017:
1 version 0.103018:
22
33 upload things to the CPAN
44
5 This software is copyright (c) 2022 by Ricardo SIGNES.
5 This software is copyright (c) 2023 by Ricardo SIGNES.
66
77 This is free software; you can redistribute it and/or modify it under
88 the same terms as the Perl 5 programming language system itself.
99
1010
11 This README file was generated by Dist::Zilla::Plugin::Readme v6.029.
11 This README file was generated by Dist::Zilla::Plugin::Readme v6.030.
175175
176176 =head1 VERSION
177177
178 version 0.103017
178 version 0.103018
179179
180180 =head1 PERL VERSION
181181
238238
239239 =head1 COPYRIGHT AND LICENSE
240240
241 This software is copyright (c) 2022 by Ricardo SIGNES.
241 This software is copyright (c) 2023 by Ricardo SIGNES.
242242
243243 This is free software; you can redistribute it and/or modify it under
244244 the same terms as the Perl 5 programming language system itself.
00 use strict;
11 use warnings;
2 package CPAN::Uploader 0.103017;
2 package CPAN::Uploader 0.103018;
33 # ABSTRACT: upload things to the CPAN
44
55 #pod =head1 ORIGIN
9292 sub _ua_string {
9393 my ($self) = @_;
9494 my $class = ref $self || $self;
95 my $version = defined $class->VERSION ? $class->VERSION : 'dev';
95 my $version = $class->VERSION // 'dev';
9696
9797 return "$class/$version";
9898 }
221221 #pod
222222 #pod =cut
223223
224 sub _parse_dot_pause {
225 my ($class, $filename) = @_;
226 my %conf;
227 open my $pauserc, '<', $filename
228 or die "can't open $filename for reading: $!";
229
230 while (<$pauserc>) {
231 chomp;
232 if (/BEGIN PGP MESSAGE/ ) {
233 Carp::croak "$filename seems to be encrypted. "
234 . "Maybe you need to install Config::Identity?"
235 }
236
237 next unless $_ and $_ !~ /^\s*#/;
238
239 if (my ($k, $v) = /^\s*(\w+)\s+(.+)$/) {
240 Carp::croak "multiple entries for $k" if $conf{$k};
241 $conf{$k} = $v;
242 }
243 else {
244 Carp::croak qq#Line $. ($_) does not match the "key value" format.#;
245 }
246 }
247 return %conf;
248 }
249
224250 sub read_config_file {
225251 my ($class, $filename) = @_;
226252
239265 $conf{user} = delete $conf{username} unless $conf{user};
240266 }
241267 else { # Process .pause manually
242 open my $pauserc, '<', $filename
243 or die "can't open $filename for reading: $!";
244
245 while (<$pauserc>) {
246 chomp;
247 if (/BEGIN PGP MESSAGE/ ) {
248 Carp::croak "$filename seems to be encrypted. "
249 . "Maybe you need to install Config::Identity?"
250 }
251
252 next unless $_ and $_ !~ /^\s*#/;
253
254 my ($k, $v) = /^\s*(\w+)\s+(.+)$/;
255 Carp::croak "multiple entries for $k" if $conf{$k};
256 $conf{$k} = $v;
257 }
268 %conf = $class->_parse_dot_pause($filename);
258269 }
259270
260271 # minimum validation of arguments
308319
309320 =head1 VERSION
310321
311 version 0.103017
322 version 0.103018
312323
313324 =head1 PERL VERSION
314325
390401
391402 =head1 CONTRIBUTORS
392403
393 =for stopwords Barbie Christian Walde David Caldwell Golden fREW Schmidt Gabor Szabo Graham Knop Karen Etheridge Kent Fredric Marcus Ramberg Mark Fowler Mike Doherty perlancar Ricardo Signes Steven Haryanto (on Asus Zenbook) sungo Thibault DUPONCHELLE Torsten Raudssus Vincent Pit
404 =for stopwords Barbie Christian Walde David Caldwell Golden fREW Schmidt Gabor Szabo Graham Knop Karen Etheridge Kent Fredric Marcus Ramberg Mark Fowler Mike Doherty perlancar Ricardo Signes Shlomi Fish Steven Haryanto (on Asus Zenbook) sungo Thibault DUPONCHELLE Torsten Raudssus Vincent Pit
394405
395406 =over 4
396407
452463
453464 =item *
454465
466 Shlomi Fish <shlomif@shlomifish.org>
467
468 =item *
469
455470 Steven Haryanto (on Asus Zenbook) <stevenharyanto@gmail.com>
456471
457472 =item *
474489
475490 =head1 COPYRIGHT AND LICENSE
476491
477 This software is copyright (c) 2022 by Ricardo SIGNES.
492 This software is copyright (c) 2023 by Ricardo SIGNES.
478493
479494 This is free software; you can redistribute it and/or modify it under
480495 the same terms as the Perl 5 programming language system itself.
2323 'LWP::Protocol::https' => '1',
2424 'LWP::UserAgent' => '0',
2525 'Term::ReadKey' => '0',
26 'perl' => '5.012',
26 'perl' => 'v5.12.0',
2727 'strict' => '0',
2828 'warnings' => '0'
2929 }
3535 'requires' => {
3636 'ExtUtils::MakeMaker' => '0',
3737 'File::Spec' => '0',
38 'Test::More' => '0.96'
38 'File::Temp' => '0',
39 'Test::More' => '0.96',
40 'perl' => 'v5.12.0'
3941 }
4042 }
4143 };
22 use strict;
33 use warnings;
44
5 # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028
5 # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029
66
77 use Test::More tests => 1;
88
108108 my @reports = [qw/Module Want Have/];
109109
110110 for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) {
111 next if $mod eq 'perl';
112111 next if grep { $_ eq $mod } @exclude;
112
113 my $want = $req_hash->{$phase}{$type}{$mod};
114 $want = "undef" unless defined $want;
115 $want = "any" if !$want && $want == 0;
116
117 if ($mod eq 'perl') {
118 push @reports, ['perl', $want, $]];
119 next;
120 }
121
122 my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required";
113123
114124 my $file = $mod;
115125 $file =~ s{::}{/}g;
116126 $file .= ".pm";
117127 my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC;
118
119 my $want = $req_hash->{$phase}{$type}{$mod};
120 $want = "undef" unless defined $want;
121 $want = "any" if !$want && $want == 0;
122
123 my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required";
124128
125129 if ($prefix) {
126130 my $have = MM->parse_version( File::Spec->catfile($prefix, $file) );
0 use v5.12.0;
1 use warnings;
2
3 use Test::More tests => 2;
4 use File::Temp qw/ tempdir /;
5 use File::Spec ();
6
7 use CPAN::Uploader;
8
9 {
10 my $tempdir = tempdir(CLEANUP => 1);
11 my $filename = File::Spec->catfile($tempdir, 'pauserc.txt');
12 {
13 open my $out, '>', $filename;
14 print {$out} <<'EOF';
15 user BUGSBUNNY
16 password hunter12
17
18 non_interactive
19 EOF
20 close ($out);
21
22 my %conf;
23 eval {
24 %conf = CPAN::Uploader->_parse_dot_pause($filename);
25 };
26
27 my $err = $@;
28 like ($err, qr#\A\QLine 4 (non_interactive) does not match the "key value" format.\E#,
29 "Correct error on line without a value."
30 );
31 }
32
33 {
34 open my $out, '>', $filename;
35 print {$out} <<'EOF';
36 user BUGSBUNNY
37 user LEFTPADDER
38 password hunter12
39 EOF
40 close ($out);
41
42 my %conf;
43 eval {
44 %conf = CPAN::Uploader->_parse_dot_pause($filename);
45 };
46
47 my $err = $@;
48 like ($err, qr#\A\Qmultiple entries for user\E#,
49 "Correct spelling",
50 );
51 }
52 }
53
11
22 note 'Checking Changes';
33 my $changes_file = 'Changes';
4 my $newver = '0.103017';
4 my $newver = '0.103018';
55 my $trial_token = '-TRIAL';
66 my $encoding = 'UTF-8';
77