]> Dogcows Code - chaz/git-codeowners/commitdiff
Version 0.44
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 04:34:26 +0000 (21:34 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 04:34:26 +0000 (21:34 -0700)
20 files changed:
Changes
META.json
META.yml
Makefile.PL
README
bin/git-codeowners
lib/App/Codeowners.pm
lib/App/Codeowners/Formatter.pm
lib/App/Codeowners/Formatter/CSV.pm
lib/App/Codeowners/Formatter/JSON.pm
lib/App/Codeowners/Formatter/String.pm
lib/App/Codeowners/Formatter/TSV.pm
lib/App/Codeowners/Formatter/Table.pm
lib/App/Codeowners/Formatter/YAML.pm
lib/App/Codeowners/Options.pm
lib/App/Codeowners/Util.pm
lib/File/Codeowners.pm
lib/Test/File/Codeowners.pm
t/app-codeowners-util.t
t/app-codeowners.t

diff --git a/Changes b/Changes
index 9b06826312d16084a1c9e3a0cff42273a80096db..b215a51206a68a309e0db324ae21b553b1d1ff0b 100644 (file)
--- 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.
 
index 0e9f30f4f57640bd14cb214381e615323b9f5adf..8f139159a5adb03ca11a8cffb51bab1dfbd6db01 100644 (file)
--- a/META.json
+++ b/META.json
    "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",
          "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"
index b30a2a4982b4dd331ff5ed5bc91c71239c022e8b..44f9a47222cddd01be9fe34b66857d638ec1ae82 100644 (file)
--- 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'
index 09f972bf614f21dda9b98021f128e2c3c4239921..446a3532e7af73e76ebb13a0835aae924651f74f 100644 (file)
@@ -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 6a6d906ef1cf727cbaa738539d2e3954c858e0bc..3cfa8903d2e552155325181ca66f099d86b4b6c5 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ NAME
 
 VERSION
 
-    version 0.43
+    version 0.44
 
 SYNOPSIS
 
index 4436ef7e8b60a47bb2c04154d2503b642bc02475..dbb31f1af692b4fca5aa688e0b68b6593a6688fa 100755 (executable)
@@ -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
 
index 291660a5609496aaaaf3014e5791b328adca72bd..361802b510616df35f070e2e5cfafb234d709d90 100644 (file)
@@ -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
 
index d9e6132052749399f09009553ff75a539853ced4..b284f2d7225eec481816bab9f2b551a0b9d2bb2e 100644 (file)
@@ -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
 
index 331fec19653b6162bc667cd524afef95d5ba5fa4..2fb3b95c6833a389b245906f8d4dfe1a14c5284f 100644 (file)
@@ -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
 
index feb023695b8028d4b0693250fe60ad418937040b..1ccd4439467a28cc7939171a968726b6c23cdb5e 100644 (file)
@@ -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
 
index 6303fb5f428c0eb8df74db6b6d438c21fe69acfa..15ebeda1366a65f005bd3d4be0e3b4d6646a3246 100644 (file)
@@ -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
 
index 4322aaf919bf45d86009643fc770f223a6896a54..9390802cde14079838ef2cab7990e768d16b4d1a 100644 (file)
@@ -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
 
index f6c813c476afe5dbc0685e8d382b4c46c5043195..7ea682cc9835ace26f290bea9c6f6130f5e3297b 100644 (file)
@@ -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
 
index 991929014b08670d569e11d424d7561c499b28c1..e087f8368a7ee8c57cb5fe73a957dbf3518e92a6 100644 (file)
@@ -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
 
index fcc2eae1be3f2db540a87e4765526d12f83c12e0..83415d104413455e9ad0aa7c6829c6315462870e 100644 (file)
@@ -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
 
index dbf55132952d43a61a53f098cc0727c6d40e11a5..6cbfdebf37c217a26520b13c9ccafbbd1324fb52 100644 (file)
@@ -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
 
index bdaf64c18c31a2a40bb128605c574ab44acbaaf2..65b0f54e28932990aa0f707f684138cbab424142 100644 (file)
@@ -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
 
index 532ec288a394ae06dd6fed0f3342d734edc171cc..2906df6ece64e4808f38d69fc540822e4e34198a 100644 (file)
@@ -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
 
index 2edbcc79122b0f855a341688ff37bc3b4856aaf8..d44b06ff02ad7b51f3c71f71493ad8960977fcd3 100644 (file)
@@ -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 {
index 5ec78cb8e9b37295e94b231ea38f4e862cb80b68..af426e69d0f5b43821a1842cc6e2b697dd23f1e0 100644 (file)
@@ -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;
 
This page took 0.044991 seconds and 4 git commands to generate.