Skip to content

Commit

Permalink
Bump minimum Perl version to 5.10 to support the // operator
Browse files Browse the repository at this point in the history
  • Loading branch information
turnstep committed Apr 3, 2023
1 parent cf2dc45 commit 6b454f3
Show file tree
Hide file tree
Showing 60 changed files with 62 additions and 60 deletions.
2 changes: 1 addition & 1 deletion META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ distribution_type : script
dynamic_config : 0

requires:
perl : 5.008
perl : 5.10.0
build_requires:
Test::More : 0.61
recommends:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use ExtUtils::MakeMaker qw/WriteMakefile/;
use Config;
use strict;
use warnings;
use 5.008;
use 5.10.0;

my $VERSION = '2.26.0';

Expand Down
4 changes: 3 additions & 1 deletion check_postgres.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package check_postgres;

use 5.008;
use 5.10.0;
use strict;
use warnings;
use utf8;
Expand Down Expand Up @@ -11377,6 +11377,8 @@ =head1 HISTORY
=item B<Version 2.26.1> not yet released
Raise minimum version or Perl to 5.10.0
Allow commas in passwords via --dbpass for one-connection queries (Greg Sabino Mullane) [Github issue #133]
Fix undefined variable error (Greg Sabino Mullane) [Github issue #141]
Expand Down
2 changes: 1 addition & 1 deletion set_translations.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Greg Sabino Mullane <[email protected]>
## BSD licensed

use 5.008;
use 5.10.0;
use strict;
use warnings;
use utf8;
Expand Down
2 changes: 1 addition & 1 deletion t/00_basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Simply test that the script compiles and gives a valid version

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Test::More tests => 2;
Expand Down
2 changes: 1 addition & 1 deletion t/00_release.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## 1. Make sure the version number is consistent in all places
## 2. Make sure we have a valid tag for this release

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/00_signature.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test that our PGP signature file is valid

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion t/00_test_tester.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Make sure we have tests for all actions

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/01_validate_range.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "validate_range" function

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Test::More tests => 144;
Expand Down
2 changes: 1 addition & 1 deletion t/02_autovac_freeze.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "autovac_freeze" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_backends.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "backends" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_bloat.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "bloat" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_checkpoint.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "checkpoint" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_cluster_id.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "checkpoint" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_commitratio.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "commitratio" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_connection.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "connection" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_custom_query.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "custom_query" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_database_size.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "database_size" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_dbstats.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "dbstats" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_disabled_triggers.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "disabled_triggers" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_disk_space.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "disk_space" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_fsm_pages.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "fsm_pages" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_fsm_relations.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "fsm_relations" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_hitratio.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "hitratio" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_last_analyze.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "last_analyze" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_last_vacuum.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "last_vacuum" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_listener.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "listener" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_locks.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "locks" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_logfile.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Test the "logfile" action
## this does not test $S for syslog or stderr output

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_new_version_bc.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "new_version_bc" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_new_version_box.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "new_version_box" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_new_version_cp.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "new_version_cp" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_new_version_pg.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "new_version_pg" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_new_version_tnm.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "new_version_tnm" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_pgagent_jobs.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "pgagent_jobs" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Test::More tests => 48;
Expand Down
2 changes: 1 addition & 1 deletion t/02_pgbouncer_checksum.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "pgbouncer_checksum" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_prepared_txns.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "prepare_txns" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_query_runtime.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "query_runtime" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_query_time.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "query_time" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_relation_size.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "relation_size" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_replicate_row.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "replicate_row" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_replication_slots.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "replication_slots" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion t/02_same_schema.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Test the "same_schema" action

use 5.008;
use 5.10.0;
use strict;
use warnings;
use Data::Dumper;
Expand Down
Loading

0 comments on commit 6b454f3

Please sign in to comment.