File Coverage

blib/lib/Dist/Zilla/MintingProfile/Author/ETHER.pm
Criterion Covered Total %
statement 33 33 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 44 44 100.0


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