r62567 - in /trunk/libtest-nowarnings-perl: ./ debian/ lib/Test/ lib/Test/NoWarnings/ t/

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Tue Sep 14 18:35:18 UTC 2010


Author: periapt-guest
Date: Tue Sep 14 18:34:51 2010
New Revision: 62567

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=62567
Log:
* New upstream release
* Standards-Version 3.9.1
* Added myself to Uploaders

Added:
    trunk/libtest-nowarnings-perl/t/01_compile.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/01_compile.t
    trunk/libtest-nowarnings-perl/t/02_none.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/02_none.t
    trunk/libtest-nowarnings-perl/t/03_end.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/03_end.t
    trunk/libtest-nowarnings-perl/t/04_no_tests.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/04_no_tests.t
    trunk/libtest-nowarnings-perl/t/05_no_end.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/05_no_end.t
    trunk/libtest-nowarnings-perl/t/06_fork.t
      - copied unchanged from r62566, branches/upstream/libtest-nowarnings-perl/current/t/06_fork.t
Removed:
    trunk/libtest-nowarnings-perl/t/01_none.t
    trunk/libtest-nowarnings-perl/t/02_end.t
    trunk/libtest-nowarnings-perl/t/03_no_tests.t
    trunk/libtest-nowarnings-perl/t/04_no_end.t
    trunk/libtest-nowarnings-perl/t/05_fork.t
    trunk/libtest-nowarnings-perl/t/97_meta.t
    trunk/libtest-nowarnings-perl/t/98_pod.t
    trunk/libtest-nowarnings-perl/t/99_pmv.t
Modified:
    trunk/libtest-nowarnings-perl/Changes
    trunk/libtest-nowarnings-perl/MANIFEST
    trunk/libtest-nowarnings-perl/META.yml
    trunk/libtest-nowarnings-perl/Makefile.PL
    trunk/libtest-nowarnings-perl/README
    trunk/libtest-nowarnings-perl/debian/changelog
    trunk/libtest-nowarnings-perl/debian/control
    trunk/libtest-nowarnings-perl/lib/Test/NoWarnings.pm
    trunk/libtest-nowarnings-perl/lib/Test/NoWarnings/Warning.pm

Modified: trunk/libtest-nowarnings-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/Changes?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/Changes (original)
+++ trunk/libtest-nowarnings-perl/Changes Tue Sep 14 18:34:51 2010
@@ -1,4 +1,15 @@
 Changes for Perl extension Test-NoWarnings
+
+1.02 Thu  9 Sep 2010 - Adam Kennedy
+	- Don't "use warnings" anywhere inside of Test::NoWarnings::* just
+	  in case we trigger a recursive warning handler in future (ADAMK)
+	- Remove the need for a private variable when detecting
+	  Devel::StackTrace support (ADAMK)
+	- Don't import unused functions from Carp or Test::Builder (ADAMK)
+	- Minor documentation tweaks (ADAMK)
+	- Correct the repository metadata in META.yml (ADAMK)
+	- Minor cleanups in the eumm-update generated code (ADAMK)
+	- Added a dedicated compile test (ADAMK)
 
 1.01 15 Jan 2010 - Adam Kennedy
 	- My release automation accidentally decided that Test::NoWarnings
@@ -10,6 +21,8 @@
 	  and the Makefile.PL contents, but otherwise remains unchanged (ADAMK)
 	- Now makes explicit the Perl 5.006 dependency that was previously
 	  an undocumented implicit dependency (ADAMK)
+	- Adding some rudimentary author tests, added automatically by
+	  my release automation (ADAMK)
 
 0.084 20 Oct 2007
 	- Perl 5.005 throws a warning when accessing $Carp::VERSION and was

Modified: trunk/libtest-nowarnings-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/MANIFEST?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/MANIFEST (original)
+++ trunk/libtest-nowarnings-perl/MANIFEST Tue Sep 14 18:34:51 2010
@@ -5,12 +5,10 @@
 Makefile.PL
 MANIFEST			This list of files
 README
-t/01_none.t
-t/02_end.t
-t/03_no_tests.t
-t/04_no_end.t
-t/05_fork.t
-t/97_meta.t
-t/98_pod.t
-t/99_pmv.t
+t/01_compile.t
+t/02_none.t
+t/03_end.t
+t/04_no_tests.t
+t/05_no_end.t
+t/06_fork.t
 META.yml                                 Module meta-data (added by MakeMaker)

Modified: trunk/libtest-nowarnings-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/META.yml?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/META.yml (original)
+++ trunk/libtest-nowarnings-perl/META.yml Tue Sep 14 18:34:51 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Test-NoWarnings
-version:            1.01
+version:            1.02
 abstract:           Make sure you didn't emit any warnings while testing
 author:
     - Fergal Daly <fergal at esatclear.ie>
