[Bps-public-commit] HTTP-Server-Simple branch, master, updated. 0.41_01-7-gc5b7a1a

Jesse Vincent jesse at bestpractical.com
Fri Apr 2 12:57:59 EDT 2010


The branch, master has been updated
       via  c5b7a1a5642da31771afee22867b5eb233025cc7 (commit)
       via  65ef9fd26f7cda75ca6570db30406ec1f202ce96 (commit)
       via  49c9f1d1afaff0c1939a0b477f6f88fac5505753 (commit)
       via  d36fd981790e0da1f5f2e683b72bad50ad186409 (commit)
       via  fef6cb97b7f1265c349f1fe296cd15e5c03c370b (commit)
      from  1da1edbfc008c7cf86236bfca65ac51b2b69903c (commit)

Summary of changes:
 Changes                   |   15 +++++++++++++++
 Makefile.PL               |    2 +-
 lib/HTTP/Server/Simple.pm |    2 +-
 t/01live.t                |    8 +++++---
 4 files changed, 22 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit fef6cb97b7f1265c349f1fe296cd15e5c03c370b
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Feb 18 10:14:38 2010 -0800

    Checking in changes prior to tagging of version 0.42.  Changelog diff is:
    
    diff --git a/Changes b/Changes
    index 999a2ad..ef7c021 100644
    --- a/Changes
    +++ b/Changes
    @@ -1,3 +1,14 @@
    +0.42 Thu Feb 18 10:13:11 PST 2010
    +
    +* Inline uri_unescape to drop URI::Escape which is the only non-core
    +  dependency of this distribution. -- miyagawa
    +
    +* Do not special case COOKIE and sets Cookie header to HTTP_COOKIE. -- miyagawa
    +
    +  O'Reilly's WebSite server misuses COOKIE environment instead of
    +  HTTP_COOKIE. We don't need to replicate that bug since
    +  HTTP::Server::Simple is a server, not a CGI library like CGI.pm.
    +
     0.41_01 Tue Feb  2 12:08:15 PST 2010
    
     * Pluggable CGI class support based on a patch from NANIS

diff --git a/Changes b/Changes
index 999a2ad..ef7c021 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,14 @@
+0.42 Thu Feb 18 10:13:11 PST 2010
+
+* Inline uri_unescape to drop URI::Escape which is the only non-core
+  dependency of this distribution. -- miyagawa
+
+* Do not special case COOKIE and sets Cookie header to HTTP_COOKIE. -- miyagawa
+
+  O'Reilly's WebSite server misuses COOKIE environment instead of
+  HTTP_COOKIE. We don't need to replicate that bug since
+  HTTP::Server::Simple is a server, not a CGI library like CGI.pm.
+    
 0.41_01 Tue Feb  2 12:08:15 PST 2010
 
 * Pluggable CGI class support based on a patch from NANIS
diff --git a/lib/HTTP/Server/Simple.pm b/lib/HTTP/Server/Simple.pm
index 599579a..2f761cd 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.41_01';
+$VERSION = '0.42';
 
 =head1 NAME
 

commit d36fd981790e0da1f5f2e683b72bad50ad186409
Author: sawyer x <xsawyerx at gmail.com>
Date:   Fri Apr 2 12:50:34 2010 -0400

    Patch to t/01live.t to deal with spurious win32 test failures

diff --git a/t/01live.t b/t/01live.t
index f4c5c0d..568c783 100644
--- a/t/01live.t
+++ b/t/01live.t
@@ -28,6 +28,7 @@ package main;
 
 my $DEBUG = 1 if @ARGV;
 
+my @pids    = ();
 my @classes = (qw(HTTP::Server::Simple SlowServer));
 for my $class (@classes) {
     run_server_tests($class);
@@ -62,6 +63,8 @@ for my $class (@classes) {
     is(kill(9,$pid),1,'Signaled 1 process successfully');
 }
 
+is( kill( 9, $_ ), 1, "Killed PID: $_" ) for @pids;
+
 # this function may look excessive, but hopefully will be very useful
 # in identifying common problems
 sub fetch {
@@ -119,6 +122,5 @@ sub run_server_tests {
     my $content=fetch("GET / HTTP/1.1", "");
 
     like($content, '/Congratulations/', "Returns a page");
-    is(kill(9,$pid),1,'Signaled 1 process successfully');
-    wait or die "couldn't wait for sub-process completion";
+    push @pids, $pid;
 }

commit 49c9f1d1afaff0c1939a0b477f6f88fac5505753
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Apr 2 12:52:18 2010 -0400

    update changes for sawyerx's patch.

diff --git a/Changes b/Changes
index ef7c021..a6e2619 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+0.43
+
+* Patch to t/01live.t to prevent spurious win32 test failures.
+
 0.42 Thu Feb 18 10:13:11 PST 2010
 
 * Inline uri_unescape to drop URI::Escape which is the only non-core

commit 65ef9fd26f7cda75ca6570db30406ec1f202ce96
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Apr 2 12:53:35 2010 -0400

    Make a diag happen only in TEST_VERBOSE mode.

diff --git a/t/01live.t b/t/01live.t
index 568c783..4d0587d 100644
--- a/t/01live.t
+++ b/t/01live.t
@@ -41,7 +41,7 @@ for my $class (@classes) {
     my $s=HTTP::Server::Simple::CGI->new($PORT);
     $s->host("localhost");
     my $pid=$s->background();
-    diag("started server PID='$pid'");
+    diag("started server PID='$pid'") if ($ENV{'TEST_VERBOSE'});
     like($pid, '/^-?\d+$/', 'pid is numeric');
     select(undef,undef,undef,0.2); # wait a sec
     my $content=fetch("GET / HTTP/1.1", "");

commit c5b7a1a5642da31771afee22867b5eb233025cc7
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Apr 2 12:58:08 2010 -0400

    quote Test::More in Makefile.PL

diff --git a/Makefile.PL b/Makefile.PL
index 8904a1a..4414269 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -5,7 +5,7 @@ name('HTTP-Server-Simple');
 license('perl');
 requires(
     Socket      => 0,
-    Test::More  => 0,
+    'Test::More'  => 0,
     CGI         => 0,
 );
 

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



More information about the Bps-public-commit mailing list