r19755 - in /trunk/libmasonx-interp-withcallbacks-perl: Build.PL Changes META.yml README debian/changelog lib/MasonX/Interp/WithCallbacks.pm t/08apache.t t/09cgi.t t/10pod.t t/conf/extra.conf.in t/lib/TestCallbacks.pm
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Fri May 9 12:48:10 UTC 2008
Author: gregoa
Date: Fri May 9 12:48:09 2008
New Revision: 19755
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19755
Log:
New upstream release.
Modified:
trunk/libmasonx-interp-withcallbacks-perl/Build.PL
trunk/libmasonx-interp-withcallbacks-perl/Changes
trunk/libmasonx-interp-withcallbacks-perl/META.yml
trunk/libmasonx-interp-withcallbacks-perl/README
trunk/libmasonx-interp-withcallbacks-perl/debian/changelog
trunk/libmasonx-interp-withcallbacks-perl/lib/MasonX/Interp/WithCallbacks.pm
trunk/libmasonx-interp-withcallbacks-perl/t/08apache.t
trunk/libmasonx-interp-withcallbacks-perl/t/09cgi.t
trunk/libmasonx-interp-withcallbacks-perl/t/10pod.t
trunk/libmasonx-interp-withcallbacks-perl/t/conf/extra.conf.in
trunk/libmasonx-interp-withcallbacks-perl/t/lib/TestCallbacks.pm
Modified: trunk/libmasonx-interp-withcallbacks-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/Build.PL?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/Build.PL (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/Build.PL Fri May 9 12:48:09 2008
@@ -6,17 +6,17 @@
$build_pkg->new(
module_name => 'MasonX::Interp::WithCallbacks',
license => 'perl',
+ configure_requires => { 'Module::Build' => '0.2701' },
+ build_requires => { 'Test::More' => '0.17' },
+ recommends => {
+ 'Test::Pod' => '1.20',
+ 'Apache::TestMB' => 0
+ },
requires => {
'HTML::Mason' => '1.23',
'Test::Simple' => '0.17',
'Class::Container' => '0.09',
'Params::CallbackRequest' => '1.15',
},
- build_requires => {
- 'Test::Simple' => '0.17'
- },
- recommends => {
- 'Apache::TestMB' => 0
- },
add_to_cleanup => ['t/mason'],
)->create_build_script;
Modified: trunk/libmasonx-interp-withcallbacks-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/Changes?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/Changes (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/Changes Fri May 9 12:48:09 2008
@@ -1,4 +1,16 @@
Revision history for Perl extension MasonX::Interp::WithCallbacks.
+
+1.18 2008-05-03T23:26:42
+ - Added "configure_requires" parameter to Build.PL and added Test::Pod
+ to the "recommends" parameter.
+ - Updated POD test to require Test::Pod 1.20 or later.
+ - Fixed test failures under Perl 5.6. Reported by Slaven Rezic via
+ CPAN-Testers.
+ - Added a link to the Subversion repository.
+ - Fixed the test suite to run properly with Apache::TestMB under
+ mod_perl 2 as well as mod_perl 1.
+ - Fixed failing test with older versions of CGI, such as that
+ distributed with Perl 5.6.2.
1.17 2007-07-24T19:37:47
- Fixed test failures with Mason 1.36. Patch from Niko Tyni.
Modified: trunk/libmasonx-interp-withcallbacks-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/META.yml?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/META.yml (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/META.yml Fri May 9 12:48:09 2008
@@ -1,26 +1,29 @@
---
name: MasonX-Interp-WithCallbacks
-version: 1.17
+version: 1.18
author:
- 'David Wheeler <david at kineticode.com>'
abstract: Mason callback support via Params::CallbackRequest.
license: perl
resources:
license: http://dev.perl.org/licenses/
+configure_requires:
+ Module::Build: 0.2701
requires:
Class::Container: 0.09
HTML::Mason: 1.23
Params::CallbackRequest: 1.15
Test::Simple: 0.17
build_requires:
- Test::Simple: 0.17
+ Test::More: 0.17
recommends:
Apache::TestMB: 0
+ Test::Pod: 1.20
provides:
MasonX::Interp::WithCallbacks:
file: lib/MasonX/Interp/WithCallbacks.pm
- version: 1.17
-generated_by: Module::Build version 0.2808
+ version: 1.18
+generated_by: Module::Build version 0.280801
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.2.html
version: 1.2
Modified: trunk/libmasonx-interp-withcallbacks-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/README?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/README (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/README Fri May 9 12:48:09 2008
@@ -1,4 +1,4 @@
-MasonX/Interp/WithCallbacks version 1.17
+MasonX/Interp/WithCallbacks version 1.18
========================================
MasonX::Interp::WithCallbacks subclasses HTML::Mason::Interp in order to
@@ -52,7 +52,7 @@
COPYRIGHT AND LICENCE
-Copyright (C) 2003-2006 David Wheeler
+Copyright (C) 2003-2008 David Wheeler. Some Rights Reserved.
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+This library is free software; you can redistribute it and/or modify it under
+the same terms as Perl itself.
Modified: trunk/libmasonx-interp-withcallbacks-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/debian/changelog?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/debian/changelog (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/debian/changelog Fri May 9 12:48:09 2008
@@ -1,11 +1,13 @@
-libmasonx-interp-withcallbacks-perl (1.17-2) UNRELEASED; urgency=low
+libmasonx-interp-withcallbacks-perl (1.18-1) UNRELEASED; urgency=low
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/watch: use dist-based URL.
+
+ * New upstream release.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Tue, 09 Oct 2007 22:30:21 +0200
+ -- gregor herrmann <gregoa at debian.org> Fri, 09 May 2008 14:45:57 +0200
libmasonx-interp-withcallbacks-perl (1.17-1) unstable; urgency=low
Modified: trunk/libmasonx-interp-withcallbacks-perl/lib/MasonX/Interp/WithCallbacks.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/lib/MasonX/Interp/WithCallbacks.pm?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/lib/MasonX/Interp/WithCallbacks.pm (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/lib/MasonX/Interp/WithCallbacks.pm Fri May 9 12:48:09 2008
@@ -8,7 +8,7 @@
use vars qw($VERSION @ISA);
@ISA = qw(HTML::Mason::Interp);
-$VERSION = '1.17';
+$VERSION = '1.18';
Params::Validate::validation_options
( on_fail => sub { HTML::Mason::Exception::Params->throw( join '', @_ ) } );
@@ -873,9 +873,14 @@
C<< $interp->cb_request->notes >>. Notes will be cleared out at the end of the
request, just as with C<< $r->pnotes >>.
-=head1 BUGS
-
-Please send bug reports to <bug-masonx-interp-withcallbacks at rt.cpan.org>.
+=head1 SUPPORT
+
+This module is stored in an open repository at the following address:
+
+L<https://svn.kineticode.com/MasonX-Interp-WithCallbacks/trunk/>
+
+Patches against SVN::Notify are welcome. Please send bug reports to
+<bug-MasonX-interp-withcallbacks at rt.cpan.org>.
=head1 SEE ALSO
@@ -901,7 +906,7 @@
=head1 COPYRIGHT AND LICENSE
-Copyright 2003-2006 by David Wheeler
+Copyright 2003-2008 by David Wheeler. Some Rights Reserved.
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
Modified: trunk/libmasonx-interp-withcallbacks-perl/t/08apache.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/t/08apache.t?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/t/08apache.t (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/t/08apache.t Fri May 9 12:48:09 2008
@@ -1,6 +1,6 @@
#!perl -w
-# $Id: 08apache.t 682 2004-09-28 05:59:10Z theory $
+# $Id: 08apache.t 3722 2008-05-03 02:25:47Z david $
use strict;
use Test::More;
@@ -18,13 +18,17 @@
plan tests => 178;
}
-Apache::TestRequest::user_agent(reset => 1,
- requests_redirectable => 0);
+Apache::TestRequest::user_agent(
+ reset => 1,
+ requests_redirectable => 0,
+);
my $key = 'myCallbackTester';
-my @keys = (myCallbackTester => '/test',
- OOCBTester => '/oop',
- OOCBTester => '/ooconf');
+my @keys = (
+ myCallbackTester => '/test',
+ OOCBTester => '/oop',
+ OOCBTester => '/ooconf',
+);
##############################################################################
# Just make sure it works.
Modified: trunk/libmasonx-interp-withcallbacks-perl/t/09cgi.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/t/09cgi.t?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/t/09cgi.t (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/t/09cgi.t Fri May 9 12:48:09 2008
@@ -1,6 +1,6 @@
#!perl -w
-# $Id: 09cgi.t 2865 2006-05-26 22:35:27Z theory $
+# $Id: 09cgi.t 3730 2008-05-03 23:17:25Z david $
use strict;
use FindBin qw($Bin);
@@ -150,8 +150,8 @@
ok( $cgih->handle_request, "Handle redirection request" );
is( $outbuf, '', "Check redirection result" );
ok( my $out = $stdout->read, "Get contents of STDOUT" );
-like( $out, qr/Status: 302 (?:Moved|Found)/, "Check Status header" );
-like( $out, qr/Location: $url/, "Check Location header" );
+like( $out, qr/^Status: 302 (?:Moved|Found)/m, "Check Status header" );
+like( $out, qr/^(?:Moved\s+)?Location: $url/mi, "Check Location header" );
clear_bufs;
##############################################################################
@@ -160,9 +160,9 @@
"&$key|add_header_cb9=1";
ok( $cgih->handle_request, "Handle redirect w/o abort" );
ok( my $res = $stdout->read, "Get response headers" );
-like( $res, qr/Status: 302 (?:Moved|Found)/, "Check for Status header" );
-like( $res, qr/Location: $url/, "Check for Location header" );
-like( $res, qr/Age: 42/, "Check for age header" );
+like( $res, qr/^Status: 302 (?:Moved|Found)/m, "Check for Status header" );
+like( $res, qr/^(?:Moved\s+)?Location: $url/mi, "Check for Location header" );
+like( $res, qr/^Age: 42/mi, "Check for age header" );
clear_bufs;
Modified: trunk/libmasonx-interp-withcallbacks-perl/t/10pod.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/t/10pod.t?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/t/10pod.t (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/t/10pod.t Fri May 9 12:48:09 2008
@@ -1,24 +1,9 @@
#!perl -w
-# $Id: 10pod.t 682 2004-09-28 05:59:10Z theory $
+# $Id: 10pod.t 3504 2008-03-10 18:54:16Z theory $
+use strict;
use Test::More;
-use FindBin qw($Bin);
-use File::Spec;
-use File::Find;
-use strict;
-
-eval "use Test::Pod 0.95";
-
-if ($@) {
- plan skip_all => "Test::Pod v0.95 required for testing POD";
-} else {
- Test::Pod->import;
- my @files;
- my $blib = File::Spec->catfile($Bin, File::Spec->updir, qw(blib lib));
- find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
- plan tests => scalar @files;
- foreach my $file (@files) {
- pod_file_ok($file);
- }
-}
+eval "use Test::Pod 1.20";
+plan skip_all => "Test::Pod 1.20 required for testing POD" if $@;
+all_pod_files_ok(all_pod_files('bin', 'lib'));
Modified: trunk/libmasonx-interp-withcallbacks-perl/t/conf/extra.conf.in
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/t/conf/extra.conf.in?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/t/conf/extra.conf.in (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/t/conf/extra.conf.in Fri May 9 12:48:09 2008
@@ -1,11 +1,13 @@
<IfModule mod_perl.c>
PerlSetVar MasonCompRoot @DocumentRoot@
- <Perl>
- use File::Spec::Functions qw(catdir);
- use lib catdir '@ServerRoot@', 'lib';
- use lib catdir '@ServerRoot@', '..', 'blib';
- use lib catdir '@ServerRoot@', '..', 'lib';
- </Perl>
+ <IfDefine !MODPERL2>
+ <Perl>
+ use File::Spec::Functions qw(catdir);
+ use lib catdir '@ServerRoot@', 'lib';
+ use lib catdir '@ServerRoot@', '..', 'blib';
+ use lib catdir '@ServerRoot@', '..', 'lib';
+ </Perl>
+ </IfDefine>
PerlModule TestCallbacks
SetHandler perl-script
PerlHandler TestCallbacks
Modified: trunk/libmasonx-interp-withcallbacks-perl/t/lib/TestCallbacks.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmasonx-interp-withcallbacks-perl/t/lib/TestCallbacks.pm?rev=19755&op=diff
==============================================================================
--- trunk/libmasonx-interp-withcallbacks-perl/t/lib/TestCallbacks.pm (original)
+++ trunk/libmasonx-interp-withcallbacks-perl/t/lib/TestCallbacks.pm Fri May 9 12:48:09 2008
@@ -79,20 +79,28 @@
package TestCallbacks;
-# $Id: TestCallbacks.pm 682 2004-09-28 05:59:10Z theory $
+# $Id: TestCallbacks.pm 3722 2008-05-03 02:25:47Z david $
use strict;
use HTML::Mason::ApacheHandler;
use HTML::Mason::Exceptions;
-use Apache;
-use Apache::Constants qw(HTTP_OK);
+use constant HTTP_OK => 200;
use constant KEY => 'myCallbackTester';
-my $server = Apache->server;
+my $server;
+if ($ENV{MOD_PERL_API_VERSION}) {
+ require Apache2::ServerUtil;
+ $server = Apache2::ServerUtil->server;
+} else {
+ require Apache;
+ $server = Apache->server;
+}
+
my $cfg = $server->dir_config;
-my %params = ( comp_root => $cfg->{MasonCompRoot},
- interp_class => 'MasonX::Interp::WithCallbacks',
- );
+my %params = (
+ comp_root => $cfg->{MasonCompRoot},
+ interp_class => 'MasonX::Interp::WithCallbacks',
+);
sub simple {
my $cb = shift;
More information about the Pkg-perl-cvs-commits
mailing list