r50807 - in /branches/upstream/libtest-exception-perl/current: Build.PL Changes META.yml Makefile.PL README lib/Test/Exception.pm t/developer/spelling.t t/stacktrace.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Tue Jan 12 17:06:23 UTC 2010
Author: jawnsy-guest
Date: Tue Jan 12 17:05:55 2010
New Revision: 50807
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=50807
Log:
[svn-upgrade] Integrating new upstream version, libtest-exception-perl (0.29)
Modified:
branches/upstream/libtest-exception-perl/current/Build.PL
branches/upstream/libtest-exception-perl/current/Changes
branches/upstream/libtest-exception-perl/current/META.yml
branches/upstream/libtest-exception-perl/current/Makefile.PL
branches/upstream/libtest-exception-perl/current/README
branches/upstream/libtest-exception-perl/current/lib/Test/Exception.pm
branches/upstream/libtest-exception-perl/current/t/developer/spelling.t
branches/upstream/libtest-exception-perl/current/t/stacktrace.t
Modified: branches/upstream/libtest-exception-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/Build.PL?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/Build.PL (original)
+++ branches/upstream/libtest-exception-perl/current/Build.PL Tue Jan 12 17:05:55 2010
@@ -4,7 +4,7 @@
module_name => 'Test::Exception',
license => 'perl',
requires => {
- 'perl' => '5.6.1',
+ # 'perl' => '5.6.1',
'Test::Simple' => '0.7',
'Test::Builder' => '0.7',
'Test::Builder::Tester' => '1.07',
Modified: branches/upstream/libtest-exception-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/Changes?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/Changes (original)
+++ branches/upstream/libtest-exception-perl/current/Changes Tue Jan 12 17:05:55 2010
@@ -1,4 +1,11 @@
Revision history for Perl extension Test::Exception:
+
+0.29
+ - Same as 0.28_01 - Many thanks to Ricardo Signes for doing all the work
+ getting this release out
+
+0.28_01
+ - Patch to fix code with Sub::Uplevel again. Many thanks to David Golden
0.27
- Patch to fix my broken code with the now working Sub::Uplevel. Many
@@ -15,7 +22,7 @@
& Chris Dolan)
- Added comment in docs about T::E not catching exit() in eval() blocks
(thanks Peter Scott)
- - Updated Test::* & Sub::Uplevel version dependencies to something modern
+ - Updated Test::* & Sub::Uplevel version dependencies to something modern
0.25
- Updated Test::Simple dependency to make sure it is in sync with
Modified: branches/upstream/libtest-exception-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/META.yml?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/META.yml (original)
+++ branches/upstream/libtest-exception-perl/current/META.yml Tue Jan 12 17:05:55 2010
@@ -1,12 +1,10 @@
---
name: Test-Exception
-version: 0.27
+version: 0.29
author:
- 'Adrian Howard <adrianh at quietstars.com>'
abstract: Test exception based code
license: perl
-resources:
- license: http://dev.perl.org/licenses/
requires:
Sub::Uplevel: 0.18
Test::Builder: 0.7
@@ -14,12 +12,15 @@
Test::Harness: 2.03
Test::More: 0.7
Test::Simple: 0.7
- perl: 5.6.1
+configure_requires:
+ Module::Build: 0.35
+generated_by: Module::Build version 0.35
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
provides:
Test::Exception:
file: lib/Test/Exception.pm
- version: 0.27
-generated_by: Module::Build version 0.280801
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+ version: 0.29
+resources:
+ license: http://dev.perl.org/licenses/
Modified: branches/upstream/libtest-exception-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/Makefile.PL?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/Makefile.PL (original)
+++ branches/upstream/libtest-exception-perl/current/Makefile.PL Tue Jan 12 17:05:55 2010
@@ -1,20 +1,19 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
-require 5.6.1;
+# Note: this file was auto-generated by Module::Build::Compat version 0.35
use ExtUtils::MakeMaker;
WriteMakefile
(
+ 'PL_FILES' => {},
+ 'INSTALLDIRS' => 'site',
'NAME' => 'Test::Exception',
+ 'EXE_FILES' => [],
'VERSION_FROM' => 'lib/Test/Exception.pm',
'PREREQ_PM' => {
+ 'Test::More' => '0.7',
+ 'Test::Harness' => '2.03',
+ 'Test::Builder' => '0.7',
'Sub::Uplevel' => '0.18',
- 'Test::Builder' => '0.7',
- 'Test::Builder::Tester' => '1.07',
- 'Test::Harness' => '2.03',
- 'Test::More' => '0.7',
- 'Test::Simple' => '0.7'
- },
- 'INSTALLDIRS' => 'site',
- 'EXE_FILES' => [],
- 'PL_FILES' => {}
+ 'Test::Simple' => '0.7',
+ 'Test::Builder::Tester' => '1.07'
+ }
)
;
Modified: branches/upstream/libtest-exception-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/README?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/README (original)
+++ branches/upstream/libtest-exception-perl/current/README Tue Jan 12 17:05:55 2010
@@ -16,8 +16,8 @@
# Check an exception of the given class (or subclass) is thrown
throws_ok { $foo->method } 'Error::Simple', 'simple error thrown';
-
- # all Test::Exceptions subroutines are guaranteed to preserve the state
+
+ # all Test::Exceptions subroutines are guaranteed to preserve the state
# of $@ so you can do things like this after throws_ok and dies_ok
like $@, 'what the stringified exception should look like';
@@ -29,10 +29,10 @@
# Check that a test runs without an exception
lives_and { is $foo->method, 42 } 'method is 42';
-
- # or if you don't like prototyped functions
-
- throws_ok( sub { $foo->method }, qr/division by zero/,
+
+ # or if you don't like prototyped functions
+
+ throws_ok( sub { $foo->method }, qr/division by zero/,
'zero caught okay' );
throws_ok( sub { $foo->method }, 'Error::Simple',
'simple error thrown' );
@@ -201,13 +201,13 @@
use strict;
use warnings;
use Test::More;
-
- BEGIN {
+
+ BEGIN {
eval "use Test::Exception";
plan skip_all => "Test::Exception needed" if $@;
}
-
- plan tests => 2;
+
+ plan tests => 2;
# ... tests that need Test::Exception ...
Note that we load Test::Exception in a "BEGIN" block ensuring that the
@@ -262,9 +262,9 @@
Hek, Chris Dolan, chromatic, Curt Sampson, David Cantrell, David Golden,
David Wheeler, Janek Schleicher, Jim Keenan, Jos I. Boumans, Joshua ben
Jore, Jost Krieger, Mark Fowler, Michael G Schwern, Nadim Khemir, Paul
- McCann, Perrin Harkins, Peter Scott, Rob Muhlestein Scott R. Godin,
- Steve Purkis, Steve, Tim Bunce, and various anonymous folk for comments,
- suggestions, bug reports and patches.
+ McCann, Perrin Harkins, Peter Scott, Ricardo Signes, Rob Muhlestein
+ Scott R. Godin, Steve Purkis, Steve, Tim Bunce, and various anonymous
+ folk for comments, suggestions, bug reports and patches.
AUTHOR
Adrian Howard <adrianh at quietstars.com>
Modified: branches/upstream/libtest-exception-perl/current/lib/Test/Exception.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/lib/Test/Exception.pm?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/lib/Test/Exception.pm (original)
+++ branches/upstream/libtest-exception-perl/current/lib/Test/Exception.pm Tue Jan 12 17:05:55 2010
@@ -5,9 +5,8 @@
use Test::Builder;
use Sub::Uplevel qw( uplevel );
use base qw( Exporter );
-use Carp;
-
-our $VERSION = '0.27';
+
+our $VERSION = '0.29';
our @EXPORT = qw(dies_ok lives_ok throws_ok lives_and);
my $Tester = Test::Builder->new;
@@ -171,8 +170,10 @@
sub throws_ok (&$;$) {
my ( $coderef, $expecting, $description ) = @_;
- croak "throws_ok: must pass exception class/object or regex"
- unless defined $expecting;
+ unless (defined $expecting) {
+ require Carp;
+ Carp::croak( "throws_ok: must pass exception class/object or regex" );
+ }
$description = _exception_as_string( "threw", $expecting )
unless defined $description;
my $exception = _try_as_caller( $coderef );
@@ -405,6 +406,7 @@
Paul McCann,
Perrin Harkins,
Peter Scott,
+Ricardo Signes,
Rob Muhlestein
Scott R. Godin,
Steve Purkis,
Modified: branches/upstream/libtest-exception-perl/current/t/developer/spelling.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/t/developer/spelling.t?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/t/developer/spelling.t (original)
+++ branches/upstream/libtest-exception-perl/current/t/developer/spelling.t Tue Jan 12 17:05:55 2010
@@ -45,3 +45,5 @@
Pagaltzis
Dolan
RT
+Ricardo
+Signes
Modified: branches/upstream/libtest-exception-perl/current/t/stacktrace.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-exception-perl/current/t/stacktrace.t?rev=50807&op=diff
==============================================================================
--- branches/upstream/libtest-exception-perl/current/t/stacktrace.t (original)
+++ branches/upstream/libtest-exception-perl/current/t/stacktrace.t Tue Jan 12 17:05:55 2010
@@ -2,6 +2,7 @@
use strict;
use warnings;
+use Sub::Uplevel;
use Carp;
use Test::Builder::Tester tests => 2;
use Test::More;
More information about the Pkg-perl-cvs-commits
mailing list