[libexception-class-perl] 01/04: Imported Upstream version 1.42

dom at earth.li dom at earth.li
Wed Jan 4 23:00:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

dom pushed a commit to branch master
in repository libexception-class-perl.

commit 946e73f7c407db780c57304f27895fc2c10f2be3
Author: Dominic Hargreaves <dom at earth.li>
Date:   Wed Jan 4 22:50:29 2017 +0000

    Imported Upstream version 1.42
---
 CONTRIBUTING.md             |  2 +-
 Changes                     |  7 +++++++
 LICENSE                     |  6 +++---
 META.json                   | 17 +++++++++--------
 META.yml                    | 15 ++++++++-------
 Makefile.PL                 |  2 +-
 README.md                   |  9 +++++----
 lib/Exception/Class.pm      | 23 ++++++++++++++++++-----
 lib/Exception/Class/Base.pm |  6 +++---
 perlcriticrc                |  3 +++
 xt/author/pod-spell.t       |  3 +++
 11 files changed, 61 insertions(+), 32 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 457c37b..bcfab31 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -127,5 +127,5 @@ commit or patch), unless you specifically request for it not to be. If you
 wish to be listed under a different name or address, you should submit a pull
 request to the .mailmap file to contain the correct mapping.
 
-This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.012 from a
+This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.013 from a
 template file originating in Dist-Zilla-PluginBundle-DROLSKY-0.78.
diff --git a/Changes b/Changes
index cd9de21..f532517 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,10 @@
+1.42    2017-01-04
+
+- Generated exception classes are now added to %INC. If you subclass a
+  generated class with "use base" then base.pm will no longer attempt to load
+  the requested class. Patch by Todd Rinaldo. PR #8.
+
+
 1.41    2016-12-07
 
 - Switch to GitHub Issues.
diff --git a/LICENSE b/LICENSE
index 8763198..20ae53c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-This software is copyright (c) 2016 by Dave Rolsky.
+This software is copyright (c) 2017 by Dave Rolsky.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2016 by Dave Rolsky.
+This software is Copyright (c) 2017 by Dave Rolsky.
 
 This is free software, licensed under:
 
@@ -272,7 +272,7 @@ That's all there is to it!
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2016 by Dave Rolsky.
+This software is Copyright (c) 2017 by Dave Rolsky.
 
 This is free software, licensed under:
 
diff --git a/META.json b/META.json
index 52713d3..37e48e2 100644
--- a/META.json
+++ b/META.json
@@ -72,11 +72,11 @@
    "provides" : {
       "Exception::Class" : {
          "file" : "lib/Exception/Class.pm",
-         "version" : "1.41"
+         "version" : "1.42"
       },
       "Exception::Class::Base" : {
          "file" : "lib/Exception/Class/Base.pm",
-         "version" : "1.41"
+         "version" : "1.42"
       }
    },
    "release_status" : "stable",
@@ -91,7 +91,7 @@
          "web" : "https://github.com/houseabsolute/Exception-Class"
       }
    },
-   "version" : 1.41,
+   "version" : 1.42,
    "x_Dist_Zilla" : {
       "perl" : {
          "version" : "5.024000"
@@ -200,7 +200,7 @@
          {
             "class" : "Dist::Zilla::Plugin::GitHub::Meta",
             "name" : "@DROLSKY/GitHub::Meta",
-            "version" : "0.42"
+            "version" : "0.43"
          },
          {
             "class" : "Dist::Zilla::Plugin::GitHub::Update",
@@ -210,7 +210,7 @@
                }
             },
             "name" : "@DROLSKY/GitHub::Update",
-            "version" : "0.42"
+            "version" : "0.43"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaResources",
@@ -698,7 +698,7 @@
                }
             },
             "name" : "@DROLSKY/Generate CONTRIBUTING.md",
