line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
8626266
|
use strict; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
150
|
|
2
|
4
|
|
|
4
|
|
27
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
539
|
|
3
|
|
|
|
|
|
|
package Dist::Zilla::MintingProfile::Author::ETHER; |
4
|
|
|
|
|
|
|
# vim: set ts=8 sts=2 sw=2 tw=100 et : |
5
|
|
|
|
|
|
|
# ABSTRACT: Mint distributions like ETHER does |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.160'; |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
34
|
no if "$]" >= 5.031009, feature => 'indirect'; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
51
|
|
10
|
4
|
|
|
4
|
|
219
|
no if "$]" >= 5.033001, feature => 'multidimensional'; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
21
|
|
11
|
4
|
|
|
4
|
|
183
|
no if "$]" >= 5.033006, feature => 'bareword_filehandles'; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
22
|
|
12
|
4
|
|
|
4
|
|
154
|
use Moose; |
|
4
|
|
|
|
|
111
|
|
|
4
|
|
|
|
|
48
|
|
13
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::MintingProfile' => { -version => '5.047' }; |
14
|
4
|
|
|
4
|
|
30321
|
use File::ShareDir; |
|
4
|
|
|
|
|
86100
|
|
|
4
|
|
|
|
|
192
|
|
15
|
4
|
|
|
4
|
|
34
|
use Path::Tiny; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
243
|
|
16
|
4
|
|
|
4
|
|
29
|
use Carp; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
207
|
|
17
|
4
|
|
|
4
|
|
26
|
use namespace::autoclean; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
47
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub profile_dir { |
20
|
|
|
|
|
|
|
my ($self, $profile_name) = @_; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
die 'minting requires perl 5.014' unless "$]" >= 5.013002; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my $dist_name = 'Dist-Zilla-PluginBundle-Author-ETHER'; |
25
|
|
|
|
|
|
|
my $profile_dir = path(File::ShareDir::dist_dir($dist_name))->child('profiles', $profile_name); |
26
|
|
|
|
|
|
|
return $profile_dir if -d $profile_dir; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
confess "Can't find profile $profile_name via $self: it should be in $profile_dir"; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding UTF-8 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Dist::Zilla::MintingProfile::Author::ETHER - Mint distributions like ETHER does |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 0.160 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SYNOPSIS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
dzil new -P Author::ETHER -p github Foo::Bar |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
or: |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
#!/bin/bash |
54
|
|
|
|
|
|
|
newdist() { |
55
|
|
|
|
|
|
|
local dist=$1 |
56
|
|
|
|
|
|
|
local module=`perl -we"print q{$dist} =~ s/-/::/r"` |
57
|
|
|
|
|
|
|
pushd ~/git |
58
|
|
|
|
|
|
|
dzil new -P Author::ETHER -p github $module |
59
|
|
|
|
|
|
|
cd $dist |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
newdist Foo-Bar |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 DESCRIPTION |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The new distribution is packaged with L<Dist::Zilla> using |
66
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::ETHER>. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Profiles available are: |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=over 4 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
C<github> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Creates a distribution hosted on L<github|http://github.com>, with hooks to determine the |
77
|
|
|
|
|
|
|
module version and other metadata from git. Issue tracking is disabled, as RT |
78
|
|
|
|
|
|
|
is selected as the bugtracker in the distribution's metadata (via the plugin |
79
|
|
|
|
|
|
|
bundle). |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
You will be prompted to create a repository on github immediately; if you |
82
|
|
|
|
|
|
|
decline, you must create one manually before you do your first C<push>. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item * |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
C<default> |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Presently the same as C<github>. Available since version 0.087. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=back |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 SEE ALSO |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=over 4 |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item * |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::ETHER> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item * |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
L<Pod::Weaver::PluginBundle::Author::ETHER> |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=back |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 SUPPORT |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-PluginBundle-Author-ETHER> |
109
|
|
|
|
|
|
|
(or L<bug-Dist-Zilla-PluginBundle-Author-ETHER@rt.cpan.org|mailto:bug-Dist-Zilla-PluginBundle-Author-ETHER@rt.cpan.org>). |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
112
|
|
|
|
|
|
|
L<http://dzil.org/#mailing-list>. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
115
|
|
|
|
|
|
|
L<C<#distzilla> on C<irc.perl.org>|irc://irc.perl.org/#distzilla>. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
I am also usually active on irc, as 'ether' at C<irc.perl.org> and C<irc.freenode.org>. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 AUTHOR |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Karen Etheridge <ether@cpan.org> |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENCE |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Karen Etheridge. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
128
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |