Skip to content

Commit fd65ec5

Browse files
committed
Support for deprecated smartmatch in autodie [for upstream]
1 parent 3c5517e commit fd65ec5

File tree

10 files changed

+14
-9
lines changed

10 files changed

+14
-9
lines changed

cpan/autodie/lib/Fatal.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use constant ERROR_58_HINTS => q{Non-subroutine %s hints for %s are not supporte
5555

5656
use constant MIN_IPC_SYS_SIMPLE_VER => 0.12;
5757

58-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg::Version
58+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg::Version
5959

6060
our $Debug ||= 0;
6161

@@ -170,6 +170,7 @@ my %TAGS = (
170170
':2.32' => [qw(:default)],
171171
':2.33' => [qw(:default)],
172172
':2.34' => [qw(:default)],
173+
':2.35' => [qw(:default)],
173174
);
174175

175176

@@ -1088,6 +1089,7 @@ sub _one_invocation {
10881089
my $code = qq[
10891090
no warnings qw(unopened uninitialized numeric);
10901091
no if \$\] >= 5.017011, warnings => "experimental::smartmatch";
1092+
no if \$warnings::Offsets{"deprecated::smartmatch"}, warnings => "deprecated";
10911093
10921094
if (wantarray) {
10931095
my \@results = $call(@argv);

cpan/autodie/lib/autodie.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ our $VERSION;
99
# ABSTRACT: Replace functions with ones that succeed or die with lexical scope
1010

1111
BEGIN {
12-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg::Version
12+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg::Version
1313
}
1414

1515
use constant ERROR_WRONG_FATAL => q{

cpan/autodie/lib/autodie/Scope/Guard.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use strict;
44
use warnings;
55

66
# ABSTRACT: Wrapper class for calling subs at end of scope
7-
our $VERSION = '2.34'; # VERSION
7+
our $VERSION = '2.35'; # VERSION
88

99
# This code schedules the cleanup of subroutines at the end of
1010
# scope. It's directly inspired by chocolateboy's excellent

cpan/autodie/lib/autodie/Scope/GuardStack.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use warnings;
66
use autodie::Scope::Guard;
77

88
# ABSTRACT: Hook stack for managing scopes via %^H
9-
our $VERSION = '2.34'; # VERSION
9+
our $VERSION = '2.35'; # VERSION
1010

1111
my $H_KEY_STEM = __PACKAGE__ . '/guard';
1212
my $COUNTER = 0;

cpan/autodie/lib/autodie/Util.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ our @EXPORT_OK = qw(
1414
on_end_of_compile_scope
1515
);
1616

17-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg:Version
17+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg:Version
1818

1919
# ABSTRACT: Internal Utility subroutines for autodie and Fatal
2020

cpan/autodie/lib/autodie/exception.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Carp qw(croak);
66

77
use Scalar::Util qw(blessed);
88

9-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg:Version
9+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg:Version
1010
# ABSTRACT: Exceptions from autodying functions.
1111

1212
our $DEBUG = 0;

cpan/autodie/lib/autodie/exception/system.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55
use parent 'autodie::exception';
66
use Carp qw(croak);
77

8-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg:Version
8+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg:Version
99

1010
# ABSTRACT: Exceptions from autodying system().
1111

cpan/autodie/lib/autodie/hints.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
use constant PERL58 => ( $] < 5.009 );
77

8-
our $VERSION = '2.34'; # VERSION: Generated by DZP::OurPkg:Version
8+
our $VERSION = '2.35'; # VERSION: Generated by DZP::OurPkg:Version
99

1010
# ABSTRACT: Provide hints about user subroutines to autodie
1111

cpan/autodie/lib/autodie/skip.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package autodie::skip;
22
use strict;
33
use warnings;
44

5-
our $VERSION = '2.34'; # VERSION
5+
our $VERSION = '2.35'; # VERSION
66

77
# This package exists purely so people can inherit from it,
88
# which isn't at all how roles are supposed to work, but it's

cpan/autodie/t/exceptions.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ BEGIN { plan skip_all => "Perl 5.10 only tests" if $] < 5.010; }
88
# Basic tests should go in basic_exceptions.t
99

1010
use 5.010;
11+
use warnings ();
1112
use constant NO_SUCH_FILE => 'this_file_had_better_not_exist_xyzzy';
1213
no if $] >= 5.017011, warnings => "experimental::smartmatch";
14+
no if exists $warnings::Offsets{"deprecated::smartmatch"},
15+
warnings => "deprecated";
1316

1417
plan 'no_plan';
1518

0 commit comments

Comments
 (0)