Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentnl/dist-zilla-util-emulatephase
Nasty tools for probing Dist::Zilla's internal state.
https://github.com/kentnl/dist-zilla-util-emulatephase
Last synced: 4 days ago
JSON representation
Nasty tools for probing Dist::Zilla's internal state.
- Host: GitHub
- URL: https://github.com/kentnl/dist-zilla-util-emulatephase
- Owner: kentnl
- License: other
- Created: 2010-11-03T04:31:54.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T06:57:56.000Z (over 7 years ago)
- Last Synced: 2024-06-19T00:28:27.934Z (5 months ago)
- Language: Perl
- Size: 387 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Dist::Zilla::Util::EmulatePhase - Nasty tools for probing Dist::Zilla's internal state.
# VERSION
version 1.001003
# METHODS
## deduplicate
Internal utility that de-duplicates references by ref-addr alone.
my $array = [];
is_deeply( [ deduplicate( $array, $array ) ],[ $array ] )## expand\_modname
Internal utility to expand various shorthand notations to full ones.
expand_modname('-MetaProvider') == 'Dist::Zilla::Role::MetaProvider';
expand_modname('=MetaNoIndex') == 'Dist::Zilla::Plugin::MetaNoIndex';## get\_plugins
Probe Dist::Zilla's plugin registry and get items matching a specification
my @plugins = get_plugins({
zilla => $self->zilla,
with => [qw( -MetaProvider -SomethingElse )],
skip_with => [qw( -SomethingBadThatIsAMetaProvider )],
isa => [qw( =SomePlugin =SomeOtherPlugin )],
skip_isa => [qw( =OurPlugin )],
});## get\_metadata
Emulates Dist::Zilla's internal metadata aggregation and does it all again.
Minimum Usage:
my $metadata = get_metadata({ zilla => $self->zilla });
Extended usage:
my $metadata = get_metadata({
$zilla = $self->zilla,
... more params to get_plugins ...
... ie: ...
with => [qw( -MetaProvider )],
isa => [qw( =MetaNoIndex )],
});## get\_prereqs
Emulates Dist::Zilla's internal prereqs aggregation and does it all again.
Minimum Usage:
my $prereqs = get_prereqs({ zilla => $self->zilla });
Extended usage:
my $metadata = get_prereqs({
$zilla = $self->zilla,
... more params to get_plugins ...
... ie: ...
with => [qw( -PrereqSource )],
isa => [qw( =AutoPrereqs )],
});# AUTHOR
Kent Fredric
# COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric .
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.