Imported Upstream version 6.40 upstream/6.40
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:25 +0000 (11:28 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 21 Jul 2022 02:28:25 +0000 (11:28 +0900)
35 files changed:
Changes
META.json
META.yml
Makefile.PL
cpanfile
dist.ini
lib/LWP.pm
lib/LWP/Authen/Basic.pm
lib/LWP/Authen/Digest.pm
lib/LWP/Authen/Ntlm.pm
lib/LWP/ConnCache.pm
lib/LWP/Debug.pm
lib/LWP/Debug/TraceHTTP.pm
lib/LWP/DebugFile.pm
lib/LWP/MemberMixin.pm
lib/LWP/Protocol.pm
lib/LWP/Protocol/cpan.pm
lib/LWP/Protocol/data.pm
lib/LWP/Protocol/file.pm
lib/LWP/Protocol/ftp.pm
lib/LWP/Protocol/gopher.pm
lib/LWP/Protocol/http.pm
lib/LWP/Protocol/loopback.pm
lib/LWP/Protocol/mailto.pm
lib/LWP/Protocol/nntp.pm
lib/LWP/Protocol/nogo.pm
lib/LWP/RobotUA.pm
lib/LWP/Simple.pm
lib/LWP/UserAgent.pm
t/00-report-prereqs.dd
t/local/http.t
xt/author/live/jigsaw/auth-d.t
xt/author/minimum-version.t
xt/author/pod-spell.t
xt/release/changes_has_content.t

diff --git a/Changes b/Changes
index ac2191548cee9a087143d447a3aef993c841f2eb..372377f1a032fe317bf6798e8609c9e2abf36e94 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,15 @@
 Change history for libwww-perl
 
+6.40      2019-10-24 12:55:45Z
+    - Let Digest authentication act on nonce expiry (GH#313) (Frank Maas)
+    - Make file arg for mirror mandatory #304 (GH#326) (Julien Fiegehenn)
+    - Doc fix: fields starting with ":" have to be quoted (GH#324) (Slaven
+      Rezić)
+    - Fix documentation for removing all handlers (GH#319) (leedo)
+    - Ensure proper version of Dist::Zilla::Plugin::MakeMaker::Awesome
+    - Add TravisCI testing for Perl v5.30
+    - Clean up .perltidyrc
+
 6.39      2019-05-06 14:18:39Z
     - Document current best practices (GH#314) (Olaf Alders)
     - Document order in which handlers fire (GH#315) (Olaf Alders)
index ed68c8201e24e6a9e5db590a4018e2faf729dcad..99b6d467b5353d8e5a09a108272602bc291d5fbf 100644 (file)
--- a/META.json
+++ b/META.json
@@ -40,6 +40,7 @@
             "IPC::Open3" : "0",
             "Pod::Coverage::TrustPod" : "0",
             "Test::EOL" : "0",
+            "Test::LeakTrace" : "0.16",
             "Test::MinimumVersion" : "0",
             "Test::Mojibake" : "0",
             "Test::More" : "0.94",
    "provides" : {
       "LWP" : {
          "file" : "lib/LWP.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Authen::Basic" : {
          "file" : "lib/LWP/Authen/Basic.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Authen::Digest" : {
          "file" : "lib/LWP/Authen/Digest.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Authen::Ntlm" : {
          "file" : "lib/LWP/Authen/Ntlm.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::ConnCache" : {
          "file" : "lib/LWP/ConnCache.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Debug" : {
          "file" : "lib/LWP/Debug.pm",
-         "version" : "6.39",
+         "version" : "6.40",
          "x_deprecated" : 1
       },
       "LWP::Debug::TraceHTTP" : {
          "file" : "lib/LWP/Debug/TraceHTTP.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::DebugFile" : {
          "file" : "lib/LWP/DebugFile.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::MemberMixin" : {
          "file" : "lib/LWP/MemberMixin.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol" : {
          "file" : "lib/LWP/Protocol.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::cpan" : {
          "file" : "lib/LWP/Protocol/cpan.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::data" : {
          "file" : "lib/LWP/Protocol/data.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::file" : {
          "file" : "lib/LWP/Protocol/file.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::ftp" : {
          "file" : "lib/LWP/Protocol/ftp.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::gopher" : {
          "file" : "lib/LWP/Protocol/gopher.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::http" : {
          "file" : "lib/LWP/Protocol/http.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::loopback" : {
          "file" : "lib/LWP/Protocol/loopback.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::mailto" : {
          "file" : "lib/LWP/Protocol/mailto.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::nntp" : {
          "file" : "lib/LWP/Protocol/nntp.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Protocol::nogo" : {
          "file" : "lib/LWP/Protocol/nogo.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::RobotUA" : {
          "file" : "lib/LWP/RobotUA.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::Simple" : {
          "file" : "lib/LWP/Simple.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       },
       "LWP::UserAgent" : {
          "file" : "lib/LWP/UserAgent.pm",
-         "version" : "6.39"
+         "version" : "6.40"
       }
    },
    "release_status" : "stable",
       "x_IRC" : "irc://irc.perl.org/#lwp",
       "x_MailingList" : "mailto:libwww@perl.org"
    },
-   "version" : "6.39",
+   "version" : "6.40",
    "x_Dist_Zilla" : {
       "perl" : {
-         "version" : "5.026001"
+         "version" : "5.030000"
       },
       "plugins" : [
          {
                   "meta_noindex" : 1
                },
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000033",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "MetaProvides::Package",
             "class" : "Dist::Zilla::Plugin::Git::Contributors",
             "config" : {
                "Dist::Zilla::Plugin::Git::Contributors" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "include_authors" : 0,
                   "include_releaser" : 1,
                   "order_by" : "name",
             "class" : "Dist::Zilla::Plugin::InstallGuide",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000033",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "InstallGuide",
             "class" : "Dist::Zilla::Plugin::DynamicPrereqs",
             "config" : {
                "Dist::Zilla::Role::ModuleMetadata" : {
-                  "Module::Metadata" : "1.000033",
-                  "version" : "0.004"
+                  "Module::Metadata" : "1.000036",
+                  "version" : "0.006"
                }
             },
             "name" : "DynamicPrereqs",
-            "version" : "0.034"
+            "version" : "0.035"
          },
          {
             "class" : "Dist::Zilla::Plugin::MakeMaker::Awesome",
                }
             },
             "name" : "MakeMaker::Awesome",
-            "version" : "0.47"
+            "version" : "0.48"
          },
          {
             "class" : "Dist::Zilla::Plugin::MojibakeTests",
          },
          {
             "class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
+            "config" : {
+               "Dist::Zilla::Plugin::Test::MinimumVersion" : {
+                  "max_target_perl" : null
+               }
+            },
             "name" : "Test::MinimumVersion",
-            "version" : "2.000008"
+            "version" : "2.000010"
          },
          {
             "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "repo_root" : "."
                }
             },
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v6.39",
+                  "tag" : "v6.40",
                   "tag_format" : "v%V",
                   "tag_message" : "v%V"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
                   "remotes_must_exist" : 1
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.21.0",
+                  "git_version" : "2.23.0",
                   "repo_root" : "."
                }
             },
       "Joe Atzberger <ohiocore@gmail.com>",
       "john9art <john9art@yahoo.com>",
       "John Wittkoski <jwittkoski@gmail.com>",
+      "Julien Fiegehenn <simbabque@cpan.org>",
       "Karen Etheridge <ether@cpan.org>",
       "Katarina Durechova <katarina.durechova@nic.cz>",
+      "leedo <leedo@users.noreply.github.com>",
       "Mark Stosberg <mark@stosberg.com>",
       "Martin H. Sluka <martin@sluka.de>",
       "Matthew Horsfall <wolfsage@gmail.com>",
       "Sean M. Burke <sburke@cpan.org>",
       "Sergey Romanov <sromanov-dev@yandex.ru>",
       "Shoichi Kaji <skaji@cpan.org>",
-      "simbabque <simbabque@cpan.org>",
       "Slaven Rezic <slaven@rezic.de>",
       "Spiros Denaxas <s.denaxas@gmail.com>",
       "Steffen Ullrich <Steffen_Ullrich@genua.de>",
       "Yury Zavarin <yury.zavarin@gmail.com>",
       "Zefram <zefram@fysh.org>"
    ],
-   "x_generated_by_perl" : "v5.26.1",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.04"
+   "x_generated_by_perl" : "v5.30.0",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.14"
 }
 
index 0173f02952710784a645fd1ace912a824a5e1b4e..1b1856c4c62f4fa55bd9529508b76bc7f677fe2a 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -30,74 +30,74 @@ no_index:
 provides:
   LWP:
     file: lib/LWP.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Authen::Basic:
     file: lib/LWP/Authen/Basic.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Authen::Digest:
     file: lib/LWP/Authen/Digest.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Authen::Ntlm:
     file: lib/LWP/Authen/Ntlm.pm
-    version: '6.39'
+    version: '6.40'
   LWP::ConnCache:
     file: lib/LWP/ConnCache.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Debug:
     file: lib/LWP/Debug.pm
-    version: '6.39'
+    version: '6.40'
     x_deprecated: 1
   LWP::Debug::TraceHTTP:
     file: lib/LWP/Debug/TraceHTTP.pm
-    version: '6.39'
+    version: '6.40'
   LWP::DebugFile:
     file: lib/LWP/DebugFile.pm
-    version: '6.39'
+    version: '6.40'
   LWP::MemberMixin:
     file: lib/LWP/MemberMixin.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol:
     file: lib/LWP/Protocol.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::cpan:
     file: lib/LWP/Protocol/cpan.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::data:
     file: lib/LWP/Protocol/data.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::file:
     file: lib/LWP/Protocol/file.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::ftp:
     file: lib/LWP/Protocol/ftp.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::gopher:
     file: lib/LWP/Protocol/gopher.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::http:
     file: lib/LWP/Protocol/http.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::loopback:
     file: lib/LWP/Protocol/loopback.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::mailto:
     file: lib/LWP/Protocol/mailto.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::nntp:
     file: lib/LWP/Protocol/nntp.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Protocol::nogo:
     file: lib/LWP/Protocol/nogo.pm
-    version: '6.39'
+    version: '6.40'
   LWP::RobotUA:
     file: lib/LWP/RobotUA.pm
-    version: '6.39'
+    version: '6.40'
   LWP::Simple:
     file: lib/LWP/Simple.pm
-    version: '6.39'
+    version: '6.40'
   LWP::UserAgent:
     file: lib/LWP/UserAgent.pm
-    version: '6.39'
+    version: '6.40'
 requires:
   Digest::MD5: '0'
   Encode: '2.12'
@@ -134,10 +134,10 @@ resources:
   bugtracker: https://github.com/libwww-perl/libwww-perl/issues
   homepage: https://github.com/libwww-perl/libwww-perl
   repository: https://github.com/libwww-perl/libwww-perl.git
-version: '6.39'
+version: '6.40'
 x_Dist_Zilla:
   perl:
-    version: '5.026001'
+    version: '5.030000'
   plugins:
     -
       class: Dist::Zilla::Plugin::Git::GatherDir
@@ -177,8 +177,8 @@ x_Dist_Zilla:
           inherit_version: '1'
           meta_noindex: '1'
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000033'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: MetaProvides::Package
       version: '2.004003'
     -
@@ -210,7 +210,7 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::Git::Contributors
       config:
         Dist::Zilla::Plugin::Git::Contributors:
-          git_version: 2.21.0
+          git_version: 2.23.0
           include_authors: 0
           include_releaser: 1
           order_by: name
@@ -237,8 +237,8 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::InstallGuide
       config:
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000033'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: InstallGuide
       version: '1.200013'
     -
@@ -253,10 +253,10 @@ x_Dist_Zilla:
       class: Dist::Zilla::Plugin::DynamicPrereqs
       config:
         Dist::Zilla::Role::ModuleMetadata:
-          Module::Metadata: '1.000033'
-          version: '0.004'
+          Module::Metadata: '1.000036'
+          version: '0.006'
       name: DynamicPrereqs
-      version: '0.034'
+      version: '0.035'
     -
       class: Dist::Zilla::Plugin::MakeMaker::Awesome
       config:
@@ -267,7 +267,7 @@ x_Dist_Zilla:
           default_jobs: 1
           version: '6.012'
       name: MakeMaker::Awesome
-      version: '0.47'
+      version: '0.48'
     -
       class: Dist::Zilla::Plugin::MojibakeTests
       name: MojibakeTests
@@ -331,8 +331,11 @@ x_Dist_Zilla:
       version: '0.006'
     -
       class: Dist::Zilla::Plugin::Test::MinimumVersion
+      config:
+        Dist::Zilla::Plugin::Test::MinimumVersion:
+          max_target_perl: ~
       name: Test::MinimumVersion
-      version: '2.000008'
+      version: '2.000010'
     -
       class: Dist::Zilla::Plugin::PodSyntaxTests
       name: PodSyntaxTests
@@ -478,7 +481,7 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.21.0
+          git_version: 2.23.0
           repo_root: .
       name: Git::Check
       version: '2.046'
@@ -575,7 +578,7 @@ x_Dist_Zilla:
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.21.0
+          git_version: 2.23.0
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -588,11 +591,11 @@ x_Dist_Zilla:
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v6.39
+          tag: v6.40
           tag_format: v%V
           tag_message: v%V
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.21.0
+          git_version: 2.23.0
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -629,7 +632,7 @@ x_Dist_Zilla:
             - (?^:^lib/.*\.pm$)
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.21.0
+          git_version: 2.23.0
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -643,7 +646,7 @@ x_Dist_Zilla:
             - origin
           remotes_must_exist: 1
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.21.0
+          git_version: 2.23.0
           repo_root: .
       name: Git::Push
       version: '2.046'
@@ -746,8 +749,10 @@ x_contributors:
   - 'Joe Atzberger <ohiocore@gmail.com>'
   - 'john9art <john9art@yahoo.com>'
   - 'John Wittkoski <jwittkoski@gmail.com>'
+  - 'Julien Fiegehenn <simbabque@cpan.org>'
   - 'Karen Etheridge <ether@cpan.org>'
   - 'Katarina Durechova <katarina.durechova@nic.cz>'
+  - 'leedo <leedo@users.noreply.github.com>'
   - 'Mark Stosberg <mark@stosberg.com>'
   - 'Martin H. Sluka <martin@sluka.de>'
   - 'Matthew Horsfall <wolfsage@gmail.com>'
@@ -773,7 +778,6 @@ x_contributors:
   - 'Sean M. Burke <sburke@cpan.org>'
   - 'Sergey Romanov <sromanov-dev@yandex.ru>'
   - 'Shoichi Kaji <skaji@cpan.org>'
-  - 'simbabque <simbabque@cpan.org>'
   - 'Slaven Rezic <slaven@rezic.de>'
   - 'Spiros Denaxas <s.denaxas@gmail.com>'
   - 'Steffen Ullrich <Steffen_Ullrich@genua.de>'
@@ -794,5 +798,5 @@ x_contributors:
   - 'Yuri Karaban <tech@askold.net>'
   - 'Yury Zavarin <yury.zavarin@gmail.com>'
   - 'Zefram <zefram@fysh.org>'
-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'
index 67b0ccf4503ecce7a4ceafc4905d522439a5efc8..82a2d6c51a3f1833717fc3c0f64bf594c17f0c9d 100644 (file)
@@ -1,5 +1,5 @@
 # This Makefile.PL for libwww-perl was generated by
-# Dist::Zilla::Plugin::MakeMaker::Awesome 0.47.
+# Dist::Zilla::Plugin::MakeMaker::Awesome 0.48.
 # Don't edit it but the dist.ini and plugins used to construct it.
 
 use strict;
@@ -86,7 +86,7 @@ my %WriteMakefileArgs = (
     "Test::Needs" => 0,
     "Test::RequiresInternet" => 0
   },
-  "VERSION" => "6.39",
+  "VERSION" => "6.40",
   "test" => {
     "TESTS" => "t/*.t t/base/*.t t/base/protocols/*.t t/leak/*.t t/local/*.t t/robot/*.t"
   }
@@ -135,7 +135,7 @@ my %FallbackPrereqs = (
   "warnings" => 0
 );
 
-# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.034
+# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.035
 requires('HTTP::Status', '6.18') if has_module('HTTP::Status', '6.17');
 
 unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
@@ -149,7 +149,7 @@ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
 
 WriteMakefile(%WriteMakefileArgs);
 
-# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.034
+# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.035
 sub _add_prereq {
   my ($mm_key, $module, $version_or_range) = @_;
   $version_or_range ||= 0;
index a3c7903dc56f0025756532e79d58b79949cabecc..3584ea0c6a927c785f5bb10811ca9d0a46b970dc 100644 (file)
--- a/cpanfile
+++ b/cpanfile
@@ -51,4 +51,6 @@ on 'test' => sub {
 
 on 'develop' => sub {
     requires 'Authen::NTLM' => '1.02';
+    requires 'Test::EOL' => '2.00',
+    requires 'Test::LeakTrace' => '0.16',
 };
index f52d2a2e72a909146994d38681a6ee077d1727e1..8e585764c3c0262543d0902f53a03caf41aeb5a1 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -47,6 +47,7 @@ authority = cpan:LWWWP
 -body = requires('HTTP::Status', '6.18') if has_module('HTTP::Status', '6.17');
 
 [MakeMaker::Awesome]
+:version = 0.27
 delimiter = |
 header = |use Getopt::Long qw(GetOptions);
 header = |GetOptions(\my %opt,
index 47a8e2011d37a4924ba125d034d536e4b363e4d2..298e8fb4a654806ceda8f6f3699a728052c14ae5 100644 (file)
@@ -1,6 +1,6 @@
 package LWP;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require LWP::UserAgent;  # this should load everything you need
 
index f24a3e5ff8cf51d1d0879ae4100e7f0264aa831f..ead55923f518feb173d2fb70542a3dca137b26c2 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Basic;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require MIME::Base64;
 
index 0376d15d393a1aab6d427ba52d15fbe7863f52b1..2f7c24bc878fcd957481440c62abd3aff39da71f 100644 (file)
@@ -3,7 +3,7 @@ package LWP::Authen::Digest;
 use strict;
 use base 'LWP::Authen::Basic';
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require Digest::MD5;
 
index 0808e76512f0aab397dd941dbd3d6c7cdfc74e2c..afdb78781e434d3e5cd205fb5870c3d2d450120f 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Authen::Ntlm;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 use Authen::NTLM "1.02";
 use MIME::Base64 "2.12";
index 63e7088fedbe203df3dac0a7fea843493c308771..3c34a8ed4d936a57ba8799f3e1145302549c8381 100644 (file)
@@ -2,7 +2,7 @@ package LWP::ConnCache;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 our $DEBUG;
 
 sub new {
index ddf7fc191b887f133e7ba962726add99244c3a4d..49befb5f6cd63f043dd9491dcfeea10154c4ce20 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::Debug;    # legacy
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require Exporter;
 our @ISA       = qw(Exporter);
index 1b1ffca21bf96ddadf4b877160d4a097f3fc255e..5c9caa46a639c9d1c129347a9302d70015ee13d8 100644 (file)
@@ -11,7 +11,7 @@ package LWP::Debug::TraceHTTP;
 use strict;
 use base 'LWP::Protocol::http';
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 package # hide from PAUSE
     LWP::Debug::TraceHTTP::Socket;
index d5762f672a2206139f0c6bdf60edb944dc56bf27..5d921799041d2813dbe0b2f6ac05534eecdbb662 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::DebugFile;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 # legacy stub
 
index 965b94f995d581426c646e5df2c6c7949ca1987a..c50fb45a365fe3f029951074a18ae67d3160bb63 100644 (file)
@@ -1,6 +1,6 @@
 package LWP::MemberMixin;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 sub _elem {
     my $self = shift;
index dff69ac039a38ba44422b0c525801c337c716cb5..a411125eca9c9d7a557a5c5defc8341fcbfca6ff 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol;
 
 use base 'LWP::MemberMixin';
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 use strict;
 use Carp ();
index 12e2ce9fb58fc161c0a2142397594ba9b3b39399..2583ceb96f69d24acf9f144628fd965a4239805f 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require URI;
 require HTTP::Status;
index 186cea03b66e3c36498cb21e25bc56a4d1fd0fa0..3160ff6f7a6a1a0907e4fad62de6984dbbe9dfa9 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::data;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 require HTTP::Status;
index 18a11ed28e432e297fb105e1387db9afdbe3e5b4..a6740c6edcb2c070f592a94d49299d8bf2b903c6 100644 (file)
@@ -4,7 +4,7 @@ use base qw(LWP::Protocol);
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require LWP::MediaTypes;
 require HTTP::Request;
index 9bd705a4bf4af0f1cb4fc88a21535cfb2e0ef424..231a9b422152ec35f38912fea3c3e303e250d259 100644 (file)
@@ -5,7 +5,7 @@ package LWP::Protocol::ftp;
 use base qw(LWP::Protocol);
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 use Carp            ();
 use HTTP::Status    ();
index a89ad28c757a330ead122a8869feba227189419f..7f7f59fb7ddfb6f757587615ec14ca0f2b5e49eb 100644 (file)
@@ -9,7 +9,7 @@ package LWP::Protocol::gopher;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 require HTTP::Status;
index 9aaf19892cd6b97312ea9b1d6c84768b853320ea..aa51f7938a06653e2275b46a312bea1b796ed0a6 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::http;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 require HTTP::Status;
index d50fa53f8ea3cd4356aad880ab89b3cdf1ec54f0..f742d20dba3d0e82e7b104cb9bce217419e858d2 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Protocol::loopback;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 
index 6e205ec09fa9384dee573a82bf0cde2514b686d5..b842bea2a75eb32bf7407be4ba002d650896645d 100644 (file)
@@ -11,7 +11,7 @@ require HTTP::Status;
 use Carp;
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 use base qw(LWP::Protocol);
 our $SENDMAIL;
index e69330fba754ef92b618c9cb78de2444cfc97ee4..70384b848d3f93db48e228f95c123e80538e26a1 100644 (file)
@@ -4,7 +4,7 @@ package LWP::Protocol::nntp;
 
 use base qw(LWP::Protocol);
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 require HTTP::Status;
index a362faed2686c61a09c6f608be19f6afadf97900..f07aa82661c63193e9e8a6e6f75e9526bfad4135 100644 (file)
@@ -7,7 +7,7 @@ package LWP::Protocol::nogo;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require HTTP::Response;
 require HTTP::Status;
index c2b46512b245cb022c96e21d7cd2679dcadaa997..3bfef475b80aea25a5258929eb297b233e35d461 100644 (file)
@@ -2,7 +2,7 @@ package LWP::RobotUA;
 
 use base qw(LWP::UserAgent);
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require WWW::RobotRules;
 require HTTP::Request;
index 75cb7d02e16e2dbba8e14b8587133b0a2400a7d1..e2968e7380551dd23fe4fb4b0fa925f58eb8fdb9 100644 (file)
@@ -2,7 +2,7 @@ package LWP::Simple;
 
 use strict;
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 require Exporter;
 
index 3690bd5df284ef36339d5a9e48ea7a42e6c15476..c209de9f2ced13b94fa56e2b83b878db0b01602f 100644 (file)
@@ -15,7 +15,7 @@ use LWP::Protocol ();
 use Scalar::Util qw(blessed);
 use Try::Tiny qw(try catch);
 
-our $VERSION = '6.39';
+our $VERSION = '6.40';
 
 sub new
 {
@@ -966,6 +966,8 @@ sub mirror
 {
     my($self, $url, $file) = @_;
 
+    die "Local file name is missing" unless $file;
+
     my $request = HTTP::Request->new('GET', $url);
 
     # If the file exists, add a cache-related header
@@ -979,10 +981,10 @@ sub mirror
 
     my $response = $self->request($request, $tmpfile);
     if ( $response->header('X-Died') ) {
-       die $response->header('X-Died');
+        die $response->header('X-Died');
     }
 
-    # Only fetching a fresh copy of the would be considered success.
+    # Only fetching a fresh copy of the file would be considered success.
     # If the file was not modified, "304" would returned, which
     # is considered by HTTP::Status to be a "redirect", /not/ "success"
     if ( $response->is_success ) {
@@ -1017,7 +1019,7 @@ sub mirror
     }
     # The local copy is fresh enough, so just delete the temp file
     else {
-       unlink($tmpfile);
+        unlink($tmpfile);
     }
     return $response;
 }
@@ -1732,7 +1734,7 @@ the given processing phase.
 
     $ua->remove_handler( undef, %matchspec );
     $ua->remove_handler( $phase, %matchspec );
-    $ua->remove_handlers(); # REMOVE ALL HANDLERS IN ALL PHASES
+    $ua->remove_handler(); # REMOVE ALL HANDLERS IN ALL PHASES
 
 Remove handlers that match the given C<%matchspec>.  If C<$phase> is not
 provided, remove handlers from all phases.
@@ -1796,9 +1798,9 @@ Fields names that start with ":" are special.  These will not
 initialize headers of the request but will determine how the response
 content is treated.  The following special field names are recognized:
 
-    :content_file   => $filename
-    :content_cb     => \&callback
-    :read_size_hint => $bytes
+    ':content_file'   => $filename
+    ':content_cb'     => \&callback
+    ':read_size_hint' => $bytes
 
 If a $filename is provided with the C<:content_file> option, then the
 response content will be saved here instead of in the response
index fa59361b1fdb5264c4c3cb7036ba08f6b9806f8d..3318bd33912e118ac52448b563a1b75f939a02e1 100644 (file)
@@ -19,6 +19,7 @@ do { my $x = {
                                       'IPC::Open3' => '0',
                                       'Pod::Coverage::TrustPod' => '0',
                                       'Test::EOL' => '0',
+                                      'Test::LeakTrace' => '0.16',
                                       'Test::MinimumVersion' => '0',
                                       'Test::Mojibake' => '0',
                                       'Test::More' => '0.94',
index 9046a72d49ee6602aca123ead6f4b9d1472d7acf..c4779c41c52751fa503468f590ca886fd75638e6 100644 (file)
@@ -1,6 +1,7 @@
 use strict;
 use warnings;
 use Test::More;
+use Test::Fatal;
 
 use Config;
 use FindBin qw($Bin);
@@ -62,7 +63,7 @@ sub _test {
     return plan skip_all => 'We could not talk to our daemon' unless $DAEMON;
     return plan skip_all => 'No base URI' unless $base;
 
-    plan tests => 90;
+    plan tests => 94;
 
     my $ua = LWP::UserAgent->new;
     $ua->agent("Mozilla/0.01 " . $ua->agent);
@@ -288,6 +289,16 @@ sub _test {
         ok($res->is_success, 'post: is_success');
         ok($res->content =~ /^Content-Type: multipart\/form-data; boundary=/m, 'post: multipart good');
     }
+    { # mirror
+        ok(exception { $ua->mirror(url("/echo/foo", $base)) }, 'mirror: filename required');
+        my $copy = "lwp-base-test-$$"; # downloaded copy
+        my $res = $ua->mirror(url("/echo/foo", $base), $copy);
+        isa_ok($res, 'HTTP::Response', 'mirror: good response object');
+        ok($res->is_success, 'mirror: is_success');
+
+        ok(-s $copy, 'mirror: file exists and is not empty');
+        unlink($copy);
+    }
     { # partial
         my $req = HTTP::Request->new(  GET => url("/partial", $base) );
         my $res = $ua->request($req);
index 7d03f21b685471b74c0a4b00c3a6c302fdede173..ce5224e82ae9548d2578adfafcb109423c74519d 100644 (file)
@@ -6,9 +6,8 @@ use Test::RequiresInternet ('jigsaw.w3.org' => 80);
 use HTTP::Request;
 use LWP::UserAgent;
 
-plan tests => 3;
-
 {
+
     package MyUA;
     use base 'LWP::UserAgent';
 
@@ -21,11 +20,18 @@ plan tests => 3;
     }
 }
 
-my $ua = MyUA->new(keep_alive => 1);
+SKIP: {
+    skip 'LIVE_JIGSAW_TESTS not enabled', 3 if $ENV{NO_JIGSAW};
+
+    my $ua = MyUA->new(keep_alive => 1);
 
-my $req = HTTP::Request->new(GET => "http://jigsaw.w3.org/HTTP/Digest/");
-my $res = $ua->request($req);
-isa_ok($res, 'HTTP::Response', 'request: Got a proper response');
+    my $req = HTTP::Request->new(GET => "http://jigsaw.w3.org/HTTP/Digest/");
+    my $res = $ua->request($req);
+
+    isa_ok($res, 'HTTP::Response', 'request: Got a proper response');
+
+    like($res->content, qr/Your browser made it!/, 'Proper response content');
+    is($res->header("Client-Response-Num"), 5, 'Client-Response-Num is 5');
+}
 
-like($res->content, qr/Your browser made it!/, 'Proper response content');
-is($res->header("Client-Response-Num"), 5, 'Client-Response-Num is 5');
+done_testing();
index 6af92e03b8c1446ff6720309176cc01790326e7b..bed9e181020f7b3dd7f11f4eb8916c524ecd0d66 100644 (file)
@@ -1,6 +1,6 @@
-#!perl
+use strict;
+use warnings;
 
 use Test::More;
-
 use Test::MinimumVersion;
 all_minimum_version_from_metayml_ok();
index b4eed0462e7491da9b49b06072788816a4156b1e..ae32c4383169236101f6d31df28c468749534135 100644 (file)
@@ -73,6 +73,7 @@ FWILES
 Fabian
 Father
 Fesler
+Fiegehenn
 Finch
 Froehlich
 Gavin
@@ -115,6 +116,7 @@ Joe
 Joerg
 John
 Jr
+Julien
 KONISHI
 Kaji
 Kaminsky
@@ -335,6 +337,7 @@ jwilk
 jwittkoski
 ka
 katarina
+leedo
 lib
 loopback
 lwp
index c0586ee12ae81b6f22f0a35061a488c72efb3c44..2130150a8a346564f29b0bb2f73b5e8a59956946 100644 (file)
@@ -8,7 +8,7 @@ if (($ENV{TRAVIS_PULL_REQUEST} || '') eq 'false') {
 
 note 'Checking Changes';
 my $changes_file = 'Changes';
-my $newver = '6.39';
+my $newver = '6.40';
 my $trial_token = '-TRIAL';
 my $encoding = 'UTF-8';