| 1 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 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 | 4 | our $VERSION = '0.174'; | |||||||||
| 8 | |||||||||||
| 9 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | with 'Dist::Zilla::Role::MintingProfile' => { -version => '5.047' }; | |||||||||
| 11 | |||||||||||
| 12 | 4 | ▶ | no autovivification warn => qw(fetch store exists delete); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 4 | ▶ | use if "$]" >= 5.022, experimental => 're_strict'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 4 | ▶ | no if "$]" >= 5.031009, feature => 'indirect'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 4 | ▶ | no if "$]" >= 5.033001, feature => 'multidimensional'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 4 | ▶ | no if "$]" >= 5.033006, feature => 'bareword_filehandles'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 4 | ▶ | no if "$]" >= 5.041009, feature => 'smartmatch'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 4 | ▶ | no feature 'switch'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 4 | ▶ | use File::ShareDir; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 4 | ▶ | use Path::Tiny; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 4 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 4 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | |||||||||||
| 24 | 4 | ▶ | sub profile_dir { | ||||||||
|
Subroutine
profile_dir: called CC=3 SCAR=11.8
| |||||||||||
| 25 | 4 | my ($self, $profile_name) = @_; | |||||||||
| 26 | |||||||||||
| 27 | 4 | ▶ | die 'minting requires perl 5.014' unless "$]" >= 5.013002; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | |||||||||||
| 29 | 4 | my $dist_name = 'Dist-Zilla-PluginBundle-Author-ETHER'; | |||||||||
| 30 | 4 | my $profile_dir = path(File::ShareDir::dist_dir($dist_name))->child('profiles', $profile_name); | |||||||||
| 31 | 4 | ▶ | return $profile_dir if -d $profile_dir; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | confess "Can't find profile $profile_name via $self: it should be in $profile_dir"; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 4 | __PACKAGE__->meta->make_immutable; | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||