[libdist-zilla-plugin-test-eol-perl] 03/05: use the "deprecated" warning category for [EOLTests]

Intrigeri intrigeri at moszumanska.debian.org
Sun Aug 16 09:20:24 UTC 2015


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

intrigeri pushed a commit to annotated tag 0.15
in repository libdist-zilla-plugin-test-eol-perl.

commit a40293200511f142624940a1a79d1f339037cf24
Author: Karen Etheridge <ether at cpan.org>
Date:   Thu Oct 30 20:17:27 2014 -0700

    use the "deprecated" warning category for [EOLTests]
---
 Changes                           | 2 ++
 lib/Dist/Zilla/Plugin/EOLTests.pm | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Changes b/Changes
index 097f2c7..f4dc2c2 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Revision history for {{$dist->name}}
 
 {{$NEXT}}
+        - use the 'deprecated' warning category to issue the warning in
+          [EOLTests]
 
 0.14      2014-10-23 01:37:00Z
         - change default filename from test-eol.t to eol.t
diff --git a/lib/Dist/Zilla/Plugin/EOLTests.pm b/lib/Dist/Zilla/Plugin/EOLTests.pm
index 366ec9f..b557533 100644
--- a/lib/Dist/Zilla/Plugin/EOLTests.pm
+++ b/lib/Dist/Zilla/Plugin/EOLTests.pm
@@ -8,7 +8,9 @@ extends 'Dist::Zilla::Plugin::Test::EOL';
 use namespace::autoclean;
 
 before register_component => sub {
-    warn "!!! [EOLTests] is deprecated and may be removed in a future release; replace it with [Test::EOL] (note the different default filename)\n";
+    warnings::warnif('deprecated',
+        "!!! [EOLTests] is deprecated and may be removed in a future release; replace it with [Test::EOL] (note the different default filename)\n",
+    );
 };
 
 has '+filename' => (

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git



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