-            "version" : "0.012"
+            "version" : "0.013"
          },
          {
             "class" : "Dist::Zilla::Plugin::InstallGuide",
@@ -838,7 +838,7 @@
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v1.41",
+                  "tag" : "v1.42",
                   "tag_format" : "v%v",
                   "tag_message" : "v%v"
                },
@@ -996,8 +996,9 @@
    },
    "x_authority" : "cpan:DROLSKY",
    "x_contributors" : [
+      "Leon Timmermans <fawaka at gmail.com>",
       "Ricardo Signes <rjbs at cpan.org>"
    ],
-   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0115"
+   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0225"
 }
 
diff --git a/META.yml b/META.yml
index 868509a..fcd9bb0 100644
--- a/META.yml
+++ b/META.yml
@@ -18,10 +18,10 @@ name: Exception-Class
 provides:
   Exception::Class:
     file: lib/Exception/Class.pm
-    version: '1.41'
+    version: '1.42'
   Exception::Class::Base:
     file: lib/Exception/Class/Base.pm
-    version: '1.41'
+    version: '1.42'
 requires:
   Class::Data::Inheritable: '0.02'
   Devel::StackTrace: '2.00'
@@ -35,7 +35,7 @@ resources:
   bugtracker: https://github.com/houseabsolute/Exception-Class/issues
   homepage: http://metacpan.org/release/Exception-Class
   repository: git://github.com/houseabsolute/Exception-Class.git
-version: '1.41'
+version: '1.42'
 x_Dist_Zilla:
   perl:
     version: '5.024000'
@@ -122,14 +122,14 @@ x_Dist_Zilla:
     -
       class: Dist::Zilla::Plugin::GitHub::Meta
       name: '@DROLSKY/GitHub::Meta'
-      version: '0.42'
+      version: '0.43'
     -
       class: Dist::Zilla::Plugin::GitHub::Update
       config:
         Dist::Zilla::Plugin::GitHub::Update:
           metacpan: 1
       name: '@DROLSKY/GitHub::Update'
-      version: '0.42'
+      version: '0.43'
     -
       class: Dist::Zilla::Plugin::MetaResources
       name: '@DROLSKY/MetaResources'
@@ -510,7 +510,7 @@ x_Dist_Zilla:
           repo_root: .
           version: '0.006'
       name: '@DROLSKY/Generate CONTRIBUTING.md'
-      version: '0.012'
+      version: '0.013'
     -
       class: Dist::Zilla::Plugin::InstallGuide
       name: '@DROLSKY/InstallGuide'
@@ -618,7 +618,7 @@ x_Dist_Zilla:
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v1.41
+          tag: v1.42
           tag_format: v%v
           tag_message: v%v
         Dist::Zilla::Role::Git::Repo:
@@ -734,5 +734,6 @@ x_Dist_Zilla:
     version: '6.008'
 x_authority: cpan:DROLSKY
 x_contributors:
+  - 'Leon Timmermans <fawaka at gmail.com>'
   - 'Ricardo Signes <rjbs at cpan.org>'
 x_serialization_backend: 'YAML::Tiny version 1.69'
diff --git a/Makefile.PL b/Makefile.PL
index 0442c28..2bee7fd 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -30,7 +30,7 @@ my %WriteMakefileArgs = (
     "File::Spec" => 0,
     "Test::More" => "0.96"
   },
-  "VERSION" => "1.41",
+  "VERSION" => "1.42",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff --git a/README.md b/README.md
index fb11a49..339d4e9 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Exception::Class - A module that allows you to declare real exception classes in
 
 # VERSION
 
-version 1.41
+version 1.42
 
 # SYNOPSIS
 
