Skip to content

Commit

Permalink
Require Perl 5.20 instead of 5.18
Browse files Browse the repository at this point in the history
5.20 adds :prototype(...)
  • Loading branch information
Chris White committed Nov 10, 2018
1 parent 098b7ab commit 9e2ebf0
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use 5.018;
use 5.020;
use strict;
use warnings;
use Config;
Expand Down Expand Up @@ -60,7 +60,7 @@ WriteMakefile(
ABSTRACT => 'awk-like XML processor',
LICENSE => 'artistic_2',
EXE_FILES => [ 'bin/axk' ],
MIN_PERL_VERSION => '5.018',
MIN_PERL_VERSION => '5.020',
CONFIGURE_REQUIRES => {
'Config' => '0',
'ExtUtils::MakeMaker' => '0',
Expand Down
2 changes: 1 addition & 1 deletion lib/XML/Axk/App.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use XML::Axk::Core;
# Semantic versioning, packed per Perl rules. Must always be at least one
# digit left of the decimal, and six digits right of the decimal. For
# prerelease versions, put an underscore before the last three digits.
our $VERSION = '0.001_002';
our $VERSION = '0.001_003';

use Getopt::Long qw(GetOptionsFromArray :config gnu_getopt);

Expand Down
2 changes: 1 addition & 1 deletion lib/XML/Axk/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use parent 'Exporter';
use Import::Into;

# Pragmas
use 5.018;
use 5.020;
use feature ":5.18"; # Use expressly so we can re-export it below
use strict;
use warnings;
Expand Down
7 changes: 3 additions & 4 deletions t/00-load.t
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!perl -T
use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More tests=>5;
use Test::More tests => 4;
use Module::Loaded;

BEGIN {
use_ok( 'XML::Axk' ) || print "Could not load main\n";
use_ok( 'XML::Axk::App' ) || print "Could not load App\n";
use_ok( 'XML::Axk::Core' ) || print "Could not load Core\n";
}

diag( "Testing XML::Axk $XML::Axk::VERSION, Perl $], $^X" );
diag( "Testing XML::Axk $XML::Axk::App::VERSION, Perl $], $^X" );
ok(is_loaded("XML::Axk::App"), "App is loaded");
ok(is_loaded("XML::Axk::Core"), "Core is loaded");

Expand Down
2 changes: 1 addition & 1 deletion t/01-preparse.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl
# 01-preparse.t

use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion t/02-basic-app.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!perl

use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More; # tests=>27;
Expand Down
2 changes: 1 addition & 1 deletion t/02-basic-core.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!perl

use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More; # tests=>27;
Expand Down
2 changes: 1 addition & 1 deletion t/04-languages.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl
# 04-languages.t: Multi-language support

use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More; # tests=>27;
Expand Down
2 changes: 1 addition & 1 deletion t/06-class-tests.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!perl
# 06-class-tests.t: Run t/tests

use 5.018;
use 5.020;
use strict;
use warnings;
use rlib;
Expand Down
2 changes: 1 addition & 1 deletion t/lib/AxkTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package AxkTest;

use Test::Kit;
use 5.018;
use 5.020;
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion t/lib/AxkTest/Helpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package AxkTest::Helpers;

use 5.018;
use 5.020;
use parent 'Exporter';

our @EXPORT = qw(tpath);
Expand Down
2 changes: 1 addition & 1 deletion xt/boilerplate.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!perl -T
use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion xt/manifest.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!perl -T
use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion xt/pod-coverage.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!perl -T
use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion xt/pod.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!perl -T
use 5.018;
use 5.020;
use strict;
use warnings;
use Test::More;
Expand Down

0 comments on commit 9e2ebf0

Please sign in to comment.