| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# vim: set ts=2 sts=2 sw=2 expandtab smarttab: |
|
2
|
|
|
|
|
|
|
# |
|
3
|
|
|
|
|
|
|
# This file is part of Dist-Zilla-Config-Slicer |
|
4
|
|
|
|
|
|
|
# |
|
5
|
|
|
|
|
|
|
# This software is copyright (c) 2011 by Randy Stauner. |
|
6
|
|
|
|
|
|
|
# |
|
7
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
|
8
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
|
9
|
|
|
|
|
|
|
# |
|
10
|
1
|
|
|
1
|
|
390360
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
32
|
|
|
11
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
143
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
package Dist::Zilla::PluginBundle::ConfigSlicer; |
|
14
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:RWSTAUNER'; |
|
15
|
|
|
|
|
|
|
# ABSTRACT: Load another bundle and override its plugin configurations |
|
16
|
|
|
|
|
|
|
$Dist::Zilla::PluginBundle::ConfigSlicer::VERSION = '0.201'; |
|
17
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
10
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
extends 'Dist::Zilla::PluginBundle::Filter'; |
|
20
|
|
|
|
|
|
|
with qw( |
|
21
|
|
|
|
|
|
|
Dist::Zilla::Role::PluginBundle::Config::Slicer |
|
22
|
|
|
|
|
|
|
); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
25
|
|
|
|
|
|
|
1; |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=for :stopwords Randy Stauner ACKNOWLEDGEMENTS |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Dist::Zilla::PluginBundle::ConfigSlicer - Load another bundle and override its plugin configurations |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
version 0.201 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
; in your dist.ini: |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
[@ConfigSlicer] |
|
48
|
|
|
|
|
|
|
-bundle = @Classic |
|
49
|
|
|
|
|
|
|
-remove = PodVersion |
|
50
|
|
|
|
|
|
|
-remove = Manifest |
|
51
|
|
|
|
|
|
|
option = for_classic |
|
52
|
|
|
|
|
|
|
ManifestSkip.skipfile = something.weird |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This plugin bundle actually wraps and modifies another plugin bundle. |
|
57
|
|
|
|
|
|
|
It extends L<< C<@Filter>|Dist::Zilla::PluginBundle::Filter >> |
|
58
|
|
|
|
|
|
|
and additionally consumes |
|
59
|
|
|
|
|
|
|
L<Dist::Zilla::Role::PluginBundle::Config::Slicer|Dist::Zilla::Role::PluginBundle::Config::Slicer> |
|
60
|
|
|
|
|
|
|
so that any plugin options will be passed in. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This way you can override the plugin configuration |
|
63
|
|
|
|
|
|
|
for any bundle that doesn't consume |
|
64
|
|
|
|
|
|
|
L<Dist::Zilla::Role::PluginBundle::Config::Slicer|Dist::Zilla::Role::PluginBundle::Config::Slicer> |
|
65
|
|
|
|
|
|
|
as if it did! |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=for test_synopsis 1; |
|
68
|
|
|
|
|
|
|
__END__ |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=over 4 |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=item * |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Filter> |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item * |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
L<Dist::Zilla::Role::PluginBundle::Config::Slicer> |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=back |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 AUTHOR |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Randy Stauner <rwstauner@cpan.org> |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This software is copyright (c) 2011 by Randy Stauner. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
93
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |