[boxer] 02/33: Modernize to use perl v5.14, utf8, and strictures 2.

Jonas Smedegaard dr at jones.dk
Sun Nov 5 18:28:16 UTC 2017


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

js pushed a commit to annotated tag debian/1.1.5-1
in repository boxer.

commit dade2badc777c89180db433ca9b1113def93db1a
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed Jun 29 18:41:45 2016 +0200

    Modernize to use perl v5.14, utf8, and strictures 2.
---
 bin/boxer                         |  8 +++++++-
 lib/Boxer.pm                      |  9 +++++----
 lib/Boxer/CLI.pm                  |  8 ++++++--
 lib/Boxer/CLI/Command.pm          |  9 +++++++--
 lib/Boxer/CLI/Command/About.pm    |  8 ++++++--
 lib/Boxer/CLI/Command/Aliases.pm  |  9 +++++++--
 lib/Boxer/CLI/Command/Commands.pm |  8 ++++++--
 lib/Boxer/CLI/Command/Compose.pm  |  8 ++++++--
 lib/Boxer/Role/Interact.pm        |  9 +++++++--
 lib/Boxer/Task.pm                 | 10 +++++++---
 lib/Boxer/Task/Classify.pm        |  8 ++++++--
 lib/Boxer/Task/Serialize.pm       | 10 +++++++---
 lib/Boxer/Types.pm                |  8 ++++++--
 meta/makefile.pret                |  4 ++--
 t/00_compile.t                    |  4 +++-
 t/00_compile_scripts.t            |  4 +++-
 t/01_app_help.t                   |  4 +++-
 t/fixme.t                         |  4 +++-
 t/minimumversion.t                |  4 +++-
 t/pod.t                           |  4 +++-
 xt/perlcritic.t                   |  4 +++-
 xt/synopsis.t                     |  4 +++-
 22 files changed, 109 insertions(+), 39 deletions(-)

diff --git a/bin/boxer b/bin/boxer
index 609126b..e408184 100755
--- a/bin/boxer
+++ b/bin/boxer
@@ -1,6 +1,12 @@
 #!/usr/bin/env perl
 
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Boxer::CLI;
 Boxer::CLI->run;
diff --git a/lib/Boxer.pm b/lib/Boxer.pm
index 23a471c..4b46181 100644
--- a/lib/Boxer.pm
+++ b/lib/Boxer.pm
@@ -1,15 +1,16 @@
 package Boxer;
 
+=encoding UTF-8
+
 =head1 NAME
 
 Boxer - system deployment ninja tricks
 
 =cut
 
-use strict;
-use warnings;
-
-use 5.01;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Role::Commons -all;
 
diff --git a/lib/Boxer/CLI.pm b/lib/Boxer/CLI.pm
index 5bf8ea3..2878189 100644
--- a/lib/Boxer/CLI.pm
+++ b/lib/Boxer/CLI.pm
@@ -1,8 +1,12 @@
 package Boxer::CLI;
 
-use 5.01;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 
 use App::Cmd::Setup -app;
 
diff --git a/lib/Boxer/CLI/Command.pm b/lib/Boxer/CLI/Command.pm
index d5e3cbc..f13b4b3 100644
--- a/lib/Boxer/CLI/Command.pm
+++ b/lib/Boxer/CLI/Command.pm
@@ -1,7 +1,12 @@
 package Boxer::CLI::Command;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
+use utf8;
+use strictures 2;
 
 use App::Cmd::Setup-command;
 
diff --git a/lib/Boxer/CLI/Command/About.pm b/lib/Boxer/CLI/Command/About.pm
index afe5929..0d9d326 100644
--- a/lib/Boxer/CLI/Command/About.pm
+++ b/lib/Boxer/CLI/Command/About.pm
@@ -1,8 +1,12 @@
 package Boxer::CLI::Command::About;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 
 use Boxer::CLI -command;
 use namespace::clean;
diff --git a/lib/Boxer/CLI/Command/Aliases.pm b/lib/Boxer/CLI/Command/Aliases.pm
index 320feee..4f5d87d 100644
--- a/lib/Boxer/CLI/Command/Aliases.pm
+++ b/lib/Boxer/CLI/Command/Aliases.pm
@@ -1,8 +1,13 @@
 package Boxer::CLI::Command::Aliases;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
+
 use match::simple qw(match);
 
 use Boxer::CLI -command;
diff --git a/lib/Boxer/CLI/Command/Commands.pm b/lib/Boxer/CLI/Command/Commands.pm
index a6217f3..32a2067 100644
--- a/lib/Boxer/CLI/Command/Commands.pm
+++ b/lib/Boxer/CLI/Command/Commands.pm
@@ -1,8 +1,12 @@
 package Boxer::CLI::Command::Commands;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 
 use Boxer::CLI -command;
 use namespace::clean;
diff --git a/lib/Boxer/CLI/Command/Compose.pm b/lib/Boxer/CLI/Command/Compose.pm
index 60a9cc9..64597b9 100644
--- a/lib/Boxer/CLI/Command/Compose.pm
+++ b/lib/Boxer/CLI/Command/Compose.pm
@@ -1,8 +1,12 @@
 package Boxer::CLI::Command::Compose;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 
 use Boxer::CLI -command;
 use namespace::clean;
diff --git a/lib/Boxer/Role/Interact.pm b/lib/Boxer/Role/Interact.pm
index 3986ba3..d02bd4c 100644
--- a/lib/Boxer/Role/Interact.pm
+++ b/lib/Boxer/Role/Interact.pm
@@ -1,7 +1,12 @@
 package Boxer::Role::Interact;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Moo::Role;
 use MooX::Types::MooseLike::Base qw< Bool >;
