Dist-Zilla-Plugin-Git

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

 - make test pass with Archive::Tar:Wrapper (Randy Stauner)
 - clean up commit message (Randy Stauner)

1.113220  2011-11-18 09:12:51 Europe/Paris
 - fix gh#19 - allow to specify alternate repository root (Mike Friedman)

1.112510  2011-09-08 13:45:01 Europe/Paris
 - fix RT#70805 - remove unneeded tmp directory in tarball

1.112500  2011-09-07 08:49:06 Europe/Paris
 - fix RT#70742 - tests fail if gpg isn't installed (Mike Doherty)

1.112440  2011-09-01 13:26:02 Europe/Paris
 - fix gh#16 - unset git env variables for tag_signed.t

1.112380  2011-08-26 10:41:50 Europe/Paris
 - fix RT##55647 - support signed tags (Mike Doherty)
 - moved all test corpus to corpus/
 - renamed tests to remove leading number

1.112070  2011-07-26 08:46:42 Europe/Paris

lib/Dist/Zilla/Plugin/Git/Tag.pm  view on Meta::CPAN

The L<formatting codes|Dist::Zilla::Role::Git::StringFormatter/DESCRIPTION>
used in C<tag_format> and C<tag_message> are documented under
L<Dist::Zilla::Role::Git::StringFormatter>.

=item * time_zone - the time zone to use with C<%d>.  Can be any
time zone name accepted by DateTime.  Defaults to C<local>.

=item * branch - which branch to tag. Defaults to the current branch.

=item * signed - whether to make a GPG-signed tag, using the default
e-mail address's key. Consider setting C<user.signingkey> if C<gpg>
can't find the correct key:

    $ git config user.signingkey 450F89EC

=back

=head1 METHODS

=head2 tag

t/tag-signed.t  view on Meta::CPAN

use File::Copy qw{ cp };
use File::Path 2.07 qw{ make_path }; # 2.07 required for make_path
use File::pushd qw(pushd);
use Path::Tiny 0.012 qw(path); # cwd
use File::Which qw{ which };
use Test::More;

use lib 't/lib';
use Util qw(clean_environment init_repo);

which('gpg')
    ? plan tests => 8
    : plan skip_all => q{gpg couldn't be located in $PATH; required for GPG-signed tags};

# Mock HOME to avoid ~/.gitexcludes from causing problems
# and clear GIT_ environment variables
my $homedir = clean_environment;

cp 'corpus/dzp-git.pub', "$homedir/pubring.gpg";
cp 'corpus/dzp-git.sec', "$homedir/secring.gpg";

# build fake repository
my $zilla = Dist::Zilla::Tester->from_config({
  dist_root => path('corpus/tag-signed')->absolute,
});

{
  my $dir = pushd(path($zilla->tempdir)->child('source'));
  my $git = init_repo('.');



( run in 1.358 second using v1.01-cache-2.11-cpan-df04353d9ac )