[libdist-zilla-plugin-test-podspelling-perl] 09/10: use the "deprecated" warning category for [PodSpellingTests]
Axel Beckert
abe at deuxchevaux.org
Mon May 25 10:06:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to annotated tag v2.006009
in repository libdist-zilla-plugin-test-podspelling-perl.
commit 8c27c8300b39fad25107d265268cfc837cbbf05a
Author: Karen Etheridge <ether at cpan.org>
Date: Sun May 3 20:01:10 2015 -0700
use the "deprecated" warning category for [PodSpellingTests]
---
Changes | 1 +
lib/Dist/Zilla/Plugin/PodSpellingTests.pm | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Changes b/Changes
index 2581552..3754204 100644
--- a/Changes
+++ b/Changes
@@ -4,6 +4,7 @@ Revision history for Perl extension {{$dist->name}}
- first release under new management
- minimum supported version lowered to 5.008
- mark Dist::Zilla::Plugin::PodSpellingTests as deprecated in metadata
+ - use the 'deprecated' warning category in [PodSpellingTests]
2.006008 2014-06-17
- register Test::Spelling as a development dependency ( haarg )
diff --git a/lib/Dist/Zilla/Plugin/PodSpellingTests.pm b/lib/Dist/Zilla/Plugin/PodSpellingTests.pm
index 183b993..b2da1c4 100644
--- a/lib/Dist/Zilla/Plugin/PodSpellingTests.pm
+++ b/lib/Dist/Zilla/Plugin/PodSpellingTests.pm
@@ -10,7 +10,9 @@ use Moose;
extends 'Dist::Zilla::Plugin::Test::PodSpelling';
before register_component => sub {
- warn "!!! [PodSpellingTests] is Deprecated. please use Test::Podspelling\n";
+ warnings::warnif('deprecated',
+ "!!! [PodSpellingTests] is deprecated and will be removed in a future release; replace it with [Test::PodSpelling]\n",
+ );
};
no Moose;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-podspelling-perl.git
More information about the Pkg-perl-cvs-commits
mailing list