Revision history for App-Codeowners.
+0.47 2019-11-17 17:36:49-07:00 MST7MDT
+ * Configure git in unit tests to avoid unnecessary test failures.
+ * Compare long paths on win32 (thanks CPAN testers).
+
0.46 2019-11-16 22:58:17-07:00 MST7MDT
* Declare dependency on Path::Tiny 0.089 (thanks CPAN testers).
"provides" : {
"App::Codeowners" : {
"file" : "lib/App/Codeowners.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter" : {
"file" : "lib/App/Codeowners/Formatter.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::CSV" : {
"file" : "lib/App/Codeowners/Formatter/CSV.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::JSON" : {
"file" : "lib/App/Codeowners/Formatter/JSON.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::String" : {
"file" : "lib/App/Codeowners/Formatter/String.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::TSV" : {
"file" : "lib/App/Codeowners/Formatter/TSV.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::Table" : {
"file" : "lib/App/Codeowners/Formatter/Table.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Formatter::YAML" : {
"file" : "lib/App/Codeowners/Formatter/YAML.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Options" : {
"file" : "lib/App/Codeowners/Options.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Util" : {
"file" : "lib/App/Codeowners/Util.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"App::Codeowners::Util::Process" : {
"file" : "lib/App/Codeowners/Util.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"File::Codeowners" : {
"file" : "lib/File/Codeowners.pm",
- "version" : "0.46"
+ "version" : "0.47"
},
"Test::File::Codeowners" : {
"file" : "lib/Test/File/Codeowners.pm",
- "version" : "0.46"
+ "version" : "0.47"
}
},
"release_status" : "stable",
"web" : "https://github.com/chazmcgarvey/git-codeowners"
}
},
- "version" : "0.46",
+ "version" : "0.47",
"x_authority" : "cpan:CCM",
"x_generated_by_perl" : "v5.28.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.15"
provides:
App::Codeowners:
file: lib/App/Codeowners.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter:
file: lib/App/Codeowners/Formatter.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::CSV:
file: lib/App/Codeowners/Formatter/CSV.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::JSON:
file: lib/App/Codeowners/Formatter/JSON.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::String:
file: lib/App/Codeowners/Formatter/String.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::TSV:
file: lib/App/Codeowners/Formatter/TSV.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::Table:
file: lib/App/Codeowners/Formatter/Table.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Formatter::YAML:
file: lib/App/Codeowners/Formatter/YAML.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Options:
file: lib/App/Codeowners/Options.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Util:
file: lib/App/Codeowners/Util.pm
- version: '0.46'
+ version: '0.47'
App::Codeowners::Util::Process:
file: lib/App/Codeowners/Util.pm
- version: '0.46'
+ version: '0.47'
File::Codeowners:
file: lib/File/Codeowners.pm
- version: '0.46'
+ version: '0.47'
Test::File::Codeowners:
file: lib/Test/File/Codeowners.pm
- version: '0.46'
+ version: '0.47'
recommends:
Pod::Usage: '0'
Term::Detect::Software: '0'
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.46'
+version: '0.47'
x_authority: cpan:CCM
x_generated_by_perl: v5.28.0
x_serialization_backend: 'YAML::Tiny version 1.73'
"Test::Exit" => 0,
"Test::More" => 0
},
- "VERSION" => "0.46",
+ "VERSION" => "0.47",
"test" => {
"TESTS" => "t/*.t"
}
VERSION
- version 0.46
+ version 0.47
SYNOPSIS
use App::Codeowners;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
App::Codeowners->main(@ARGV);
=head1 VERSION
-version 0.46
+version 0.47
=head1 SYNOPSIS
use File::Codeowners;
use Path::Tiny;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
sub main {
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use Module::Load;
=head1 VERSION
-version 0.46
+version 0.47
=head1 SYNOPSIS
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter::CSV';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use warnings;
use strict;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
use parent 'App::Codeowners::Formatter';
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use Getopt::Long 2.39 ();
use Path::Tiny;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
sub pod2usage {
eval { require Pod::Usage };
=head1 VERSION
-version 0.46
+version 0.47
=head1 METHODS
zip
);
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
sub find_nearest_codeowners {
=head1 VERSION
-version 0.46
+version 0.47
=head1 DESCRIPTION
use Scalar::Util qw(openhandle);
use Text::Gitignore qw(build_gitignore_matcher);
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
sub _croak { require Carp; Carp::croak(@_); }
sub _usage { _croak("Usage: @_\n") }
=head1 VERSION
-version 0.46
+version 0.47
=head1 METHODS
use File::Codeowners;
use Test::Builder;
-our $VERSION = '0.46'; # VERSION
+our $VERSION = '0.47'; # VERSION
my $Test = Test::Builder->new;
=head1 VERSION
-version 0.46
+version 0.47
=head1 SYNOPSIS
subtest 'git_toplevel' => sub {
plan skip_all => 'Cannot run git' if !$can_git;
my $repodir =_setup_git_repo();
+ my $repodir_fixed = _fix_win32_path($repodir);
my $r = App::Codeowners::Util::git_toplevel($repodir);
- is($r->canonpath, $repodir->canonpath, 'found toplevel directory from toplevel');
+ is($r->canonpath, $repodir_fixed->canonpath, 'found toplevel directory from toplevel');
$r = App::Codeowners::Util::git_toplevel($repodir->child('a/b'));
- is($r->canonpath, $repodir->canonpath, 'found toplevel directory');
+ is($r->canonpath, $repodir_fixed->canonpath, 'found toplevel directory');
};
subtest 'find_nearest_codeowners' => sub {
my $repodir = tempdir;
run_git('-C', $repodir, 'init')->wait;
+ run_git('-C', $repodir, qw{config --local user.email app-codeowners@example.com})->wait;
+ run_git('-C', $repodir, qw{config --local user.name App-Codeowners})->wait;
$repodir->child('foo.txt')->touchpath;
$repodir->child('a/b/c/bar.txt')->touchpath;
return $repodir;
}
+sub _fix_win32_path {
+ my $path = shift;
+ # Git for Windows shows full paths
+ if (eval { require Win32 }) {
+ $path = path(Win32::GetLongPathName($path));
+ }
+ return $path;
+}
+
sub _spew_codeowners {
my $path = path(shift);
$path->spew_utf8(\"foo.txt \@twix\n");
END
run_git('-C', $repodir, qw{init})->wait;
+ run_git('-C', $repodir, qw{config --local user.email app-codeowners@example.com})->wait;
+ run_git('-C', $repodir, qw{config --local user.name App-Codeowners})->wait;
run_git('-C', $repodir, qw{add .})->wait;
run_git('-C', $repodir, qw{commit -m}, 'initial commit')->wait;