Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-HTML-Restrict for openSUSE:Factory checked in at 2023-05-04 17:10:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-HTML-Restrict (Old) and /work/SRC/openSUSE:Factory/.perl-HTML-Restrict.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-HTML-Restrict" Thu May 4 17:10:31 2023 rev:3 rq:1084425 version:3.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-HTML-Restrict/perl-HTML-Restrict.changes 2022-09-29 18:13:02.615218500 +0200 +++ /work/SRC/openSUSE:Factory/.perl-HTML-Restrict.new.1533/perl-HTML-Restrict.changes 2023-05-04 17:10:50.252457351 +0200 @@ -1,0 +2,10 @@ +Mon Apr 24 03:07:13 UTC 2023 - Tina Müller <timueller+p...@suse.de> + +- updated to 3.0.2 + see /usr/share/doc/packages/perl-HTML-Restrict/Changes + + v3.0.2 2023-04-23 17:06:28Z + - Add create_newlines to replace BR and P by 1, resp. 2 newlines + (GH#46) (E. Choroba) + +------------------------------------------------------------------- Old: ---- HTML-Restrict-v3.0.1.tar.gz New: ---- HTML-Restrict-v3.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-HTML-Restrict.spec ++++++ --- /var/tmp/diff_new_pack.Z8ueht/_old 2023-05-04 17:10:50.704459998 +0200 +++ /var/tmp/diff_new_pack.Z8ueht/_new 2023-05-04 17:10:50.708460021 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-HTML-Restrict # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define cpan_name HTML-Restrict Name: perl-HTML-Restrict -Version: 3.0.1 +Version: 3.0.2 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Strip unwanted HTML tags and attributes @@ -61,7 +61,8 @@ %prep %autosetup -n %{cpan_name}-v%{version} -find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor ++++++ HTML-Restrict-v3.0.1.tar.gz -> HTML-Restrict-v3.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/CONTRIBUTORS new/HTML-Restrict-v3.0.2/CONTRIBUTORS --- old/HTML-Restrict-v3.0.1/CONTRIBUTORS 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/CONTRIBUTORS 2023-04-23 19:06:32.000000000 +0200 @@ -10,6 +10,7 @@ * Ben Bullock * Clayton Cottingham * David Golden + * E. Choroba * Fitz Elliott * Graham Knop * Graham TerMarsch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/Changes new/HTML-Restrict-v3.0.2/Changes --- old/HTML-Restrict-v3.0.1/Changes 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/Changes 2023-04-23 19:06:32.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for HTML-Restrict +v3.0.2 2023-04-23 17:06:28Z + - Add create_newlines to replace BR and P by 1, resp. 2 newlines + (GH#46) (E. Choroba) + v3.0.1 2022-09-22 22:27:40Z - Add a filter_text attribute. This can be used to disable text encoding. (GH#44) (ccottingham-presinet) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/MANIFEST new/HTML-Restrict-v3.0.2/MANIFEST --- old/HTML-Restrict-v3.0.1/MANIFEST 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/MANIFEST 2023-04-23 19:06:32.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030. CONTRIBUTORS Changes INSTALL @@ -23,6 +23,7 @@ t/attribute_constraints.t t/comments.t t/control-characters.t +t/create-newlines.t t/declaration.t t/empty-element-tags.t t/filter_text.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/META.json new/HTML-Restrict-v3.0.2/META.json --- old/HTML-Restrict-v3.0.1/META.json 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/META.json 2023-04-23 19:06:32.000000000 +0200 @@ -4,7 +4,7 @@ "Olaf Alders <o...@wundercounter.com>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -101,7 +101,7 @@ "web" : "https://github.com/oalders/html-restrict" } }, - "version" : "v3.0.1", + "version" : "v3.0.2", "x_Dist_Zilla" : { "perl" : { "version" : "5.036000" @@ -142,7 +142,7 @@ { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::OALDERS/AutoPrereqs", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", @@ -157,12 +157,12 @@ } }, "name" : "@Author::OALDERS/MakeMaker", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::CPANFile", "name" : "@Author::OALDERS/CPANFile", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ContributorsFile", @@ -172,37 +172,37 @@ { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::OALDERS/MetaJSON", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::OALDERS/MetaYAML", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::OALDERS/Manifest", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "@Author::OALDERS/MetaNoIndex", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::OALDERS/MetaConfig", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@Author::OALDERS/MetaResources", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::OALDERS/License", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", @@ -224,12 +224,12 @@ } }, "name" : "@Author::OALDERS/Modules for use with tidyall", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::OALDERS/ExecDir", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", @@ -256,6 +256,7 @@ "TerMarsch", "XSS", "bolded", + "br", "fREW", "href", "img", @@ -282,7 +283,7 @@ { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::OALDERS/PodSyntaxTests", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", @@ -328,12 +329,12 @@ { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::OALDERS/TestRelease", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::OALDERS/Test::ReportPrereqs", - "version" : "0.028" + "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Test::Synopsis", @@ -371,99 +372,99 @@ "Dist::Zilla::Plugin::PodWeaver" : { "finder" : [ ":InstallModules", - ":ExecFiles" + ":PerlExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@Default/SingleEncoding", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@Default/Name", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@Default/Version", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/prelude", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@Default/Leftovers", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/postlude", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@Default/Authors", - "version" : "4.018" + "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@Default/Legal", - "version" : "4.018" + "version" : "4.019" } ] } }, "name" : "@Author::OALDERS/PodWeaver", - "version" : "4.009" + "version" : "4.010" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@Author::OALDERS/PruneCruft", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", @@ -535,7 +536,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "repo_root" : "." } }, @@ -546,7 +547,7 @@ "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -580,7 +581,7 @@ { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::OALDERS/ShareDir", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::CheckIssues", @@ -590,12 +591,12 @@ { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::OALDERS/ConfirmRelease", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::OALDERS/UploadToCPAN", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -606,7 +607,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/pluginbundle version", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", @@ -666,7 +667,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -683,12 +684,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v3.0.1", + "tag" : "v3.0.2", "tag_format" : "v%V", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -717,7 +718,7 @@ { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Author::OALDERS/@Git::VersionManager/NextRelease", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", @@ -739,7 +740,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -759,7 +760,7 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.37.3", + "git_version" : "2.40.0", "repo_root" : "." } }, @@ -775,7 +776,7 @@ } }, "name" : "Prereqs", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -786,57 +787,57 @@ } }, "name" : "TestRequires", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.025" + "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.025" + "version" : "6.030" } ], "zilla" : { @@ -844,7 +845,7 @@ "config" : { "is_trial" : 0 }, - "version" : "6.025" + "version" : "6.030" } }, "x_contributors" : [ @@ -852,6 +853,7 @@ "Ben Bullock <benkasminbull...@gmail.com>", "Clayton Cottingham <ccotting...@presinet.com>", "David Golden <dagol...@cpan.org>", + "E. Choroba <chor...@users.noreply.github.com>", "Fitz Elliott <fitz.elli...@gmail.com>", "Graham Knop <ha...@haarg.org>", "Graham TerMarsch <gra...@howlingfrog.com>", @@ -862,7 +864,7 @@ "skaufman <s...@socialflow.com>" ], "x_generated_by_perl" : "v5.36.0", - "x_serialization_backend" : "Cpanel::JSON::XS version 4.29", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.36", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/META.yml new/HTML-Restrict-v3.0.2/META.yml --- old/HTML-Restrict-v3.0.1/META.yml 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/META.yml 2023-04-23 19:06:32.000000000 +0200 @@ -13,7 +13,7 @@ ExtUtils::MakeMaker: '0' perl: '5.006' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -44,7 +44,7 @@ bugtracker: https://github.com/oalders/html-restrict/issues homepage: https://github.com/oalders/html-restrict repository: https://github.com/oalders/html-restrict.git -version: v3.0.1 +version: v3.0.2 x_Dist_Zilla: perl: version: '5.036000' @@ -77,7 +77,7 @@ - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::OALDERS/AutoPrereqs' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::CheckChangesHasContent name: '@Author::OALDERS/CheckChangesHasContent' @@ -88,11 +88,11 @@ Dist::Zilla::Role::TestRunner: default_jobs: '8' name: '@Author::OALDERS/MakeMaker' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::CPANFile name: '@Author::OALDERS/CPANFile' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::ContributorsFile name: '@Author::OALDERS/ContributorsFile' @@ -100,31 +100,31 @@ - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::OALDERS/MetaJSON' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::OALDERS/MetaYAML' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Manifest name: '@Author::OALDERS/Manifest' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::MetaNoIndex name: '@Author::OALDERS/MetaNoIndex' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::OALDERS/MetaConfig' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::MetaResources name: '@Author::OALDERS/MetaResources' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::License name: '@Author::OALDERS/License' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::InstallGuide config: @@ -140,11 +140,11 @@ phase: develop type: requires name: '@Author::OALDERS/Modules for use with tidyall' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::OALDERS/ExecDir' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Test::PodSpelling config: @@ -169,6 +169,7 @@ - TerMarsch - XSS - bolded + - br - fREW - href - img @@ -190,7 +191,7 @@ - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::OALDERS/PodSyntaxTests' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Test::CPAN::Changes config: @@ -224,11 +225,11 @@ - class: Dist::Zilla::Plugin::TestRelease name: '@Author::OALDERS/TestRelease' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::OALDERS/Test::ReportPrereqs' - version: '0.028' + version: '0.029' - class: Dist::Zilla::Plugin::Test::Synopsis name: '@Author::OALDERS/Test::Synopsis' @@ -258,78 +259,78 @@ Dist::Zilla::Plugin::PodWeaver: finder: - ':InstallModules' - - ':ExecFiles' + - ':PerlExecFiles' plugins: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Plugin::SingleEncoding name: '@Default/SingleEncoding' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Name name: '@Default/Name' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Version name: '@Default/Version' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Region name: '@Default/prelude' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Generic name: SYNOPSIS - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Generic name: DESCRIPTION - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Generic name: OVERVIEW - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Collect name: ATTRIBUTES - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Collect name: METHODS - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Collect name: FUNCTIONS - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Leftovers name: '@Default/Leftovers' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Region name: '@Default/postlude' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Authors name: '@Default/Authors' - version: '4.018' + version: '4.019' - class: Pod::Weaver::Section::Legal name: '@Default/Legal' - version: '4.018' + version: '4.019' name: '@Author::OALDERS/PodWeaver' - version: '4.009' + version: '4.010' - class: Dist::Zilla::Plugin::PruneCruft name: '@Author::OALDERS/PruneCruft' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: '@Author::OALDERS/CopyFilesFromBuild' @@ -386,7 +387,7 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.37.3 + git_version: 2.40.0 repo_root: . name: '@Author::OALDERS/Git::Check' version: '2.048' @@ -394,7 +395,7 @@ class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.37.3 + git_version: 2.40.0 include_authors: 0 include_releaser: 1 order_by: name @@ -419,7 +420,7 @@ - class: Dist::Zilla::Plugin::ShareDir name: '@Author::OALDERS/ShareDir' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::CheckIssues name: '@Author::OALDERS/CheckIssues' @@ -427,11 +428,11 @@ - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::OALDERS/ConfirmRelease' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::OALDERS/UploadToCPAN' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Prereqs config: @@ -439,7 +440,7 @@ phase: develop type: recommends name: '@Author::OALDERS/@Git::VersionManager/pluginbundle version' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::RewriteVersion::Transitional config: @@ -486,7 +487,7 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.37.3 + git_version: 2.40.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -499,11 +500,11 @@ branch: ~ changelog: Changes signed: 0 - tag: v3.0.1 + tag: v3.0.2 tag_format: v%V tag_message: v%V Dist::Zilla::Role::Git::Repo: - git_version: 2.37.3 + git_version: 2.40.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -524,7 +525,7 @@ - class: Dist::Zilla::Plugin::NextRelease name: '@Author::OALDERS/@Git::VersionManager/NextRelease' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Git::Commit config: @@ -541,7 +542,7 @@ - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.37.3 + git_version: 2.40.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -555,7 +556,7 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.37.3 + git_version: 2.40.0 repo_root: . name: '@Author::OALDERS/Git::Push' version: '2.048' @@ -566,7 +567,7 @@ phase: runtime type: requires name: Prereqs - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::Prereqs config: @@ -574,57 +575,58 @@ phase: test type: requires name: TestRequires - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.025' + version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.025' + version: '6.030' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: '6.025' + version: '6.030' x_contributors: - "Arthur Axel 'fREW' Schmidt <fri...@gmail.com>" - 'Ben Bullock <benkasminbull...@gmail.com>' - 'Clayton Cottingham <ccotting...@presinet.com>' - 'David Golden <dagol...@cpan.org>' + - 'E. Choroba <chor...@users.noreply.github.com>' - 'Fitz Elliott <fitz.elli...@gmail.com>' - 'Graham Knop <ha...@haarg.org>' - 'Graham TerMarsch <gra...@howlingfrog.com>' @@ -634,5 +636,5 @@ - 'perlpong <calyx...@gmail.com>' - 'skaufman <s...@socialflow.com>' x_generated_by_perl: v5.36.0 -x_serialization_backend: 'YAML::Tiny version 1.73' +x_serialization_backend: 'YAML::Tiny version 1.74' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/Makefile.PL new/HTML-Restrict-v3.0.2/Makefile.PL --- old/HTML-Restrict-v3.0.1/Makefile.PL 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/Makefile.PL 2023-04-23 19:06:32.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030. use strict; use warnings; @@ -39,7 +39,7 @@ "Test::More" => "0.96", "warnings" => 0 }, - "VERSION" => "v3.0.1", + "VERSION" => "v3.0.2", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/README.md new/HTML-Restrict-v3.0.2/README.md --- old/HTML-Restrict-v3.0.1/README.md 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/README.md 2023-04-23 19:06:32.000000000 +0200 @@ -4,7 +4,7 @@ # VERSION -version v3.0.1 +version v3.0.2 # SYNOPSIS @@ -233,6 +233,12 @@ $html = $hr->process( $html ); # $html is now: "<!-- comments! -->foo" +- create\_newlines => \[0|1\] + + Set the value to true if you'd like to have each br tag replaced by a + newline and every p tag replaced by two newlines. If a tag is + specified in the allowed HTML, it won't be replaced. + - replace\_img => \[0|1|CodeRef\] Set the value to true if you'd like to have img tags replaced with diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/cpanfile new/HTML-Restrict-v3.0.2/cpanfile --- old/HTML-Restrict-v3.0.1/cpanfile 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/cpanfile 2023-04-23 19:06:32.000000000 +0200 @@ -1,4 +1,4 @@ -# This file is generated by Dist::Zilla::Plugin::CPANFile v6.025 +# This file is generated by Dist::Zilla::Plugin::CPANFile v6.030 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file. requires "Carp" => "0"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/lib/HTML/Restrict.pm new/HTML-Restrict-v3.0.2/lib/HTML/Restrict.pm --- old/HTML-Restrict-v3.0.1/lib/HTML/Restrict.pm 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/lib/HTML/Restrict.pm 2023-04-23 19:06:32.000000000 +0200 @@ -4,7 +4,7 @@ package HTML::Restrict; use version; -our $VERSION = 'v3.0.1'; +our $VERSION = 'v3.0.2'; use Carp qw( croak ); use Data::Dump qw( dump ); @@ -31,6 +31,12 @@ default => 0, ); +has create_newlines => ( + is => 'rw', + isa => Bool, + default => 0, +); + has debug => ( is => 'rw', isa => Bool, @@ -245,6 +251,13 @@ } $self->_processed( ( $self->_processed || q{} ) . $alt ); } + elsif ( $tagname eq 'br' && $self->create_newlines ) { + $self->_processed( ( $self->_processed || q{} ) . "\n" ); + } + elsif ( $tagname eq 'p' && $self->create_newlines ) { + $self->_processed( + ( $self->_processed || q{} ) . "\n\n" ); + } elsif ( any { $_ eq $tagname } @{ $self->strip_enclosed_content } ) { print "adding $tagname to strippers" if $self->debug; @@ -414,7 +427,7 @@ =head1 VERSION -version v3.0.1 +version v3.0.2 =head1 SYNOPSIS @@ -645,6 +658,12 @@ $html = $hr->process( $html ); # $html is now: "<!-- comments! -->foo" +=item * create_newlines => [0|1] + +Set the value to true if you'd like to have each br tag replaced by a +newline and every p tag replaced by two newlines. If a tag is +specified in the allowed HTML, it won't be replaced. + =item * replace_img => [0|1|CodeRef] Set the value to true if you'd like to have img tags replaced with diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/t/00-report-prereqs.t new/HTML-Restrict-v3.0.2/t/00-report-prereqs.t --- old/HTML-Restrict-v3.0.1/t/00-report-prereqs.t 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/t/00-report-prereqs.t 2023-04-23 19:06:32.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029 use Test::More tests => 1; @@ -109,20 +109,24 @@ my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { - next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; - my $file = $mod; - $file =~ s{::}{/}g; - $file .= ".pm"; - my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; - my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; + if ($mod eq 'perl') { + push @reports, ['perl', $want, $]]; + next; + } + my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; + if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/t/create-newlines.t new/HTML-Restrict-v3.0.2/t/create-newlines.t --- old/HTML-Restrict-v3.0.1/t/create-newlines.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTML-Restrict-v3.0.2/t/create-newlines.t 2023-04-23 19:06:32.000000000 +0200 @@ -0,0 +1,43 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use HTML::Restrict (); +use Test::More; + +my $hr = HTML::Restrict->new(); + +{ + my $html = q[Line 1<p>Line 2<br>Line 3]; + my $processed = $hr->process($html); + is $processed, 'Line 1Line 2Line 3', 'off by default'; +} + +$hr->create_newlines(1); + +{ + my $html = q[ +Line 1<br>Line 2<br/>Line 3<br />Line 4 +]; + my $processed = $hr->process($html); + is $processed, "Line 1\nLine 2\nLine 3\nLine 4", + 'replace <br> by a newline'; +} + +{ + my $html = q[ +Paragraph 1<p>Paragraph 2<p>Paragraph 3</p><p>Paragraph 4]; + my $processed = $hr->process($html); + is $processed, "Paragraph 1\n\nParagraph 2\n\nParagraph 3\n\nParagraph 4", + 'replace <p> by 2 newlines'; +} + +{ + my $html = q[Line 1<p>Line 2<br>Line 3]; + $hr->set_rules( { p => [] } ); + my $processed = $hr->process($html); + is $processed, "Line 1<p>Line 2\nLine 3", 'rules have precedence'; +} + +done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/xt/author/eol.t new/HTML-Restrict-v3.0.2/xt/author/eol.t --- old/HTML-Restrict-v3.0.1/xt/author/eol.t 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/xt/author/eol.t 2023-04-23 19:06:32.000000000 +0200 @@ -14,6 +14,7 @@ 't/attribute_constraints.t', 't/comments.t', 't/control-characters.t', + 't/create-newlines.t', 't/declaration.t', 't/empty-element-tags.t', 't/filter_text.t', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTML-Restrict-v3.0.1/xt/author/pod-spell.t new/HTML-Restrict-v3.0.2/xt/author/pod-spell.t --- old/HTML-Restrict-v3.0.1/xt/author/pod-spell.t 2022-09-23 00:27:53.000000000 +0200 +++ new/HTML-Restrict-v3.0.2/xt/author/pod-spell.t 2023-04-23 19:06:32.000000000 +0200 @@ -17,6 +17,7 @@ Ben Bullock Carwyn +Choroba Clayton Cottingham DOCTYPE @@ -43,8 +44,10 @@ XSS benkasminbullock bolded +br calyx238 ccottingham +choroba dagolden ether fREW