Update upstream source from tag 'upstream/1.04'
Update to upstream version '1.04'
with Debian dir d24a96104de18543e4a341c2a96b27d8f262678e
gregor herrmann
4 years ago
0 | use Module::Build; | |
1 | ||
2 | my $build = Module::Build->new( | |
3 | module_name => 'Exception::Class::DBI', | |
4 | license => 'perl', | |
5 | create_makefile_pl => 'traditional', | |
6 | configure_requires => { 'Module::Build' => '0.2701' }, | |
7 | recommends => { 'Test::Pod' => '1.41' }, | |
8 | build_requires => { | |
9 | 'Module::Build' => '0.2701', | |
10 | 'Test::More' => '0.17', | |
11 | 'Test::Harness' => '2.03', | |
12 | }, | |
13 | requires => { | |
14 | 'DBI' => '1.28', | |
15 | 'Exception::Class' => '1.02', | |
16 | }, | |
17 | meta_merge => { | |
18 | resources => { | |
19 | homepage => 'http://search.cpan.org/dist/Exception-Class-DBI/', | |
20 | bugtracker => 'http://github.com/theory/exception-class-dbi/issues/', | |
21 | repository => 'http://github.com/theory/exception-class-dbi/', | |
22 | } | |
23 | }, | |
24 | ); | |
25 | $build->create_build_script; |
0 | 0 | Revision history for Perl extension Exception::Class::DBI. |
1 | ||
2 | 1.04 2019-05-27 14:41:02 -0400 | |
3 | - Production release identical to 1.03_01 | |
4 | ||
5 | 1.03_01 2019-05-10 20:53:22 -0600 | |
6 | - Require Perl 5.6 (for warnings) | |
7 | - Migrate to ExtUtils::MakeMaker for installer | |
8 | - Fix warnings in tests | |
9 | - New maintainer, GitHub repository and issue tracker | |
10 | (old GitHub URLs should forward to the new ones) | |
11 | ||
12 | 1.02 2011-06-19 | |
13 | - Fixed broken rt.cpan.org email address. | |
1 | 14 | |
2 | 15 | 1.01 2011-06-20T04:27:43 |
3 | 16 | - Fixed a warning in `t/sth.t`. |
0 | Build.PL | |
1 | 0 | Changes |
2 | 1 | lib/Exception/Class/DBI.pm |
2 | maint/releaseprep | |
3 | 3 | Makefile.PL |
4 | 4 | MANIFEST This list of files |
5 | META.json | |
6 | META.yml | |
7 | 5 | README.md |
8 | 6 | t/dbh.t |
9 | 7 | t/dbi.t |
11 | 9 | t/sth.t |
12 | 10 | t/subclass.t |
13 | 11 | t/z_pod.t |
12 | META.yml Module YAML meta-data (added by MakeMaker) | |
13 | META.json Module JSON meta-data (added by MakeMaker) |
0 | 0 | { |
1 | 1 | "abstract" : "DBI Exception objects", |
2 | 2 | "author" : [ |
3 | "David E. Wheeler <david@justatheory.com>" | |
3 | "unknown" | |
4 | 4 | ], |
5 | 5 | "dynamic_config" : 1, |
6 | "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110440", | |
6 | "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", | |
7 | 7 | "license" : [ |
8 | 8 | "perl_5" |
9 | 9 | ], |
10 | 10 | "meta-spec" : { |
11 | 11 | "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", |
12 | "version" : "2" | |
12 | "version" : 2 | |
13 | 13 | }, |
14 | 14 | "name" : "Exception-Class-DBI", |
15 | "no_index" : { | |
16 | "directory" : [ | |
17 | "t", | |
18 | "inc" | |
19 | ] | |
20 | }, | |
15 | 21 | "prereqs" : { |
16 | 22 | "build" : { |
17 | 23 | "requires" : { |
18 | "Module::Build" : "0.2701", | |
19 | "Test::Harness" : "2.03", | |
20 | "Test::More" : "0.17" | |
24 | "ExtUtils::MakeMaker" : "6.64" | |
21 | 25 | } |
22 | 26 | }, |
23 | 27 | "configure" : { |
24 | 28 | "requires" : { |
25 | "Module::Build" : "0.2701" | |
29 | "ExtUtils::MakeMaker" : "6.64" | |
26 | 30 | } |
27 | 31 | }, |
28 | 32 | "runtime" : { |
29 | "recommends" : { | |
30 | "Test::Pod" : "1.41" | |
31 | }, | |
32 | 33 | "requires" : { |
33 | 34 | "DBI" : "1.28", |
34 | "Exception::Class" : "1.02" | |
35 | "Exception::Class" : "1.02", | |
36 | "perl" : "5.006000" | |
35 | 37 | } |
36 | } | |
37 | }, | |
38 | "provides" : { | |
39 | "Exception::Class::DBI" : { | |
40 | "file" : "lib/Exception/Class/DBI.pm", | |
41 | "version" : "1.01" | |
42 | 38 | }, |
43 | "Exception::Class::DBI::DBH" : { | |
44 | "file" : "lib/Exception/Class/DBI.pm", | |
45 | "version" : 0 | |
46 | }, | |
47 | "Exception::Class::DBI::H" : { | |
48 | "file" : "lib/Exception/Class/DBI.pm", | |
49 | "version" : 0 | |
50 | }, | |
51 | "Exception::Class::DBI::STH" : { | |
52 | "file" : "lib/Exception/Class/DBI.pm", | |
53 | "version" : 0 | |
39 | "test" : { | |
40 | "requires" : { | |
41 | "Test::Harness" : "2.03", | |
42 | "Test::More" : "0.17" | |
43 | } | |
54 | 44 | } |
55 | 45 | }, |
56 | 46 | "release_status" : "stable", |
57 | 47 | "resources" : { |
58 | 48 | "bugtracker" : { |
59 | "web" : "http://github.com/theory/exception-class-dbi/issues/" | |
49 | "web" : "https://github.com/plicease/Exception-Class-DBI/issues" | |
60 | 50 | }, |
61 | "homepage" : "http://search.cpan.org/dist/Exception-Class-DBI/", | |
62 | "license" : [ | |
63 | "http://dev.perl.org/licenses/" | |
64 | ], | |
51 | "homepage" : "https://metacpan.org/pod/Exception-Class-DBI", | |
65 | 52 | "repository" : { |
66 | "url" : "http://github.com/theory/exception-class-dbi/" | |
53 | "type" : "git", | |
54 | "url" : "https://github.com/plicease/Exception-Class-DBI.git", | |
55 | "web" : "https://github.com/plicease/Exception-Class-DBI" | |
67 | 56 | } |
68 | 57 | }, |
69 | "version" : "1.01" | |
58 | "version" : "1.04", | |
59 | "x_serialization_backend" : "JSON::PP version 4.02" | |
70 | 60 | } |
0 | 0 | --- |
1 | 1 | abstract: 'DBI Exception objects' |
2 | 2 | author: |
3 | - 'David E. Wheeler <david@justatheory.com>' | |
3 | - unknown | |
4 | 4 | build_requires: |
5 | Module::Build: 0.2701 | |
6 | Test::Harness: 2.03 | |
7 | Test::More: 0.17 | |
5 | ExtUtils::MakeMaker: '6.64' | |
6 | Test::Harness: '2.03' | |
7 | Test::More: '0.17' | |
8 | 8 | configure_requires: |
9 | Module::Build: 0.2701 | |
9 | ExtUtils::MakeMaker: '6.64' | |
10 | 10 | dynamic_config: 1 |
11 | generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110440' | |
11 | generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' | |
12 | 12 | license: perl |
13 | 13 | meta-spec: |
14 | 14 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
15 | version: 1.4 | |
15 | version: '1.4' | |
16 | 16 | name: Exception-Class-DBI |
17 | provides: | |
18 | Exception::Class::DBI: | |
19 | file: lib/Exception/Class/DBI.pm | |
20 | version: 1.01 | |
21 | Exception::Class::DBI::DBH: | |
22 | file: lib/Exception/Class/DBI.pm | |
23 | version: 0 | |
24 | Exception::Class::DBI::H: | |
25 | file: lib/Exception/Class/DBI.pm | |
26 | version: 0 | |
27 | Exception::Class::DBI::STH: | |
28 | file: lib/Exception/Class/DBI.pm | |
29 | version: 0 | |
30 | recommends: | |
31 | Test::Pod: 1.41 | |
17 | no_index: | |
18 | directory: | |
19 | - t | |
20 | - inc | |
32 | 21 | requires: |
33 | DBI: 1.28 | |
34 | Exception::Class: 1.02 | |
22 | DBI: '1.28' | |
23 | Exception::Class: '1.02' | |
24 | perl: '5.006000' | |
35 | 25 | resources: |
36 | bugtracker: http://github.com/theory/exception-class-dbi/issues/ | |
37 | homepage: http://search.cpan.org/dist/Exception-Class-DBI/ | |
38 | license: http://dev.perl.org/licenses/ | |
39 | repository: http://github.com/theory/exception-class-dbi/ | |
40 | version: 1.01 | |
26 | bugtracker: https://github.com/plicease/Exception-Class-DBI/issues | |
27 | homepage: https://metacpan.org/pod/Exception-Class-DBI | |
28 | repository: https://github.com/plicease/Exception-Class-DBI.git | |
29 | version: '1.04' | |
30 | x_serialization_backend: 'CPAN::Meta::YAML version 0.018' |
0 | # Note: this file was auto-generated by Module::Build::Compat version 0.3800 | |
1 | use ExtUtils::MakeMaker; | |
2 | WriteMakefile | |
3 | ( | |
4 | 'NAME' => 'Exception::Class::DBI', | |
5 | 'VERSION_FROM' => 'lib/Exception/Class/DBI.pm', | |
6 | 'PREREQ_PM' => { | |
7 | 'DBI' => '1.28', | |
8 | 'Exception::Class' => '1.02', | |
9 | 'Module::Build' => '0.2701', | |
10 | 'Test::Harness' => '2.03', | |
11 | 'Test::More' => '0.17' | |
12 | }, | |
13 | 'INSTALLDIRS' => 'site', | |
14 | 'EXE_FILES' => [], | |
15 | 'PL_FILES' => {} | |
16 | ) | |
17 | ; | |
0 | use strict; | |
1 | use warnings; | |
2 | use 5.006; | |
3 | use ExtUtils::MakeMaker 6.64; | |
4 | ||
5 | WriteMakefile( | |
6 | NAME => 'Exception::Class::DBI', | |
7 | LICENSE => 'perl', | |
8 | VERSION_FROM => 'lib/Exception/Class/DBI.pm', | |
9 | ABSTRACT_FROM => 'lib/Exception/Class/DBI.pm', | |
10 | MIN_PERL_VERSION => '5.006000', | |
11 | ||
12 | CONFIGURE_REQUIRES => { | |
13 | 'ExtUtils::MakeMaker' => '6.64', | |
14 | }, | |
15 | ||
16 | BUILD_REQUIRES => { | |
17 | 'ExtUtils::MakeMaker' => '6.64', | |
18 | }, | |
19 | ||
20 | TEST_REQUIRES => { | |
21 | 'Test::More' => '0.17', | |
22 | 'Test::Harness' => '2.03', | |
23 | }, | |
24 | ||
25 | PREREQ_PM => { | |
26 | 'DBI' => '1.28', | |
27 | 'Exception::Class' => '1.02', | |
28 | }, | |
29 | ||
30 | META_MERGE => { | |
31 | 'meta-spec' => { version => 2 }, | |
32 | resources => { | |
33 | bugtracker => { | |
34 | web => 'https://github.com/plicease/Exception-Class-DBI/issues', | |
35 | }, | |
36 | homepage => 'https://metacpan.org/pod/Exception-Class-DBI', | |
37 | repository => { | |
38 | type => 'git', | |
39 | url => 'https://github.com/plicease/Exception-Class-DBI.git', | |
40 | web => 'https://github.com/plicease/Exception-Class-DBI', | |
41 | }, | |
42 | } | |
43 | }, | |
44 | ); |
0 | Exception/Class/DBI version 1.01 | |
0 | Exception/Class/DBI version 1.02 | |
1 | 1 | ================================ |
2 | 2 | |
3 | 3 | This module offers a set of DBI-specific exception classes. They inherit from |
38 | 38 | |
39 | 39 | This module requires these other modules and libraries: |
40 | 40 | |
41 | * Perl 5.6 or later | |
41 | 42 | * DBI 1.28 or later (1.30 or later strongly recommended). |
42 | 43 | * Exception::Class 1.02 or later (1.05 or later strongly recommended). |
43 | 44 | * Test::Simple 0.40 (for testing). |
0 | 0 | package Exception::Class::DBI; |
1 | 1 | |
2 | use 5.00500; | |
2 | use 5.006; | |
3 | 3 | use strict; |
4 | use warnings; | |
4 | 5 | use Exception::Class; |
5 | use vars qw($VERSION); | |
6 | $VERSION = '1.01'; | |
6 | ||
7 | our $VERSION = '1.04'; | |
7 | 8 | |
8 | 9 | use Exception::Class ( |
9 | 10 | 'Exception::Class::DBI' => { |
604 | 605 | =head1 Support |
605 | 606 | |
606 | 607 | This module is stored in an open L<GitHub |
607 | repository|http://github.com/theory/exception-class-dbi/>. Feel free to fork | |
608 | repository|http://github.com/plicease/Exception-Class-DBI/>. Feel free to fork | |
608 | 609 | and contribute! |
609 | 610 | |
610 | 611 | Please file bug reports via L<GitHub |
611 | Issues|http://github.com/theory/exception-class-dbi/issues/> or by sending | |
612 | Issues|http://github.com/plicease/Exception-Class-DBI/issues/> or by sending | |
612 | 613 | mail to |
613 | L<bug-Exception-Class-DBI.cpan.org|mailto:bug-Exception-Class-DBI.cpan.org>. | |
614 | L<bug-Exception-Class-DBI@rt.cpan.org|mailto:bug-Exception-Class-DBI@rt.cpan.org>. | |
614 | 615 | |
615 | 616 | =head1 Author |
616 | 617 | |
617 | David E. Wheeler <david@justatheory.com> | |
618 | Original Author is David E. Wheeler <david@justatheory.com> | |
619 | ||
620 | Current maintainer is Graham Ollis <plicease@cpan.org> | |
618 | 621 | |
619 | 622 | =head1 See Also |
620 | 623 | |
627 | 630 | |
628 | 631 | =head1 COPYRIGHT AND LICENSE |
629 | 632 | |
630 | Copyright (c) 2002-2011, David E. Wheeler. Some Rights Reserved. | |
633 | Copyright (c) 2002-2019, David E. Wheeler. Some Rights Reserved. | |
631 | 634 | |
632 | 635 | This module is free software; you can redistribute it and/or modify it under |
633 | 636 | the same terms as Perl itself. |
0 | #!/usr/bin/env perl | |
1 | ||
2 | use strict; | |
3 | use warnings; | |
4 | use autodie qw( :all ); | |
5 | use App::RewriteVersion; | |
6 | ||
7 | my $version = shift @ARGV; | |
8 | my $time = `date +'%F %T %z'`; | |
9 | chomp $time; | |
10 | ||
11 | if($version) | |
12 | { | |
13 | # update the version number in all modules | |
14 | { | |
15 | my $rewrite = App::RewriteVersion->new; | |
16 | $rewrite->allow_decimal_underscore(1); | |
17 | $rewrite->verbose(1); | |
18 | $rewrite->rewrite_versions($version); | |
19 | } | |
20 | ||
21 | # update the Changes file | |
22 | { | |
23 | my @lines; | |
24 | my $fh; | |
25 | my $first = 1; | |
26 | open $fh, '<', 'Changes'; | |
27 | while(my $line = <$fh>) | |
28 | { | |
29 | if($first && $line =~ /^\s+-/) | |
30 | { | |
31 | push @lines, "$version $time\n"; | |
32 | $first = 0; | |
33 | } | |
34 | push @lines, $line; | |
35 | } | |
36 | close $fh; | |
37 | open $fh, '>', 'Changes'; | |
38 | print $fh $_ for @lines; | |
39 | close $fh; | |
40 | } | |
41 | } | |
42 |
0 | #!/usr/bin/perl -w | |
1 | ||
2 | 0 | use strict; |
1 | use warnings; | |
3 | 2 | use Test::More tests => 27; |
4 | 3 | BEGIN { use_ok('Exception::Class::DBI') or die } |
5 | 4 | use DBI; |
0 | #!/usr/bin/perl -w | |
1 | ||
2 | 0 | use strict; |
1 | use warnings; | |
3 | 2 | use Test::More tests => 14; |
4 | 3 | BEGIN { use_ok('Exception::Class::DBI') or die } |
5 | 4 | use DBI; |
0 | #!/usr/bin/perl -w | |
1 | ||
2 | 0 | use strict; |
1 | use warnings; | |
3 | 2 | use Test::More tests => 21; |
4 | 3 | BEGIN { use_ok('Exception::Class::DBI') } |
5 | 4 | use DBI; |
9 | 8 | # to set the dynamic attributes. |
10 | 9 | use DBD::ExampleP; |
11 | 10 | local $^W; |
11 | no warnings 'redefine'; | |
12 | 12 | *DBD::ExampleP::dr::connect = |
13 | 13 | sub { $_[0]->set_err(7, 'Dammit Jim!', 'ABCDE') }; |
14 | 14 | } |
0 | #!/usr/bin/perl -w | |
1 | ||
2 | 0 | use strict; |
1 | use warnings; | |
3 | 2 | use Test::More tests => 35; |
4 | 3 | BEGIN { use_ok('Exception::Class::DBI') or die } |
5 | 4 | # Use PurePerl to get around CursorName bug. |
35 | 34 | is( $err->errstr, "opendir(foo): $bang", |
36 | 35 | "Check errstr" ); |
37 | 36 | like( $err->error, |
38 | qr/^DBD::ExampleP::st execute failed: opendir\(foo\): \E$bang/, | |
37 | qr/^DBD::ExampleP::st execute failed: opendir\(foo\): $bang/, | |
39 | 38 | "Check error" ); |
40 | 39 | is( $err->state, 'S1000', "Check state" ); |
41 | 40 | ok( ! defined $err->retval, "Check retval" ); |