From a6b5af4adc7ded62e680b82073781028c2e78158 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 14 Nov 2019 22:31:13 -0700 Subject: [PATCH] Version 0.45 --- Changes | 3 +++ META.json | 30 +++++++++++++------------- META.yml | 30 +++++++++++++------------- Makefile.PL | 4 +--- README | 2 +- bin/git-codeowners | 4 ++-- lib/App/Codeowners.pm | 4 ++-- lib/App/Codeowners/Formatter.pm | 4 ++-- lib/App/Codeowners/Formatter/CSV.pm | 4 ++-- lib/App/Codeowners/Formatter/JSON.pm | 4 ++-- lib/App/Codeowners/Formatter/String.pm | 4 ++-- lib/App/Codeowners/Formatter/TSV.pm | 4 ++-- lib/App/Codeowners/Formatter/Table.pm | 4 ++-- lib/App/Codeowners/Formatter/YAML.pm | 4 ++-- lib/App/Codeowners/Options.pm | 27 ++++++++++++++++++++--- lib/App/Codeowners/Util.pm | 4 ++-- lib/File/Codeowners.pm | 4 ++-- lib/Test/File/Codeowners.pm | 4 ++-- t/00-report-prereqs.dd | 2 +- 19 files changed, 84 insertions(+), 62 deletions(-) diff --git a/Changes b/Changes index b215a51..202ba9d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for App-Codeowners. +0.45 2019-11-14 22:30:14-07:00 MST7MDT + * Pod::Usage is now optional for the benefit of Git for Windows. + 0.44 2019-11-14 21:33:01-07:00 MST7MDT * Attempt to fix more compatibility issues (thanks CPAN testers). * Honor COLOR_DEPTH=0 to disable ANSI color codes. diff --git a/META.json b/META.json index 8f13915..b364602 100644 --- a/META.json +++ b/META.json @@ -65,6 +65,7 @@ }, "runtime" : { "recommends" : { + "Pod::Usage" : "0", "Term::Detect::Software" : "0", "Unicode::GCString" : "0" }, @@ -77,7 +78,6 @@ "IPC::Open2" : "0", "Module::Load" : "0", "Path::Tiny" : "0", - "Pod::Usage" : "0", "Scalar::Util" : "0", "Test::Builder" : "0", "Text::Gitignore" : "0", @@ -114,55 +114,55 @@ "provides" : { "App::Codeowners" : { "file" : "lib/App/Codeowners.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter" : { "file" : "lib/App/Codeowners/Formatter.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::CSV" : { "file" : "lib/App/Codeowners/Formatter/CSV.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::JSON" : { "file" : "lib/App/Codeowners/Formatter/JSON.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::String" : { "file" : "lib/App/Codeowners/Formatter/String.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::TSV" : { "file" : "lib/App/Codeowners/Formatter/TSV.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::Table" : { "file" : "lib/App/Codeowners/Formatter/Table.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Formatter::YAML" : { "file" : "lib/App/Codeowners/Formatter/YAML.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Options" : { "file" : "lib/App/Codeowners/Options.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Util" : { "file" : "lib/App/Codeowners/Util.pm", - "version" : "0.44" + "version" : "0.45" }, "App::Codeowners::Util::Process" : { "file" : "lib/App/Codeowners/Util.pm", - "version" : "0.44" + "version" : "0.45" }, "File::Codeowners" : { "file" : "lib/File/Codeowners.pm", - "version" : "0.44" + "version" : "0.45" }, "Test::File::Codeowners" : { "file" : "lib/Test/File/Codeowners.pm", - "version" : "0.44" + "version" : "0.45" } }, "release_status" : "stable", @@ -177,7 +177,7 @@ "web" : "https://github.com/chazmcgarvey/git-codeowners" } }, - "version" : "0.44", + "version" : "0.45", "x_authority" : "cpan:CCM", "x_generated_by_perl" : "v5.28.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.15" diff --git a/META.yml b/META.yml index 44f9a47..25bc11c 100644 --- a/META.yml +++ b/META.yml @@ -31,44 +31,45 @@ no_index: provides: App::Codeowners: file: lib/App/Codeowners.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter: file: lib/App/Codeowners/Formatter.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::CSV: file: lib/App/Codeowners/Formatter/CSV.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::JSON: file: lib/App/Codeowners/Formatter/JSON.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::String: file: lib/App/Codeowners/Formatter/String.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::TSV: file: lib/App/Codeowners/Formatter/TSV.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::Table: file: lib/App/Codeowners/Formatter/Table.pm - version: '0.44' + version: '0.45' App::Codeowners::Formatter::YAML: file: lib/App/Codeowners/Formatter/YAML.pm - version: '0.44' + version: '0.45' App::Codeowners::Options: file: lib/App/Codeowners/Options.pm - version: '0.44' + version: '0.45' App::Codeowners::Util: file: lib/App/Codeowners/Util.pm - version: '0.44' + version: '0.45' App::Codeowners::Util::Process: file: lib/App/Codeowners/Util.pm - version: '0.44' + version: '0.45' File::Codeowners: file: lib/File/Codeowners.pm - version: '0.44' + version: '0.45' Test::File::Codeowners: file: lib/Test/File/Codeowners.pm - version: '0.44' + version: '0.45' recommends: + Pod::Usage: '0' Term::Detect::Software: '0' Unicode::GCString: '0' requires: @@ -80,7 +81,6 @@ requires: IPC::Open2: '0' Module::Load: '0' Path::Tiny: '0' - Pod::Usage: '0' Scalar::Util: '0' Test::Builder: '0' Text::Gitignore: '0' @@ -93,7 +93,7 @@ resources: bugtracker: https://github.com/chazmcgarvey/git-codeowners/issues homepage: https://github.com/chazmcgarvey/git-codeowners repository: https://github.com/chazmcgarvey/git-codeowners.git -version: '0.44' +version: '0.45' x_authority: cpan:CCM x_generated_by_perl: v5.28.0 x_serialization_backend: 'YAML::Tiny version 1.73' diff --git a/Makefile.PL b/Makefile.PL index 446a353..4794279 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -28,7 +28,6 @@ my %WriteMakefileArgs = ( "IPC::Open2" => 0, "Module::Load" => 0, "Path::Tiny" => 0, - "Pod::Usage" => 0, "Scalar::Util" => 0, "Test::Builder" => 0, "Text::Gitignore" => 0, @@ -48,7 +47,7 @@ my %WriteMakefileArgs = ( "Test::Exit" => 0, "Test::More" => 0 }, - "VERSION" => "0.44", + "VERSION" => "0.45", "test" => { "TESTS" => "t/*.t" } @@ -71,7 +70,6 @@ my %FallbackPrereqs = ( "IPC::Open3" => 0, "Module::Load" => 0, "Path::Tiny" => 0, - "Pod::Usage" => 0, "Scalar::Util" => 0, "Test::Builder" => 0, "Test::Exit" => 0, diff --git a/README b/README index 3cfa890..01b5b3d 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ NAME VERSION - version 0.44 + version 0.45 SYNOPSIS diff --git a/bin/git-codeowners b/bin/git-codeowners index dbb31f1..fa554bd 100755 --- a/bin/git-codeowners +++ b/bin/git-codeowners @@ -10,7 +10,7 @@ use strict; use App::Codeowners; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION App::Codeowners->main(@ARGV); @@ -26,7 +26,7 @@ git-codeowners - A tool for managing CODEOWNERS files =head1 VERSION -version 0.44 +version 0.45 =head1 SYNOPSIS diff --git a/lib/App/Codeowners.pm b/lib/App/Codeowners.pm index 361802b..405c70b 100644 --- a/lib/App/Codeowners.pm +++ b/lib/App/Codeowners.pm @@ -14,7 +14,7 @@ use Encode qw(encode); use File::Codeowners; use Path::Tiny; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION sub main { @@ -218,7 +218,7 @@ App::Codeowners - A tool for managing CODEOWNERS files =head1 VERSION -version 0.44 +version 0.45 =head1 METHODS diff --git a/lib/App/Codeowners/Formatter.pm b/lib/App/Codeowners/Formatter.pm index b284f2d..2d46f4b 100644 --- a/lib/App/Codeowners/Formatter.pm +++ b/lib/App/Codeowners/Formatter.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use Module::Load; @@ -120,7 +120,7 @@ App::Codeowners::Formatter - Base class for formatting codeowners output =head1 VERSION -version 0.44 +version 0.45 =head1 SYNOPSIS diff --git a/lib/App/Codeowners/Formatter/CSV.pm b/lib/App/Codeowners/Formatter/CSV.pm index 2fb3b95..fccb6a8 100644 --- a/lib/App/Codeowners/Formatter/CSV.pm +++ b/lib/App/Codeowners/Formatter/CSV.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::CSV; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -63,7 +63,7 @@ App::Codeowners::Formatter::CSV - Format codeowners output as comma-separated va =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/JSON.pm b/lib/App/Codeowners/Formatter/JSON.pm index 1ccd443..4c7fd3b 100644 --- a/lib/App/Codeowners/Formatter/JSON.pm +++ b/lib/App/Codeowners/Formatter/JSON.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::JSON; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -42,7 +42,7 @@ App::Codeowners::Formatter::JSON - Format codeowners output as JSON =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/String.pm b/lib/App/Codeowners/Formatter/String.pm index 15ebeda..a4c6ad1 100644 --- a/lib/App/Codeowners/Formatter/String.pm +++ b/lib/App/Codeowners/Formatter/String.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::String; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -136,7 +136,7 @@ App::Codeowners::Formatter::String - Format codeowners output using printf-like =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/TSV.pm b/lib/App/Codeowners/Formatter/TSV.pm index 9390802..b34b693 100644 --- a/lib/App/Codeowners/Formatter/TSV.pm +++ b/lib/App/Codeowners/Formatter/TSV.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::TSV; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter::CSV'; @@ -25,7 +25,7 @@ App::Codeowners::Formatter::TSV - Format codeowners output as tab-separated valu =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/Table.pm b/lib/App/Codeowners/Formatter/Table.pm index 7ea682c..0c87dec 100644 --- a/lib/App/Codeowners/Formatter/Table.pm +++ b/lib/App/Codeowners/Formatter/Table.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::Table; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -40,7 +40,7 @@ App::Codeowners::Formatter::Table - Format codeowners output as a table =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/YAML.pm b/lib/App/Codeowners/Formatter/YAML.pm index e087f83..90a3646 100644 --- a/lib/App/Codeowners/Formatter/YAML.pm +++ b/lib/App/Codeowners/Formatter/YAML.pm @@ -5,7 +5,7 @@ package App::Codeowners::Formatter::YAML; use warnings; use strict; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -36,7 +36,7 @@ App::Codeowners::Formatter::YAML - Format codeowners output as YAML =head1 VERSION -version 0.44 +version 0.45 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Options.pm b/lib/App/Codeowners/Options.pm index 83415d1..000f874 100644 --- a/lib/App/Codeowners/Options.pm +++ b/lib/App/Codeowners/Options.pm @@ -1,14 +1,35 @@ package App::Codeowners::Options; # ABSTRACT: Getopt and shell completion for App::Codeowners +use v5.10.1; use warnings; use strict; use Getopt::Long 2.39 (); use Path::Tiny; -use Pod::Usage; -our $VERSION = '0.44'; # VERSION +our $VERSION = '0.45'; # VERSION + +sub pod2usage { + eval { require Pod::Usage }; + if ($@) { + my $ref = $VERSION eq '9999.999' ? 'master' : "v$VERSION"; + my $exit = (@_ == 1 && $_[0] =~ /^\d+$/ && $_[0]) // + (@_ % 2 == 0 && {@_}->{'-exitval'}) // 2; + print STDERR <new; @@ -88,7 +88,7 @@ Test::File::Codeowners - Write tests for CODEOWNERS files =head1 VERSION -version 0.44 +version 0.45 =head1 SYNOPSIS diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd index 0c517b6..4ab8419 100644 --- a/t/00-report-prereqs.dd +++ b/t/00-report-prereqs.dd @@ -41,6 +41,7 @@ do { my $x = { }, 'runtime' => { 'recommends' => { + 'Pod::Usage' => '0', 'Term::Detect::Software' => '0', 'Unicode::GCString' => '0' }, @@ -53,7 +54,6 @@ do { my $x = { 'IPC::Open2' => '0', 'Module::Load' => '0', 'Path::Tiny' => '0', - 'Pod::Usage' => '0', 'Scalar::Util' => '0', 'Test::Builder' => '0', 'Text::Gitignore' => '0', -- 2.44.0