File Coverage

blib/lib/Dist/Zilla/Stash/User.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             package Dist::Zilla::Stash::User 6.037;
2             # ABSTRACT: a stash of user name and email
3              
4 3     3   6225 use Moose;
  3         10  
  3         32  
5              
6 3     3   29882 use Dist::Zilla::Pragmas;
  3         7  
  3         33  
7              
8 3     3   29 use namespace::autoclean;
  3         23  
  3         42  
9              
10             has name => (
11             is => 'ro',
12             isa => 'Str',
13             required => 1,
14             );
15              
16             has email => (
17             is => 'ro',
18             isa => 'Str',
19             required => 1,
20             );
21              
22             sub authors {
23 1     1 0 3 my ($self) = @_;
24 1         43 return [ sprintf "%s <%s>", $self->name, $self->email ];
25             }
26              
27             with 'Dist::Zilla::Role::Stash::Authors';
28             __PACKAGE__->meta->make_immutable;
29             1;
30              
31             __END__
32              
33             =pod
34              
35             =encoding UTF-8
36              
37             =head1 NAME
38              
39             Dist::Zilla::Stash::User - a stash of user name and email
40              
41             =head1 VERSION
42              
43             version 6.037
44              
45             =head1 PERL VERSION
46              
47             This module should work on any version of perl still receiving updates from
48             the Perl 5 Porters. This means it should work on any version of perl
49             released in the last two to three years. (That is, if the most recently
50             released version is v5.40, then this module should work on both v5.40 and
51             v5.38.)
52              
53             Although it may work on older versions of perl, no guarantee is made that the
54             minimum required version will not be increased. The version may be increased
55             for any reason, and there is no promise that patches will be accepted to
56             lower the minimum required perl.
57              
58             =head1 AUTHOR
59              
60             Ricardo SIGNES 😏 <cpan@semiotic.systems>
61              
62             =head1 COPYRIGHT AND LICENSE
63              
64             This software is copyright (c) 2026 by Ricardo SIGNES.
65              
66             This is free software; you can redistribute it and/or modify it under
67             the same terms as the Perl 5 programming language system itself.
68              
69             =cut