A Couple of other blogs that now make sense to share with you
for the rest of the blog go here
Any comments leave them here.
]]>thanks for the typo, done
]]>prereqs->runtime->recommends
Meta-CPAN-spec v2prereqs->runtime->recommends
for the rest of the blog go here
Any comments leave them here.
]]>for the rest of the blog go here
Any comments leave them here.
]]>The main reason for supporting both is the lack of CPAN Reports for Perl::MinimumVersion::Fast at time of inclusion. Hence I wanted a way to enable any existing users to upgrade.
But the concept of a Thorough v Fast Option needs looking at, do you have any coverage metrics of the two modules in question :)
for the rest of the blog go here
Any comments leave them here.
]]>‘midgen -f mb’
thanks for the kick azawawi++
Examples
use Test::Requires { 'Test::Pod' => 1.46 };
use Test::Requires { 'Test::Extra' => 1.46 };
use Test::Requires qw[MIME::Types];
use Test::Requires qw(IO::Handle::Util LWP::Protocol::http10);
use Test::Requires {
"Test::Test1" => '1.01',
'Test::Test2' => 2.02,
};
Examples
BEGIN {
use_ok( 'Term::ReadKey', '2.30' );
use_ok( 'Term::ReadLine', '1.10' );
use_ok( 'Fred::BloggsOne', '1.01' );
use_ok( "Fred::BloggsTwo", "2.02" );
use_ok( 'Fred::BloggsThree', 3.03 );
}
~/GitHub/Plack$ midgen -lf cpanfile
on test => sub {
requires 'AnyEvent', '7.04';
requires 'Data::Dumper', '2.145';
requires 'DooBar', '!mcpan';
requires 'Encode', '2.51';
requires 'File::Path', '2.09';
requires 'File::Temp', '0.2301';
requires 'HTTP::Cookies', '6.01';
requires 'HTTP::Error', '!mcpan';
requires 'IO::File', '1.25';
requires 'IO::Socket', '1.25';
requires 'SomeModule', '!mcpan';
requires 'Test::Requires', '0.06';
suggests 'Authen::Simple::Passwd', '0.6';
suggests 'FCGI::ProcManager', '0.24';
suggests 'HTTP::Request::AsCGI', '1.2';
suggests 'IO::Handle::Util', '0.01';
suggests 'LWP::Protocol::http10', '6.03';
suggests 'Log::Dispatch', '2.39';
suggests 'Log::Dispatch::Array', '1.001';
suggests 'MIME::Types', '1.38';
};
]]>
`midgen -f cpanfile'
thanks for the kick Miyagawa++
nb, if you have written an `.midgenrc' file suggest you either edit it or delete it and start again, opps.
]]> Thought I would show you all the colour* yellow module version
* bright-yellow dual-life module version
* cyan module no version, so showing it's distribution version
All version numbers from MetaCPAN
]]>cpanfile output format, prereqs (requires, recommends, on test, on develop)
midgen -lf cfile
Basic scanning of Dist-Zilla Plugins
here is a sample, with cpanfile and dist-zilla plugins, see wiki for more examples.
]]>rename body -> abstract
rename extended -> body
make the new body the default tab
regards
]]>Food for thought, if we update our Modules, don't we want our users to use the current version, so should we not by default do the same with others Modules. Thus we always show the current version number, regardless.
Now able to show dual-life modules current version number.
Switched to using MetaCPAN-API due to a write issue with CPAN, neilb++
Switched to using Perl-PrereqScanner to do most of the grunt work as pointed out by Mithaldu++ daxim++
spelling, re-factor option names, inspired by mauke++
changed default output, no extra processing, only distribution version for modules without a version number mst++
if I missed anybody, sorry
midgen --dual_life
Command line options always overwrite options from ~/.midgenrc if you have one.
We now use colour to help differentiate between the different module version number types, we also honour $ENV{ANSICOLORSDISABLED}
for sample output see wiki
]]>I found answer to midgen did not find 'warnings::register', midgen was just treating it as a noisy child, it was me having not met this before who got confused.
sorry
Thanks for the heads-up.
]]>1, midgen did not find 'warnings::register'
2, p5u indicates :Exporter
this is of great help to me, many thanks
]]>This started out as a way of generating the core for a Module::Install::DSL Makefile.PL, why DSL because it's nice and clean, so now you can generate the contents and check when you want, yes it's another PPI powered app.
All output goes to STDOUT, so you can use it as you see fit.
CPAN Version Number Displayed
Food for thought, if we update our Modules, don't we want our users to use the current version, so should we not by default do the same with others Modules. Thus we always show the current version number, regardless.
We also display some other info to complement the modules we have found.
For more info and sample output see wiki
Change to the root of the package you want to scan and run
midgen [options]
--help --output --core --verbose --parent --mojo --noisy_children --twins --zero --debug
]]>