Codebase list libhtml-restrict-perl / 9a787c0
New upstream release. Debian Janitor 1 year, 1 day ago
14 changed file(s) with 231 addition(s) and 139 deletion(s). Raw diff Collapse all Expand all
99 * Ben Bullock
1010 * Clayton Cottingham
1111 * David Golden
12 * E. Choroba
1213 * Fitz Elliott
1314 * Graham Knop
1415 * Graham TerMarsch
00 Revision history for HTML-Restrict
1
2 v3.0.2 2023-04-23 17:06:28Z
3 - Add create_newlines to replace BR and P by 1, resp. 2 newlines
4 (GH#46) (E. Choroba)
15
26 v3.0.1 2022-09-22 22:27:40Z
37 - Add a filter_text attribute. This can be used to disable text
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025.
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030.
11 CONTRIBUTORS
22 Changes
33 INSTALL
2222 t/attribute_constraints.t
2323 t/comments.t
2424 t/control-characters.t
25 t/create-newlines.t
2526 t/declaration.t
2627 t/empty-element-tags.t
2728 t/filter_text.t
33 "Olaf Alders <olaf@wundercounter.com>"
44 ],
55 "dynamic_config" : 0,
6 "generated_by" : "Dist::Zilla version 6.025, 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 ],
100100 "web" : "https://github.com/oalders/html-restrict"
101101 }
102102 },
103 "version" : "v3.0.1",
103 "version" : "v3.0.2",
104104 "x_Dist_Zilla" : {
105105 "perl" : {
106106 "version" : "5.036000"
141141 {
142142 "class" : "Dist::Zilla::Plugin::AutoPrereqs",
143143 "name" : "@Author::OALDERS/AutoPrereqs",
144 "version" : "6.025"
144 "version" : "6.030"
145145 },
146146 {
147147 "class" : "Dist::Zilla::Plugin::CheckChangesHasContent",
156156 }
157157 },
158158 "name" : "@Author::OALDERS/MakeMaker",
159 "version" : "6.025"
159 "version" : "6.030"
160160 },
161161 {
162162 "class" : "Dist::Zilla::Plugin::CPANFile",
163163 "name" : "@Author::OALDERS/CPANFile",
164 "version" : "6.025"
164 "version" : "6.030"
165165 },
166166 {
167167 "class" : "Dist::Zilla::Plugin::ContributorsFile",
171171 {
172172 "class" : "Dist::Zilla::Plugin::MetaJSON",
173173 "name" : "@Author::OALDERS/MetaJSON",
174 "version" : "6.025"
174 "version" : "6.030"
175175 },
176176 {
177177 "class" : "Dist::Zilla::Plugin::MetaYAML",
178178 "name" : "@Author::OALDERS/MetaYAML",
179 "version" : "6.025"
179 "version" : "6.030"
180180 },
181181 {
182182 "class" : "Dist::Zilla::Plugin::Manifest",
183183 "name" : "@Author::OALDERS/Manifest",
184 "version" : "6.025"
184 "version" : "6.030"
185185 },
186186 {
187187 "class" : "Dist::Zilla::Plugin::MetaNoIndex",
188188 "name" : "@Author::OALDERS/MetaNoIndex",
189 "version" : "6.025"
189 "version" : "6.030"
190190 },
191191 {
192192 "class" : "Dist::Zilla::Plugin::MetaConfig",
193193 "name" : "@Author::OALDERS/MetaConfig",
194 "version" : "6.025"
194 "version" : "6.030"
195195 },
196196 {
197197 "class" : "Dist::Zilla::Plugin::MetaResources",
198198 "name" : "@Author::OALDERS/MetaResources",
199 "version" : "6.025"
199 "version" : "6.030"
200200 },
201201 {
202202 "class" : "Dist::Zilla::Plugin::License",
203203 "name" : "@Author::OALDERS/License",
204 "version" : "6.025"
204 "version" : "6.030"
205205 },
206206 {
207207 "class" : "Dist::Zilla::Plugin::InstallGuide",
223223 }
224224 },
225225 "name" : "@Author::OALDERS/Modules for use with tidyall",
226 "version" : "6.025"
226 "version" : "6.030"
227227 },
228228 {
229229 "class" : "Dist::Zilla::Plugin::ExecDir",
230230 "name" : "@Author::OALDERS/ExecDir",
231 "version" : "6.025"
231 "version" : "6.030"
232232 },
233233 {
234234 "class" : "Dist::Zilla::Plugin::Test::PodSpelling",
255255 "TerMarsch",
256256 "XSS",
257257 "bolded",
258 "br",
258259 "fREW",
259260 "href",
260261 "img",
281282 {
282283 "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
283284 "name" : "@Author::OALDERS/PodSyntaxTests",
284 "version" : "6.025"
285 "version" : "6.030"
285286 },
286287 {
287288 "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
327328 {
328329 "class" : "Dist::Zilla::Plugin::TestRelease",
329330 "name" : "@Author::OALDERS/TestRelease",
330 "version" : "6.025"
331 "version" : "6.030"
331332 },
332333 {
333334 "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
334335 "name" : "@Author::OALDERS/Test::ReportPrereqs",
335 "version" : "0.028"
336 "version" : "0.029"
336337 },
337338 {
338339 "class" : "Dist::Zilla::Plugin::Test::Synopsis",
370371 "Dist::Zilla::Plugin::PodWeaver" : {
371372 "finder" : [
372373 ":InstallModules",
373 ":ExecFiles"
374 ":PerlExecFiles"
374375 ],
375376 "plugins" : [
376377 {
377378 "class" : "Pod::Weaver::Plugin::EnsurePod5",
378379 "name" : "@CorePrep/EnsurePod5",
379 "version" : "4.018"
380 "version" : "4.019"
380381 },
381382 {
382383 "class" : "Pod::Weaver::Plugin::H1Nester",
383384 "name" : "@CorePrep/H1Nester",
384 "version" : "4.018"
385 "version" : "4.019"
385386 },
386387 {
387388 "class" : "Pod::Weaver::Plugin::SingleEncoding",
388389 "name" : "@Default/SingleEncoding",
389 "version" : "4.018"
390 "version" : "4.019"
390391 },
391392 {
392393 "class" : "Pod::Weaver::Section::Name",
393394 "name" : "@Default/Name",
394 "version" : "4.018"
395 "version" : "4.019"
395396 },
396397 {
397398 "class" : "Pod::Weaver::Section::Version",
398399 "name" : "@Default/Version",
399 "version" : "4.018"
400 "version" : "4.019"
400401 },
401402 {
402403 "class" : "Pod::Weaver::Section::Region",
403404 "name" : "@Default/prelude",
404 "version" : "4.018"
405 "version" : "4.019"
405406 },
406407 {
407408 "class" : "Pod::Weaver::Section::Generic",
408409 "name" : "SYNOPSIS",
409 "version" : "4.018"
410 "version" : "4.019"
410411 },
411412 {
412413 "class" : "Pod::Weaver::Section::Generic",
413414 "name" : "DESCRIPTION",
414 "version" : "4.018"
415 "version" : "4.019"
415416 },
416417 {
417418 "class" : "Pod::Weaver::Section::Generic",
418419 "name" : "OVERVIEW",
419 "version" : "4.018"
420 "version" : "4.019"
420421 },
421422 {
422423 "class" : "Pod::Weaver::Section::Collect",
423424 "name" : "ATTRIBUTES",
424 "version" : "4.018"
425 "version" : "4.019"
425426 },
426427 {
427428 "class" : "Pod::Weaver::Section::Collect",
428429 "name" : "METHODS",
429 "version" : "4.018"
430 "version" : "4.019"
430431 },
431432 {
432433 "class" : "Pod::Weaver::Section::Collect",
433434 "name" : "FUNCTIONS",
434 "version" : "4.018"
435 "version" : "4.019"
435436 },
436437 {
437438 "class" : "Pod::Weaver::Section::Leftovers",
438439 "name" : "@Default/Leftovers",
439 "version" : "4.018"
440 "version" : "4.019"
440441 },
441442 {
442443 "class" : "Pod::Weaver::Section::Region",
443444 "name" : "@Default/postlude",
444 "version" : "4.018"
445 "version" : "4.019"
445446 },
446447 {
447448 "class" : "Pod::Weaver::Section::Authors",
448449 "name" : "@Default/Authors",
449 "version" : "4.018"
450 "version" : "4.019"
450451 },
451452 {
452453 "class" : "Pod::Weaver::Section::Legal",
453454 "name" : "@Default/Legal",
454 "version" : "4.018"
455 "version" : "4.019"
455456 }
456457 ]
457458 }
458459 },
459460 "name" : "@Author::OALDERS/PodWeaver",
460 "version" : "4.009"
461 "version" : "4.010"
461462 },
462463 {
463464 "class" : "Dist::Zilla::Plugin::PruneCruft",
464465 "name" : "@Author::OALDERS/PruneCruft",
465 "version" : "6.025"
466 "version" : "6.030"
466467 },
467468 {
468469 "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild",
534535 "changelog" : "Changes"
535536 },
536537 "Dist::Zilla::Role::Git::Repo" : {
537 "git_version" : "2.37.3",
538 "git_version" : "2.40.0",
538539 "repo_root" : "."
539540 }
540541 },
545546 "class" : "Dist::Zilla::Plugin::Git::Contributors",
546547 "config" : {
547548 "Dist::Zilla::Plugin::Git::Contributors" : {
548 "git_version" : "2.37.3",
549 "git_version" : "2.40.0",
549550 "include_authors" : 0,
550551 "include_releaser" : 1,
551552 "order_by" : "name",
579580 {
580581 "class" : "Dist::Zilla::Plugin::ShareDir",
581582 "name" : "@Author::OALDERS/ShareDir",
582 "version" : "6.025"
583 "version" : "6.030"
583584 },
584585 {
585586 "class" : "Dist::Zilla::Plugin::CheckIssues",
589590 {
590591 "class" : "Dist::Zilla::Plugin::ConfirmRelease",
591592 "name" : "@Author::OALDERS/ConfirmRelease",
592 "version" : "6.025"
593 "version" : "6.030"
593594 },
594595 {
595596 "class" : "Dist::Zilla::Plugin::UploadToCPAN",
596597 "name" : "@Author::OALDERS/UploadToCPAN",
597 "version" : "6.025"
598 "version" : "6.030"
598599 },
599600 {
600601 "class" : "Dist::Zilla::Plugin::Prereqs",
605606 }
606607 },
607608 "name" : "@Author::OALDERS/@Git::VersionManager/pluginbundle version",
608 "version" : "6.025"
609 "version" : "6.030"
609610 },
610611 {
611612 "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional",
665666 "changelog" : "Changes"
666667 },
667668 "Dist::Zilla::Role::Git::Repo" : {
668 "git_version" : "2.37.3",
669 "git_version" : "2.40.0",
669670 "repo_root" : "."
670671 },
671672 "Dist::Zilla::Role::Git::StringFormatter" : {
682683 "branch" : null,
683684 "changelog" : "Changes",
684685 "signed" : 0,
685 "tag" : "v3.0.1",
686 "tag" : "v3.0.2",
686687 "tag_format" : "v%V",
687688 "tag_message" : "v%V"
688689 },
689690 "Dist::Zilla::Role::Git::Repo" : {
690 "git_version" : "2.37.3",
691 "git_version" : "2.40.0",
691692 "repo_root" : "."
692693 },
693694 "Dist::Zilla::Role::Git::StringFormatter" : {
716717 {
717718 "class" : "Dist::Zilla::Plugin::NextRelease",
718719 "name" : "@Author::OALDERS/@Git::VersionManager/NextRelease",
719 "version" : "6.025"
720 "version" : "6.030"
720721 },
721722 {
722723 "class" : "Dist::Zilla::Plugin::Git::Commit",
738739 "changelog" : "Changes"
739740 },
740741 "Dist::Zilla::Role::Git::Repo" : {
741 "git_version" : "2.37.3",
742 "git_version" : "2.40.0",
742743 "repo_root" : "."
743744 },
744745 "Dist::Zilla::Role::Git::StringFormatter" : {
758759 "remotes_must_exist" : 1
759760 },
760761 "Dist::Zilla::Role::Git::Repo" : {
761 "git_version" : "2.37.3",
762 "git_version" : "2.40.0",
762763 "repo_root" : "."
763764 }
764765 },
774775 }
775776 },
776777 "name" : "Prereqs",
777 "version" : "6.025"
778 "version" : "6.030"
778779 },
779780 {
780781 "class" : "Dist::Zilla::Plugin::Prereqs",
785786 }
786787 },
787788 "name" : "TestRequires",
788 "version" : "6.025"
789 "version" : "6.030"
789790 },
790791 {
791792 "class" : "Dist::Zilla::Plugin::FinderCode",
792793 "name" : ":InstallModules",
793 "version" : "6.025"
794 "version" : "6.030"
794795 },
795796 {
796797 "class" : "Dist::Zilla::Plugin::FinderCode",
797798 "name" : ":IncModules",
798 "version" : "6.025"
799 "version" : "6.030"
799800 },
800801 {
801802 "class" : "Dist::Zilla::Plugin::FinderCode",
802803 "name" : ":TestFiles",
803 "version" : "6.025"
804 "version" : "6.030"
804805 },
805806 {
806807 "class" : "Dist::Zilla::Plugin::FinderCode",
807808 "name" : ":ExtraTestFiles",
808 "version" : "6.025"
809 "version" : "6.030"
809810 },
810811 {
811812 "class" : "Dist::Zilla::Plugin::FinderCode",
812813 "name" : ":ExecFiles",
813 "version" : "6.025"
814 "version" : "6.030"
814815 },
815816 {
816817 "class" : "Dist::Zilla::Plugin::FinderCode",
817818 "name" : ":PerlExecFiles",
818 "version" : "6.025"
819 "version" : "6.030"
819820 },
820821 {
821822 "class" : "Dist::Zilla::Plugin::FinderCode",
822823 "name" : ":ShareFiles",
823 "version" : "6.025"
824 "version" : "6.030"
824825 },
825826 {
826827 "class" : "Dist::Zilla::Plugin::FinderCode",
827828 "name" : ":MainModule",
828 "version" : "6.025"
829 "version" : "6.030"
829830 },
830831 {
831832 "class" : "Dist::Zilla::Plugin::FinderCode",
832833 "name" : ":AllFiles",
833 "version" : "6.025"
834 "version" : "6.030"
834835 },
835836 {
836837 "class" : "Dist::Zilla::Plugin::FinderCode",
837838 "name" : ":NoFiles",
838 "version" : "6.025"
839 "version" : "6.030"
839840 }
840841 ],
841842 "zilla" : {
843844 "config" : {
844845 "is_trial" : 0
845846 },
846 "version" : "6.025"
847 "version" : "6.030"
847848 }
848849 },
849850 "x_contributors" : [
851852 "Ben Bullock <benkasminbullock@gmail.com>",
852853 "Clayton Cottingham <ccottingham@presinet.com>",
853854 "David Golden <dagolden@cpan.org>",
855 "E. Choroba <choroba@users.noreply.github.com>",
854856 "Fitz Elliott <fitz.elliott@gmail.com>",
855857 "Graham Knop <haarg@haarg.org>",
856858 "Graham TerMarsch <graham@howlingfrog.com>",
861863 "skaufman <sam@socialflow.com>"
862864 ],
863865 "x_generated_by_perl" : "v5.36.0",
864 "x_serialization_backend" : "Cpanel::JSON::XS version 4.29",
866 "x_serialization_backend" : "Cpanel::JSON::XS version 4.36",
865867 "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
866868 }
867869
1212 ExtUtils::MakeMaker: '0'
1313 perl: '5.006'
1414 dynamic_config: 0
15 generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
15 generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010'
1616 license: perl
1717 meta-spec:
1818 url: http://module-build.sourceforge.net/META-spec-v1.4.html
4343 bugtracker: https://github.com/oalders/html-restrict/issues
4444 homepage: https://github.com/oalders/html-restrict
4545 repository: https://github.com/oalders/html-restrict.git
46 version: v3.0.1
46 version: v3.0.2
4747 x_Dist_Zilla:
4848 perl:
4949 version: '5.036000'
7676 -
7777 class: Dist::Zilla::Plugin::AutoPrereqs
7878 name: '@Author::OALDERS/AutoPrereqs'
79 version: '6.025'
79 version: '6.030'
8080 -
8181 class: Dist::Zilla::Plugin::CheckChangesHasContent
8282 name: '@Author::OALDERS/CheckChangesHasContent'
8787 Dist::Zilla::Role::TestRunner:
8888 default_jobs: '8'
8989 name: '@Author::OALDERS/MakeMaker'
90 version: '6.025'
90 version: '6.030'
9191 -
9292 class: Dist::Zilla::Plugin::CPANFile
9393 name: '@Author::OALDERS/CPANFile'
94 version: '6.025'
94 version: '6.030'
9595 -
9696 class: Dist::Zilla::Plugin::ContributorsFile
9797 name: '@Author::OALDERS/ContributorsFile'
9999 -
100100 class: Dist::Zilla::Plugin::MetaJSON
101101 name: '@Author::OALDERS/MetaJSON'
102 version: '6.025'
102 version: '6.030'
103103 -
104104 class: Dist::Zilla::Plugin::MetaYAML
105105 name: '@Author::OALDERS/MetaYAML'
106 version: '6.025'
106 version: '6.030'
107107 -
108108 class: Dist::Zilla::Plugin::Manifest
109109 name: '@Author::OALDERS/Manifest'
110 version: '6.025'
110 version: '6.030'
111111 -
112112 class: Dist::Zilla::Plugin::MetaNoIndex
113113 name: '@Author::OALDERS/MetaNoIndex'
114 version: '6.025'
114 version: '6.030'
115115 -
116116 class: Dist::Zilla::Plugin::MetaConfig
117117 name: '@Author::OALDERS/MetaConfig'
118 version: '6.025'
118 version: '6.030'
119119 -
120120 class: Dist::Zilla::Plugin::MetaResources
121121 name: '@Author::OALDERS/MetaResources'
122 version: '6.025'
122 version: '6.030'
123123 -
124124 class: Dist::Zilla::Plugin::License
125125 name: '@Author::OALDERS/License'
126 version: '6.025'
126 version: '6.030'
127127 -
128128 class: Dist::Zilla::Plugin::InstallGuide
129129 config:
139139 phase: develop
140140 type: requires
141141 name: '@Author::OALDERS/Modules for use with tidyall'
142 version: '6.025'
142 version: '6.030'
143143 -
144144 class: Dist::Zilla::Plugin::ExecDir
145145 name: '@Author::OALDERS/ExecDir'
146 version: '6.025'
146 version: '6.030'
147147 -
148148 class: Dist::Zilla::Plugin::Test::PodSpelling
149149 config:
168168 - TerMarsch
169169 - XSS
170170 - bolded
171 - br
171172 - fREW
172173 - href
173174 - img
189190 -
190191 class: Dist::Zilla::Plugin::PodSyntaxTests
191192 name: '@Author::OALDERS/PodSyntaxTests'
192 version: '6.025'
193 version: '6.030'
193194 -
194195 class: Dist::Zilla::Plugin::Test::CPAN::Changes
195196 config:
223224 -
224225 class: Dist::Zilla::Plugin::TestRelease
225226 name: '@Author::OALDERS/TestRelease'
226 version: '6.025'
227 version: '6.030'
227228 -
228229 class: Dist::Zilla::Plugin::Test::ReportPrereqs
229230 name: '@Author::OALDERS/Test::ReportPrereqs'
230 version: '0.028'
231 version: '0.029'
231232 -
232233 class: Dist::Zilla::Plugin::Test::Synopsis
233234 name: '@Author::OALDERS/Test::Synopsis'
257258 Dist::Zilla::Plugin::PodWeaver:
258259 finder:
259260 - ':InstallModules'
260 - ':ExecFiles'
261 - ':PerlExecFiles'
261262 plugins:
262263 -
263264 class: Pod::Weaver::Plugin::EnsurePod5
264265 name: '@CorePrep/EnsurePod5'
265 version: '4.018'
266 version: '4.019'
266267 -
267268 class: Pod::Weaver::Plugin::H1Nester
268269 name: '@CorePrep/H1Nester'
269 version: '4.018'
270 version: '4.019'
270271 -
271272 class: Pod::Weaver::Plugin::SingleEncoding
272273 name: '@Default/SingleEncoding'
273 version: '4.018'
274 version: '4.019'
274275 -
275276 class: Pod::Weaver::Section::Name
276277 name: '@Default/Name'
277 version: '4.018'
278 version: '4.019'
278279 -
279280 class: Pod::Weaver::Section::Version
280281 name: '@Default/Version'
281 version: '4.018'
282 version: '4.019'
282283 -
283284 class: Pod::Weaver::Section::Region
284285 name: '@Default/prelude'
285 version: '4.018'
286 version: '4.019'
286287 -
287288 class: Pod::Weaver::Section::Generic
288289 name: SYNOPSIS
289 version: '4.018'
290 version: '4.019'
290291 -
291292 class: Pod::Weaver::Section::Generic
292293 name: DESCRIPTION
293 version: '4.018'
294 version: '4.019'
294295 -
295296 class: Pod::Weaver::Section::Generic
296297 name: OVERVIEW
297 version: '4.018'
298 version: '4.019'
298299 -
299300 class: Pod::Weaver::Section::Collect
300301 name: ATTRIBUTES
301 version: '4.018'
302 version: '4.019'
302303 -
303304 class: Pod::Weaver::Section::Collect
304305 name: METHODS
305 version: '4.018'
306 version: '4.019'
306307 -
307308 class: Pod::Weaver::Section::Collect
308309 name: FUNCTIONS
309 version: '4.018'
310 version: '4.019'
310311 -
311312 class: Pod::Weaver::Section::Leftovers
312313 name: '@Default/Leftovers'
313 version: '4.018'
314 version: '4.019'
314315 -
315316 class: Pod::Weaver::Section::Region
316317 name: '@Default/postlude'
317 version: '4.018'
318 version: '4.019'
318319 -
319320 class: Pod::Weaver::Section::Authors
320321 name: '@Default/Authors'
321 version: '4.018'
322 version: '4.019'
322323 -
323324 class: Pod::Weaver::Section::Legal
324325 name: '@Default/Legal'
325 version: '4.018'
326 version: '4.019'
326327 name: '@Author::OALDERS/PodWeaver'
327 version: '4.009'
328 version: '4.010'
328329 -
329330 class: Dist::Zilla::Plugin::PruneCruft
330331 name: '@Author::OALDERS/PruneCruft'
331 version: '6.025'
332 version: '6.030'
332333 -
333334 class: Dist::Zilla::Plugin::CopyFilesFromBuild
334335 name: '@Author::OALDERS/CopyFilesFromBuild'
385386 allow_dirty_match: []
386387 changelog: Changes
387388 Dist::Zilla::Role::Git::Repo:
388 git_version: 2.37.3
389 git_version: 2.40.0
389390 repo_root: .
390391 name: '@Author::OALDERS/Git::Check'
391392 version: '2.048'
393394 class: Dist::Zilla::Plugin::Git::Contributors
394395 config:
395396 Dist::Zilla::Plugin::Git::Contributors:
396 git_version: 2.37.3
397 git_version: 2.40.0
397398 include_authors: 0
398399 include_releaser: 1
399400 order_by: name
418419 -
419420 class: Dist::Zilla::Plugin::ShareDir
420421 name: '@Author::OALDERS/ShareDir'
421 version: '6.025'
422 version: '6.030'
422423 -
423424 class: Dist::Zilla::Plugin::CheckIssues
424425 name: '@Author::OALDERS/CheckIssues'
426427 -
427428 class: Dist::Zilla::Plugin::ConfirmRelease
428429 name: '@Author::OALDERS/ConfirmRelease'
429 version: '6.025'
430 version: '6.030'
430431 -
431432 class: Dist::Zilla::Plugin::UploadToCPAN
432433 name: '@Author::OALDERS/UploadToCPAN'
433 version: '6.025'
434 version: '6.030'
434435 -
435436 class: Dist::Zilla::Plugin::Prereqs
436437 config:
438439 phase: develop
439440 type: recommends
440441 name: '@Author::OALDERS/@Git::VersionManager/pluginbundle version'
441 version: '6.025'
442 version: '6.030'
442443 -
443444 class: Dist::Zilla::Plugin::RewriteVersion::Transitional
444445 config:
485486 allow_dirty_match: []
486487 changelog: Changes
487488 Dist::Zilla::Role::Git::Repo:
488 git_version: 2.37.3
489 git_version: 2.40.0
489490 repo_root: .
490491 Dist::Zilla::Role::Git::StringFormatter:
491492 time_zone: local
498499 branch: ~
499500 changelog: Changes
500501 signed: 0
501 tag: v3.0.1
502 tag: v3.0.2
502503 tag_format: v%V
503504 tag_message: v%V
504505 Dist::Zilla::Role::Git::Repo:
505 git_version: 2.37.3
506 git_version: 2.40.0
506507 repo_root: .
507508 Dist::Zilla::Role::Git::StringFormatter:
508509 time_zone: local
523524 -
524525 class: Dist::Zilla::Plugin::NextRelease
525526 name: '@Author::OALDERS/@Git::VersionManager/NextRelease'
526 version: '6.025'
527 version: '6.030'
527528 -
528529 class: Dist::Zilla::Plugin::Git::Commit
529530 config:
540541 - (?^:^lib/.*\.pm$)
541542 changelog: Changes
542543 Dist::Zilla::Role::Git::Repo:
543 git_version: 2.37.3
544 git_version: 2.40.0
544545 repo_root: .
545546 Dist::Zilla::Role::Git::StringFormatter:
546547 time_zone: local
554555 - origin
555556 remotes_must_exist: 1
556557 Dist::Zilla::Role::Git::Repo:
557 git_version: 2.37.3
558 git_version: 2.40.0
558559 repo_root: .
559560 name: '@Author::OALDERS/Git::Push'
560561 version: '2.048'
565566 phase: runtime
566567 type: requires
567568 name: Prereqs
568 version: '6.025'
569 version: '6.030'
569570 -
570571 class: Dist::Zilla::Plugin::Prereqs
571572 config:
573574 phase: test
574575 type: requires
575576 name: TestRequires
576 version: '6.025'
577 version: '6.030'
577578 -
578579 class: Dist::Zilla::Plugin::FinderCode
579580 name: ':InstallModules'
580 version: '6.025'
581 version: '6.030'
581582 -
582583 class: Dist::Zilla::Plugin::FinderCode
583584 name: ':IncModules'
584 version: '6.025'
585 version: '6.030'
585586 -
586587 class: Dist::Zilla::Plugin::FinderCode
587588 name: ':TestFiles'
588 version: '6.025'
589 version: '6.030'
589590 -
590591 class: Dist::Zilla::Plugin::FinderCode
591592 name: ':ExtraTestFiles'
592 version: '6.025'
593 version: '6.030'
593594 -
594595 class: Dist::Zilla::Plugin::FinderCode
595596 name: ':ExecFiles'
596 version: '6.025'
597 version: '6.030'
597598 -
598599 class: Dist::Zilla::Plugin::FinderCode
599600 name: ':PerlExecFiles'
600 version: '6.025'
601 version: '6.030'
601602 -
602603 class: Dist::Zilla::Plugin::FinderCode
603604 name: ':ShareFiles'
604 version: '6.025'
605 version: '6.030'
605606 -
606607 class: Dist::Zilla::Plugin::FinderCode
607608 name: ':MainModule'
608 version: '6.025'
609 version: '6.030'
609610 -
610611 class: Dist::Zilla::Plugin::FinderCode
611612 name: ':AllFiles'
612 version: '6.025'
613 version: '6.030'
613614 -
614615 class: Dist::Zilla::Plugin::FinderCode
615616 name: ':NoFiles'
616 version: '6.025'
617 version: '6.030'
617618 zilla:
618619 class: Dist::Zilla::Dist::Builder
619620 config:
620621 is_trial: 0
621 version: '6.025'
622 version: '6.030'
622623 x_contributors:
623624 - "Arthur Axel 'fREW' Schmidt <frioux@gmail.com>"
624625 - 'Ben Bullock <benkasminbullock@gmail.com>'
625626 - 'Clayton Cottingham <ccottingham@presinet.com>'
626627 - 'David Golden <dagolden@cpan.org>'
628 - 'E. Choroba <choroba@users.noreply.github.com>'
627629 - 'Fitz Elliott <fitz.elliott@gmail.com>'
628630 - 'Graham Knop <haarg@haarg.org>'
629631 - 'Graham TerMarsch <graham@howlingfrog.com>'
633635 - 'perlpong <calyx238@gmail.com>'
634636 - 'skaufman <sam@socialflow.com>'
635637 x_generated_by_perl: v5.36.0
636 x_serialization_backend: 'YAML::Tiny version 1.73'
638 x_serialization_backend: 'YAML::Tiny version 1.74'
637639 x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025.
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030.
11 use strict;
22 use warnings;
33
3838 "Test::More" => "0.96",
3939 "warnings" => 0
4040 },
41 "VERSION" => "v3.0.1",
41 "VERSION" => "v3.0.2",
4242 "test" => {
4343 "TESTS" => "t/*.t"
4444 }
33
44 # VERSION
55
6 version v3.0.1
6 version v3.0.2
77
88 # SYNOPSIS
99
232232 $html = $hr->process( $html );
233233 # $html is now: "<!-- comments! -->foo"
234234
235 - create\_newlines => \[0|1\]
236
237 Set the value to true if you'd like to have each br tag replaced by a
238 newline and every p tag replaced by two newlines. If a tag is
239 specified in the allowed HTML, it won't be replaced.
240
235241 - replace\_img => \[0|1|CodeRef\]
236242
237243 Set the value to true if you'd like to have img tags replaced with
0 # This file is generated by Dist::Zilla::Plugin::CPANFile v6.025
0 # This file is generated by Dist::Zilla::Plugin::CPANFile v6.030
11 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
22
33 requires "Carp" => "0";
0 libhtml-restrict-perl (3.0.2-1) UNRELEASED; urgency=low
1
2 * New upstream release.
3
4 -- Debian Janitor <janitor@jelmer.uk> Thu, 04 May 2023 22:16:45 -0000
5
06 libhtml-restrict-perl (3.0.1-1) unstable; urgency=medium
17
28 * Team upload.
33 package HTML::Restrict;
44
55 use version;
6 our $VERSION = 'v3.0.1';
6 our $VERSION = 'v3.0.2';
77
88 use Carp qw( croak );
99 use Data::Dump qw( dump );
2525 );
2626
2727 has allow_declaration => (
28 is => 'rw',
29 isa => Bool,
30 default => 0,
31 );
32
33 has create_newlines => (
2834 is => 'rw',
2935 isa => Bool,
3036 default => 0,
244250 }
245251 $self->_processed( ( $self->_processed || q{} ) . $alt );
246252 }
253 elsif ( $tagname eq 'br' && $self->create_newlines ) {
254 $self->_processed( ( $self->_processed || q{} ) . "\n" );
255 }
256 elsif ( $tagname eq 'p' && $self->create_newlines ) {
257 $self->_processed(
258 ( $self->_processed || q{} ) . "\n\n" );
259 }
247260 elsif ( any { $_ eq $tagname }
248261 @{ $self->strip_enclosed_content } ) {
249262 print "adding $tagname to strippers" if $self->debug;
413426
414427 =head1 VERSION
415428
416 version v3.0.1
429 version v3.0.2
417430
418431 =head1 SYNOPSIS
419432
644657 $html = $hr->process( $html );
645658 # $html is now: "<!-- comments! -->foo"
646659
660 =item * create_newlines => [0|1]
661
662 Set the value to true if you'd like to have each br tag replaced by a
663 newline and every p tag replaced by two newlines. If a tag is
664 specified in the allowed HTML, it won't be replaced.
665
647666 =item * replace_img => [0|1|CodeRef]
648667
649668 Set the value to true if you'd like to have img tags replaced with
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 #!/usr/bin/env perl
1
2 use strict;
3 use warnings;
4
5 use HTML::Restrict ();
6 use Test::More;
7
8 my $hr = HTML::Restrict->new();
9
10 {
11 my $html = q[Line 1<p>Line 2<br>Line 3];
12 my $processed = $hr->process($html);
13 is $processed, 'Line 1Line 2Line 3', 'off by default';
14 }
15
16 $hr->create_newlines(1);
17
18 {
19 my $html = q[
20 Line 1<br>Line 2<br/>Line 3<br />Line 4
21 ];
22 my $processed = $hr->process($html);
23 is $processed, "Line 1\nLine 2\nLine 3\nLine 4",
24 'replace <br> by a newline';
25 }
26
27 {
28 my $html = q[
29 Paragraph 1<p>Paragraph 2<p>Paragraph 3</p><p>Paragraph 4];
30 my $processed = $hr->process($html);
31 is $processed, "Paragraph 1\n\nParagraph 2\n\nParagraph 3\n\nParagraph 4",
32 'replace <p> by 2 newlines';
33 }
34
35 {
36 my $html = q[Line 1<p>Line 2<br>Line 3];
37 $hr->set_rules( { p => [] } );
38 my $processed = $hr->process($html);
39 is $processed, "Line 1<p>Line 2\nLine 3", 'rules have precedence';
40 }
41
42 done_testing();
1313 't/attribute_constraints.t',
1414 't/comments.t',
1515 't/control-characters.t',
16 't/create-newlines.t',
1617 't/declaration.t',
1718 't/empty-element-tags.t',
1819 't/filter_text.t',
1616 Ben
1717 Bullock
1818 Carwyn
19 Choroba
1920 Clayton
2021 Cottingham
2122 DOCTYPE
4243 XSS
4344 benkasminbullock
4445 bolded
46 br
4547 calyx238
4648 ccottingham
49 choroba
4750 dagolden
4851 ether
4952 fREW