Hello community, here is the log from the commit of package perl-HTTP-Message for openSUSE:Factory checked in at 2020-02-28 15:19:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-HTTP-Message (Old) and /work/SRC/openSUSE:Factory/.perl-HTTP-Message.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-HTTP-Message" Fri Feb 28 15:19:02 2020 rev:21 rq:779356 version:6.22 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-HTTP-Message/perl-HTTP-Message.changes 2018-06-15 14:34:28.478241069 +0200 +++ /work/SRC/openSUSE:Factory/.perl-HTTP-Message.new.26092/perl-HTTP-Message.changes 2020-02-28 15:19:04.421616128 +0100 @@ -1,0 +2,25 @@ +Tue Feb 25 03:07:45 UTC 2020 - <[email protected]> + +- updated to 6.22 + see /usr/share/doc/packages/perl-HTTP-Message/Changes + + 6.22 2020-02-24 18:58:07Z + - Full release. No changes since TRIAL release 6.21 + + 6.21 2020-02-19 14:35:09Z (TRIAL RELEASE) + - Bump Encode to latest version (3.01) (GH#129) (Olaf Alders) + - Revert #115 (GH#131) (Olaf Alders) + - Revert (GH#125) "try hard to make a usable file name" (GH#130) (Olaf + Alders) + - Fix JSON request encoding examples in POD (GH#126) (Michael Schout) + + 6.20 2019-02-05 01:46:39Z (TRIAL RELEASE) + - Fix encoded file names when LC_ALL=C (GH#125) (Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯) + + 6.19 2019-01-16 15:17:35Z (TRIAL RELEASE) + - Add support for RFC 8187 encoded filenames (GH#115) (Zaki Mughal) + - Fix memoized _uri_canonical #121 (GH#123) (Dorian Taylor) + - Don't overwrite $@ in decodable (gh #80) (GH#118) (mschae94) + - Add support for RFC 8187 encoded filenames (GH#115) (Zaki Mughal) + +------------------------------------------------------------------- Old: ---- HTTP-Message-6.18.tar.gz New: ---- HTTP-Message-6.22.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-HTTP-Message.spec ++++++ --- /var/tmp/diff_new_pack.zDXmf9/_old 2020-02-28 15:19:04.989617285 +0100 +++ /var/tmp/diff_new_pack.zDXmf9/_new 2020-02-28 15:19:04.989617285 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-HTTP-Message # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,18 +12,18 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-HTTP-Message -Version: 6.18 +Version: 6.22 Release: 0 %define cpan_name HTTP-Message Summary: HTTP style message (base class) License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/HTTP-Message/ +Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch @@ -31,7 +31,7 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Compress::Raw::Zlib) -BuildRequires: perl(Encode) >= 2.21 +BuildRequires: perl(Encode) >= 3.01 BuildRequires: perl(Encode::Locale) >= 1 BuildRequires: perl(HTTP::Date) >= 6 BuildRequires: perl(IO::Compress::Bzip2) >= 2.021 @@ -47,7 +47,7 @@ BuildRequires: perl(Try::Tiny) BuildRequires: perl(URI) >= 1.10 Requires: perl(Compress::Raw::Zlib) -Requires: perl(Encode) >= 2.21 +Requires: perl(Encode) >= 3.01 Requires: perl(Encode::Locale) >= 1 Requires: perl(HTTP::Date) >= 6 Requires: perl(IO::Compress::Bzip2) >= 2.021 @@ -376,11 +376,11 @@ %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +make test %install %perl_make_install ++++++ HTTP-Message-6.18.tar.gz -> HTTP-Message-6.22.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/CONTRIBUTING.md new/HTTP-Message-6.22/CONTRIBUTING.md --- old/HTTP-Message-6.18/CONTRIBUTING.md 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/CONTRIBUTING.md 2020-02-24 19:58:16.000000000 +0100 @@ -43,7 +43,9 @@ please keep your tidying constrained to the portion of code or function in which you're patching. - $ perltidy lib/HTTP/Status.pm -o my_tidy_copy.pm + $ perltidy -pro=perltidyrc lib/HTTP/Status.pm -o my_tidy_copy.pm + ... + $ rm my_tidy_copy.pm The above command, for example, would provide you with a copy of `Status.pm` that has been cleaned according to our `.perltidyrc` settings. You'd then look diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/CONTRIBUTORS new/HTTP-Message-6.22/CONTRIBUTORS --- old/HTTP-Message-6.18/CONTRIBUTORS 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/CONTRIBUTORS 2020-02-24 19:58:16.000000000 +0100 @@ -22,6 +22,7 @@ * David E. Wheeler * DAVIDRW * David Steinbrunner + * Dorian Taylor * Father Chrysostomos * Felipe Gasper * FWILES @@ -32,14 +33,18 @@ * Hans-H. Froehlich * Ian Kilgore * Jacob J + * Jakub Wilk * jefflee * Jerome Eteve * john9art * jonasbn * Karen Etheridge + * Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 * Mark Overmeer * Mark Stosberg * Martin H. Sluka + * Matthew Chae + * Michael Schout * Mickey Nasriachi * Mike Schilli * murphy @@ -63,6 +68,7 @@ * Tatsuhiko Miyagawa * Tatsuhiko Miyagawa * Theo van Hoesel + * Tigran * Tobias Leich * Todd Lipcon * tokuhirom @@ -72,6 +78,7 @@ * uid39246 * Ville Skyttä * Yuri Karaban + * Zakariyya Mughal * Zefram diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/Changes new/HTTP-Message-6.22/Changes --- old/HTTP-Message-6.18/Changes 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/Changes 2020-02-24 19:58:16.000000000 +0100 @@ -1,5 +1,24 @@ Revision history for HTTP-Message +6.22 2020-02-24 18:58:07Z + - Full release. No changes since TRIAL release 6.21 + +6.21 2020-02-19 14:35:09Z (TRIAL RELEASE) + - Bump Encode to latest version (3.01) (GH#129) (Olaf Alders) + - Revert #115 (GH#131) (Olaf Alders) + - Revert (GH#125) "try hard to make a usable file name" (GH#130) (Olaf + Alders) + - Fix JSON request encoding examples in POD (GH#126) (Michael Schout) + +6.20 2019-02-05 01:46:39Z (TRIAL RELEASE) + - Fix encoded file names when LC_ALL=C (GH#125) (Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯) + +6.19 2019-01-16 15:17:35Z (TRIAL RELEASE) + - Add support for RFC 8187 encoded filenames (GH#115) (Zaki Mughal) + - Fix memoized _uri_canonical #121 (GH#123) (Dorian Taylor) + - Don't overwrite $@ in decodable (gh #80) (GH#118) (mschae94) + - Add support for RFC 8187 encoded filenames (GH#115) (Zaki Mughal) + 6.18 2018-06-05 16:29:15Z - Revert status_message to original code (GH#111) (Theo van Hoesel) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/INSTALL new/HTTP-Message-6.22/INSTALL --- old/HTTP-Message-6.18/INSTALL 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/INSTALL 2020-02-24 19:58:16.000000000 +0100 @@ -22,7 +22,7 @@ ## Manual installation As a last resort, you can manually install it. Download the tarball, untar it, -then build it: +install configure prerequisites (see below), then build it: % perl Makefile.PL % make && make test @@ -37,16 +37,36 @@ directory to install modules to. For details, see the local::lib documentation: https://metacpan.org/pod/local::lib - The prerequisites of this distribution will also have to be installed manually. The prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated by running the manual build process described above. +## Configure Prerequisites + +This distribution requires other modules to be installed before this +distribution's installer can be run. They can be found under the +"configure_requires" key of META.yml or the +"{prereqs}{configure}{requires}" key of META.json. + +## Other Prerequisites + +This distribution may require additional modules to be installed after running +Makefile.PL. +Look for prerequisites in the following phases: + +* to run make, PHASE = build +* to use the module code itself, PHASE = runtime +* to run tests, PHASE = test + +They can all be found in the "PHASE_requires" key of MYMETA.yml or the +"{prereqs}{PHASE}{requires}" key of MYMETA.json. + ## Documentation HTTP-Message documentation is available as POD. You can run `perldoc` from a shell to read the documentation: % perldoc HTTP::Message + For more information on installing Perl modules via CPAN, please see: https://www.cpan.org/modules/INSTALL.html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/MANIFEST new/HTTP-Message-6.22/MANIFEST --- old/HTTP-Message-6.18/MANIFEST 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/MANIFEST 2020-02-24 19:58:16.000000000 +0100 @@ -42,4 +42,10 @@ t/status-old.t t/status.t tidyall.ini +xt/author/00-compile.t +xt/author/mojibake.t +xt/author/pod-syntax.t +xt/author/portability.t +xt/author/test-version.t +xt/release/changes_has_content.t xt/release/cpan-changes.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/META.json new/HTTP-Message-6.22/META.json --- old/HTTP-Message-6.18/META.json 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/META.json 2020-02-24 19:58:16.000000000 +0100 @@ -32,15 +32,23 @@ }, "develop" : { "requires" : { + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Test::CPAN::Changes" : "0.19", - "Test::More" : "0.96" + "Test::Mojibake" : "0", + "Test::More" : "0.96", + "Test::Pod" : "1.41", + "Test::Portability::Files" : "0", + "Test::Version" : "1", + "perl" : "5.006" } }, "runtime" : { "requires" : { "Carp" : "0", "Compress::Raw::Zlib" : "0", - "Encode" : "2.21", + "Encode" : "3.01", "Encode::Locale" : "1", "Exporter" : "5.57", "HTTP::Date" : "6", @@ -92,10 +100,10 @@ "x_IRC" : "irc://irc.perl.org/#lwp", "x_MailingList" : "mailto:[email protected]" }, - "version" : "6.18", + "version" : "6.22", "x_Dist_Zilla" : { "perl" : { - "version" : "5.026001" + "version" : "5.030000" }, "plugins" : [ { @@ -147,9 +155,9 @@ "version" : "0.055" }, { - "class" : "Dist::Zilla::Plugin::MAXMIND::TidyAll", - "name" : "@Author::OALDERS/MAXMIND::TidyAll", - "version" : "0.13" + "class" : "Dist::Zilla::Plugin::OALDERS::TidyAll", + "name" : "@Author::OALDERS/OALDERS::TidyAll", + "version" : "0.000026" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", @@ -218,8 +226,14 @@ }, { "class" : "Dist::Zilla::Plugin::InstallGuide", + "config" : { + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000037", + "version" : "0.006" + } + }, "name" : "@Author::OALDERS/InstallGuide", - "version" : "1.200009" + "version" : "1.200013" }, { "class" : "Dist::Zilla::Plugin::ExecDir", @@ -227,6 +241,16 @@ "version" : "6.012" }, { + "class" : "Dist::Zilla::Plugin::MojibakeTests", + "name" : "@Author::OALDERS/MojibakeTests", + "version" : "0.8" + }, + { + "class" : "Dist::Zilla::Plugin::PodSyntaxTests", + "name" : "@Author::OALDERS/PodSyntaxTests", + "version" : "6.012" + }, + { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "config" : { "Dist::Zilla::Plugin::Test::CPAN::Changes" : { @@ -237,6 +261,16 @@ "version" : "0.012" }, { + "class" : "Dist::Zilla::Plugin::Test::Portability", + "config" : { + "Dist::Zilla::Plugin::Test::Portability" : { + "options" : "" + } + }, + "name" : "@Author::OALDERS/Test::Portability", + "version" : "2.001000" + }, + { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::OALDERS/TestRelease", "version" : "6.012" @@ -247,6 +281,11 @@ "version" : "0.027" }, { + "class" : "Dist::Zilla::Plugin::Test::Version", + "name" : "@Author::OALDERS/Test::Version", + "version" : "1.09" + }, + { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { @@ -395,7 +434,7 @@ } }, "name" : "@Author::OALDERS/Git::GatherDir", - "version" : "2.045" + "version" : "2.046" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", @@ -431,18 +470,18 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "repo_root" : "." } }, "name" : "@Author::OALDERS/Git::Check", - "version" : "2.045" + "version" : "2.046" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -450,7 +489,7 @@ } }, "name" : "@Author::OALDERS/Git::Contributors", - "version" : "0.034" + "version" : "0.035" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", @@ -463,6 +502,17 @@ "version" : "0.163250" }, { + "class" : "Dist::Zilla::Plugin::StaticInstall", + "config" : { + "Dist::Zilla::Plugin::StaticInstall" : { + "dry_run" : 1, + "mode" : "auto" + } + }, + "name" : "@Author::OALDERS/StaticInstall", + "version" : "0.012" + }, + { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::OALDERS/ShareDir", "version" : "6.012" @@ -473,6 +523,11 @@ "version" : "0.007" }, { + "class" : "Dist::Zilla::Plugin::CheckIssues", + "name" : "@Author::OALDERS/CheckIssues", + "version" : "0.011" + }, + { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::OALDERS/ConfirmRelease", "version" : "6.012" @@ -522,7 +577,7 @@ "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "v%v%n%n%c" + "commit_msg" : "v%V%n%n%c" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ @@ -539,7 +594,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -547,7 +602,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/release snapshot", - "version" : "2.045" + "version" : "2.046" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", @@ -556,12 +611,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v6.18", - "tag_format" : "v%v", - "tag_message" : "v%v" + "tag" : "v6.22", + "tag_format" : "v%V", + "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -569,7 +624,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/Git::Tag", - "version" : "2.045" + "version" : "2.046" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", @@ -611,7 +666,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -619,7 +674,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/post-release commit", - "version" : "2.045" + "version" : "2.046" }, { "class" : "Dist::Zilla::Plugin::Git::Push", @@ -631,12 +686,45 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.17.1", + "git_version" : "2.25.0", "repo_root" : "." } }, "name" : "@Author::OALDERS/Git::Push", - "version" : "2.045" + "version" : "2.046" + }, + { + "class" : "Dist::Zilla::Plugin::Test::Compile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile" : { + "bail_out_on_fail" : "1", + "fail_on_warning" : "author", + "fake_home" : 0, + "filename" : "xt/author/00-compile.t", + "module_finder" : [ + ":InstallModules" + ], + "needs_display" : 0, + "phase" : "develop", + "script_finder" : [ + ":PerlExecFiles" + ], + "skips" : [], + "switch" : [] + } + }, + "name" : "Test::Compile", + "version" : "2.058" + }, + { + "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", + "name" : "Test::ChangesHasContent", + "version" : "0.011" + }, + { + "class" : "Dist::Zilla::Plugin::Substitute", + "name" : "Substitute", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", @@ -714,6 +802,7 @@ "David E. Wheeler <[email protected]>", "DAVIDRW <[email protected]>", "David Steinbrunner <[email protected]>", + "Dorian Taylor <[email protected]>", "Father Chrysostomos <[email protected]>", "Felipe Gasper <[email protected]>", "FWILES <[email protected]>", @@ -724,14 +813,18 @@ "Hans-H. Froehlich <[email protected]>", "Ian Kilgore <[email protected]>", "Jacob J <[email protected]>", + "Jakub Wilk <[email protected]>", "jefflee <[email protected]>", "Jerome Eteve <[email protected]>", "john9art <[email protected]>", "jonasbn <[email protected]>", "Karen Etheridge <[email protected]>", + "Lars D\u026a\u1d07\u1d04\u1d0b\u1d0f\u1d21 \u8fea\u62c9\u65af <[email protected]>", "Mark Overmeer <[email protected]>", "Mark Stosberg <[email protected]>", "Martin H. Sluka <[email protected]>", + "Matthew Chae <[email protected]>", + "Michael Schout <[email protected]>", "Mickey Nasriachi <[email protected]>", "Mike Schilli <[email protected]>", "murphy <[email protected]>", @@ -755,6 +848,7 @@ "Tatsuhiko Miyagawa <[email protected]>", "Tatsuhiko Miyagawa <[email protected]>", "Theo van Hoesel <[email protected]>", + "Tigran <[email protected]>", "Tobias Leich <[email protected]>", "Todd Lipcon <[email protected]>", "tokuhirom <[email protected]>", @@ -764,9 +858,10 @@ "uid39246 <uid39246>", "Ville Skytt\u00e4 <[email protected]>", "Yuri Karaban <[email protected]>", + "Zakariyya Mughal <[email protected]>", "Zefram <[email protected]>" ], - "x_generated_by_perl" : "v5.26.1", - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0239" + "x_generated_by_perl" : "v5.30.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.14" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/META.yml new/HTTP-Message-6.22/META.yml --- old/HTTP-Message-6.18/META.yml 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/META.yml 2020-02-24 19:58:16.000000000 +0100 @@ -28,7 +28,7 @@ requires: Carp: '0' Compress::Raw::Zlib: '0' - Encode: '2.21' + Encode: '3.01' Encode::Locale: '1' Exporter: '5.57' HTTP::Date: '6' @@ -55,10 +55,10 @@ bugtracker: https://github.com/libwww-perl/HTTP-Message/issues homepage: https://github.com/libwww-perl/HTTP-Message repository: https://github.com/libwww-perl/HTTP-Message.git -version: '6.18' +version: '6.22' x_Dist_Zilla: perl: - version: '5.026001' + version: '5.030000' plugins: - class: Dist::Zilla::Plugin::MetaResources @@ -98,9 +98,9 @@ name: '@Author::OALDERS/stale modules, release' version: '0.055' - - class: Dist::Zilla::Plugin::MAXMIND::TidyAll - name: '@Author::OALDERS/MAXMIND::TidyAll' - version: '0.13' + class: Dist::Zilla::Plugin::OALDERS::TidyAll + name: '@Author::OALDERS/OALDERS::TidyAll' + version: '0.000026' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::OALDERS/AutoPrereqs' @@ -154,13 +154,25 @@ version: '6.012' - class: Dist::Zilla::Plugin::InstallGuide + config: + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000037' + version: '0.006' name: '@Author::OALDERS/InstallGuide' - version: '1.200009' + version: '1.200013' - class: Dist::Zilla::Plugin::ExecDir name: '@Author::OALDERS/ExecDir' version: '6.012' - + class: Dist::Zilla::Plugin::MojibakeTests + name: '@Author::OALDERS/MojibakeTests' + version: '0.8' + - + class: Dist::Zilla::Plugin::PodSyntaxTests + name: '@Author::OALDERS/PodSyntaxTests' + version: '6.012' + - class: Dist::Zilla::Plugin::Test::CPAN::Changes config: Dist::Zilla::Plugin::Test::CPAN::Changes: @@ -168,6 +180,13 @@ name: '@Author::OALDERS/Test::CPAN::Changes' version: '0.012' - + class: Dist::Zilla::Plugin::Test::Portability + config: + Dist::Zilla::Plugin::Test::Portability: + options: '' + name: '@Author::OALDERS/Test::Portability' + version: '2.001000' + - class: Dist::Zilla::Plugin::TestRelease name: '@Author::OALDERS/TestRelease' version: '6.012' @@ -176,6 +195,10 @@ name: '@Author::OALDERS/Test::ReportPrereqs' version: '0.027' - + class: Dist::Zilla::Plugin::Test::Version + name: '@Author::OALDERS/Test::Version' + version: '1.09' + - class: Dist::Zilla::Plugin::RunExtraTests config: Dist::Zilla::Role::TestRunner: @@ -292,7 +315,7 @@ Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@Author::OALDERS/Git::GatherDir' - version: '2.045' + version: '2.046' - class: Dist::Zilla::Plugin::CopyFilesFromRelease config: @@ -320,21 +343,21 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.17.1 + git_version: 2.25.0 repo_root: . name: '@Author::OALDERS/Git::Check' - version: '2.045' + version: '2.046' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.17.1 + git_version: 2.25.0 include_authors: 0 include_releaser: 1 order_by: name paths: [] name: '@Author::OALDERS/Git::Contributors' - version: '0.034' + version: '0.035' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod config: @@ -343,6 +366,14 @@ name: '@Author::OALDERS/ReadmeMdInBuild' version: '0.163250' - + class: Dist::Zilla::Plugin::StaticInstall + config: + Dist::Zilla::Plugin::StaticInstall: + dry_run: 1 + mode: auto + name: '@Author::OALDERS/StaticInstall' + version: '0.012' + - class: Dist::Zilla::Plugin::ShareDir name: '@Author::OALDERS/ShareDir' version: '6.012' @@ -351,6 +382,10 @@ name: '@Author::OALDERS/TravisCI::StatusBadge' version: '0.007' - + class: Dist::Zilla::Plugin::CheckIssues + name: '@Author::OALDERS/CheckIssues' + version: '0.011' + - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::OALDERS/ConfirmRelease' version: '6.012' @@ -389,7 +424,7 @@ config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] - commit_msg: v%v%n%n%c + commit_msg: v%V%n%n%c Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes @@ -403,12 +438,12 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.17.1 + git_version: 2.25.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/release snapshot' - version: '2.045' + version: '2.046' - class: Dist::Zilla::Plugin::Git::Tag config: @@ -416,16 +451,16 @@ branch: ~ changelog: Changes signed: 0 - tag: v6.18 - tag_format: v%v - tag_message: v%v + tag: v6.22 + tag_format: v%V + tag_message: v%V Dist::Zilla::Role::Git::Repo: - git_version: 2.17.1 + git_version: 2.25.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/Git::Tag' - version: '2.045' + version: '2.046' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional config: @@ -457,12 +492,12 @@ - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.17.1 + git_version: 2.25.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/post-release commit' - version: '2.045' + version: '2.046' - class: Dist::Zilla::Plugin::Git::Push config: @@ -471,10 +506,36 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.17.1 + git_version: 2.25.0 repo_root: . name: '@Author::OALDERS/Git::Push' - version: '2.045' + version: '2.046' + - + class: Dist::Zilla::Plugin::Test::Compile + config: + Dist::Zilla::Plugin::Test::Compile: + bail_out_on_fail: '1' + fail_on_warning: author + fake_home: 0 + filename: xt/author/00-compile.t + module_finder: + - ':InstallModules' + needs_display: 0 + phase: develop + script_finder: + - ':PerlExecFiles' + skips: [] + switch: [] + name: Test::Compile + version: '2.058' + - + class: Dist::Zilla::Plugin::Test::ChangesHasContent + name: Test::ChangesHasContent + version: '0.011' + - + class: Dist::Zilla::Plugin::Substitute + name: Substitute + version: '0.006' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' @@ -537,6 +598,7 @@ - 'David E. Wheeler <[email protected]>' - 'DAVIDRW <[email protected]>' - 'David Steinbrunner <[email protected]>' + - 'Dorian Taylor <[email protected]>' - 'Father Chrysostomos <[email protected]>' - 'Felipe Gasper <[email protected]>' - 'FWILES <[email protected]>' @@ -547,14 +609,18 @@ - 'Hans-H. Froehlich <[email protected]>' - 'Ian Kilgore <[email protected]>' - 'Jacob J <[email protected]>' + - 'Jakub Wilk <[email protected]>' - 'jefflee <[email protected]>' - 'Jerome Eteve <[email protected]>' - 'john9art <[email protected]>' - 'jonasbn <[email protected]>' - 'Karen Etheridge <[email protected]>' + - 'Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <[email protected]>' - 'Mark Overmeer <[email protected]>' - 'Mark Stosberg <[email protected]>' - 'Martin H. Sluka <[email protected]>' + - 'Matthew Chae <[email protected]>' + - 'Michael Schout <[email protected]>' - 'Mickey Nasriachi <[email protected]>' - 'Mike Schilli <[email protected]>' - 'murphy <[email protected]>' @@ -578,6 +644,7 @@ - 'Tatsuhiko Miyagawa <[email protected]>' - 'Tatsuhiko Miyagawa <[email protected]>' - 'Theo van Hoesel <[email protected]>' + - 'Tigran <[email protected]>' - 'Tobias Leich <[email protected]>' - 'Todd Lipcon <[email protected]>' - 'tokuhirom <[email protected]>' @@ -587,6 +654,7 @@ - 'uid39246 <uid39246>' - 'Ville Skyttä <[email protected]>' - 'Yuri Karaban <[email protected]>' + - 'Zakariyya Mughal <[email protected]>' - 'Zefram <[email protected]>' -x_generated_by_perl: v5.26.1 -x_serialization_backend: 'YAML::Tiny version 1.70' +x_generated_by_perl: v5.30.0 +x_serialization_backend: 'YAML::Tiny version 1.73' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/Makefile.PL new/HTTP-Message-6.22/Makefile.PL --- old/HTTP-Message-6.18/Makefile.PL 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/Makefile.PL 2020-02-24 19:58:16.000000000 +0100 @@ -19,7 +19,7 @@ "PREREQ_PM" => { "Carp" => 0, "Compress::Raw::Zlib" => 0, - "Encode" => "2.21", + "Encode" => "3.01", "Encode::Locale" => 1, "Exporter" => "5.57", "HTTP::Date" => 6, @@ -48,7 +48,7 @@ "Time::Local" => 0, "Try::Tiny" => 0 }, - "VERSION" => "6.18", + "VERSION" => "6.22", "test" => { "TESTS" => "t/*.t" } @@ -58,7 +58,7 @@ my %FallbackPrereqs = ( "Carp" => 0, "Compress::Raw::Zlib" => 0, - "Encode" => "2.21", + "Encode" => "3.01", "Encode::Locale" => 1, "Exporter" => "5.57", "ExtUtils::MakeMaker" => 0, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/README.md new/HTTP-Message-6.22/README.md --- old/HTTP-Message-6.18/README.md 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/README.md 2020-02-24 19:58:16.000000000 +0100 @@ -4,7 +4,7 @@ # VERSION -version 6.18 +version 6.22 # SYNOPSIS @@ -283,7 +283,7 @@ All methods unknown to `HTTP::Message` itself are delegated to the `HTTP::Headers` object that is part of every message. This allows -convenient access to these methods. Refer to [HTTP::Headers](https://metacpan.org/pod/HTTP::Headers) for +convenient access to these methods. Refer to [HTTP::Headers](https://metacpan.org/pod/HTTP%3A%3AHeaders) for details of these methods: $mess->header( $field => $val ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/cpanfile new/HTTP-Message-6.22/cpanfile --- old/HTTP-Message-6.18/cpanfile 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/cpanfile 2020-02-24 19:58:16.000000000 +0100 @@ -1,6 +1,6 @@ requires "Carp" => "0"; requires "Compress::Raw::Zlib" => "0"; -requires "Encode" => "2.21"; +requires "Encode" => "3.01"; requires "Encode::Locale" => "1"; requires "Exporter" => "5.57"; requires "HTTP::Date" => "6"; @@ -46,6 +46,14 @@ }; on 'develop' => sub { + requires "File::Spec" => "0"; + requires "IO::Handle" => "0"; + requires "IPC::Open3" => "0"; requires "Test::CPAN::Changes" => "0.19"; + requires "Test::Mojibake" => "0"; requires "Test::More" => "0.96"; + requires "Test::Pod" => "1.41"; + requires "Test::Portability::Files" => "0"; + requires "Test::Version" => "1"; + requires "perl" => "5.006"; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/dist.ini new/HTTP-Message-6.22/dist.ini --- old/HTTP-Message-6.18/dist.ini 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/dist.ini 2020-02-24 19:58:16.000000000 +0100 @@ -11,7 +11,7 @@ [Prereqs] Compress::Raw::Zlib = 0 -Encode = 2.21 +Encode = 3.01 Encode::Locale = 1 Exporter = 5.57 HTTP::Date = 6 @@ -23,9 +23,20 @@ URI = 1.10 [@Author::OALDERS] +; all these tests are TODO -remove = PodCoverageTests -remove = Prereqs +-remove = Test::EOL -remove = Test::Perl::Critic -remove = Test::PodSpelling -remove = Test::Synopsis -remove = Test::TidyAll + +[Test::Compile] +bail_out_on_fail = 1 +xt_mode = 1 + +[Test::ChangesHasContent] +[Substitute] +file = xt/release/changes_has_content.t +code = s{^(note 'Checking Changes')}{if \(\(\$ENV\{TRAVIS_PULL_REQUEST\} \|\| '') eq 'false'\) \{\n chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\}\n\n$1} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Config.pm new/HTTP-Message-6.22/lib/HTTP/Config.pm --- old/HTTP-Message-6.18/lib/HTTP/Config.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Config.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use URI; @@ -245,7 +245,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Headers/Auth.pm new/HTTP-Message-6.22/lib/HTTP/Headers/Auth.pm --- old/HTTP-Message-6.18/lib/HTTP/Headers/Auth.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Headers/Auth.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use HTTP::Headers; @@ -111,7 +111,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 AUTHOR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Headers/ETag.pm new/HTTP-Message-6.22/lib/HTTP/Headers/ETag.pm --- old/HTTP-Message-6.18/lib/HTTP/Headers/ETag.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Headers/ETag.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; require HTTP::Date; @@ -107,7 +107,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 AUTHOR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Headers/Util.pm new/HTTP-Message-6.22/lib/HTTP/Headers/Util.pm --- old/HTTP-Message-6.18/lib/HTTP/Headers/Util.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Headers/Util.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use base 'Exporter'; @@ -103,7 +103,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Headers.pm new/HTTP-Message-6.22/lib/HTTP/Headers.pm --- old/HTTP-Message-6.18/lib/HTTP/Headers.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Headers.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use Carp (); @@ -475,7 +475,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Message.pm new/HTTP-Message-6.22/lib/HTTP/Message.pm --- old/HTTP-Message-6.18/lib/HTTP/Message.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Message.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; require HTTP::Headers; require Carp; @@ -417,6 +417,7 @@ # should match the Content-Encoding values that decoded_content can deal with my $self = shift; my @enc; + local $@; # XXX preferably we should determine if the modules are available without loading # them here eval { @@ -781,7 +782,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Request/Common.pm new/HTTP-Message-6.22/lib/HTTP/Request/Common.pm --- old/HTTP-Message-6.18/lib/HTTP/Request/Common.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Request/Common.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,13 +3,13 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; our $DYNAMIC_FILE_UPLOAD ||= 0; # make it defined (don't know why) use Exporter 5.57 'import'; -our @EXPORT =qw(GET HEAD PUT PATCH POST); +our @EXPORT =qw(GET HEAD PUT PATCH POST OPTIONS); our @EXPORT_OK = qw($DYNAMIC_FILE_UPLOAD DELETE); require HTTP::Request; @@ -23,6 +23,7 @@ sub PATCH { request_type_with_data('PATCH', @_); } sub POST { request_type_with_data('POST', @_); } sub PUT { request_type_with_data('PUT', @_); } +sub OPTIONS { request_type_with_data('OPTIONS', @_); } sub request_type_with_data { @@ -312,7 +313,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS @@ -322,6 +323,7 @@ $ua->request(POST 'http://somewhere/foo', [foo => bar, bar => foo]); $ua->request(PATCH 'http://somewhere/foo', [foo => bar, bar => foo]); $ua->request(PUT 'http://somewhere/foo', [foo => bar, bar => foo]); + $ua->request(OPTIONS 'http://somewhere/foo', [foo => bar, bar => foo]); =head1 DESCRIPTION @@ -398,6 +400,18 @@ The same as C<POST> below, but the method in the request is C<PUT> +=item OPTIONS $url + +=item OPTIONS $url, Header => Value,... + +=item OPTIONS $url, $form_ref, Header => Value,... + +=item OPTIONS $url, Header => Value,..., Content => $form_ref + +=item OPTIONS $url, Header => Value,..., Content => $content + +The same as C<POST> below, but the method in the request is C<OPTIONS> + =item POST $url =item POST $url, Header => Value,... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Request.pm new/HTTP-Message-6.22/lib/HTTP/Request.pm --- old/HTTP-Message-6.18/lib/HTTP/Request.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Request.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use base 'HTTP::Message'; @@ -92,7 +92,17 @@ sub uri_canonical { my $self = shift; - return $self->{'_uri_canonical'} ||= $self->{'_uri'}->canonical; + + my $uri = $self->{_uri}; + + if (defined (my $canon = $self->{_uri_canonical})) { + # early bailout if these are the exact same string; try to use + # the cheapest comparison method possible + return $canon if $$canon eq $$uri; + } + + # otherwise we need to refresh the memoized value + $self->{_uri_canonical} = $uri->canonical; } @@ -145,7 +155,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS @@ -251,14 +261,13 @@ use strict; use warnings; - use Encode qw(encode_utf8); use HTTP::Request (); use JSON::MaybeXS qw(encode_json); my $url = 'https://www.example.com/api/user/123'; my $header = ['Content-Type' => 'application/json; charset=UTF-8']; my $data = {foo => 'bar', baz => 'quux'}; - my $encoded_data = encode_utf8(encode_json($data)); + my $encoded_data = encode_json($data); my $r = HTTP::Request->new('POST', $url, $header, $encoded_data); # at this point, we could send it via LWP::UserAgent @@ -276,7 +285,6 @@ use strict; use warnings; - use Encode qw(encode_utf8); use HTTP::Request (); use JSON::MaybeXS qw(encode_json); @@ -317,7 +325,7 @@ sub build_json_request { my ($url, $href) = @_; my $header = ['Authorization' => "Bearer $auth_token", 'Content-Type' => 'application/json; charset=UTF-8']; - return HTTP::Request->new('POST', $url, $header, encode_utf8(encode_json($href))); + return HTTP::Request->new('POST', $url, $header, encode_json($href)); } =head1 SEE ALSO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Response.pm new/HTTP-Message-6.22/lib/HTTP/Response.pm --- old/HTTP-Message-6.18/lib/HTTP/Response.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Response.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; use base 'HTTP::Message'; @@ -351,7 +351,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/lib/HTTP/Status.pm new/HTTP-Message-6.22/lib/HTTP/Status.pm --- old/HTTP-Message-6.18/lib/HTTP/Status.pm 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/lib/HTTP/Status.pm 2020-02-24 19:58:16.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '6.18'; +our $VERSION = '6.22'; require 5.002; # because we use prototypes @@ -162,7 +162,7 @@ =head1 VERSION -version 6.18 +version 6.22 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/t/00-report-prereqs.dd new/HTTP-Message-6.22/t/00-report-prereqs.dd --- old/HTTP-Message-6.18/t/00-report-prereqs.dd 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/t/00-report-prereqs.dd 2020-02-24 19:58:16.000000000 +0100 @@ -10,15 +10,23 @@ }, 'develop' => { 'requires' => { + 'File::Spec' => '0', + 'IO::Handle' => '0', + 'IPC::Open3' => '0', 'Test::CPAN::Changes' => '0.19', - 'Test::More' => '0.96' + 'Test::Mojibake' => '0', + 'Test::More' => '0.96', + 'Test::Pod' => '1.41', + 'Test::Portability::Files' => '0', + 'Test::Version' => '1', + 'perl' => '5.006' } }, 'runtime' => { 'requires' => { 'Carp' => '0', 'Compress::Raw::Zlib' => '0', - 'Encode' => '2.21', + 'Encode' => '3.01', 'Encode::Locale' => '1', 'Exporter' => '5.57', 'HTTP::Date' => '6', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/t/common-req.t new/HTTP-Message-6.22/t/common-req.t --- old/HTTP-Message-6.18/t/common-req.t 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/t/common-req.t 2020-02-24 19:58:16.000000000 +0100 @@ -2,7 +2,7 @@ use warnings; use Test::More; -plan tests => 64; +plan tests => 71; use HTTP::Request::Common; @@ -50,6 +50,23 @@ { foo => "bar" }; is($r->content, "foo=bar"); +$r = OPTIONS "http://www.sn.no", + Content => 'foo'; +note $r->as_string, "\n"; + +is($r->method, "OPTIONS"); +is($r->uri->host, "www.sn.no"); + +ok(!defined($r->header("Content"))); + +is(${$r->content_ref}, "foo"); +is($r->content, "foo"); +is($r->content_length, 3); + +$r = OPTIONS "http://www.sn.no", + { foo => "bar" }; +is($r->content, "foo=bar"); + $r = PATCH "http://www.sn.no", { foo => "bar" }; is($r->content, "foo=bar"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/t/message.t new/HTTP-Message-6.22/t/message.t --- old/HTTP-Message-6.18/t/message.t 2018-06-05 18:29:24.000000000 +0200 +++ new/HTTP-Message-6.22/t/message.t 2020-02-24 19:58:16.000000000 +0100 @@ -5,7 +5,7 @@ use Test::More; -plan tests => 194; +plan tests => 195; require HTTP::Message; use Config qw(%Config); @@ -596,3 +596,11 @@ is($m->content_charset, "UTF-16LE"); $m->content("\xFE\xFFaa/"); is($m->content_charset, "UTF-16BE"); + +{ + $m = HTTP::Message->new; + local $@ = 'pre-existing error'; + $m->decodable; + is($@, 'pre-existing error', 'decodable() does not overwrite $@'); +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/author/00-compile.t new/HTTP-Message-6.22/xt/author/00-compile.t --- old/HTTP-Message-6.18/xt/author/00-compile.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/author/00-compile.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,69 @@ +use 5.006; +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 + +use Test::More 0.94; + +plan tests => 11; + +my @module_files = ( + 'HTTP/Config.pm', + 'HTTP/Headers.pm', + 'HTTP/Headers/Auth.pm', + 'HTTP/Headers/ETag.pm', + 'HTTP/Headers/Util.pm', + 'HTTP/Message.pm', + 'HTTP/Request.pm', + 'HTTP/Request/Common.pm', + 'HTTP/Response.pm', + 'HTTP/Status.pm' +); + + + +# no fake home requested + +my @switches = ( + -d 'blib' ? '-Mblib' : '-Ilib', +); + +use File::Spec; +use IPC::Open3; +use IO::Handle; + +open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + +my @warnings; +for my $lib (@module_files) +{ + # see L<perlfaq8/How can I capture STDERR from an external command?> + my $stderr = IO::Handle->new; + + diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } + $^X, @switches, '-e', "require q[$lib]")) + if $ENV{PERL_COMPILE_TEST_DEBUG}; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($?, 0, "$lib loaded ok"); + + shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ + and not eval { +require blib; blib->VERSION('1.01') }; + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; + } +} + + + +is(scalar(@warnings), 0, 'no warnings found') + or diag 'got warnings: ', explain(\@warnings); + +BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/author/mojibake.t new/HTTP-Message-6.22/xt/author/mojibake.t --- old/HTTP-Message-6.18/xt/author/mojibake.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/author/mojibake.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,9 @@ +#!perl + +use strict; +use warnings qw(all); + +use Test::More; +use Test::Mojibake; + +all_files_encoding_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/author/pod-syntax.t new/HTTP-Message-6.22/xt/author/pod-syntax.t --- old/HTTP-Message-6.18/xt/author/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/author/pod-syntax.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/author/portability.t new/HTTP-Message-6.22/xt/author/portability.t --- old/HTTP-Message-6.18/xt/author/portability.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/author/portability.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,10 @@ +use strict; +use warnings; + +use Test::More; + +eval 'use Test::Portability::Files'; +plan skip_all => 'Test::Portability::Files required for testing portability' + if $@; + +run_tests(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/author/test-version.t new/HTTP-Message-6.22/xt/author/test-version.t --- old/HTTP-Message-6.18/xt/author/test-version.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/author/test-version.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,23 @@ +use strict; +use warnings; +use Test::More; + +# generated by Dist::Zilla::Plugin::Test::Version 1.09 +use Test::Version; + +my @imports = qw( version_all_ok ); + +my $params = { + is_strict => 0, + has_version => 1, + multiple => 0, + +}; + +push @imports, $params + if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); + +Test::Version->import(@imports); + +version_all_ok; +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Message-6.18/xt/release/changes_has_content.t new/HTTP-Message-6.22/xt/release/changes_has_content.t --- old/HTTP-Message-6.18/xt/release/changes_has_content.t 1970-01-01 01:00:00.000000000 +0100 +++ new/HTTP-Message-6.22/xt/release/changes_has_content.t 2020-02-24 19:58:16.000000000 +0100 @@ -0,0 +1,48 @@ +use Test::More tests => 2; + +if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') { + chomp(my $branch_name = ($ENV{TRAVIS_BRANCH} || `git rev-parse --abbrev-ref HEAD`)); + $TODO = 'Changes need not have content for this release yet if this is only the master branch' + if ($branch_name || '') eq 'master'; +} + +note 'Checking Changes'; +my $changes_file = 'Changes'; +my $newver = '6.22'; +my $trial_token = '-TRIAL'; +my $encoding = 'UTF-8'; + +SKIP: { + ok(-e $changes_file, "$changes_file file exists") + or skip 'Changes is missing', 1; + + ok(_get_changes($newver), "$changes_file has content for $newver"); +} + +done_testing; + +sub _get_changes +{ + my $newver = shift; + + # parse changelog to find commit message + open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; + my $changelog = join('', <$fh>); + if ($encoding) { + require Encode; + $changelog = Encode::decode($encoding, $changelog, Encode::FB_CROAK()); + } + close $fh; + + my @content = + grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented + split /\n/, $changelog; + shift @content; # drop the version line + + # drop unindented last line and trailing blank lines + pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ ); + + # return number of non-blank lines + return scalar @content; +} +