diff --git a/lib/Boxer/Task.pm b/lib/Boxer/Task.pm
index 27b6d7a..ad17eff 100644
--- a/lib/Boxer/Task.pm
+++ b/lib/Boxer/Task.pm
@@ -1,9 +1,13 @@
 package Boxer::Task;
 
-use 5.010;
-use autodie;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
+use autodie;
 
 use Moo;
 with 'MooX::Role::Logger', 'Boxer::Role::Interact';
diff --git a/lib/Boxer/Task/Classify.pm b/lib/Boxer/Task/Classify.pm
index 731f909..a644720 100644
--- a/lib/Boxer/Task/Classify.pm
+++ b/lib/Boxer/Task/Classify.pm
@@ -1,8 +1,12 @@
 package Boxer::Task::Classify;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 use autodie qw(:all);
 use IPC::System::Simple;
 
diff --git a/lib/Boxer/Task/Serialize.pm b/lib/Boxer/Task/Serialize.pm
index fc34070..0c9fb62 100644
--- a/lib/Boxer/Task/Serialize.pm
+++ b/lib/Boxer/Task/Serialize.pm
@@ -1,9 +1,13 @@
 package Boxer::Task::Serialize;
 
-use 5.010;
-use autodie;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
+use autodie;
 use Carp qw<croak>;
 
 use Moo;
diff --git a/lib/Boxer/Types.pm b/lib/Boxer/Types.pm
index d78e95b..4a8e4f8 100644
--- a/lib/Boxer/Types.pm
+++ b/lib/Boxer/Types.pm
@@ -1,8 +1,12 @@
 package Boxer::Types;
 
-use 5.010;
-use strictures 1;
+=encoding UTF-8
+
+=cut
+
+use v5.14;
 use utf8;
+use strictures 2;
 
 use Type::Library -base,
 	-declare => qw( DataDir ClassDir NodeDir SkelDir Suite );
diff --git a/meta/makefile.pret b/meta/makefile.pret
index 9b8e7de..63e0652 100644
--- a/meta/makefile.pret
+++ b/meta/makefile.pret
@@ -6,7 +6,7 @@
 	:runtime-requirement  [ :on "App::Cmd 0"^^:CpanId ];
 	:runtime-requirement  [ :on "autodie 0"^^:CpanId ];
 	:runtime-requirement  [ :on "IPC::System::Simple 0"^^:CpanId ];
-	:runtime-requirement  [ :on "strictures 0"^^:CpanId ];
+	:runtime-requirement  [ :on "strictures 2"^^:CpanId ];
 	:runtime-requirement  [ :on "Capture::Tiny 0"^^:CpanId ];
 	:runtime-requirement  [ :on "File::BaseDir 0"^^:CpanId ];
 	:runtime-requirement  [ :on "File::HomeDir 0"^^:CpanId ];
@@ -27,7 +27,7 @@
 	:runtime-requirement  [ :on "Types::Path::Tiny 0"^^:CpanId ];
 	:runtime-requirement  [ :on "Types::Standard 0"^^:CpanId ];
 	:runtime-requirement  [ :on "YAML::XS 0"^^:CpanId ];
-	:runtime-requirement  [ :on "perl 5.010001"^^:CpanId ];
+	:runtime-requirement  [ :on "perl 5.014000"^^:CpanId ];
 	:test-requirement     [ :on "Test::More 0.61"^^:CpanId ];
 	:test-requirement     [ :on "English 0"^^:CpanId ];
 	:test-requirement     [ :on "File::Spec 0"^^:CpanId ];
diff --git a/t/00_compile.t b/t/00_compile.t
index c5ad40e..d6379e9 100644
--- a/t/00_compile.t
+++ b/t/00_compile.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More;
 
diff --git a/t/00_compile_scripts.t b/t/00_compile_scripts.t
index 50afb84..f913673 100644
--- a/t/00_compile_scripts.t
+++ b/t/00_compile_scripts.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More;
 
diff --git a/t/01_app_help.t b/t/01_app_help.t
index 3ae863d..14c62bc 100644
--- a/t/01_app_help.t
+++ b/t/01_app_help.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More tests => 3;
 use App::Cmd::Tester;
diff --git a/t/fixme.t b/t/fixme.t
index 585a9a0..b605c7f 100644
--- a/t/fixme.t
+++ b/t/fixme.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::Fixme;
 
diff --git a/t/minimumversion.t b/t/minimumversion.t
index ff763ba..b0171a8 100644
--- a/t/minimumversion.t
+++ b/t/minimumversion.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl -w
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More;
 use Test::MinimumVersion;
diff --git a/t/pod.t b/t/pod.t
index 2dba7bf..b06d01b 100644
--- a/t/pod.t
+++ b/t/pod.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More;
 
diff --git a/xt/perlcritic.t b/xt/perlcritic.t
index d892936..a4d9559 100644
--- a/xt/perlcritic.t
+++ b/xt/perlcritic.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use File::Spec;
 use Test::More;
diff --git a/xt/synopsis.t b/xt/synopsis.t
index db3f5e3..9e62e85 100644
--- a/xt/synopsis.t
+++ b/xt/synopsis.t
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 
-use strictures 1;
+use v5.14;
+use utf8;
+use strictures 2;
 
 use Test::More;
 eval "use Test::Synopsis";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/boxer.git



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