Kent Fredric > Dist-Zilla-Plugin-MetaProvides-Package-2.003002 > Dist::Zilla::Plugin::MetaProvides::Package

Download:
Dist-Zilla-Plugin-MetaProvides-Package-2.003002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 2.003002   Source   Latest Release: Dist-Zilla-Plugin-MetaProvides-Package-2.004001-TRIAL

NAME ^

Dist::Zilla::Plugin::MetaProvides::Package - Extract namespaces/version from traditional packages for provides

VERSION ^

version 2.003002

SYNOPSIS ^

In your dist.ini:

    [MetaProvides::Package]

    ; This is the (optional) default: This forces any package versions
    ; added in the "provides" metadata to use the 'version'
    ; specified by dzil.
    ;
    ; Set it to 0 to force packages own versions to be respected. ( You probably don't want this )
    inherit_version = 1

    ; This is also the (optional) default: This forces any package without
    ; a version declaration to use the 'version' specified by default.
    ;
    ; Set it to 0 to allow packages to have no versions
    inherit_missing = 1

    ; This is the (optional) default: This being true discovers any [MetaNoIndex]
    ; plugins to also further exclude packages from the provides map.
    ;
    ; Set it to 0 if for some weird reason you don't want this.
    meta_noindex    = 1

DESCRIPTION ^

This is a Dist::Zilla Plugin that populates the provides property of META.json and META.yml by absorbing it from your shipped modules, in a manner similar to how PAUSE itself does it.

This allows you to easily create an authoritative index of what module provides what version in advance of PAUSE indexing it, which PAUSE in turn will take verbatim.

CONSUMED ROLES ^

Dist::Zilla::Role::MetaProvider::Provider

ROLE SATISFYING METHODS ^

provides

A conformant function to the Dist::Zilla::Role::MetaProvider::Provider Role.

signature: $plugin->provides()

returns: Array of Dist::Zilla::MetaProvides::ProvideRecord

ATTRIBUTES ^

finder

This attribute, if specified will

This parameter may be specified multiple times to aggregate a list of finders

OPTIONS INHERITED FROM Dist::Zilla::Role::MetaProvider::Provider ^

inherit_version

How do you want existing versions ( Versions hard-coded into files before running this plug-in )to be processed?

inherit_missing

In the event you are using the aforementioned "inherit_version" = 0, this determines how to behave when encountering a module with no version defined.

meta_noindex

This is a utility for people who are also using MetaNoIndex, so that its settings can be used to eliminate items from the 'provides' list.

SEE ALSO ^

AUTHOR ^

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2016 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: