Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective - [DEPRECATED] Selectively upgrade a few modules to depend on the version used.
version 1.001001
[Autoprereqs] [Author::KENTNL::Prereqs::Latest::Selective]
This will automatically upgrade the minimum required version to the currently running version, for a selective list of packages, wherever they appear in dependencies.
Currently, the list of packages that will be upgraded to the current version are as follows:
Test::More - What I test all my packages with
Module::Build - The Installer I use for everything
Dist::Zilla::PluginBundle::Author::KENTNL - The configuration setup I use for everything.
This module is deprecated and no longer used by @Author::KENTNL
@Author::KENTNL
Instead, he recommends you use [Prereqs::MatchInstalled]
[Prereqs::MatchInstalled]
my $hash = $plugin->wanted_latest();
A Hash of Modules I want to be "Latest I've released with"
Hash
{ 'Test::More' => 1, 'Module::Build' => 1, 'Dist::Zilla::PluginBundle::Author::KENTNL' => 1, }
my $v = $plugin->current_version_of('Foo');
Returns the currently installed version of a given thing.
$plugin->for_each_dependency( $cpan_meta, sub { my ( $self, $info ) = @_; printf "%s => %s\n", $_ , $info->{$_} for qw( phase type package requirement ) });
Utility for iterating all dependency specifications.
Each dependency spec is passed as a HashRef
HashRef
{ phase => 'configure', type => 'requires', package => 'Module::Metadata', requirement => bless({}, 'CPAN::Meta::Requirements::_Range::_Range'); # or close. }
This module executes during prereqs generation.
prereqs
As such, its advised to place it after other things you want prereq's upgraded on.
prereq
( Presently, it won't matter if you place it before, because it does some magic with phase emulation, but that might be removed one day )
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 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.
To install Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective
For more information on module installation, please visit the detailed CPAN module installation guide.