@@ -307,13 +307,14 @@ button at [http://www.urth.org/~autarch/fs-donation.html](http://www.urth.org/~a
 
 Dave Rolsky <autarch at urth.org>
 
-# CONTRIBUTOR
+# CONTRIBUTORS
 
-Ricardo Signes <rjbs at cpan.org>
+- Leon Timmermans <fawaka at gmail.com>
+- Ricardo Signes <rjbs at cpan.org>
 
 # COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2016 by Dave Rolsky.
+This software is copyright (c) 2017 by Dave Rolsky.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
diff --git a/lib/Exception/Class.pm b/lib/Exception/Class.pm
index 996ce65..3488d54 100644
--- a/lib/Exception/Class.pm
+++ b/lib/Exception/Class.pm
@@ -5,7 +5,7 @@ use 5.008001;
 use strict;
 use warnings;
 
-our $VERSION = '1.41';
+our $VERSION = '1.42';
 
 use Exception::Class::Base;
 use Scalar::Util qw( blessed reftype );
@@ -188,6 +188,9 @@ EOPERL
     eval $code;
     die $@ if $@;
 
+    ( my $filename = "$subclass.pm" ) =~ s{::}{/}g;
+    $INC{$filename} = __FILE__;
+
     $CLASSES{$subclass} = 1;
 }
 
@@ -218,7 +221,7 @@ Exception::Class - A module that allows you to declare real exception classes in
 
 =head1 VERSION
 
-version 1.41
+version 1.42
 
 =head1 SYNOPSIS
 
@@ -529,15 +532,25 @@ button at L<http://www.urth.org/~autarch/fs-donation.html>.
 
 Dave Rolsky <autarch at urth.org>
 
-=head1 CONTRIBUTOR
+=head1 CONTRIBUTORS
+
+=for stopwords Leon Timmermans Ricardo Signes
+
+=over 4
+
+=item *
+
+Leon Timmermans <fawaka at gmail.com>
 
-=for stopwords Ricardo Signes
+=item *
 
 Ricardo Signes <rjbs at cpan.org>
 
+=back
+
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2016 by Dave Rolsky.
+This software is copyright (c) 2017 by Dave Rolsky.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
diff --git a/lib/Exception/Class/Base.pm b/lib/Exception/Class/Base.pm
index a0aa598..4b1c187 100644
--- a/lib/Exception/Class/Base.pm
+++ b/lib/Exception/Class/Base.pm
@@ -3,7 +3,7 @@ package Exception::Class::Base;
 use strict;
 use warnings;
 
-our $VERSION = '1.41';
+our $VERSION = '1.42';
 
 use Class::Data::Inheritable 0.02;
 use Devel::StackTrace 2.00;
@@ -268,7 +268,7 @@ Exception::Class::Base - A base class for exception objects
 
 =head1 VERSION
 
-version 1.41
+version 1.42
 
 =head1 SYNOPSIS
 
@@ -573,7 +573,7 @@ Dave Rolsky <autarch at urth.org>
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2016 by Dave Rolsky.
+This software is copyright (c) 2017 by Dave Rolsky.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
diff --git a/perlcriticrc b/perlcriticrc
index 1abe358..e920013 100644
--- a/perlcriticrc
+++ b/perlcriticrc
@@ -65,3 +65,6 @@ add_packages = Carp Test::Builder
 # prevents very common errors when using a sub in list context to construct a
 # hash and ending up with a missing value or key.
 [-Subroutines::ProhibitExplicitReturnUndef]
+
+[Variables::RequireLocalizedPunctuationVars]
+allow = %INC
diff --git a/xt/author/pod-spell.t b/xt/author/pod-spell.t
index bb5bb13..77b0570 100644
--- a/xt/author/pod-spell.t
+++ b/xt/author/pod-spell.t
@@ -19,17 +19,20 @@ DROLSKY's
 Dave
 Exception
 Kumar's
+Leon
 PayPal
 Ricardo
 Rolsky
 Rolsky's
 Signes
+Timmermans
 Uncatchable
 autarch
 automagic
 drolsky
 egid
 esque
+fawaka
 isa
 lib
 namespace

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libexception-class-perl.git



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