diff -Nru libnet-https-any-perl-0.10/Changes libnet-https-any-perl-0.11/Changes --- libnet-https-any-perl-0.10/Changes 2010-05-01 20:39:49.000000000 +0000 +++ libnet-https-any-perl-0.11/Changes 2014-07-27 00:30:53.000000000 +0000 @@ -1,5 +1,14 @@ Revision history for Net-HTTPS-Any +0.11 Sat Jul 26 17:30:43 PDT 2014 + - doc: update example in synopsis + - Depend on Net::SSLeay and test on it (and not Crypt::SSLeay), to + eliminate spurious test failures and increase installability. Alas, + but the last four years have not provided OR relationships in CPAN + dependencies (closes: CPAN#73363) + - doc: spelling (closes: CPAN#88510) + - test: fix 404 test + 0.10 Sat May 1 13:39:39 PDT 2010 - Pull in changes from Business::OnlinePayment::HTTPS 0.09 from Business::OnlinePayment 3.00 diff -Nru libnet-https-any-perl-0.10/debian/changelog libnet-https-any-perl-0.11/debian/changelog --- libnet-https-any-perl-0.10/debian/changelog 2010-05-27 20:57:59.000000000 +0000 +++ libnet-https-any-perl-0.11/debian/changelog 2014-07-27 14:22:47.000000000 +0000 @@ -1,3 +1,32 @@ +libnet-https-any-perl (0.11-1) unstable; urgency=low + + [ Fabrizio Regalli ] + * Add myself to Uploaders and Copyright. + * Switch d/compat to 8. + * Build-Depends: switch to debhelper (>= 8). + * Fixed lintian copyright-refers-to-symlink-license message. + + [ Ansgar Burchardt ] + * debian/control: Convert Vcs-* fields to Git. + + [ Salvatore Bonaccorso ] + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ Xavier Guimard ] + * Add myself to Uploaders and Copyright. + * Bump debian/copyright format to 1.0 + * Bump Standards-Version to 3.9.4 + * Update short description + + [ gregor herrmann ] + * New upstream release. + * Update years of copyright. + * Update build dependencies. + * Update long description. + * Declare compliance with Debian Policy 3.9.5. + + -- gregor herrmann Sun, 27 Jul 2014 16:22:19 +0200 + libnet-https-any-perl (0.10-3) unstable; urgency=low * Explicitly run only the non-network tests (closes: #583462). diff -Nru libnet-https-any-perl-0.10/debian/compat libnet-https-any-perl-0.11/debian/compat --- libnet-https-any-perl-0.10/debian/compat 2010-05-27 20:47:29.000000000 +0000 +++ libnet-https-any-perl-0.11/debian/compat 2014-07-27 14:22:47.000000000 +0000 @@ -1 +1 @@ -7 +8 diff -Nru libnet-https-any-perl-0.10/debian/control libnet-https-any-perl-0.11/debian/control --- libnet-https-any-perl-0.10/debian/control 2010-05-27 20:53:35.000000000 +0000 +++ libnet-https-any-perl-0.11/debian/control 2014-07-27 14:22:47.000000000 +0000 @@ -1,26 +1,41 @@ Source: libnet-https-any-perl -Section: perl -Priority: optional -Build-Depends: debhelper (>= 7.0.50~) -Build-Depends-Indep: libnet-ssleay-perl, libcrypt-ssleay-perl, libwww-perl, - libtie-ixhash-perl, liburi-perl, libtest-pod-perl, libtest-pod-coverage-perl, - perl Maintainer: Debian Perl Group Uploaders: Ivan Kohler , - gregor herrmann -Standards-Version: 3.8.4 -Homepage: http://search.cpan.org/dist/Net-HTTPS-Any/ -Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libnet-https-any-perl/ -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libnet-https-any-perl/ + gregor herrmann , + Fabrizio Regalli , + Xavier Guimard +Section: perl +Priority: optional +Build-Depends: debhelper (>= 8) +Build-Depends-Indep: libnet-ssleay-perl, + libtest-pod-coverage-perl, + libtest-pod-perl, + libtie-ixhash-perl, + liburi-perl, + perl +Standards-Version: 3.9.5 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnet-https-any-perl.git +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnet-https-any-perl.git +Homepage: https://metacpan.org/release/Net-HTTPS-Any Package: libnet-https-any-perl Architecture: all -Depends: ${misc:Depends}, ${perl:Depends}, libnet-ssleay-perl | - libcrypt-ssleay-perl, libnet-ssleay-perl | libwww-perl, libtie-ixhash-perl, - liburi-perl, perl -Description: Perl module for HTTPS GET and POST using any available SSL module - Net-HTTPS-Any is a simple wrapper around either of the two available SSL +Depends: ${misc:Depends}, + ${perl:Depends}, + libnet-ssleay-perl | libcrypt-ssleay-perl, + libnet-ssleay-perl | libwww-perl, + libtie-ixhash-perl, + liburi-perl +Description: simple wrapper around the two available SSL modules + Net::HTTPS::Any is a simple wrapper around either of the two available SSL modules. It offers a unified API for sending GET and POST requests over HTTPS and receiving responses. . It depends on Net::SSLeay _or_ ( Crypt::SSLeay and LWP::UserAgent ). + . + Using LWP::Protocol::https 6.02 or later, the LWP path actually uses + Net::SSLeay also instead of Crypt::SSLeay. Going forward that makes this + module more of historical interest, especially so since modern LWP has its own + mechanism to force use of Crypt::SSLeay: + . + $Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL"; diff -Nru libnet-https-any-perl-0.10/debian/copyright libnet-https-any-perl-0.11/debian/copyright --- libnet-https-any-perl-0.10/debian/copyright 2010-05-27 20:57:38.000000000 +0000 +++ libnet-https-any-perl-0.11/debian/copyright 2014-07-27 14:22:47.000000000 +0000 @@ -1,23 +1,25 @@ -Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 -Maintainer: Ivan Kohler -Source: http://search.cpan.org/dist/Net-HTTPS-Any/ -Name: Net-HTTPS-Any +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Net-HTTPS-Any +Source: https://metacpan.org/release/Net-HTTPS-Any +Upstream-Contact: Ivan Kohler Files: * -Copyright: 2008-2010, Freeside Internet Services, Inc. +Copyright: 2008-2014, Freeside Internet Services, Inc. License: Artistic or GPL-1+ Files: debian/* Copyright: 2010, Ivan Kohler - 2010, gregor herrmann + 2010-2014, gregor herrmann + 2011, Fabrizio Regalli + 2013, Xavier Guimard License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . - On Debian GNU/Linux systems, the complete text of the Artistic License - can be found in `/usr/share/common-licenses/Artistic' + On Debian systems, the complete text of the Artistic License can be + found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify @@ -25,5 +27,5 @@ the Free Software Foundation; either version 1, or (at your option) any later version. . - On Debian GNU/Linux systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL' + On Debian systems, the complete text of version 1 of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-1'. diff -Nru libnet-https-any-perl-0.10/debian/watch libnet-https-any-perl-0.11/debian/watch --- libnet-https-any-perl-0.10/debian/watch 2010-05-27 20:47:29.000000000 +0000 +++ libnet-https-any-perl-0.11/debian/watch 2014-07-27 14:22:47.000000000 +0000 @@ -1,2 +1,2 @@ version=3 -http://search.cpan.org/dist/Net-HTTPS-Any/ .*/Net-HTTPS-Any-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/Net-HTTPS-Any .*/Net-HTTPS-Any-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ diff -Nru libnet-https-any-perl-0.10/lib/Net/HTTPS/Any.pm libnet-https-any-perl-0.11/lib/Net/HTTPS/Any.pm --- libnet-https-any-perl-0.10/lib/Net/HTTPS/Any.pm 2010-05-01 20:37:02.000000000 +0000 +++ libnet-https-any-perl-0.11/lib/Net/HTTPS/Any.pm 2014-07-27 00:25:22.000000000 +0000 @@ -43,11 +43,11 @@ =head1 NAME -Net::HTTPS::Any - Simple HTTPS class using whichever underlying SSL module is available +Net::HTTPS::Any - Simple HTTPS client using whichever underlying SSL module is available =cut -our $VERSION = '0.10'; +our $VERSION = '0.11'; =head1 SYNOPSIS @@ -58,6 +58,8 @@ { 'host' => 'www.fortify.net', 'port' => 443, 'path' => '/sslcheck.html', + 'args' => { 'field' => 'value' }, + #'args' => [ 'field'=>'value' ], #order preserved }, ); @@ -91,6 +93,17 @@ for speaking HTTPS may make things easier on your users. It allows your code to be used with either SSL implementation. +=head1 FUTURE + +Using LWP::Protocol::https 6.02 or later, the LWP path actually uses +Net::SSLeay also instead of Crypt::SSLeay. Going forward that makes this +module more of historical interest, especially so since modern LWP has its own +mechanism to force use of Crypt::SSLeay: + $Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL"; + +Therefore this module will likely eventually become a wrapper around a single +codepath, driven by the conservative needs of Business::OnlinePayment::HTTPS. + =head1 FUNCTIONS =head2 https_get HASHREF | FIELD => VALUE, ... @@ -119,7 +132,7 @@ =item args -CGI arguments, eitehr as a hashref or a listref. In the latter case, ordering +CGI arguments, either as a hashref or a listref. In the latter case, ordering is preserved (see L to do so when passing a hashref). =item debug @@ -238,7 +251,7 @@ =item args -CGI arguments, eitehr as a hashref or a listref. In the latter case, ordering +CGI arguments, either as a hashref or a listref. In the latter case, ordering is preserved (see L to do so when passing a hashref). =item content @@ -388,7 +401,7 @@ =head1 COPYRIGHT & LICENSE -Copyright 2008-2010 Freeside Internet Services, Inc. (http://freeside.biz/) +Copyright 2008-2014 Freeside Internet Services, Inc. (http://freeside.biz/) All rights reserved. This program is free software; you can redistribute it and/or modify it diff -Nru libnet-https-any-perl-0.10/Makefile.PL libnet-https-any-perl-0.11/Makefile.PL --- libnet-https-any-perl-0.10/Makefile.PL 2010-05-01 04:39:27.000000000 +0000 +++ libnet-https-any-perl-0.11/Makefile.PL 2014-05-12 22:27:27.000000000 +0000 @@ -17,6 +17,11 @@ # 'Net::SSLeay' => 0, # or 'Crypt::SSLeay' => 0, # 'LWP' => 0, + + #failing tests is worse, Net::SSLeay appears to finally have emerged + # as best-practice with the release of LWP::Protocol::https that uses + # IO::Socket::SSL and therefore Net::SSLeay + 'Net::SSLeay' => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Net-HTTPS-Any-*' }, diff -Nru libnet-https-any-perl-0.10/MANIFEST libnet-https-any-perl-0.11/MANIFEST --- libnet-https-any-perl-0.10/MANIFEST 2010-05-01 20:41:20.000000000 +0000 +++ libnet-https-any-perl-0.11/MANIFEST 2014-07-27 00:31:16.000000000 +0000 @@ -10,4 +10,5 @@ t/pod.t t/post-cryptssleay.t t/post-netssleay.t -META.yml Module meta-data (added by MakeMaker) +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -Nru libnet-https-any-perl-0.10/META.json libnet-https-any-perl-0.11/META.json --- libnet-https-any-perl-0.10/META.json 1970-01-01 00:00:00.000000000 +0000 +++ libnet-https-any-perl-0.11/META.json 2014-07-27 00:31:16.000000000 +0000 @@ -0,0 +1,44 @@ +{ + "abstract" : "Simple HTTPS client using whichever underlying SSL module is available", + "author" : [ + "Ivan Kohler " + ], + "dynamic_config" : 1, + "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.120921", + "license" : [ + "unknown" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Net-HTTPS-Any", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "Net::SSLeay" : "0", + "Test::More" : "0", + "Tie::IxHash" : "0", + "URI::Escape" : "0" + } + } + }, + "release_status" : "stable", + "version" : "0.11" +} diff -Nru libnet-https-any-perl-0.10/META.yml libnet-https-any-perl-0.11/META.yml --- libnet-https-any-perl-0.10/META.yml 2010-05-01 20:41:20.000000000 +0000 +++ libnet-https-any-perl-0.11/META.yml 2014-07-27 00:31:16.000000000 +0000 @@ -1,24 +1,25 @@ ---- #YAML:1.0 -name: Net-HTTPS-Any -version: 0.10 -abstract: Simple HTTPS class using whichever underlying SSL module is available +--- +abstract: 'Simple HTTPS client using whichever underlying SSL module is available' author: - - Ivan Kohler -license: unknown -distribution_type: module -configure_requires: - ExtUtils::MakeMaker: 0 + - 'Ivan Kohler ' build_requires: - ExtUtils::MakeMaker: 0 -requires: - Test::More: 0 - Tie::IxHash: 0 - URI::Escape: 0 -no_index: - directory: - - t - - inc -generated_by: ExtUtils::MakeMaker version 6.55_02 + ExtUtils::MakeMaker: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 1 +generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.120921' +license: unknown meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: Net-HTTPS-Any +no_index: + directory: + - t + - inc +requires: + Net::SSLeay: 0 + Test::More: 0 + Tie::IxHash: 0 + URI::Escape: 0 +version: 0.11 diff -Nru libnet-https-any-perl-0.10/t/get-cryptssleay.t libnet-https-any-perl-0.11/t/get-cryptssleay.t --- libnet-https-any-perl-0.10/t/get-cryptssleay.t 2010-05-01 20:25:38.000000000 +0000 +++ libnet-https-any-perl-0.11/t/get-cryptssleay.t 2014-05-12 22:30:59.000000000 +0000 @@ -5,6 +5,9 @@ use Test::More; BEGIN { + + plan skip_all => "LWP tests disabled to avoid excessive dependencies"; + plan( tests=>4 ); $Net::HTTPS::Any::skip_NetSSLeay=1; $Net::HTTPS::Any::skip_NetSSLeay=1; diff -Nru libnet-https-any-perl-0.10/t/post-cryptssleay.t libnet-https-any-perl-0.11/t/post-cryptssleay.t --- libnet-https-any-perl-0.10/t/post-cryptssleay.t 2010-05-01 20:33:49.000000000 +0000 +++ libnet-https-any-perl-0.11/t/post-cryptssleay.t 2014-07-27 00:29:43.000000000 +0000 @@ -5,6 +5,9 @@ use Test::More; BEGIN { + + plan skip_all => "LWP tests disabled to avoid excessive dependencies"; + plan( tests=>4 ); $Net::HTTPS::Any::skip_NetSSLeay=1; $Net::HTTPS::Any::skip_NetSSLeay=1; @@ -30,9 +33,10 @@ #404 my($content2, $response2, %headers2) = https_post( - { 'host' => 'www.fortify.net', + { 'host' => 'www.google.com', 'port' => 443, 'path' => '/notfound.html', + 'args' => { 'length' => 'required' }, }, 'net_https_any_test' => 1, ); diff -Nru libnet-https-any-perl-0.10/t/post-netssleay.t libnet-https-any-perl-0.11/t/post-netssleay.t --- libnet-https-any-perl-0.10/t/post-netssleay.t 2010-05-01 20:33:19.000000000 +0000 +++ libnet-https-any-perl-0.11/t/post-netssleay.t 2014-07-27 00:28:21.000000000 +0000 @@ -27,9 +27,10 @@ #404 my($content2, $response2, %headers2) = https_post( - { 'host' => 'www.fortify.net', + { 'host' => 'www.google.com', 'port' => 443, 'path' => '/notfound.html', + 'args' => { 'length' => 'required' }, }, 'net_https_any_test' => 1, );