| 1 | 3 | ▶ | use 5.006; # our |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Dist::Zilla::Role::PrereqSource::External; | ||
| 6 | |||
| 7 | 3 | our $VERSION = 'v0.3.0'; | |
| 8 | |||
| 9 | 3 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |
| 10 | |||
| 11 | # FILENAME: External.pm | ||
| 12 | # CREATED: 30/10/11 10:56:47 by Kent Fredric (kentnl) <kentfredric@gmail.com> | ||
| 13 | # ABSTRACT: A plugin that depends on DarkPAN/External sources | ||
| 14 | |||
| 15 | 3 | ▶ | use Moose::Role qw( with requires around ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 3 | with 'Dist::Zilla::Role::Plugin'; | |
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | 3 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | 3 | requires 'register_external_prereqs'; | |
| 33 | |||
| 34 | 1 | ▶ | around dump_config => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 35 | 1 | my ( $orig, $self, @args ) = @_; | |
| 36 | 1 | my $config = $self->$orig(@args); | |
| 37 | 1 | $config->{ +__PACKAGE__ }->{ q[$] . __PACKAGE__ . q[::VERSION] } = $VERSION; | |
| 38 | 1 | return $config; | |
| 39 | 3 | }; | |
| 40 | |||
| 41 | 3 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | 3 | 1; | |
| 43 | |||
| 44 | __END__ | ||