From c7fd400a7054264da00dd2b950850848f7c4e590 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 14 Nov 2019 21:34:26 -0700 Subject: [PATCH] Version 0.44 --- Changes | 4 ++++ META.json | 28 +++++++++++++------------- META.yml | 28 +++++++++++++------------- Makefile.PL | 2 +- 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 | 6 +++--- 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 | 4 ++-- lib/App/Codeowners/Util.pm | 4 ++-- lib/File/Codeowners.pm | 4 ++-- lib/Test/File/Codeowners.pm | 4 ++-- t/app-codeowners-util.t | 4 ++-- t/app-codeowners.t | 4 ++-- 20 files changed, 65 insertions(+), 61 deletions(-) diff --git a/Changes b/Changes index 9b06826..b215a51 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for App-Codeowners. +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. + 0.43 2019-11-13 10:12:01-07:00 MST7MDT * Fix "create" and "update" commands... to actually work. diff --git a/META.json b/META.json index 0e9f30f..8f13915 100644 --- a/META.json +++ b/META.json @@ -114,55 +114,55 @@ "provides" : { "App::Codeowners" : { "file" : "lib/App/Codeowners.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter" : { "file" : "lib/App/Codeowners/Formatter.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::CSV" : { "file" : "lib/App/Codeowners/Formatter/CSV.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::JSON" : { "file" : "lib/App/Codeowners/Formatter/JSON.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::String" : { "file" : "lib/App/Codeowners/Formatter/String.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::TSV" : { "file" : "lib/App/Codeowners/Formatter/TSV.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::Table" : { "file" : "lib/App/Codeowners/Formatter/Table.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Formatter::YAML" : { "file" : "lib/App/Codeowners/Formatter/YAML.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Options" : { "file" : "lib/App/Codeowners/Options.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Util" : { "file" : "lib/App/Codeowners/Util.pm", - "version" : "0.43" + "version" : "0.44" }, "App::Codeowners::Util::Process" : { "file" : "lib/App/Codeowners/Util.pm", - "version" : "0.43" + "version" : "0.44" }, "File::Codeowners" : { "file" : "lib/File/Codeowners.pm", - "version" : "0.43" + "version" : "0.44" }, "Test::File::Codeowners" : { "file" : "lib/Test/File/Codeowners.pm", - "version" : "0.43" + "version" : "0.44" } }, "release_status" : "stable", @@ -177,7 +177,7 @@ "web" : "https://github.com/chazmcgarvey/git-codeowners" } }, - "version" : "0.43", + "version" : "0.44", "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 b30a2a4..44f9a47 100644 --- a/META.yml +++ b/META.yml @@ -31,43 +31,43 @@ no_index: provides: App::Codeowners: file: lib/App/Codeowners.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter: file: lib/App/Codeowners/Formatter.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::CSV: file: lib/App/Codeowners/Formatter/CSV.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::JSON: file: lib/App/Codeowners/Formatter/JSON.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::String: file: lib/App/Codeowners/Formatter/String.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::TSV: file: lib/App/Codeowners/Formatter/TSV.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::Table: file: lib/App/Codeowners/Formatter/Table.pm - version: '0.43' + version: '0.44' App::Codeowners::Formatter::YAML: file: lib/App/Codeowners/Formatter/YAML.pm - version: '0.43' + version: '0.44' App::Codeowners::Options: file: lib/App/Codeowners/Options.pm - version: '0.43' + version: '0.44' App::Codeowners::Util: file: lib/App/Codeowners/Util.pm - version: '0.43' + version: '0.44' App::Codeowners::Util::Process: file: lib/App/Codeowners/Util.pm - version: '0.43' + version: '0.44' File::Codeowners: file: lib/File/Codeowners.pm - version: '0.43' + version: '0.44' Test::File::Codeowners: file: lib/Test/File/Codeowners.pm - version: '0.43' + version: '0.44' recommends: Term::Detect::Software: '0' Unicode::GCString: '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.43' +version: '0.44' 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 09f972b..446a353 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -48,7 +48,7 @@ my %WriteMakefileArgs = ( "Test::Exit" => 0, "Test::More" => 0 }, - "VERSION" => "0.43", + "VERSION" => "0.44", "test" => { "TESTS" => "t/*.t" } diff --git a/README b/README index 6a6d906..3cfa890 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ NAME VERSION - version 0.43 + version 0.44 SYNOPSIS diff --git a/bin/git-codeowners b/bin/git-codeowners index 4436ef7..dbb31f1 100755 --- a/bin/git-codeowners +++ b/bin/git-codeowners @@ -10,7 +10,7 @@ use strict; use App::Codeowners; -our $VERSION = '0.43'; # VERSION +our $VERSION = '0.44'; # VERSION App::Codeowners->main(@ARGV); @@ -26,7 +26,7 @@ git-codeowners - A tool for managing CODEOWNERS files =head1 VERSION -version 0.43 +version 0.44 =head1 SYNOPSIS diff --git a/lib/App/Codeowners.pm b/lib/App/Codeowners.pm index 291660a..361802b 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION sub main { @@ -218,7 +218,7 @@ App::Codeowners - A tool for managing CODEOWNERS files =head1 VERSION -version 0.43 +version 0.44 =head1 METHODS diff --git a/lib/App/Codeowners/Formatter.pm b/lib/App/Codeowners/Formatter.pm index d9e6132..b284f2d 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION use Module::Load; @@ -120,7 +120,7 @@ App::Codeowners::Formatter - Base class for formatting codeowners output =head1 VERSION -version 0.43 +version 0.44 =head1 SYNOPSIS diff --git a/lib/App/Codeowners/Formatter/CSV.pm b/lib/App/Codeowners/Formatter/CSV.pm index 331fec1..2fb3b95 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.43'; # VERSION +our $VERSION = '0.44'; # 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.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/JSON.pm b/lib/App/Codeowners/Formatter/JSON.pm index feb0236..1ccd443 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -42,7 +42,7 @@ App::Codeowners::Formatter::JSON - Format codeowners output as JSON =head1 VERSION -version 0.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/String.pm b/lib/App/Codeowners/Formatter/String.pm index 6303fb5..15ebeda 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -54,7 +54,7 @@ sub _colored { my $text = shift; my $rgb = shift or return $text; - return $text if $ENV{NO_COLOR}; + return $text if $ENV{NO_COLOR} || (defined $ENV{COLOR_DEPTH} && !$ENV{COLOR_DEPTH}); $rgb =~ s/^(.)(.)(.)$/$1$1$2$2$3$3/; if ($rgb !~ m/^[0-9a-fA-F]{6}$/) { @@ -136,7 +136,7 @@ App::Codeowners::Formatter::String - Format codeowners output using printf-like =head1 VERSION -version 0.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/TSV.pm b/lib/App/Codeowners/Formatter/TSV.pm index 4322aaf..9390802 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.43'; # VERSION +our $VERSION = '0.44'; # 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.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/Table.pm b/lib/App/Codeowners/Formatter/Table.pm index f6c813c..7ea682c 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -40,7 +40,7 @@ App::Codeowners::Formatter::Table - Format codeowners output as a table =head1 VERSION -version 0.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Formatter/YAML.pm b/lib/App/Codeowners/Formatter/YAML.pm index 9919290..e087f83 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.43'; # VERSION +our $VERSION = '0.44'; # VERSION use parent 'App::Codeowners::Formatter'; @@ -36,7 +36,7 @@ App::Codeowners::Formatter::YAML - Format codeowners output as YAML =head1 VERSION -version 0.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/App/Codeowners/Options.pm b/lib/App/Codeowners/Options.pm index fcc2eae..83415d1 100644 --- a/lib/App/Codeowners/Options.pm +++ b/lib/App/Codeowners/Options.pm @@ -8,7 +8,7 @@ use Getopt::Long 2.39 (); use Path::Tiny; use Pod::Usage; -our $VERSION = '0.43'; # VERSION +our $VERSION = '0.44'; # VERSION sub early_options { return { @@ -278,7 +278,7 @@ App::Codeowners::Options - Getopt and shell completion for App::Codeowners =head1 VERSION -version 0.43 +version 0.44 =head1 METHODS diff --git a/lib/App/Codeowners/Util.pm b/lib/App/Codeowners/Util.pm index dbf5513..6cbfdeb 100644 --- a/lib/App/Codeowners/Util.pm +++ b/lib/App/Codeowners/Util.pm @@ -23,7 +23,7 @@ our @EXPORT_OK = qw( zip ); -our $VERSION = '0.43'; # VERSION +our $VERSION = '0.44'; # VERSION sub find_nearest_codeowners { @@ -280,7 +280,7 @@ App::Codeowners::Util - Grab bag of utility subs for Codeowners modules =head1 VERSION -version 0.43 +version 0.44 =head1 DESCRIPTION diff --git a/lib/File/Codeowners.pm b/lib/File/Codeowners.pm index bdaf64c..65b0f54 100644 --- a/lib/File/Codeowners.pm +++ b/lib/File/Codeowners.pm @@ -10,7 +10,7 @@ use Path::Tiny; use Scalar::Util qw(openhandle); use Text::Gitignore qw(build_gitignore_matcher); -our $VERSION = '0.43'; # VERSION +our $VERSION = '0.44'; # VERSION sub _croak { require Carp; Carp::croak(@_); } sub _usage { _croak("Usage: @_\n") } @@ -354,7 +354,7 @@ File::Codeowners - Read and write CODEOWNERS files =head1 VERSION -version 0.43 +version 0.44 =head1 METHODS diff --git a/lib/Test/File/Codeowners.pm b/lib/Test/File/Codeowners.pm index 532ec28..2906df6 100644 --- a/lib/Test/File/Codeowners.pm +++ b/lib/Test/File/Codeowners.pm @@ -10,7 +10,7 @@ use Encode qw(encode); use File::Codeowners; use Test::Builder; -our $VERSION = '0.43'; # VERSION +our $VERSION = '0.44'; # VERSION my $Test = Test::Builder->new; @@ -88,7 +88,7 @@ Test::File::Codeowners - Write tests for CODEOWNERS files =head1 VERSION -version 0.43 +version 0.44 =head1 SYNOPSIS diff --git a/t/app-codeowners-util.t b/t/app-codeowners-util.t index 2edbcc7..d44b06f 100644 --- a/t/app-codeowners-util.t +++ b/t/app-codeowners-util.t @@ -44,10 +44,10 @@ subtest 'git_toplevel' => sub { my $repodir =_setup_git_repo(); my $r = App::Codeowners::Util::git_toplevel($repodir); - is($r, $repodir, 'found toplevel directory from toplevel'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory from toplevel'); $r = App::Codeowners::Util::git_toplevel($repodir->child('a/b')); - is($r, $repodir, 'found toplevel directory'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory'); }; subtest 'find_nearest_codeowners' => sub { diff --git a/t/app-codeowners.t b/t/app-codeowners.t index 5ec78cb..af426e6 100644 --- a/t/app-codeowners.t +++ b/t/app-codeowners.t @@ -14,8 +14,8 @@ use Test::More; my $can_git = _can_git(); -# Set progname so that pod2usage knows how to find the script after we chdir -$0 = path($Bin)->parent->child('bin/git-codeowners')->absolute; +# Set progname so that pod2usage knows how to find the script after we chdir. +$0 = path($Bin)->parent->child('bin/git-codeowners')->absolute->stringify; $ENV{NO_COLOR} = 1; -- 2.45.2