@@ -9,19 +9,18 @@
 configure_requires:
     ExtUtils::MakeMaker:  0
 build_requires:
-    ExtUtils::MakeMaker:  0
-requires:
-    perl:           5.006
     Test::Builder:  0.86
     Test::More:     0.47
-    Test::Tester:   0.107
+requires:
+    perl:          5.006
+    Test::Tester:  0.107
 resources:
-    repository:  http://svn.ali.as/cpan/trunk/Config-Tiny
+    repository:  http://svn.ali.as/cpan/trunk/Test-NoWarnings
 no_index:
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.50
+generated_by:       ExtUtils::MakeMaker version 6.56
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: trunk/libtest-nowarnings-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/Makefile.PL?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/Makefile.PL (original)
+++ trunk/libtest-nowarnings-perl/Makefile.PL Tue Sep 14 18:34:51 2010
@@ -1,45 +1,42 @@
+use 5.006;
 use strict;
-BEGIN {
-	require 5.006;
-}
-use ExtUtils::MakeMaker;
+use ExtUtils::MakeMaker ();
 
-WriteMakefile1(
+WriteMakefile(
 	NAME             => 'Test::NoWarnings',
 	ABSTRACT         => "Make sure you didn't emit any warnings while testing",
 	VERSION_FROM     => 'lib/Test/NoWarnings.pm',
 	AUTHOR           => 'Fergal Daly <fergal at esatclear.ie>',
-        LICENSE          => 'lgpl',
+	LICENSE          => 'lgpl',
 	MIN_PERL_VERSION => '5.006',
 	BUILD_REQUIRES   => {
 		'Test::More'    => '0.47',
 		'Test::Builder' => '0.86',
 	},
-	PREREQ_PM        => {
+	PREREQ_PM => {
 		'Test::Tester' => '0.107',
 	},
 	META_MERGE => {
 		resources => {
-			repository => 'http://svn.ali.as/cpan/trunk/Config-Tiny',
+			repository => 'http://svn.ali.as/cpan/trunk/Test-NoWarnings',
 		},
 	},
 );
 
 # Written by Alexandr Ciornii, version 0.20. Added by eumm-upgrade.
-sub WriteMakefile1 {
+# Modified by ADAMK to make it look a little cleaner.
+sub WriteMakefile {
 	my %params = @_;
-	my $eumm_version = $ExtUtils::MakeMaker::VERSION;
-	$eumm_version = eval $eumm_version;
-	die "License not specified" if not exists $params{LICENSE};
-	if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
+	my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
+	die "License not specified" unless exists $params{LICENSE};
+	if ( $params{BUILD_REQUIRES} and $eumm_version < 6.5503 ) {
 		#EUMM 6.5502 has problems with BUILD_REQUIRES
 		$params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
 		delete $params{BUILD_REQUIRES};
 	}
 	delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
-	delete $params{META_MERGE} if $eumm_version < 6.46;
-	delete $params{LICENSE} if $eumm_version < 6.31;
-	delete $params{AUTHOR} if $] < 5.005;
+	delete $params{META_MERGE}       if $eumm_version < 6.46;
+	delete $params{LICENSE}          if $eumm_version < 6.31;
 
-	WriteMakefile(%params);
+	ExtUtils::MakeMaker::WriteMakefile(%params);
 }

Modified: trunk/libtest-nowarnings-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/README?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/README (original)
+++ trunk/libtest-nowarnings-perl/README Tue Sep 14 18:34:51 2010
@@ -71,17 +71,17 @@
       module
 
 EXPORTABLE FUNCTIONS
-  had_no_warnings()
+  had_no_warnings
     This checks that there have been warnings emitted by your test scripts.
     Usually you will not call this explicitly as it is called automatically
     when your script finishes.
 
-  clear_warnings()
+  clear_warnings
     This will clear the array of warnings that have been captured. If the
     array is empty then a call to "had_no_warnings()" will produce a pass
     result.
 
-  warnings()
+  warnings
     This will return the array of warnings captured so far. Each element of
     this array is an object containing information about the warning. The
     following methods are available on these object.
@@ -113,9 +113,6 @@
     When counting your tests for the plan, don't forget to include the test
     that runs automatically when your script ends.
 
-BUGS
-    None that I know of.
-
 SUPPORT
     Bugs should be reported via the CPAN bug tracker at
 

Modified: trunk/libtest-nowarnings-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/debian/changelog?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/debian/changelog (original)
+++ trunk/libtest-nowarnings-perl/debian/changelog Tue Sep 14 18:34:51 2010
@@ -1,4 +1,4 @@
-libtest-nowarnings-perl (1.01-1) UNRELEASED; urgency=low
+libtest-nowarnings-perl (1.02-1) UNRELEASED; urgency=low
 
   Updates license information only
   IGNORE-VERSION: 1.01-1
@@ -7,7 +7,6 @@
   * New upstream release
   * Use new short debhelper rules format
   * Update copyright to DEP5 format
-  * Standards-Version 3.8.3 (no changes)
 
   [ gregor herrmann ]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
@@ -20,7 +19,12 @@
   [ Nathan Handler ]
   * debian/watch: Update to ignore development releases.
 
- -- Jonathan Yu <jawnsy at cpan.org>  Sun, 17 Jan 2010 13:00:03 -0500
+  [ Nicholas Bamber ]
+  * New upstream release
+  * Standards-Version 3.9.1
+  * Added myself to Uploaders
+
+ -- Nicholas Bamber <nicholas at periapt.co.uk>  Tue, 14 Sep 2010 19:32:05 +0100
 
 libtest-nowarnings-perl (0.084-1) unstable; urgency=low
 

Modified: trunk/libtest-nowarnings-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/debian/control?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/debian/control (original)
+++ trunk/libtest-nowarnings-perl/debian/control Tue Sep 14 18:34:51 2010
@@ -4,8 +4,8 @@
 Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: perl, libtest-tester-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Martín Ferrari <tincho at debian.org>
-Standards-Version: 3.8.3
+Uploaders: Martín Ferrari <tincho at debian.org>, Nicholas Bamber <nicholas at periapt.co.uk>
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/Test-NoWarnings/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libtest-nowarnings-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libtest-nowarnings-perl/

Modified: trunk/libtest-nowarnings-perl/lib/Test/NoWarnings.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/lib/Test/NoWarnings.pm?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/lib/Test/NoWarnings.pm (original)
+++ trunk/libtest-nowarnings-perl/lib/Test/NoWarnings.pm Tue Sep 14 18:34:51 2010
@@ -3,14 +3,14 @@
 use 5.006;
 use strict;
 use warnings;
-use Carp;
-use Exporter ();
-use Test::Builder;
+use Carp                      ();
+use Exporter                  ();
+use Test::Builder             ();
 use Test::NoWarnings::Warning ();
 
 use vars qw( $VERSION @EXPORT_OK @ISA $do_end_test );
 BEGIN {
-	$VERSION   = '1.01';
+	$VERSION   = '1.02';
 	@ISA       = 'Exporter';
 	@EXPORT_OK = qw(
 		clear_warnings had_no_warnings warnings
@@ -206,18 +206,18 @@
 
 =head1 EXPORTABLE FUNCTIONS
 
-=head2 had_no_warnings()
+=head2 had_no_warnings
 
 This checks that there have been warnings emitted by your test scripts.
 Usually you will not call this explicitly as it is called automatically when
 your script finishes.
 
-=head2 clear_warnings()
+=head2 clear_warnings
 
 This will clear the array of warnings that have been captured. If the array
 is empty then a call to C<had_no_warnings()> will produce a pass result.
 
-=head2 warnings()
+=head2 warnings
 
 This will return the array of warnings captured so far. Each element of this
 array is an object containing information about the warning. The following
@@ -264,10 +264,6 @@
 When counting your tests for the plan, don't forget to include the test that
 runs automatically when your script ends.
 
-=head1 BUGS
-
-None that I know of.
-
 =head1 SUPPORT
 
 Bugs should be reported via the CPAN bug tracker at

Modified: trunk/libtest-nowarnings-perl/lib/Test/NoWarnings/Warning.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-nowarnings-perl/lib/Test/NoWarnings/Warning.pm?rev=62567&op=diff
==============================================================================
--- trunk/libtest-nowarnings-perl/lib/Test/NoWarnings/Warning.pm (original)
+++ trunk/libtest-nowarnings-perl/lib/Test/NoWarnings/Warning.pm Tue Sep 14 18:34:51 2010
@@ -2,15 +2,15 @@
 
 use 5.006;
 use strict;
-use warnings;
 use Carp ();
 
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '1.01';
+	$VERSION = '1.02';
+
+	# Optional stacktrace support
+	eval "require Devel::StackTrace";
 }
-
-my $STACKTRACE = eval "require Devel::StackTrace" || 0;
 
 sub new {
 	my $class = shift;
@@ -18,15 +18,14 @@
 }
 
 sub getTrace {
-	my $self = shift;
-	return $self->{Trace};
+	$_[0]->{Trace};
 }
 
 sub fillTrace {
 	my $self = shift;
 	$self->{Trace} = Devel::StackTrace->new(
 		ignore_class => [__PACKAGE__, @_],
-	) if $STACKTRACE;
+	) if $Devel::StackTrace::VERSION;
 }
 
 sub getCarp {




More information about the Pkg-perl-cvs-commits mailing list