[Bps-public-commit] HTTP-Server-Simple branch, master, updated. 0.43-2-g9cd6f43

Jesse Vincent jesse at bestpractical.com
Mon Apr 4 03:02:45 EDT 2011


The branch, master has been updated
       via  9cd6f434297dc1dde6816fa86414338a94bf1e97 (commit)
       via  5266148e449999eb70e7666d4e86b3cfff3b5ffc (commit)
      from  f9be648e5c643a93e1970a4825724a694c75e22c (commit)

Summary of changes:
 Changes                   |    4 ++++
 SIGNATURE                 |   40 ++++++++++++++++++++--------------------
 lib/HTTP/Server/Simple.pm |    2 +-
 t/04cgi.t                 |   10 +++++++++-
 4 files changed, 34 insertions(+), 22 deletions(-)

- Log -----------------------------------------------------------------
commit 5266148e449999eb70e7666d4e86b3cfff3b5ffc
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Apr 4 17:00:48 2011 +1000

    Date: Sun, 13 Mar 2011 17:02:18 -0400
    From: Tom Hukins via RT <bug-HTTP-Server-Simple at rt.cpan.org>
    Subject: [rt.cpan.org #49807] fails test 04 on FBSD
    
    <URL: https://rt.cpan.org/Ticket/Display.html?id=49807 >
    
    On 2011-03-11 14:41:13, TOMHUKINS wrote:
    > HTTP::Server::Simple works fine on a jailed host, it's just that the
    > tests' usual expectation about hostnames don't apply here.
    
    I've attached a patch that solves this problem for me.

diff --git a/Changes b/Changes
index 7e148e2..f37ad7a 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+0.44 Mon Apr  4 16:59:59 EST 2011
+
+* Fix tests to run in a FreeBSD Jail - Tom Hukins [rt.cpan.org #49807]
+
 0.43 Sat May  1 22:23:55 CST 2010
 
 * Support for getting REMOTE_PORT -- rgs
diff --git a/t/04cgi.t b/t/04cgi.t
index 2c3317f..1b6a5e1 100644
--- a/t/04cgi.t
+++ b/t/04cgi.t
@@ -2,7 +2,6 @@ use Test::More;
 use Socket;
 use strict;
 
-plan tests => 23;
 my $PORT = 40000 + int(rand(10000));
 
 my $host = gethostbyaddr(inet_aton('localhost'), AF_INET);
@@ -30,6 +29,15 @@ my %envvars=(
               PATH_INFO => 'PATH_INFO: /cgitest/PATH_INFO',
             );
 
+if ($^O eq 'freebsd' && `sysctl -n security.jail.jailed` == 1) {
+    delete @methods{qw(url server_name)};
+    delete @envvars{qw(SERVER_URL SERVER_NAME REMOTE_ADDR)};
+    plan tests => 18;
+}
+else {
+    plan tests => 23;
+}
+
 {
   my $server=CGIServer->new($PORT);
   is($server->port(),$PORT,'Constructor set port correctly');

commit 9cd6f434297dc1dde6816fa86414338a94bf1e97
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Apr 4 17:02:04 2011 +1000

    Bump the version, cpansign

diff --git a/SIGNATURE b/SIGNATURE
index d160e40..bb2eb17 100644
--- a/SIGNATURE
+++ b/SIGNATURE
@@ -1,5 +1,5 @@
 This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.61.
+signed via the Module::Signature module, version 0.66.
 
 To verify the content in this distribution, first make sure you have
 Module::Signature installed, then type:
@@ -14,34 +14,34 @@ not run its Makefile.PL or Build.PL.
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 7978d74aaa6becb937786ca0879acb275bf1ee31 Changes
+SHA1 f0ed9096f048f9291c7cccb64caeea6ae50ea031 Changes
 SHA1 949066363c947341783f1fe4c949f02940e8fa73 MANIFEST
 SHA1 e476d8bd724d46eb9e255cc8afc98b92269e2255 MANIFEST.SKIP
-SHA1 a3fe158c5243269b1200e01f9c4e8464d70d4b12 META.yml
-SHA1 9e87872a0de469e0e368e80a9492800e5c8f543d Makefile.PL
+SHA1 be860c588757207ef6626b854627385b4ed191d9 META.yml
+SHA1 bedda9fb5cb7922f391c7f039bc7eb8297e2c999 Makefile.PL
 SHA1 ed0c107672daac3bc9e266876666e1059dbe44b7 README
 SHA1 4ea1e9072ca87399184a46233df52a21e285604d ex/sample_server
-SHA1 fd5f3c4f0418efee3b9b16cf8c3902e8374909df inc/Module/Install.pm
-SHA1 7cd7c349afdf3f012e475507b1017bdfa796bfbd inc/Module/Install/Base.pm
-SHA1 ba186541bbf6439111f01fc70769cf24d22869bf inc/Module/Install/Can.pm
-SHA1 aaa50eca0d7751db7a4d953fac9bc72c6294e238 inc/Module/Install/Fetch.pm
-SHA1 3e83972921d54198d1246f7278f08664006cd65d inc/Module/Install/Makefile.pm
-SHA1 12bf1867955480d47d5171a9e9c6a96fabe0b58f inc/Module/Install/Metadata.pm
-SHA1 f7ee667e878bd2faf22ee9358a7b5a2cc8e91ba4 inc/Module/Install/Win32.pm
-SHA1 8ed29d6cf217e0977469575d788599cbfb53a5ca inc/Module/Install/WriteAll.pm
-SHA1 cc66e5ceb1a15b7a5802f4c38f7483898c585dd3 lib/HTTP/Server/Simple.pm
+SHA1 7305dbe2904416e28decb05396988a5d51d578be inc/Module/Install.pm
+SHA1 129960509127732258570c122042bc48615222e1 inc/Module/Install/Base.pm
+SHA1 cf3356ed9a5bd2f732527ef9e7bc5ef4458c8a93 inc/Module/Install/Can.pm
+SHA1 bf0a3e1977effc2832d7a813a76dce3f31b437b6 inc/Module/Install/Fetch.pm
+SHA1 b721c93ca5bc9a6aa863b49af15f1b1de6125935 inc/Module/Install/Makefile.pm
+SHA1 026cc0551a0ad399d195e395b46bdf842e115192 inc/Module/Install/Metadata.pm
+SHA1 5457015ea5a50e93465bf2dafa29feebd547f85b inc/Module/Install/Win32.pm
+SHA1 051e7fa8063908befa3440508d0584a2497b97db inc/Module/Install/WriteAll.pm
+SHA1 5fc5e574334c74ff4351fd47dcf2e9475aef4049 lib/HTTP/Server/Simple.pm
 SHA1 c84b60c7ebdcc12d1814909f957bf3b385fa60c2 lib/HTTP/Server/Simple/CGI.pm
-SHA1 36169be31d05df472b069e2f6b258c056fd9acc0 lib/HTTP/Server/Simple/CGI/Environment.pm
+SHA1 d052d3acc92e7f35ece4d195ce8b09d8105f063e lib/HTTP/Server/Simple/CGI/Environment.pm
 SHA1 41afe2c04bb573b40e283e2b210ed70a47a3f8ba t/00signature.t
 SHA1 db064af54cab345a71daec576e32e64b8fb1033d t/00smoke.t
-SHA1 3f3ccd583b7d01627b7c043229f1b7fb52a6a73c t/01live.t
+SHA1 7afffea07d161f377bedff4669ab92e121d28e81 t/01live.t
 SHA1 aca95653cfce68912e08c57b3a4566207e2f99b3 t/02pod.t
 SHA1 a7024d0d8e7b80d26f75a3551a1406a797b382f8 t/03podcoverage.t
-SHA1 3fbe600fc1aab20d9351bbb75d2dcb3f2ef2bb76 t/04cgi.t
+SHA1 27975aef6518de7ef5916ea2dfd3747f134db841 t/04cgi.t
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
+Version: GnuPG v1.4.10 (GNU/Linux)
 
-iEYEARECAAYFAktohm4ACgkQEi9d9xCOQEaifwCgt9/QlwiLdx5ezNLHlI5LnrFN
-BXcAoMTKO5sdlgbfGrh9hWw8TAtVnXda
-=reeD
+iEYEARECAAYFAk2ZbOAACgkQEi9d9xCOQEZrcgCgtdOugS1v1a50mU5ovARVYR6/
+ZoIAoJfTNrwVU38QaSeW4GeOqqpcpORk
+=Ouce
 -----END PGP SIGNATURE-----
diff --git a/lib/HTTP/Server/Simple.pm b/lib/HTTP/Server/Simple.pm
index 3faa29e..50479ae 100644
--- a/lib/HTTP/Server/Simple.pm
+++ b/lib/HTTP/Server/Simple.pm
@@ -7,7 +7,7 @@ use Socket;
 use Carp;
 
 use vars qw($VERSION $bad_request_doc);
-$VERSION = '0.43';
+$VERSION = '0.44';
 
 =head1 NAME
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list