From a76e10cf99ae5a5c0d675d7d0c63c2de1306af52 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jan 25 2020 16:08:33 +0000 Subject: Update to 1.138 - New upstream release 1.138 - RequireCheckingReturnValueOfEval didn't count returning the result of an eval as checking it - now it does; however, it's only if you "return eval { ... }" - it still doesn't handle the case of "return ( eval {} )" (GH#324) - ProhibitPunctuationVars would get confused and think that the expression qr/SOME$/ was using the $/ special variable (GH#843) --- diff --git a/0001-Change-default-spell-check-tool-from-aspell-to-hunsp.patch b/0001-Change-default-spell-check-tool-from-aspell-to-hunsp.patch index 229e7c5..ced33c5 100644 --- a/0001-Change-default-spell-check-tool-from-aspell-to-hunsp.patch +++ b/0001-Change-default-spell-check-tool-from-aspell-to-hunsp.patch @@ -171,7 +171,7 @@ diff --git a/lib/Perl/Critic/Policy/ErrorHandling/RequireCheckingReturnValueOfEv index f5ed7526..14438cc1 100644 --- a/lib/Perl/Critic/Policy/ErrorHandling/RequireCheckingReturnValueOfEval.pm +++ b/lib/Perl/Critic/Policy/ErrorHandling/RequireCheckingReturnValueOfEval.pm -@@ -299,7 +299,7 @@ __END__ +@@ -317,7 +317,7 @@ __END__ =pod @@ -288,7 +288,7 @@ diff --git a/lib/Perl/Critic/Policy/Variables/ProhibitPunctuationVars.pm b/lib/P index 5f9e25ca..9ab0c802 100644 --- a/lib/Perl/Critic/Policy/Variables/ProhibitPunctuationVars.pm +++ b/lib/Perl/Critic/Policy/Variables/ProhibitPunctuationVars.pm -@@ -326,6 +326,8 @@ __END__ +@@ -367,6 +367,8 @@ __END__ =pod diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec index e31add4..c26ac8f 100644 --- a/perl-Perl-Critic.spec +++ b/perl-Perl-Critic.spec @@ -6,7 +6,7 @@ %endif Name: perl-Perl-Critic -Version: 1.136 +Version: 1.138 Release: 1%{?dist} Summary: Critique Perl source code for best-practices License: GPL+ or Artistic @@ -55,6 +55,7 @@ BuildRequires: perl(Pod::Usage) BuildRequires: perl(PPI) >= 1.265 BuildRequires: perl(PPIx::QuoteLike) BuildRequires: perl(PPIx::Regexp) >= 0.010 +BuildRequires: perl(PPIx::Regexp::Util) >= 0.068 BuildRequires: perl(PPIx::Utilities::Node) BuildRequires: perl(PPIx::Utilities::Statement) >= 1.001 BuildRequires: perl(Readonly) >= 2 @@ -166,6 +167,15 @@ LC_ALL=en_US ./Build test %{_mandir}/man3/Test::Perl::Critic::Policy.3* %changelog +* Sat Jan 25 2020 Paul Howarth - 1.138-1 +- Update to 1.138 + - RequireCheckingReturnValueOfEval didn't count returning the result of an + eval as checking it - now it does; however, it's only if you "return eval + { ... }" - it still doesn't handle the case of "return ( eval {} )" + (GH#324) + - ProhibitPunctuationVars would get confused and think that the expression + qr/SOME$/ was using the $/ special variable (GH#843) + * Thu Nov 28 2019 Paul Howarth - 1.136-1 - Update to 1.136 New Features diff --git a/sources b/sources index 742de80..a88fb17 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Perl-Critic-1.136.tar.gz) = 91664725ad6698203b73bcd678a540b57654d7411e3bfa467221216eaebaddd38d518dc1652137b012655d030f83cb48478b4eef3789422578773ce784ba3934 +SHA512 (Perl-Critic-1.138.tar.gz) = e36c44dc6ab67cdb0014c6b575238e3c54d4ffa506082df66f5e44ec0137111945f3a1196f2902e7c363c9ea10f08bfc8285b75d0af32080d9603ae7b28a4df7