]> Dogcows Code - chaz/git-codeowners/commitdiff
Version 0.45
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 05:31:13 +0000 (22:31 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 05:31:13 +0000 (22:31 -0700)
19 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/00-report-prereqs.dd

diff --git a/Changes b/Changes
index b215a51206a68a309e0db324ae21b553b1d1ff0b..202ba9d8a7475a3dde7151f64fdb5e6863855e65 100644 (file)
--- 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.
index 8f139159a5adb03ca11a8cffb51bab1dfbd6db01..b3646023e1fdd9dd7d64e2c96e7e3fee6d9b1df6 100644 (file)
--- 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",
    "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",
          "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"
index 44f9a47222cddd01be9fe34b66857d638ec1ae82..25bc11c4c5c0c26df8622fe7de193d1fa3c216e1 100644 (file)
--- 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'
index 446a3532e7af73e76ebb13a0835aae924651f74f..4794279ad0771fc8d67df502b20ab85b1afb66e3 100644 (file)
@@ -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 3cfa8903d2e552155325181ca66f099d86b4b6c5..01b5b3dcb6d9ca8fa416e5a92932413007a12767 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ NAME
 
 VERSION
 
-    version 0.44
+    version 0.45
 
 SYNOPSIS
 
index dbb31f1af692b4fca5aa688e0b68b6593a6688fa..fa554bd3321e20556cdf013c7d5fd1817a99408a 100755 (executable)
@@ -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
 
index 361802b510616df35f070e2e5cfafb234d709d90..405c70bf5eed6a7c90669147101105478fcdd8a8 100644 (file)
@@ -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
 
index b284f2d7225eec481816bab9f2b551a0b9d2bb2e..2d46f4b1fc085ae9651ae996a2e256c9732a0560 100644 (file)
@@ -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
 
index 2fb3b95c6833a389b245906f8d4dfe1a14c5284f..fccb6a895316f368f5674e895e4091f96f29e623 100644 (file)
@@ -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
 
index 1ccd4439467a28cc7939171a968726b6c23cdb5e..4c7fd3b0316c956f6decb104ea11654e66481bd3 100644 (file)
@@ -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
 
index 15ebeda1366a65f005bd3d4be0e3b4d6646a3246..a4c6ad1c8fa636568d0c648764357c33c576b556 100644 (file)
@@ -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
 
index 9390802cde14079838ef2cab7990e768d16b4d1a..b34b69350f0efb8df4c79ebccdfebd4bd4ccef39 100644 (file)
@@ -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
 
index 7ea682cc9835ace26f290bea9c6f6130f5e3297b..0c87decd2e20830d77f24960b704ab85e8effe23 100644 (file)
@@ -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
 
index e087f8368a7ee8c57cb5fe73a957dbf3518e92a6..90a3646e6e04e67afd1b5dc59ffe155027c2306f 100644 (file)
@@ -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
 
index 83415d104413455e9ad0aa7c6829c6315462870e..000f8742e1bf8a5648b94672a8ffa49374bab54b 100644 (file)
@@ -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 <<END;
+Online documentation is available at:
+
+  https://github.com/chazmcgarvey/git-codeowners/blob/$ref/README.md
+
+Tip: To enable inline documentation, install the Pod::Usage module.
+
+END
+        exit $exit;
+    }
+    else {
+        Pod::Usage::pod2usage(@_);
+    }
+}
 
 sub early_options {
     return {
@@ -278,7 +299,7 @@ App::Codeowners::Options - Getopt and shell completion for App::Codeowners
 
 =head1 VERSION
 
-version 0.44
+version 0.45
 
 =head1 METHODS
 
index 6cbfdebf37c217a26520b13c9ccafbbd1324fb52..d4f829101377a6e9e349b93bdac89bb9a0ce712d 100644 (file)
@@ -23,7 +23,7 @@ our @EXPORT_OK = qw(
     zip
 );
 
-our $VERSION = '0.44'; # VERSION
+our $VERSION = '0.45'; # VERSION
 
 
 sub find_nearest_codeowners {
@@ -280,7 +280,7 @@ App::Codeowners::Util - Grab bag of utility subs for Codeowners modules
 
 =head1 VERSION
 
-version 0.44
+version 0.45
 
 =head1 DESCRIPTION
 
index 65b0f54e28932990aa0f707f684138cbab424142..3a03b9b674a8e420763fe4fef2f599f4bb9505b3 100644 (file)
@@ -10,7 +10,7 @@ use Path::Tiny;
 use Scalar::Util qw(openhandle);
 use Text::Gitignore qw(build_gitignore_matcher);
 
-our $VERSION = '0.44'; # VERSION
+our $VERSION = '0.45'; # 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.44
+version 0.45
 
 =head1 METHODS
 
index 2906df6ece64e4808f38d69fc540822e4e34198a..131421b0d32d08e1cc083d36ac582d8327489bfd 100644 (file)
@@ -10,7 +10,7 @@ use Encode qw(encode);
 use File::Codeowners;
 use Test::Builder;
 
-our $VERSION = '0.44'; # VERSION
+our $VERSION = '0.45'; # VERSION
 
 my $Test = Test::Builder->new;
 
@@ -88,7 +88,7 @@ Test::File::Codeowners - Write tests for CODEOWNERS files
 
 =head1 VERSION
 
-version 0.44
+version 0.45
 
 =head1 SYNOPSIS
 
index 0c517b6074943fb486fae2ffc54d526132fd5ac4..4ab84197c37b3bf6b59c44013a36b605bec138d5 100644 (file)
@@ -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',
This page took 0.041872 seconds and 4 git commands to generate.