66 $Dist::Zilla::Plugin::MetaProvides::AUTHORITY = ' cpan:KENTNL' ;
77}
88{
9- $Dist::Zilla::Plugin::MetaProvides::VERSION = ' 1.13000000 ' ;
9+ $Dist::Zilla::Plugin::MetaProvides::VERSION = ' 1.13000001 ' ;
1010}
1111
1212# ABSTRACT: Generating and Populating 'provides' in your META.yml
@@ -23,7 +23,7 @@ Dist::Zilla::Plugin::MetaProvides - Generating and Populating 'provides' in your
2323
2424=head1 VERSION
2525
26- version 1.13000000
26+ version 1.13000001
2727
2828=head1 SYNOPSIS
2929
@@ -32,16 +32,22 @@ In your projects dist.ini
3232 [MetaProvides::Class]
3333 inherit_version = 0 ;optional flag
3434 inherit_missing = 0 ;optional flag
35+ meta_noindex = 1 ;optional flag
36+ skip_underscore = 1 ;optional flag
3537
3638 [MetaProvides::Package]
3739 inherit_version = 0 ;optional flag
3840 inherit_missing = 0 ;optional flag
41+ meta_noindex = 1 ;optional flag
42+ skip_underscore = 1 ;optional flag
3943
4044 [MetaProvides::FromFile]
4145 inherit_version = 0 ;optional flag
4246 inherit_missing = 0 ;optional flag
4347 file = some_file.ini ;mandatory flag
4448 reader_name = Config::INI::Reader ;optional flag
49+ meta_noindex = 1 ;optional and useless flag
50+ skip_underscore = 1 ;its there as an option, but its probably stupid.
4551
4652And then in some_file.ini
4753
@@ -136,6 +142,51 @@ Inherit version from L<Dist::Zilla> when one is missing.
136142
137143L<Dist::Zilla::Role::MetaProvider::Provider/inhert_missing>
138144
145+ =head2 meta_noindex
146+
147+ This dictates how to behave when a discovered class is also present in the C<no_index > META field.
148+
149+ =head3 values
150+
151+ =over 4
152+
153+ =item * C<< '0' >> B<[default] >
154+
155+ C<no_index > META field will be ignored
156+
157+ =item * C<< '1' >>
158+
159+ C<no_index > META field will be recognised and things found in it will cause respective packages
160+ to not be provided in the metadata.
161+
162+ =back
163+
164+ L<Dist::Zilla::Role::MetaProvider::Provider/meta_noindex>
165+
166+ =head2 skip_underscore
167+
168+ Filter out detected namespaces with a token with a leading C<_ > , ie:
169+
170+ Foo::Bar::_internal::Baz;
171+
172+ This is a convenience to provide sane defaults. For more controlled exclusion of namespaces, see L<Dist::Zilla::Plugin::MetaNoIndex>
173+
174+ =head3 values
175+
176+ =over 4
177+
178+ =item * C<< '0' >>
179+
180+ I<underscore > 'd namespaces will be included.
181+
182+ =item * C<< '1' >> B<[default] >
183+
184+ I<underscore > 'd namespaces will not be included.
185+
186+ =back
187+
188+ L<Dist::Zilla::Role::MetaProvider::Provider/skip_underscore>
189+
139190=head2 file
140191
141192( L<Dist::Zilla::Plugin::MetaProvides::FromFile> )
0 commit comments