diff -Nru libexception-class-perl-1.44/appveyor.yml libexception-class-perl-1.45/appveyor.yml --- libexception-class-perl-1.44/appveyor.yml 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/appveyor.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ ---- -skip_tags: true -cache: - - C:\strawberry -install: - - if not exist "C:\strawberry" cinst strawberryperl -y - - set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH% - - cd %APPVEYOR_BUILD_FOLDER% - - cpanm --installdeps . -n -build_script: - - perl -e 1 -test_script: - - prove -lrv t/ -### __app_cisetup__ -# --- {} - -### __app_cisetup__ diff -Nru libexception-class-perl-1.44/azure-pipelines.yml libexception-class-perl-1.45/azure-pipelines.yml --- libexception-class-perl-1.44/azure-pipelines.yml 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/azure-pipelines.yml 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,31 @@ +resources: + repositories: + - repository: ci-perl-helpers + type: github + name: houseabsolute/ci-perl-helpers + endpoint: houseabsolute + +stages: + - template: templates/helpers/build.yml@ci-perl-helpers + parameters: + debug: true + + - template: templates/helpers/linux.yml@ci-perl-helpers + parameters: + coverage: codecov + debug: true + include_threads: true + test_xt: true + use_default_perls: true + + - template: templates/helpers/macos.yml@ci-perl-helpers + parameters: + debug: true + include_threads: true + use_default_perls: true + + - template: templates/helpers/windows.yml@ci-perl-helpers + parameters: + debug: true + use_default_perls: true + diff -Nru libexception-class-perl-1.44/Changes libexception-class-perl-1.45/Changes --- libexception-class-perl-1.44/Changes 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/Changes 2021-05-02 17:24:18.000000000 +0000 @@ -1,3 +1,9 @@ +1.45 2021-05-02 + +- The field names for an exception are now checked to ensure that they are + valid Perl identifiers. Implemented by brian d foy. PR #13. + + 1.44 2017-12-10 - You can now pass "frame_filter", "filter_frames_early", and "skip_frames" to diff -Nru libexception-class-perl-1.44/CODE_OF_CONDUCT.md libexception-class-perl-1.45/CODE_OF_CONDUCT.md --- libexception-class-perl-1.44/CODE_OF_CONDUCT.md 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/CODE_OF_CONDUCT.md 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,75 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, +body size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an +appointed representative at an online or offline event. Representation of a +project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at autarch@urth.org. All complaints +will be reviewed and investigated and will result in a response that is deemed +necessary and appropriate to the circumstances. The project team is obligated +to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 1.4, available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + diff -Nru libexception-class-perl-1.44/CONTRIBUTING.md libexception-class-perl-1.45/CONTRIBUTING.md --- libexception-class-perl-1.44/CONTRIBUTING.md 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/CONTRIBUTING.md 2021-05-02 17:24:18.000000000 +0000 @@ -10,122 +10,101 @@ these are just recommendations, intended to help you (and help us help you faster). - The distribution is managed with [Dist::Zilla](https://metacpan.org/release/Dist-Zilla). -However, you can still compile and test the code with the `Makefile.PL` or -`Build.PL` in the repository: +However, you can still compile and test the code with the +`MakeFile.PL` +in the repository: perl Makefile.PL make make test -or - perl Build.PL - ./Build - ./Build test - -As well as: - - $ prove -bvr t - -or - - $ perl -Mblib t/some_test_file.t You may need to satisfy some dependencies. The easiest way to satisfy dependencies is to install the last release. This is available at https://metacpan.org/release/Exception-Class -If you use cpanminus, you can do it without downloading the tarball first: - - $ cpanm --reinstall --installdeps --with-recommends Exception::Class - -Dist::Zilla is a very powerful authoring tool, but requires a number of -author-specific plugins. If you would like to use it for contributing, install -it from CPAN, then run one of the following commands, depending on your CPAN -client: +You can use [`cpanminus`](https://metacpan.org/pod/App::cpanminus) to do this +without downloading the tarball first: - $ cpan `dzil authordeps --missing` + $> cpanm --reinstall --installdeps --with-recommends Exception::Class -or +[`Dist::Zilla`](https://metacpan.org/pod/Dist::Zilla) is a very powerful +authoring tool, but requires a number of author-specific plugins. If you would +like to use it for contributing, install it from CPAN, then the following +command to install the needed distros: - $ dzil authordeps --missing | cpanm + $> dzil authordeps --missing | cpanm -They may also be additional requirements not needed by the dzil build which +There may also be additional requirements not needed by the dzil build which are needed for tests or other development: - $ cpan `dzil listdeps --author --missing` - -or - - $ dzil listdeps --author --missing | cpanm + $> dzil listdeps --author --missing | cpanm Or, you can use the 'dzil stale' command to install all requirements at once: - $ cpan Dist::Zilla::App::Command::stale - $ cpan `dzil stale --all` - -or - - $ cpanm Dist::Zilla::App::Command::stale - $ dzil stale --all | cpanm + $> cpanm Dist::Zilla::App::Command::stale + $> dzil stale --all | cpanm You can also do this via cpanm directly: - $ cpanm --reinstall --installdeps --with-develop --with-recommends Exception::Class + $> cpanm --reinstall --installdeps --with-develop --with-recommends Exception::Class Once installed, here are some dzil commands you might try: - $ dzil build - $ dzil test - $ dzil test --release - $ dzil xtest - $ dzil listdeps --json - $ dzil build --notgz + $> dzil build + $> dzil test + $> dzil test --release + $> dzil xtest + $> dzil listdeps --json + $> dzil build --notgz You can learn more about Dist::Zilla at http://dzil.org/. -The code for this distribution is [hosted at GitHub](https://github.com/houseabsolute/Exception-Class). +The code for this distribution is [hosted on GitHub](https://github.com/houseabsolute/Exception-Class). You can submit code changes by forking the repository, pushing your code -changes to your clone, and then submitting a pull request. Detailed -instructions for doing that is available here: - -https://help.github.com/articles/creating-a-pull-request +changes to your clone, and then submitting a pull request. Please update the +Changes file with a user-facing description of your changes as part of your +work. See the GitHub documentation for [detailed instructions on pull +requests](https://help.github.com/articles/creating-a-pull-request) If you have found a bug, but do not have an accompanying patch to fix it, you -can submit an issue report [via the web](https://github.com/houseabsolute/Exception-Class/issues) -). -This is a good place to send your questions about the usage of this distribution. +can submit an issue report [via the web](https://github.com/houseabsolute/Exception-Class/issues). -## Travis +## Continuous Integration -All pull requests for this distribution will be automatically tested by -[Travis](https://travis-ci.org/) and the build status will be reported on the -pull request page. If your build fails, please take a look at the output. +All pull requests for this distribution will be automatically tested using +[Azure Pipelines](https://dev.azure.com/houseabsolute/houseabsolute/_build). -## TidyAll +All CI results will be visible in the pull request on GitHub. Follow the +appropriate links for details when tests fail. PRs cannot be merged until tests +pass. -This distribution uses -[Code::TidyAll](https://metacpan.org/release/Code-TidyAll) to enforce a -uniform coding style. This is tested as part of the author testing suite. You -can install and run tidyall by running the following commands: +## Precious - $ cpanm Code::TidyAll - $ tidyall -a +This distribution uses [precious](https://github.com/houseabsolute/precious) +to enforce a uniform coding style. This is tested as part of the author +testing suite. You can install this and any other necessary non-Perl tools by +running `./dev-bin/install-xt-tools.sh`. Please run this before committing your changes and address any issues it brings up. +You can also set up a git pre-commit hook that checks all changed files for +linting issues by running `./git/setup.pl`. + ## Contributor Names If you send a patch or pull request, your name and email address will be included in the documentation as a contributor (using the attribution on the 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. +request to the `.mailmap` file to contain the correct mapping. + +## Generated By -This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.013 from a -template file originating in Dist-Zilla-PluginBundle-DROLSKY-0.88. +This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.015 from a +template file originating in Dist-Zilla-PluginBundle-DROLSKY-1.18. diff -Nru libexception-class-perl-1.44/cpanfile libexception-class-perl-1.45/cpanfile --- libexception-class-perl-1.44/cpanfile 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/cpanfile 2021-05-02 17:24:18.000000000 +0000 @@ -1,3 +1,7 @@ +# This file is generated by Dist::Zilla::Plugin::CPANFile v6.017 +# Do not edit this file directly. To change prereqs, edit the `dist.ini` file. + +requires "Carp" => "0"; requires "Class::Data::Inheritable" => "0.02"; requires "Devel::StackTrace" => "2.00"; requires "Scalar::Util" => "0"; @@ -22,20 +26,20 @@ }; on 'develop' => sub { - requires "Code::TidyAll" => "0.56"; - requires "Code::TidyAll::Plugin::SortLines::Naturally" => "0.000003"; - requires "Code::TidyAll::Plugin::Test::Vars" => "0.02"; + requires "Capture::Tiny" => "0"; requires "File::Spec" => "0"; + requires "FindBin" => "0"; requires "IO::Handle" => "0"; requires "IPC::Open3" => "0"; - requires "Parallel::ForkManager" => "1.19"; - requires "Perl::Critic" => "1.126"; - requires "Perl::Tidy" => "20160302"; + requires "Perl::Critic" => "1.138"; + requires "Perl::Critic::Moose" => "1.05"; + requires "Perl::Tidy" => "20210111"; + requires "Pod::Checker" => "1.74"; requires "Pod::Coverage::TrustPod" => "0"; + requires "Pod::Tidy" => "0.10"; requires "Pod::Wordlist" => "0"; requires "Test::CPAN::Changes" => "0.19"; requires "Test::CPAN::Meta::JSON" => "0.16"; - requires "Test::Code::TidyAll" => "0.50"; requires "Test::EOL" => "0"; requires "Test::Mojibake" => "0"; requires "Test::More" => "0.96"; @@ -44,6 +48,5 @@ requires "Test::Pod::Coverage" => "1.08"; requires "Test::Portability::Files" => "0"; requires "Test::Spelling" => "0.12"; - requires "Test::Vars" => "0.009"; requires "Test::Version" => "2.05"; }; diff -Nru libexception-class-perl-1.44/debian/changelog libexception-class-perl-1.45/debian/changelog --- libexception-class-perl-1.44/debian/changelog 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/changelog 2021-09-12 21:37:09.000000000 +0000 @@ -1,3 +1,37 @@ +libexception-class-perl (1.45-1) unstable; urgency=medium + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ Laurent Baillet ] + * fix lintian file-contains-trailing-whitespace warning + + [ gregor herrmann ] + * debian/watch: use uscan version 4. + + [ Debian Janitor ] + * Bump debhelper from old 10 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Submit. + * Remove obsolete fields Contact, Name from debian/upstream/metadata + (already present in machine-readable debian/copyright). + * Remove constraints unnecessary since stretch: + + Build-Depends-Indep: Drop versioned constraint on + libdevel-stacktrace-perl. + + libexception-class-perl: Drop versioned constraint on + libdevel-stacktrace-perl in Depends. + + [ gregor herrmann ] + * Import upstream version 1.45. + * Update years of upstream and packaging copyright. + * Install new CODE_OF_CONDUCT.md document. + * Declare compliance with Debian Policy 4.6.0. + * Set Rules-Requires-Root: no. + * Annotate test-only build dependencies with . + * Bump debhelper-compat to 13. + + -- gregor herrmann Sun, 12 Sep 2021 23:37:09 +0200 + libexception-class-perl (1.44-1) unstable; urgency=medium * Import upstream version 1.44. @@ -178,7 +212,7 @@ [ Jose Luis Rivas ] * New upstream release - * debian/control: + * debian/control: + Bumped to Standards-Version 3.8.0 (no changes needed). + Bumped dependencies to minimium required versions. @@ -277,4 +311,3 @@ * Initial Release (closes: #152846). -- Ivan Kohler Sat, 13 Jul 2002 06:36:08 -0700 - diff -Nru libexception-class-perl-1.44/debian/compat libexception-class-perl-1.45/debian/compat --- libexception-class-perl-1.44/debian/compat 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -10 diff -Nru libexception-class-perl-1.44/debian/control libexception-class-perl-1.45/debian/control --- libexception-class-perl-1.44/debian/control 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/control 2021-09-12 21:37:09.000000000 +0000 @@ -5,21 +5,22 @@ Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional -Build-Depends: debhelper (>= 10) -Build-Depends-Indep: libclass-data-inheritable-perl, - libdevel-stacktrace-perl (>= 2.00), +Build-Depends: debhelper-compat (= 13) +Build-Depends-Indep: libclass-data-inheritable-perl , + libdevel-stacktrace-perl , perl -Standards-Version: 4.1.3 -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libexception-class-perl.git -Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libexception-class-perl.git +Standards-Version: 4.6.0 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libexception-class-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libexception-class-perl.git Homepage: https://metacpan.org/release/Exception-Class +Rules-Requires-Root: no Package: libexception-class-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libclass-data-inheritable-perl, - libdevel-stacktrace-perl (>= 2.00) + libdevel-stacktrace-perl Description: module that allows you to declare real exception classes in Perl Exception::Class allows you to declare exceptions in your modules in a manner similar to how exceptions are declared in Java. diff -Nru libexception-class-perl-1.44/debian/copyright libexception-class-perl-1.45/debian/copyright --- libexception-class-perl-1.44/debian/copyright 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/copyright 2021-09-12 21:37:09.000000000 +0000 @@ -4,14 +4,14 @@ Source: https://metacpan.org/release/Exception-Class Files: * -Copyright: 2014-2017, David Rolsky +Copyright: 2014-2021, David Rolsky License: Artistic or GPL-1+ Files: debian/* Copyright: 2002, 2003, 2004, Ivan Kohler 2005, 2006, Jay Bonci 2008, Jose Luis Rivas - 2008-2018, gregor herrmann + 2008-2021, gregor herrmann 2009, 2010, Ansgar Burchardt 2011, Fabrizio Regalli 2016, Lucas Kanashiro diff -Nru libexception-class-perl-1.44/debian/libexception-class-perl.docs libexception-class-perl-1.45/debian/libexception-class-perl.docs --- libexception-class-perl-1.44/debian/libexception-class-perl.docs 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/libexception-class-perl.docs 2021-09-12 21:37:09.000000000 +0000 @@ -1 +1,2 @@ +CODE_OF_CONDUCT.md CONTRIBUTING.md diff -Nru libexception-class-perl-1.44/debian/upstream/metadata libexception-class-perl-1.45/debian/upstream/metadata --- libexception-class-perl-1.44/debian/upstream/metadata 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/upstream/metadata 2021-09-12 21:37:09.000000000 +0000 @@ -1,7 +1,6 @@ --- Archive: CPAN Bug-Database: https://github.com/houseabsolute/Exception-Class/issues -Contact: Dave Rolsky -Name: Exception-Class +Bug-Submit: https://github.com/houseabsolute/Exception-Class/issues/new Repository: https://github.com/houseabsolute/Exception-Class.git Repository-Browse: https://github.com/houseabsolute/Exception-Class diff -Nru libexception-class-perl-1.44/debian/watch libexception-class-perl-1.45/debian/watch --- libexception-class-perl-1.44/debian/watch 2018-01-06 20:37:19.000000000 +0000 +++ libexception-class-perl-1.45/debian/watch 2021-09-12 21:37:09.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 -https://metacpan.org/release/Exception-Class .*/Exception-Class-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) +version=4 +https://metacpan.org/release/Exception-Class .*/Exception-Class-v?@ANY_VERSION@@ARCHIVE_EXT@$ diff -Nru libexception-class-perl-1.44/dev-bin/install-xt-tools.sh libexception-class-perl-1.45/dev-bin/install-xt-tools.sh --- libexception-class-perl-1.44/dev-bin/install-xt-tools.sh 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/dev-bin/install-xt-tools.sh 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +TARGET="$HOME/bin" +if [ $(id -u) -eq 0 ]; then + TARGET="/usr/local/bin" +fi +echo "Installing dev tools to $TARGET" + +mkdir -p $TARGET +curl --silent --location \ + https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh | + sh + +"$TARGET/ubi" --project houseabsolute/precious --in "$TARGET" +"$TARGET/ubi" --project houseabsolute/omegasort --in "$TARGET" + +echo "Add $TARGET to your PATH in order to use precious for linting and tidying" diff -Nru libexception-class-perl-1.44/dist.ini libexception-class-perl-1.45/dist.ini --- libexception-class-perl-1.44/dist.ini 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/dist.ini 2021-05-02 17:24:18.000000000 +0000 @@ -3,6 +3,7 @@ license = Perl_5 copyright_holder = Dave Rolsky +; authordep Dist::Zilla::PluginBundle::DROLSKY = 1.18 [@DROLSKY] dist = Exception-Class next_release_width = 7 diff -Nru libexception-class-perl-1.44/git/hooks/pre-commit.sh libexception-class-perl-1.45/git/hooks/pre-commit.sh --- libexception-class-perl-1.44/git/hooks/pre-commit.sh 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/git/hooks/pre-commit.sh 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/bash + +status=0 + +PRECIOUS=$(which precious) +if [[ -z $PRECIOUS ]]; then + PRECIOUS=./bin/precious +fi + +"$PRECIOUS" lint -s +if (( $? != 0 )); then + status+=1 +fi + +exit $status diff -Nru libexception-class-perl-1.44/git/setup.pl libexception-class-perl-1.45/git/setup.pl --- libexception-class-perl-1.44/git/setup.pl 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/git/setup.pl 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,27 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use Cwd qw( abs_path ); + +symlink_hook('pre-commit'); + +sub symlink_hook { + my $hook = shift; + + my $dot = ".git/hooks/$hook"; + my $file = "git/hooks/$hook.sh"; + my $link = "../../$file"; + + if ( -e $dot ) { + if ( -l $dot ) { + return if readlink $dot eq $link; + } + warn "You already have a hook at $dot!\n"; + return; + } + + symlink $link, $dot + or die "Could not link $dot => $link: $!"; +} diff -Nru libexception-class-perl-1.44/INSTALL libexception-class-perl-1.45/INSTALL --- libexception-class-perl-1.44/INSTALL 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/INSTALL 2021-05-02 17:24:18.000000000 +0000 @@ -21,8 +21,11 @@ ## Manual installation -As a last resort, you can manually install it. Download the tarball, untar it, -then build it: +As a last resort, you can manually install it. If you have not already +downloaded the release tarball, you can find the download link on the module's +MetaCPAN page: https://metacpan.org/pod/Exception::Class + +Untar the tarball, install configure prerequisites (see below), then build it: % perl Makefile.PL % make && make test @@ -31,13 +34,42 @@ % make install +On Windows platforms, you should use `dmake` or `nmake`, instead of `make`. + If your perl is system-managed, you can create a local::lib in your home directory to install modules to. For details, see the local::lib documentation: https://metacpan.org/pod/local::lib +The prerequisites of this distribution will also have to be installed manually. The +prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated +by running the manual build process described above. + +## Configure Prerequisites + +This distribution requires other modules to be installed before this +distribution's installer can be run. They can be found under the +"configure_requires" key of META.yml or the +"{prereqs}{configure}{requires}" key of META.json. + +## Other Prerequisites + +This distribution may require additional modules to be installed after running +Makefile.PL. +Look for prerequisites in the following phases: + +* to run make, PHASE = build +* to use the module code itself, PHASE = runtime +* to run tests, PHASE = test + +They can all be found in the "PHASE_requires" key of MYMETA.yml or the +"{prereqs}{PHASE}{requires}" key of MYMETA.json. + ## Documentation Exception-Class documentation is available as POD. -You can run perldoc from a shell to read the documentation: +You can run `perldoc` from a shell to read the documentation: % perldoc Exception::Class + +For more information on installing Perl modules via CPAN, please see: +https://www.cpan.org/modules/INSTALL.html diff -Nru libexception-class-perl-1.44/lib/Exception/Class/Base.pm libexception-class-perl-1.45/lib/Exception/Class/Base.pm --- libexception-class-perl-1.44/lib/Exception/Class/Base.pm 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/lib/Exception/Class/Base.pm 2021-05-02 17:24:18.000000000 +0000 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.44'; +our $VERSION = '1.45'; use Class::Data::Inheritable 0.02; use Devel::StackTrace 2.00; @@ -107,7 +107,7 @@ sub _initialize { my $self = shift; - my %p = @_ == 1 ? ( error => $_[0] ) : @_; + my %p = @_ == 1 ? ( error => $_[0] ) : @_; $self->{message} = $p{message} || $p{error} || q{}; @@ -115,7 +115,7 @@ if ( $self->NoContextInfo ) { $self->{show_trace} = 0; - $self->{package} = $self->{file} = $self->{line} = undef; + $self->{package} = $self->{file} = $self->{line} = undef; } else { # CORE::time is important to fix an error with some versions of @@ -148,7 +148,7 @@ frame_filter filter_frames_early skip_frames - ), + ), ); } @@ -273,7 +273,7 @@ =head1 VERSION -version 1.44 +version 1.45 =head1 SYNOPSIS @@ -285,9 +285,8 @@ =head1 DESCRIPTION -This class is the base class for all exceptions created by -L. It provides a number of methods for getting information -about the exception. +This class is the base class for all exceptions created by L. +It provides a number of methods for getting information about the exception. =for Pod::Coverage Classes caught @@ -299,8 +298,8 @@ Each C subclass can be set individually to include a stacktrace when the C method is called. The default is to not -include a stacktrace. Calling this method with a value changes this -behavior. It always returns the current value (after any change is applied). +include a stacktrace. Calling this method with a value changes this behavior. +It always returns the current value (after any change is applied). This value is inherited by any subclasses. However, if this value is set for a subclass, it will thereafter be independent of the value in @@ -349,9 +348,9 @@ =head2 MyException->MaxArgLength($boolean) -When a C object stringifies, by default it displays the -full argument for each function. This parameter can be used to limit the -maximum length of each argument. +When a C object stringifies, by default it displays the full +argument for each function. This parameter can be used to limit the maximum +length of each argument. Since C uses C internally, this method provides a way to tell C to limit the length of @@ -382,10 +381,10 @@ message is given, this will be an empty string. It then dies with this object as its argument. -This method also takes a C parameter which indicates whether or -not the particular exception object being created should show a stacktrace -when its C method is called. This overrides the value of C -for this class if it is given. +This method also takes a C parameter which indicates whether or not +the particular exception object being created should show a stacktrace when its +C method is called. This overrides the value of C for this +class if it is given. The frames included in the trace can be controlled by the C and C parameters. These are passed directly to Devel::Stacktrace's @@ -415,9 +414,9 @@ =head2 $exception->rethrow -Simply dies with the object as its sole argument. It's just syntactic -sugar. This does not change any of the object's attribute values. However, it -will cause C to report the die as coming from within the +Simply dies with the object as its sole argument. It's just syntactic sugar. +This does not change any of the object's attribute values. However, it will +cause C to report the die as coming from within the C class rather than where rethrow was called. Of course, you always have access to the original stacktrace for the exception @@ -510,8 +509,8 @@ =head2 $exception->full_message Called by the C method to get the message. By default, this is the -same as calling the C method, but may be overridden by a -subclass. See below for details. +same as calling the C method, but may be overridden by a subclass. See +below for details. =head1 LIGHTWEIGHT EXCEPTIONS @@ -584,7 +583,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2017 by Dave Rolsky. +This software is copyright (c) 2021 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 -Nru libexception-class-perl-1.44/lib/Exception/Class.pm libexception-class-perl-1.45/lib/Exception/Class.pm --- libexception-class-perl-1.44/lib/Exception/Class.pm 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/lib/Exception/Class.pm 2021-05-02 17:24:18.000000000 +0000 @@ -5,8 +5,9 @@ use strict; use warnings; -our $VERSION = '1.44'; +our $VERSION = '1.45'; +use Carp qw( croak ); use Exception::Class::Base; use Scalar::Util qw( blessed reftype ); @@ -161,6 +162,9 @@ . ") }\n\n"; foreach my $field (@fields) { + croak + "Invalid field name <$field>. A field name must be a legal Perl identifier." + unless $field =~ /\A[a-z_][a-z0-9_]*\z/i; $code .= sprintf( "sub %s { \$_[0]->{%s} }\n", $field, $field ); } } @@ -221,7 +225,7 @@ =head1 VERSION -version 1.44 +version 1.45 =head1 SYNOPSIS @@ -285,8 +289,8 @@ B: Whether or not you use L, you should use L. -Exception::Class allows you to declare exception hierarchies in your modules -in a "Java-esque" manner. +Exception::Class allows you to declare exception hierarchies in your modules in +a "Java-esque" manner. It features a simple interface allowing programmers to 'declare' exception classes at compile time. It also has a base exception class, @@ -325,12 +329,11 @@ =item * isa -This is the class's parent class. If this isn't provided then the class name -in C<$Exception::Class::BASE_EXC_CLASS> is assumed to be the parent (see -below). +This is the class's parent class. If this isn't provided then the class name in +C<$Exception::Class::BASE_EXC_CLASS> is assumed to be the parent (see below). -This parameter lets you create arbitrarily deep class hierarchies. This can -be any other L subclass in your declaration I a +This parameter lets you create arbitrarily deep class hierarchies. This can be +any other L subclass in your declaration I a subclass loaded from a module. To change the default exception class you will need to change the value of @@ -343,19 +346,24 @@ CAVEAT: If you want to automagically subclass an L subclass loaded from a file, then you I compile the class (via use or -require or some other magic) I you import C or -you'll get a compile time error. +require or some other magic) I you import C or you'll +get a compile time error. =item * fields This allows you to define additional attributes for your exception class. Any field you define can be passed to the C or C methods as additional -parameters for the constructor. In addition, your exception object will have -an accessor method for the fields you define. +parameters for the constructor. In addition, your exception object will have an +accessor method for the fields you define. This parameter can be either a scalar (for a single field) or an array reference if you need to define multiple fields. +Each field name must be a legal Perl identifier: it starts with a ASCII letter +or underscore, and is followed by zero or more ASCII letters, ASCII digits, or +underscores. If a field name does not match this, the creation of that +exception class croaks. + Fields will be inherited by subclasses. =item * alias @@ -366,24 +374,24 @@ Besides convenience, using aliases also allows for additional compile time checking. If the alias is called I, as in C, then Perl checks for the existence of the -C subroutine at compile time. If instead you do C<< -ExceptionWithFields->throw(...) >>, then Perl checks the class name at -runtime, meaning that typos may sneak through. +"an error occurred">, then Perl checks for the existence of the C +subroutine at compile time. If instead you do C<< +ExceptionWithFields->throw(...) >>, then Perl checks the class name at runtime, +meaning that typos may sneak through. =item * description -Each exception class has a description method that returns a fixed -string. This should describe the exception I (as opposed to any -particular exception object). This may be useful for debugging if you start -catching exceptions you weren't expecting (particularly if someone forgot to -document them) and you don't understand the error messages. +Each exception class has a description method that returns a fixed string. This +should describe the exception I (as opposed to any particular exception +object). This may be useful for debugging if you start catching exceptions you +weren't expecting (particularly if someone forgot to document them) and you +don't understand the error messages. =back -The C magic attempts to detect circular class hierarchies -and will die if it finds one. It also detects missing links in a chain, for -example if you declare Bar to be a subclass of Foo and never declare Foo. +The C magic attempts to detect circular class hierarchies and +will die if it finds one. It also detects missing links in a chain, for example +if you declare Bar to be a subclass of Foo and never declare Foo. =head1 L @@ -423,8 +431,8 @@ } The C method takes a class name and returns an exception object if the -last thrown exception is of the given class, or a subclass of that class. If -it is not given any arguments, it simply returns C<$@>. +last thrown exception is of the given class, or a subclass of that class. If it +is not given any arguments, it simply returns C<$@>. You should B make a copy of the exception object, rather than using C<$@> directly. This is necessary because if your C function uses @@ -491,16 +499,16 @@ As part of your usage of C, you may want to create your own base exception class which subclasses L. You should -feel free to subclass any of the methods documented above. For example, you -may want to subclass C to add additional information to your exception +feel free to subclass any of the methods documented above. For example, you may +want to subclass C to add additional information to your exception objects. =head1 Exception::Class FUNCTIONS The C method offers one function, C, which is not exported. This method returns a list of the classes that have been created by -calling the C C method. Note that this is I -the subclasses that have been created, so it may include subclasses created by +calling the C C method. Note that this is I the +subclasses that have been created, so it may include subclasses created by things like CPAN modules, etc. Also note that if you simply define a subclass via the normal Perl method of setting C<@ISA> or C, then your subclass will not be included. @@ -530,7 +538,7 @@ on free software full time (let's all have a chuckle at that together). To donate, log into PayPal and send money to autarch@urth.org, or use the -button at L. +button at L. =head1 AUTHOR @@ -538,7 +546,7 @@ =head1 CONTRIBUTORS -=for stopwords Alexander Batyrshin Leon Timmermans Ricardo Signes +=for stopwords Alexander Batyrshin brian d foy Leon Timmermans Ricardo Signes =over 4 @@ -548,6 +556,10 @@ =item * +brian d foy + +=item * + Leon Timmermans =item * @@ -558,7 +570,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2017 by Dave Rolsky. +This software is copyright (c) 2021 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 -Nru libexception-class-perl-1.44/LICENSE libexception-class-perl-1.45/LICENSE --- libexception-class-perl-1.44/LICENSE 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/LICENSE 2021-05-02 17:24:18.000000000 +0000 @@ -1,4 +1,4 @@ -This software is copyright (c) 2017 by Dave Rolsky. +This software is copyright (c) 2021 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 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2017 by Dave Rolsky. +This software is Copyright (c) 2021 by Dave Rolsky. This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2017 by Dave Rolsky. +This software is Copyright (c) 2021 by Dave Rolsky. This is free software, licensed under: diff -Nru libexception-class-perl-1.44/Makefile.PL libexception-class-perl-1.45/Makefile.PL --- libexception-class-perl-1.44/Makefile.PL 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/Makefile.PL 2021-05-02 17:24:18.000000000 +0000 @@ -1,9 +1,12 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. +# This Makefile.PL for Exception-Class was generated by +# Dist::Zilla::Plugin::DROLSKY::MakeMaker 1.18 +# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.48. +# Don't edit it but the dist.ini and plugins used to construct it. + use strict; use warnings; use 5.008001; - use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( @@ -17,6 +20,7 @@ "MIN_PERL_VERSION" => "5.008001", "NAME" => "Exception::Class", "PREREQ_PM" => { + "Carp" => 0, "Class::Data::Inheritable" => "0.02", "Devel::StackTrace" => "2.00", "Scalar::Util" => 0, @@ -30,14 +34,14 @@ "File::Spec" => 0, "Test::More" => "0.96" }, - "VERSION" => "1.44", + "VERSION" => "1.45", "test" => { "TESTS" => "t/*.t" } ); - my %FallbackPrereqs = ( + "Carp" => 0, "Class::Data::Inheritable" => "0.02", "Devel::StackTrace" => "2.00", "ExtUtils::MakeMaker" => 0, @@ -50,8 +54,7 @@ "warnings" => 0 ); - -unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { +unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; diff -Nru libexception-class-perl-1.44/MANIFEST libexception-class-perl-1.45/MANIFEST --- libexception-class-perl-1.44/MANIFEST 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/MANIFEST 2021-05-02 17:24:18.000000000 +0000 @@ -1,4 +1,5 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.017. +CODE_OF_CONDUCT.md CONTRIBUTING.md Changes INSTALL @@ -8,22 +9,26 @@ META.yml Makefile.PL README.md -appveyor.yml +azure-pipelines.yml bench/simple cpanfile +dev-bin/install-xt-tools.sh dist.ini +git/hooks/pre-commit.sh +git/setup.pl lib/Exception/Class.pm lib/Exception/Class/Base.pm perlcriticrc perltidyrc +precious.toml t/00-report-prereqs.dd t/00-report-prereqs.t t/basic.t t/caught.t t/context.t t/ecb-standalone.t +t/field-names.t t/ignore.t -tidyall.ini xt/author/00-compile.t xt/author/eol.t xt/author/mojibake.t @@ -32,7 +37,7 @@ xt/author/pod-spell.t xt/author/pod-syntax.t xt/author/portability.t +xt/author/precious.t xt/author/test-version.t -xt/author/tidyall.t xt/release/cpan-changes.t xt/release/meta-json.t diff -Nru libexception-class-perl-1.44/META.json libexception-class-perl-1.45/META.json --- libexception-class-perl-1.44/META.json 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/META.json 2021-05-02 17:24:18.000000000 +0000 @@ -4,7 +4,7 @@ "Dave Rolsky " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -21,20 +21,20 @@ }, "develop" : { "requires" : { - "Code::TidyAll" : "0.56", - "Code::TidyAll::Plugin::SortLines::Naturally" : "0.000003", - "Code::TidyAll::Plugin::Test::Vars" : "0.02", + "Capture::Tiny" : "0", "File::Spec" : "0", + "FindBin" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", - "Parallel::ForkManager" : "1.19", - "Perl::Critic" : "1.126", - "Perl::Tidy" : "20160302", + "Perl::Critic" : "1.138", + "Perl::Critic::Moose" : "1.05", + "Perl::Tidy" : "20210111", + "Pod::Checker" : "1.74", "Pod::Coverage::TrustPod" : "0", + "Pod::Tidy" : "0.10", "Pod::Wordlist" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta::JSON" : "0.16", - "Test::Code::TidyAll" : "0.50", "Test::EOL" : "0", "Test::Mojibake" : "0", "Test::More" : "0.96", @@ -43,12 +43,12 @@ "Test::Pod::Coverage" : "1.08", "Test::Portability::Files" : "0", "Test::Spelling" : "0.12", - "Test::Vars" : "0.009", "Test::Version" : "2.05" } }, "runtime" : { "requires" : { + "Carp" : "0", "Class::Data::Inheritable" : "0.02", "Devel::StackTrace" : "2.00", "Scalar::Util" : "0", @@ -73,11 +73,11 @@ "provides" : { "Exception::Class" : { "file" : "lib/Exception/Class.pm", - "version" : "1.44" + "version" : "1.45" }, "Exception::Class::Base" : { "file" : "lib/Exception/Class/Base.pm", - "version" : "1.44" + "version" : "1.45" } }, "release_status" : "stable", @@ -85,34 +85,30 @@ "bugtracker" : { "web" : "https://github.com/houseabsolute/Exception-Class/issues" }, - "homepage" : "http://metacpan.org/release/Exception-Class", + "homepage" : "https://metacpan.org/release/Exception-Class", "repository" : { "type" : "git", "url" : "git://github.com/houseabsolute/Exception-Class.git", "web" : "https://github.com/houseabsolute/Exception-Class" } }, - "version" : "1.44", + "version" : "1.45", "x_Dist_Zilla" : { "perl" : { - "version" : "5.026001" + "version" : "5.030001" }, "plugins" : [ { - "class" : "Dist::Zilla::Plugin::MakeMaker", - "config" : { - "Dist::Zilla::Role::TestRunner" : { - "default_jobs" : 1 - } - }, - "name" : "@DROLSKY/MakeMaker", - "version" : "6.010" + "class" : "Dist::Zilla::Plugin::DROLSKY::BundleAuthordep", + "name" : "@DROLSKY/DROLSKY::BundleAuthordep", + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ + "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", "Makefile.PL", @@ -131,32 +127,32 @@ } }, "name" : "@DROLSKY/Git::GatherDir", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@DROLSKY/ManifestSkip", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@DROLSKY/License", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@DROLSKY/ExecDir", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@DROLSKY/ShareDir", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@DROLSKY/Manifest", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::CheckVersionIncrement", @@ -166,22 +162,28 @@ { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@DROLSKY/TestRelease", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@DROLSKY/ConfirmRelease", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@DROLSKY/UploadToCPAN", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::VersionFromMainModule", + "config" : { + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000037", + "version" : "0.006" + } + }, "name" : "@DROLSKY/VersionFromMainModule", - "version" : "0.03" + "version" : "0.04" }, { "class" : "Dist::Zilla::Plugin::Authority", @@ -191,7 +193,7 @@ { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@DROLSKY/AutoPrereqs", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", @@ -201,7 +203,7 @@ { "class" : "Dist::Zilla::Plugin::GitHub::Meta", "name" : "@DROLSKY/GitHub::Meta", - "version" : "0.44" + "version" : "0.48" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", @@ -211,12 +213,12 @@ } }, "name" : "@DROLSKY/GitHub::Update", - "version" : "0.44" + "version" : "0.48" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@DROLSKY/MetaResources", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", @@ -226,7 +228,7 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "6.010" + "version" : "6.017" } ], "include_underscores" : 0 @@ -238,8 +240,8 @@ "meta_noindex" : 1 }, "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000033", - "version" : "0.004" + "Module::Metadata" : "1.000037", + "version" : "0.006" } }, "name" : "@DROLSKY/MetaProvides::Package", @@ -253,22 +255,22 @@ { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@DROLSKY/MetaConfig", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@DROLSKY/MetaJSON", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@DROLSKY/MetaYAML", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@DROLSKY/NextRelease", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -279,7 +281,7 @@ } }, "name" : "@DROLSKY/Test::More with subtest", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -289,8 +291,8 @@ "type" : "requires" } }, - "name" : "@DROLSKY/Modules for use with tidyall", - "version" : "6.010" + "name" : "@DROLSKY/Tools for use with precious", + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -301,7 +303,7 @@ } }, "name" : "@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -318,7 +320,7 @@ } }, "name" : "@DROLSKY/Dist::Zilla::PluginBundle::DROLSKY", - "version" : "0.054" + "version" : "0.057" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -330,22 +332,28 @@ "phase" : "release", "run_under_travis" : 0, "skip" : [ + "Dist::Zilla::Plugin::DROLSKY::BundleAuthordep", "Dist::Zilla::Plugin::DROLSKY::Contributors", "Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch", "Dist::Zilla::Plugin::DROLSKY::License", - "Dist::Zilla::Plugin::DROLSKY::TidyAll", + "Dist::Zilla::Plugin::DROLSKY::MakeMaker", + "Dist::Zilla::Plugin::DROLSKY::PerlLinterConfigFiles", + "Dist::Zilla::Plugin::DROLSKY::Precious", + "Dist::Zilla::Plugin::DROLSKY::Role::CoreCounter", + "Dist::Zilla::Plugin::DROLSKY::RunExtraTests", + "Dist::Zilla::Plugin::DROLSKY::Test::Precious", "Dist::Zilla::Plugin::DROLSKY::WeaverConfig", "Pod::Weaver::PluginBundle::DROLSKY" ] } }, "name" : "@DROLSKY/PromptIfStale", - "version" : "0.054" + "version" : "0.057" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "@DROLSKY/Test::Pod::Coverage::Configurable", - "version" : "0.06" + "version" : "0.07" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", @@ -387,22 +395,22 @@ } }, "name" : "@DROLSKY/Test::PodSpelling", - "version" : "2.007004" + "version" : "2.007005" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@DROLSKY/PodSyntaxTests", - "version" : "6.010" + "version" : "6.017" }, { - "class" : "Dist::Zilla::Plugin::RunExtraTests", + "class" : "Dist::Zilla::Plugin::DROLSKY::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { - "default_jobs" : 1 + "default_jobs" : 24 } }, - "name" : "@DROLSKY/RunExtraTests", - "version" : "0.029" + "name" : "@DROLSKY/DROLSKY::RunExtraTests", + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", @@ -466,11 +474,6 @@ "version" : "2.001000" }, { - "class" : "Dist::Zilla::Plugin::Test::TidyAll", - "name" : "@DROLSKY/Test::TidyAll", - "version" : "0.04" - }, - { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { @@ -491,12 +494,12 @@ } }, "name" : "@DROLSKY/Test::Compile", - "version" : "2.057" + "version" : "2.058" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@DROLSKY/Test::ReportPrereqs", - "version" : "0.027" + "version" : "0.028" }, { "class" : "Dist::Zilla::Plugin::Test::Version", @@ -504,15 +507,20 @@ "version" : "1.09" }, { + "class" : "Dist::Zilla::Plugin::DROLSKY::Test::Precious", + "name" : "@DROLSKY/DROLSKY::Test::Precious", + "version" : "1.18" + }, + { "class" : "Dist::Zilla::Plugin::DROLSKY::Contributors", "name" : "@DROLSKY/DROLSKY::Contributors", - "version" : "0.88" + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -520,7 +528,7 @@ } }, "name" : "@DROLSKY/Git::Contributors", - "version" : "0.032" + "version" : "0.036" }, { "class" : "Dist::Zilla::Plugin::SurgicalPodWeaver", @@ -660,6 +668,11 @@ "version" : "4.015" }, { + "class" : "Pod::Weaver::Section::AllowOverride", + "name" : "@DROLSKY/allow override Legal", + "version" : "0.05" + }, + { "class" : "Pod::Weaver::Section::Region", "name" : "@DROLSKY/footer", "version" : "4.015" @@ -673,7 +686,7 @@ { "class" : "Dist::Zilla::Plugin::DROLSKY::WeaverConfig", "name" : "@DROLSKY/DROLSKY::WeaverConfig", - "version" : "0.88" + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", @@ -699,26 +712,52 @@ "Dist::Zilla::Role::RepoFileInjector" : { "allow_overwrite" : 1, "repo_root" : ".", - "version" : "0.007" + "version" : "0.009" } }, "name" : "@DROLSKY/Generate CONTRIBUTING.md", - "version" : "0.013" + "version" : "0.015" + }, + { + "class" : "Dist::Zilla::Plugin::GenerateFile::FromShareDir", + "config" : { + "Dist::Zilla::Plugin::GenerateFile::FromShareDir" : { + "destination_filename" : "CODE_OF_CONDUCT.md", + "dist" : "Dist-Zilla-PluginBundle-DROLSKY", + "encoding" : "UTF-8", + "has_xs" : 0, + "location" : "build", + "source_filename" : "CODE_OF_CONDUCT.md" + }, + "Dist::Zilla::Role::RepoFileInjector" : { + "allow_overwrite" : 1, + "repo_root" : ".", + "version" : "0.009" + } + }, + "name" : "@DROLSKY/Generate CODE_OF_CONDUCT.md", + "version" : "0.015" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", + "config" : { + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000037", + "version" : "0.006" + } + }, "name" : "@DROLSKY/InstallGuide", - "version" : "1.200007" + "version" : "1.200014" }, { "class" : "Dist::Zilla::Plugin::CPANFile", "name" : "@DROLSKY/CPANFile", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::License", "name" : "@DROLSKY/DROLSKY::License", - "version" : "0.88" + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::CheckStrictVersion", @@ -734,8 +773,8 @@ ] }, "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000033", - "version" : "0.004" + "Module::Metadata" : "1.000037", + "version" : "0.006" } }, "name" : "@DROLSKY/CheckSelfDependency", @@ -750,12 +789,12 @@ "class" : "Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch", "config" : { "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." } }, "name" : "@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch", - "version" : "0.88" + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::EnsureChangesHasContent", @@ -766,7 +805,7 @@ "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "config" : { "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." } }, @@ -774,9 +813,19 @@ "version" : "0.014" }, { - "class" : "Dist::Zilla::Plugin::DROLSKY::TidyAll", - "name" : "@DROLSKY/DROLSKY::TidyAll", - "version" : "0.88" + "class" : "Dist::Zilla::Plugin::DROLSKY::PerlLinterConfigFiles", + "name" : "@DROLSKY/DROLSKY::PerlLinterConfigFiles", + "version" : "1.18" + }, + { + "class" : "Dist::Zilla::Plugin::DROLSKY::DevTools", + "name" : "@DROLSKY/DROLSKY::DevTools", + "version" : "1.18" + }, + { + "class" : "Dist::Zilla::Plugin::DROLSKY::Precious", + "name" : "@DROLSKY/DROLSKY::Precious", + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::Git::Check", @@ -786,47 +835,50 @@ }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ + "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile", - "tidyall.ini" + "precious.toml" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." } }, "name" : "@DROLSKY/Git::Check", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "v%v%n%n%c" + "commit_msg" : "v%V%n%n%c", + "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ + "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile", - "tidyall.ini" + "precious.toml" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -834,7 +886,7 @@ } }, "name" : "@DROLSKY/Commit generated files", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", @@ -843,12 +895,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v1.44", - "tag_format" : "v%v", - "tag_message" : "v%v" + "tag" : "v1.45", + "tag_format" : "v%V", + "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -856,7 +908,7 @@ } }, "name" : "@DROLSKY/Git::Tag", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Push", @@ -868,12 +920,12 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." } }, "name" : "@DROLSKY/Git::Push", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", @@ -888,14 +940,15 @@ } }, "name" : "@DROLSKY/BumpVersionAfterRelease", - "version" : "0.016" + "version" : "0.018" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "Bump version after release" + "commit_msg" : "Bump version after release", + "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ @@ -908,7 +961,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -916,7 +969,7 @@ } }, "name" : "@DROLSKY/Commit version bump", - "version" : "2.043" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Push", @@ -928,67 +981,85 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.15.1", + "git_version" : "2.31.1", "repo_root" : "." } }, "name" : "@DROLSKY/Push version bump", - "version" : "2.043" + "version" : "2.047" + }, + { + "class" : "Dist::Zilla::Plugin::DROLSKY::MakeMaker", + "config" : { + "Dist::Zilla::Plugin::MakeMaker" : { + "make_path" : "make", + "version" : "6.017" + }, + "Dist::Zilla::Plugin::MakeMaker::Awesome" : { + "version" : "0.48" + }, + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : 24, + "version" : "6.017" + } + }, + "name" : "@DROLSKY/DROLSKY::MakeMaker", + "version" : "1.18" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.010" + "version" : "6.017" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "6.010" + "version" : "6.017" } ], "zilla" : { @@ -996,15 +1067,18 @@ "config" : { "is_trial" : 0 }, - "version" : "6.010" + "version" : "6.017" } }, "x_authority" : "cpan:DROLSKY", "x_contributors" : [ "Alexander Batyrshin <0x62ash@gmail.com>", + "brian d foy ", "Leon Timmermans ", "Ricardo Signes " ], - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0239" + "x_generated_by_perl" : "v5.30.1", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.19", + "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } diff -Nru libexception-class-perl-1.44/META.yml libexception-class-perl-1.45/META.yml --- libexception-class-perl-1.44/META.yml 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/META.yml 2021-05-02 17:24:18.000000000 +0000 @@ -9,7 +9,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -18,11 +18,12 @@ provides: Exception::Class: file: lib/Exception/Class.pm - version: '1.44' + version: '1.45' Exception::Class::Base: file: lib/Exception/Class/Base.pm - version: '1.44' + version: '1.45' requires: + Carp: '0' Class::Data::Inheritable: '0.02' Devel::StackTrace: '2.00' Scalar::Util: '0' @@ -33,25 +34,23 @@ warnings: '0' resources: bugtracker: https://github.com/houseabsolute/Exception-Class/issues - homepage: http://metacpan.org/release/Exception-Class + homepage: https://metacpan.org/release/Exception-Class repository: git://github.com/houseabsolute/Exception-Class.git -version: '1.44' +version: '1.45' x_Dist_Zilla: perl: - version: '5.026001' + version: '5.030001' plugins: - - class: Dist::Zilla::Plugin::MakeMaker - config: - Dist::Zilla::Role::TestRunner: - default_jobs: 1 - name: '@DROLSKY/MakeMaker' - version: '6.010' + class: Dist::Zilla::Plugin::DROLSKY::BundleAuthordep + name: '@DROLSKY/DROLSKY::BundleAuthordep' + version: '1.18' - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: + - CODE_OF_CONDUCT.md - CONTRIBUTING.md - LICENSE - Makefile.PL @@ -66,27 +65,27 @@ Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@DROLSKY/Git::GatherDir' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::ManifestSkip name: '@DROLSKY/ManifestSkip' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::License name: '@DROLSKY/License' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::ExecDir name: '@DROLSKY/ExecDir' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::ShareDir name: '@DROLSKY/ShareDir' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::Manifest name: '@DROLSKY/Manifest' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::CheckVersionIncrement name: '@DROLSKY/CheckVersionIncrement' @@ -94,19 +93,23 @@ - class: Dist::Zilla::Plugin::TestRelease name: '@DROLSKY/TestRelease' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@DROLSKY/ConfirmRelease' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@DROLSKY/UploadToCPAN' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::VersionFromMainModule + config: + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000037' + version: '0.006' name: '@DROLSKY/VersionFromMainModule' - version: '0.03' + version: '0.04' - class: Dist::Zilla::Plugin::Authority name: '@DROLSKY/Authority' @@ -114,7 +117,7 @@ - class: Dist::Zilla::Plugin::AutoPrereqs name: '@DROLSKY/AutoPrereqs' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: '@DROLSKY/CopyFilesFromBuild' @@ -122,18 +125,18 @@ - class: Dist::Zilla::Plugin::GitHub::Meta name: '@DROLSKY/GitHub::Meta' - version: '0.44' + version: '0.48' - class: Dist::Zilla::Plugin::GitHub::Update config: Dist::Zilla::Plugin::GitHub::Update: metacpan: 1 name: '@DROLSKY/GitHub::Update' - version: '0.44' + version: '0.48' - class: Dist::Zilla::Plugin::MetaResources name: '@DROLSKY/MetaResources' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::MetaProvides::Package config: @@ -142,7 +145,7 @@ - class: Dist::Zilla::Plugin::FinderCode name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '6.010' + version: '6.017' include_underscores: 0 Dist::Zilla::Role::MetaProvider::Provider: $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004' @@ -150,8 +153,8 @@ inherit_version: '1' meta_noindex: '1' Dist::Zilla::Role::ModuleMetadata: - Module::Metadata: '1.000033' - version: '0.004' + Module::Metadata: '1.000037' + version: '0.006' name: '@DROLSKY/MetaProvides::Package' version: '2.004003' - @@ -161,19 +164,19 @@ - class: Dist::Zilla::Plugin::MetaConfig name: '@DROLSKY/MetaConfig' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::MetaJSON name: '@DROLSKY/MetaJSON' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::MetaYAML name: '@DROLSKY/MetaYAML' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::NextRelease name: '@DROLSKY/NextRelease' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::Prereqs config: @@ -181,15 +184,15 @@ phase: test type: requires name: '@DROLSKY/Test::More with subtest' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires - name: '@DROLSKY/Modules for use with tidyall' - version: '6.010' + name: '@DROLSKY/Tools for use with precious' + version: '6.017' - class: Dist::Zilla::Plugin::Prereqs config: @@ -197,7 +200,7 @@ phase: develop type: requires name: '@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -210,7 +213,7 @@ run_under_travis: 0 skip: [] name: '@DROLSKY/Dist::Zilla::PluginBundle::DROLSKY' - version: '0.054' + version: '0.057' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -221,18 +224,24 @@ phase: release run_under_travis: 0 skip: + - Dist::Zilla::Plugin::DROLSKY::BundleAuthordep - Dist::Zilla::Plugin::DROLSKY::Contributors - Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch - Dist::Zilla::Plugin::DROLSKY::License - - Dist::Zilla::Plugin::DROLSKY::TidyAll + - Dist::Zilla::Plugin::DROLSKY::MakeMaker + - Dist::Zilla::Plugin::DROLSKY::PerlLinterConfigFiles + - Dist::Zilla::Plugin::DROLSKY::Precious + - Dist::Zilla::Plugin::DROLSKY::Role::CoreCounter + - Dist::Zilla::Plugin::DROLSKY::RunExtraTests + - Dist::Zilla::Plugin::DROLSKY::Test::Precious - Dist::Zilla::Plugin::DROLSKY::WeaverConfig - Pod::Weaver::PluginBundle::DROLSKY name: '@DROLSKY/PromptIfStale' - version: '0.054' + version: '0.057' - class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable name: '@DROLSKY/Test::Pod::Coverage::Configurable' - version: '0.06' + version: '0.07' - class: Dist::Zilla::Plugin::Test::PodSpelling config: @@ -269,18 +278,18 @@ - uncatchable wordlist: Pod::Wordlist name: '@DROLSKY/Test::PodSpelling' - version: '2.007004' + version: '2.007005' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@DROLSKY/PodSyntaxTests' - version: '6.010' + version: '6.017' - - class: Dist::Zilla::Plugin::RunExtraTests + class: Dist::Zilla::Plugin::DROLSKY::RunExtraTests config: Dist::Zilla::Role::TestRunner: - default_jobs: 1 - name: '@DROLSKY/RunExtraTests' - version: '0.029' + default_jobs: 24 + name: '@DROLSKY/DROLSKY::RunExtraTests' + version: '1.18' - class: Dist::Zilla::Plugin::MojibakeTests name: '@DROLSKY/MojibakeTests' @@ -327,10 +336,6 @@ name: '@DROLSKY/Test::Portability' version: '2.001000' - - class: Dist::Zilla::Plugin::Test::TidyAll - name: '@DROLSKY/Test::TidyAll' - version: '0.04' - - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: @@ -347,30 +352,34 @@ skips: [] switch: [] name: '@DROLSKY/Test::Compile' - version: '2.057' + version: '2.058' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@DROLSKY/Test::ReportPrereqs' - version: '0.027' + version: '0.028' - class: Dist::Zilla::Plugin::Test::Version name: '@DROLSKY/Test::Version' version: '1.09' - + class: Dist::Zilla::Plugin::DROLSKY::Test::Precious + name: '@DROLSKY/DROLSKY::Test::Precious' + version: '1.18' + - class: Dist::Zilla::Plugin::DROLSKY::Contributors name: '@DROLSKY/DROLSKY::Contributors' - version: '0.88' + version: '1.18' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.15.1 + git_version: 2.31.1 include_authors: 0 include_releaser: 1 order_by: name paths: [] name: '@DROLSKY/Git::Contributors' - version: '0.032' + version: '0.036' - class: Dist::Zilla::Plugin::SurgicalPodWeaver config: @@ -482,6 +491,10 @@ name: '@DROLSKY/Legal' version: '4.015' - + class: Pod::Weaver::Section::AllowOverride + name: '@DROLSKY/allow override Legal' + version: '0.05' + - class: Pod::Weaver::Section::Region name: '@DROLSKY/footer' version: '4.015' @@ -490,7 +503,7 @@ - class: Dist::Zilla::Plugin::DROLSKY::WeaverConfig name: '@DROLSKY/DROLSKY::WeaverConfig' - version: '0.88' + version: '1.18' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod config: @@ -511,21 +524,41 @@ Dist::Zilla::Role::RepoFileInjector: allow_overwrite: 1 repo_root: . - version: '0.007' + version: '0.009' name: '@DROLSKY/Generate CONTRIBUTING.md' - version: '0.013' + version: '0.015' + - + class: Dist::Zilla::Plugin::GenerateFile::FromShareDir + config: + Dist::Zilla::Plugin::GenerateFile::FromShareDir: + destination_filename: CODE_OF_CONDUCT.md + dist: Dist-Zilla-PluginBundle-DROLSKY + encoding: UTF-8 + has_xs: '0' + location: build + source_filename: CODE_OF_CONDUCT.md + Dist::Zilla::Role::RepoFileInjector: + allow_overwrite: 1 + repo_root: . + version: '0.009' + name: '@DROLSKY/Generate CODE_OF_CONDUCT.md' + version: '0.015' - class: Dist::Zilla::Plugin::InstallGuide + config: + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000037' + version: '0.006' name: '@DROLSKY/InstallGuide' - version: '1.200007' + version: '1.200014' - class: Dist::Zilla::Plugin::CPANFile name: '@DROLSKY/CPANFile' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::DROLSKY::License name: '@DROLSKY/DROLSKY::License' - version: '0.88' + version: '1.18' - class: Dist::Zilla::Plugin::CheckStrictVersion name: '@DROLSKY/CheckStrictVersion' @@ -537,8 +570,8 @@ finder: - ':InstallModules' Dist::Zilla::Role::ModuleMetadata: - Module::Metadata: '1.000033' - version: '0.004' + Module::Metadata: '1.000037' + version: '0.006' name: '@DROLSKY/CheckSelfDependency' version: '0.011' - @@ -549,10 +582,10 @@ class: Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch config: Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . name: '@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch' - version: '0.88' + version: '1.18' - class: Dist::Zilla::Plugin::EnsureChangesHasContent name: '@DROLSKY/EnsureChangesHasContent' @@ -561,14 +594,22 @@ class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts config: Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . name: '@DROLSKY/Git::CheckFor::MergeConflicts' version: '0.014' - - class: Dist::Zilla::Plugin::DROLSKY::TidyAll - name: '@DROLSKY/DROLSKY::TidyAll' - version: '0.88' + class: Dist::Zilla::Plugin::DROLSKY::PerlLinterConfigFiles + name: '@DROLSKY/DROLSKY::PerlLinterConfigFiles' + version: '1.18' + - + class: Dist::Zilla::Plugin::DROLSKY::DevTools + name: '@DROLSKY/DROLSKY::DevTools' + version: '1.18' + - + class: Dist::Zilla::Plugin::DROLSKY::Precious + name: '@DROLSKY/DROLSKY::Precious' + version: '1.18' - class: Dist::Zilla::Plugin::Git::Check config: @@ -576,44 +617,47 @@ untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: + - CODE_OF_CONDUCT.md - CONTRIBUTING.md - Changes - LICENSE - Makefile.PL - README.md - cpanfile - - tidyall.ini + - precious.toml allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . name: '@DROLSKY/Git::Check' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] - commit_msg: v%v%n%n%c + commit_msg: v%V%n%n%c + signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: + - CODE_OF_CONDUCT.md - CONTRIBUTING.md - Changes - LICENSE - Makefile.PL - README.md - cpanfile - - tidyall.ini + - precious.toml allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@DROLSKY/Commit generated files' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Tag config: @@ -621,16 +665,16 @@ branch: ~ changelog: Changes signed: 0 - tag: v1.44 - tag_format: v%v - tag_message: v%v + tag: v1.45 + tag_format: v%V + tag_message: v%V Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@DROLSKY/Git::Tag' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Push config: @@ -639,10 +683,10 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . name: '@DROLSKY/Git::Push' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease config: @@ -653,13 +697,14 @@ global: 0 munge_makefile_pl: 1 name: '@DROLSKY/BumpVersionAfterRelease' - version: '0.016' + version: '0.018' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: 'Bump version after release' + signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes @@ -668,12 +713,12 @@ - (?^:.+) changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@DROLSKY/Commit version bump' - version: '2.043' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Push config: @@ -682,62 +727,78 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.15.1 + git_version: 2.31.1 repo_root: . name: '@DROLSKY/Push version bump' - version: '2.043' + version: '2.047' + - + class: Dist::Zilla::Plugin::DROLSKY::MakeMaker + config: + Dist::Zilla::Plugin::MakeMaker: + make_path: make + version: '6.017' + Dist::Zilla::Plugin::MakeMaker::Awesome: + version: '0.48' + Dist::Zilla::Role::TestRunner: + default_jobs: 24 + version: '6.017' + name: '@DROLSKY/DROLSKY::MakeMaker' + version: '1.18' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.010' + version: '6.017' - class: Dist::Zilla::Plugin::FinderCode name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '6.010' + version: '6.017' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.010' + version: '6.017' x_authority: cpan:DROLSKY x_contributors: - 'Alexander Batyrshin <0x62ash@gmail.com>' + - 'brian d foy ' - 'Leon Timmermans ' - 'Ricardo Signes ' -x_serialization_backend: 'YAML::Tiny version 1.70' +x_generated_by_perl: v5.30.1 +x_serialization_backend: 'YAML::Tiny version 1.73' +x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' diff -Nru libexception-class-perl-1.44/perlcriticrc libexception-class-perl-1.45/perlcriticrc --- libexception-class-perl-1.44/perlcriticrc 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/perlcriticrc 2021-05-02 17:24:18.000000000 +0000 @@ -66,5 +66,8 @@ # hash and ending up with a missing value or key. [-Subroutines::ProhibitExplicitReturnUndef] +# Sometimes I want to write "return unless $x > 4" +[-ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions] + [Variables::RequireLocalizedPunctuationVars] allow = %INC diff -Nru libexception-class-perl-1.44/precious.toml libexception-class-perl-1.45/precious.toml --- libexception-class-perl-1.44/precious.toml 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/precious.toml 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,52 @@ +exclude = [ + ".build/**/*", + "Exception-Class-*/**/*", + "blib/**/*", + "t/00-*", + "t/author-*", + "t/release-*", + "t/zzz-*", + "xt/**/*", +] + +[commands.omegasort-gitignore] +type = "both" +include = "**/.gitignore" +cmd = [ "omegasort", "--sort=path" ] +lint_flags = "--check" +tidy_flags = "--in-place" +ok_exit_codes = 0 +lint_failure_exit_codes = 1 +expect_stderr = true + +[commands.perlcritic] +type = "lint" +include = [ "**/*.{pl,pm,t,psgi}" ] +cmd = [ "perlcritic", "--profile=$PRECIOUS_ROOT/perlcriticrc" ] +ok_exit_codes = 0 +lint_failure_exit_codes = 2 + +[commands.perltidy] +type = "both" +include = [ "**/*.{pl,pm,t,psgi}" ] +cmd = [ "perltidy", "--profile=$PRECIOUS_ROOT/perltidyrc" ] +lint_flags = [ "--assert-tidy", "--no-standard-output", "--outfile=/dev/null" ] +tidy_flags = [ "--backup-and-modify-in-place", "--backup-file-extension=/" ] +ok_exit_codes = 0 +lint_failure_exit_codes = 2 +expect_stderr = true + +[commands.podchecker] +type = "lint" +include = [ "**/*.{pl,pm,pod}" ] +cmd = [ "podchecker", "--warnings", "--warnings" ] +ok_exit_codes = [ 0, 2 ] +lint_failure_exit_codes = 1 +expect_stderr = true + +[commands.podtidy] +type = "tidy" +include = [ "**/*.{pl,pm,pod}" ] +cmd = [ "podtidy", "--columns", "80", "--inplace", "--nobackup" ] +ok_exit_codes = 0 +lint_failure_exit_codes = 1 diff -Nru libexception-class-perl-1.44/README.md libexception-class-perl-1.45/README.md --- libexception-class-perl-1.44/README.md 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/README.md 2021-05-02 17:24:18.000000000 +0000 @@ -4,7 +4,7 @@ # VERSION -version 1.44 +version 1.45 # SYNOPSIS @@ -66,14 +66,14 @@ [Moo](https://metacpan.org/pod/Moo) I highly recommend using [Throwable](https://metacpan.org/pod/Throwable) instead of this module. **RECOMMENDATION 2**: Whether or not you use [Throwable](https://metacpan.org/pod/Throwable), you should use -[Try::Tiny](https://metacpan.org/pod/Try::Tiny). +[Try::Tiny](https://metacpan.org/pod/Try%3A%3ATiny). -Exception::Class allows you to declare exception hierarchies in your modules -in a "Java-esque" manner. +Exception::Class allows you to declare exception hierarchies in your modules in +a "Java-esque" manner. It features a simple interface allowing programmers to 'declare' exception classes at compile time. It also has a base exception class, -[Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base), that can be easily extended. +[Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase), that can be easily extended. It is designed to make structured exception handling simpler and better by encouraging people to use hierarchies of exceptions in their applications, as @@ -83,14 +83,14 @@ EXCEPTION MODULES (try/catch syntax)" section for more information on how to get this syntax. -You will also want to look at the documentation for [Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base), +You will also want to look at the documentation for [Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase), which is the default base class for all exception objects created by this module. # DECLARING EXCEPTION CLASSES Importing `Exception::Class` allows you to automagically create -[Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base) subclasses. You can also create subclasses via the +[Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase) subclasses. You can also create subclasses via the traditional means of defining your own subclass with `@ISA`. These two methods may be easily combined, so that you could subclass an exception class defined via the automagic import, if you desired this. @@ -103,12 +103,11 @@ - isa - This is the class's parent class. If this isn't provided then the class name - in `$Exception::Class::BASE_EXC_CLASS` is assumed to be the parent (see - below). + This is the class's parent class. If this isn't provided then the class name in + `$Exception::Class::BASE_EXC_CLASS` is assumed to be the parent (see below). - This parameter lets you create arbitrarily deep class hierarchies. This can - be any other [Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base) subclass in your declaration _or_ a + This parameter lets you create arbitrarily deep class hierarchies. This can be + any other [Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase) subclass in your declaration _or_ a subclass loaded from a module. To change the default exception class you will need to change the value of @@ -119,21 +118,26 @@ If anyone can come up with a more elegant way to do this please let me know. - CAVEAT: If you want to automagically subclass an [Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base) + CAVEAT: If you want to automagically subclass an [Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase) subclass loaded from a file, then you _must_ compile the class (via use or - require or some other magic) _before_ you import `Exception::Class` or - you'll get a compile time error. + require or some other magic) _before_ you import `Exception::Class` or you'll + get a compile time error. - fields This allows you to define additional attributes for your exception class. Any field you define can be passed to the `throw` or `new` methods as additional - parameters for the constructor. In addition, your exception object will have - an accessor method for the fields you define. + parameters for the constructor. In addition, your exception object will have an + accessor method for the fields you define. This parameter can be either a scalar (for a single field) or an array reference if you need to define multiple fields. + Each field name must be a legal Perl identifier: it starts with a ASCII letter + or underscore, and is followed by zero or more ASCII letters, ASCII digits, or + underscores. If a field name does not match this, the creation of that + exception class croaks. + Fields will be inherited by subclasses. - alias @@ -144,26 +148,26 @@ Besides convenience, using aliases also allows for additional compile time checking. If the alias is called _without parentheses_, as in `throw_fields - "an error occurred"`, then Perl checks for the existence of the - `throw_fields` subroutine at compile time. If instead you do `ExceptionWithFields->throw(...)`, then Perl checks the class name at - runtime, meaning that typos may sneak through. + "an error occurred"`, then Perl checks for the existence of the `throw_fields` + subroutine at compile time. If instead you do `ExceptionWithFields->throw(...)`, then Perl checks the class name at runtime, + meaning that typos may sneak through. - description - Each exception class has a description method that returns a fixed - string. This should describe the exception _class_ (as opposed to any - particular exception object). This may be useful for debugging if you start - catching exceptions you weren't expecting (particularly if someone forgot to - document them) and you don't understand the error messages. - -The `Exception::Class` magic attempts to detect circular class hierarchies -and will die if it finds one. It also detects missing links in a chain, for -example if you declare Bar to be a subclass of Foo and never declare Foo. + Each exception class has a description method that returns a fixed string. This + should describe the exception _class_ (as opposed to any particular exception + object). This may be useful for debugging if you start catching exceptions you + weren't expecting (particularly if someone forgot to document them) and you + don't understand the error messages. + +The `Exception::Class` magic attempts to detect circular class hierarchies and +will die if it finds one. It also detects missing links in a chain, for example +if you declare Bar to be a subclass of Foo and never declare Foo. -# [Try::Tiny](https://metacpan.org/pod/Try::Tiny) +# [Try::Tiny](https://metacpan.org/pod/Try%3A%3ATiny) If you are interested in adding try/catch/finally syntactic sugar to your code -then I recommend you check out [Try::Tiny](https://metacpan.org/pod/Try::Tiny). This is a great module that helps +then I recommend you check out [Try::Tiny](https://metacpan.org/pod/Try%3A%3ATiny). This is a great module that helps you ignore some of the weirdness with `eval` and `$@`. Here's an example of how the two modules work together: @@ -183,9 +187,9 @@ } }; -Note that you **cannot** use `Exception::Class->caught` with [Try::Tiny](https://metacpan.org/pod/Try::Tiny). +Note that you **cannot** use `Exception::Class->caught` with [Try::Tiny](https://metacpan.org/pod/Try%3A%3ATiny). -# Catching Exceptions Without [Try::Tiny](https://metacpan.org/pod/Try::Tiny) +# Catching Exceptions Without [Try::Tiny](https://metacpan.org/pod/Try%3A%3ATiny) `Exception::Class` provides some syntactic sugar for catching exceptions in a safe manner: @@ -198,8 +202,8 @@ } The `caught` method takes a class name and returns an exception object if the -last thrown exception is of the given class, or a subclass of that class. If -it is not given any arguments, it simply returns `$@`. +last thrown exception is of the given class, or a subclass of that class. If it +is not given any arguments, it simply returns `$@`. You should **always** make a copy of the exception object, rather than using `$@` directly. This is necessary because if your `cleanup` function uses @@ -259,23 +263,23 @@ ... ); -You may want to create a real module to subclass [Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base) as +You may want to create a real module to subclass [Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase) as well, particularly if you want your exceptions to have more methods. ## Subclassing Exception::Class::Base As part of your usage of `Exception::Class`, you may want to create your own -base exception class which subclasses [Exception::Class::Base](https://metacpan.org/pod/Exception::Class::Base). You should -feel free to subclass any of the methods documented above. For example, you -may want to subclass `new` to add additional information to your exception +base exception class which subclasses [Exception::Class::Base](https://metacpan.org/pod/Exception%3A%3AClass%3A%3ABase). You should +feel free to subclass any of the methods documented above. For example, you may +want to subclass `new` to add additional information to your exception objects. # Exception::Class FUNCTIONS The `Exception::Class` method offers one function, `Classes`, which is not exported. This method returns a list of the classes that have been created by -calling the `Exception::Class` `import` method. Note that this is _all_ -the subclasses that have been created, so it may include subclasses created by +calling the `Exception::Class` `import` method. Note that this is _all_ the +subclasses that have been created, so it may include subclasses created by things like CPAN modules, etc. Also note that if you simply define a subclass via the normal Perl method of setting `@ISA` or `use base`, then your subclass will not be included. @@ -305,7 +309,7 @@ on free software full time (let's all have a chuckle at that together). To donate, log into PayPal and send money to autarch@urth.org, or use the -button at [http://www.urth.org/~autarch/fs-donation.html](http://www.urth.org/~autarch/fs-donation.html). +button at [https://www.urth.org/fs-donation.html](https://www.urth.org/fs-donation.html). # AUTHOR @@ -314,12 +318,13 @@ # CONTRIBUTORS - Alexander Batyrshin <0x62ash@gmail.com> +- brian d foy - Leon Timmermans - Ricardo Signes # COPYRIGHT AND LICENSE -This software is copyright (c) 2017 by Dave Rolsky. +This software is copyright (c) 2021 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 -Nru libexception-class-perl-1.44/t/00-report-prereqs.dd libexception-class-perl-1.45/t/00-report-prereqs.dd --- libexception-class-perl-1.44/t/00-report-prereqs.dd 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/t/00-report-prereqs.dd 2021-05-02 17:24:18.000000000 +0000 @@ -6,20 +6,20 @@ }, 'develop' => { 'requires' => { - 'Code::TidyAll' => '0.56', - 'Code::TidyAll::Plugin::SortLines::Naturally' => '0.000003', - 'Code::TidyAll::Plugin::Test::Vars' => '0.02', + 'Capture::Tiny' => '0', 'File::Spec' => '0', + 'FindBin' => '0', 'IO::Handle' => '0', 'IPC::Open3' => '0', - 'Parallel::ForkManager' => '1.19', - 'Perl::Critic' => '1.126', - 'Perl::Tidy' => '20160302', + 'Perl::Critic' => '1.138', + 'Perl::Critic::Moose' => '1.05', + 'Perl::Tidy' => '20210111', + 'Pod::Checker' => '1.74', 'Pod::Coverage::TrustPod' => '0', + 'Pod::Tidy' => '0.10', 'Pod::Wordlist' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta::JSON' => '0.16', - 'Test::Code::TidyAll' => '0.50', 'Test::EOL' => '0', 'Test::Mojibake' => '0', 'Test::More' => '0.96', @@ -28,12 +28,12 @@ 'Test::Pod::Coverage' => '1.08', 'Test::Portability::Files' => '0', 'Test::Spelling' => '0.12', - 'Test::Vars' => '0.009', 'Test::Version' => '2.05' } }, 'runtime' => { 'requires' => { + 'Carp' => '0', 'Class::Data::Inheritable' => '0.02', 'Devel::StackTrace' => '2.00', 'Scalar::Util' => '0', diff -Nru libexception-class-perl-1.44/t/00-report-prereqs.t libexception-class-perl-1.45/t/00-report-prereqs.t --- libexception-class-perl-1.44/t/00-report-prereqs.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/t/00-report-prereqs.t 2021-05-02 17:24:18.000000000 +0000 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 use Test::More tests => 1; @@ -188,6 +188,6 @@ ); } -pass; +pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: diff -Nru libexception-class-perl-1.44/t/basic.t libexception-class-perl-1.45/t/basic.t --- libexception-class-perl-1.44/t/basic.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/t/basic.t 2021-05-02 17:24:18.000000000 +0000 @@ -30,7 +30,7 @@ 'FooBarException' => { isa => 'FooException' }, - 'FieldsException' => { isa => 'YAE', fields => [qw( foo bar )] }, + 'FieldsException' => { isa => 'YAE', fields => [qw( foo bar )] }, 'MoreFieldsException' => { isa => 'FieldsException', fields => ['yip'] }, 'Exc::AsString', @@ -76,9 +76,10 @@ ); my $expect = File::Spec->catfile( 't', 'basic.t' ); - is( - $e->file, $expect, - "File should be '$expect'" + like( + $e->file, + qr/\Q$expect\E\z/, + "File should end with '$expect'" ); is( @@ -436,7 +437,7 @@ ::ok( $e, 'Throw exception via convenience sub (named params)' ); ::is( $e->error, 'another error', 'check error message' ); - ::is( $e->thing, 10, 'check "thing" field' ); + ::is( $e->thing, 10, 'check "thing" field' ); ::is( $e->package, __PACKAGE__, 'package matches current package' ); } diff -Nru libexception-class-perl-1.44/t/field-names.t libexception-class-perl-1.45/t/field-names.t --- libexception-class-perl-1.44/t/field-names.t 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/t/field-names.t 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,40 @@ +use strict; +use warnings; + +use File::Spec; + +use Test::More 0.88; + +require_ok('Exception::Class'); + +# no problems here +{ + my $rc = eval { + Exception::Class->import( + 'GoodFields' => { fields => [qw( foo )] }, + ); + 'success'; + }; + is( $rc, 'success', 'GoodFields did not have a problem' ); +} + +# problems here + +my @bad_fields = ( '$foo', q(f'oo), 'f oo' ); + +my $n = 0; +foreach my $bad_field (@bad_fields) { + $n++; + my $rc = eval { + Exception::Class->import( + "GoodFields$n" => { fields => [$bad_field] }, + ); + q(we should not get this far); + }; + my $error = $@; + ok( !defined $rc, "Field name <$bad_field> throws an error" ); + like $error, qr/Invalid field name/, + 'Error messages notes invalid field name'; +} + +done_testing(); diff -Nru libexception-class-perl-1.44/tidyall.ini libexception-class-perl-1.45/tidyall.ini --- libexception-class-perl-1.44/tidyall.ini 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/tidyall.ini 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -[PerlCritic] -select = **/*.{pl,pm,t,psgi} -ignore = .build/**/* -ignore = Exception-Class-*/**/* -ignore = blib/**/* -ignore = t/00-* -ignore = t/author-* -ignore = t/release-* -ignore = t/zzz-* -ignore = xt/**/* -argv = --profile=$ROOT/perlcriticrc - -[PerlTidy] -select = **/*.{pl,pm,t,psgi} -ignore = .build/**/* -ignore = Exception-Class-*/**/* -ignore = blib/**/* -ignore = t/00-* -ignore = t/author-* -ignore = t/release-* -ignore = t/zzz-* -ignore = xt/**/* -argv = --profile=$ROOT/perltidyrc diff -Nru libexception-class-perl-1.44/xt/author/00-compile.t libexception-class-perl-1.45/xt/author/00-compile.t --- libexception-class-perl-1.44/xt/author/00-compile.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/00-compile.t 2021-05-02 17:24:18.000000000 +0000 @@ -2,7 +2,7 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.057 +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 use Test::More; diff -Nru libexception-class-perl-1.44/xt/author/eol.t libexception-class-perl-1.45/xt/author/eol.t --- libexception-class-perl-1.44/xt/author/eol.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/eol.t 2021-05-02 17:24:18.000000000 +0000 @@ -15,6 +15,7 @@ 't/caught.t', 't/context.t', 't/ecb-standalone.t', + 't/field-names.t', 't/ignore.t' ); diff -Nru libexception-class-perl-1.44/xt/author/no-tabs.t libexception-class-perl-1.45/xt/author/no-tabs.t --- libexception-class-perl-1.44/xt/author/no-tabs.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/no-tabs.t 2021-05-02 17:24:18.000000000 +0000 @@ -15,6 +15,7 @@ 't/caught.t', 't/context.t', 't/ecb-standalone.t', + 't/field-names.t', 't/ignore.t' ); diff -Nru libexception-class-perl-1.44/xt/author/pod-coverage.t libexception-class-perl-1.45/xt/author/pod-coverage.t --- libexception-class-perl-1.44/xt/author/pod-coverage.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/pod-coverage.t 2021-05-02 17:24:18.000000000 +0000 @@ -1,5 +1,5 @@ #!perl -# This file was automatically generated by Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable. +# This file was automatically generated by Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable 0.07. use Test::Pod::Coverage 1.08; use Test::More 0.88; diff -Nru libexception-class-perl-1.44/xt/author/pod-spell.t libexception-class-perl-1.45/xt/author/pod-spell.t --- libexception-class-perl-1.44/xt/author/pod-spell.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/pod-spell.t 2021-05-02 17:24:18.000000000 +0000 @@ -2,7 +2,7 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007004 +# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007005 use Test::Spelling 0.12; use Pod::Wordlist; @@ -32,10 +32,12 @@ Uncatchable autarch automagic +brian drolsky egid esque fawaka +foy isa lib namespace diff -Nru libexception-class-perl-1.44/xt/author/precious.t libexception-class-perl-1.45/xt/author/precious.t --- libexception-class-perl-1.44/xt/author/precious.t 1970-01-01 00:00:00.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/precious.t 2021-05-02 17:24:18.000000000 +0000 @@ -0,0 +1,16 @@ +use strict; +use warnings; + +use Test::More; + +use Capture::Tiny qw( capture ); +use FindBin qw( $Bin ); + +chdir "$Bin/../.." + or die "Cannot chdir to $Bin/../..: $!"; + +my ( $out, $err ) = capture { system(qw( precious lint -a )) }; +is( $? >> 8, 0, 'precious lint -a exited with 0' ); +is( $err, q{}, 'no output to stderr' ); + +done_testing(); diff -Nru libexception-class-perl-1.44/xt/author/tidyall.t libexception-class-perl-1.45/xt/author/tidyall.t --- libexception-class-perl-1.44/xt/author/tidyall.t 2017-12-10 19:47:30.000000000 +0000 +++ libexception-class-perl-1.45/xt/author/tidyall.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Test::TidyAll v$VERSION - -use Test::More 0.88; -BEGIN { - if ( $] < 5.010 ) { - plan skip_all => 'This test requires Perl version 5.010'; - } -} -use Test::Code::TidyAll 0.24; - -tidyall_ok( - verbose => ( exists $ENV{TEST_TIDYALL_VERBOSE} ? $ENV{TEST_TIDYALL_VERBOSE} : 1 ), - jobs => ( exists $ENV{TEST_TIDYALL_JOBS} ? $ENV{TEST_TIDYALL_JOBS} : 4 ), -); - -done_testing;