cpan/Module-Build/t/properties/module_name.t
cpan/Module-Build/t/properties/needs_compiler.t
cpan/Module-Build/t/properties/release_status.t
+cpan/Module-Build/t/properties/requires.t
cpan/Module-Build/t/properties/share_dir.t
cpan/Module-Build/t/README.pod
cpan/Module-Build/t/resume.t
'Module::Build' =>
{
'MAINTAINER' => 'kwilliams',
- 'DISTRIBUTION' => 'DAGOLDEN/Module-Build-0.37_05.tar.gz',
+ 'DISTRIBUTION' => 'DAGOLDEN/Module-Build-0.3800.tar.gz',
'FILES' => q[cpan/Module-Build],
'EXCLUDED' => [
qw{ t/par.t t/signature.t },
Revision history for Perl extension Module::Build.
+0.3800 - Sat Mar 5 15:11:41 EST 2011
+
+ Summary of major changes since 0.3624:
+
+ [ENHANCEMENTS]
+
+ - Generates META.json and MYMETA.json consistent with version 2 of the
+ CPAN Meta Spec. [David Golden]
+
+ Also in this release:
+
+ [BUG FIXES]
+
+ - Autogenerated documentation no longer includes private actions from
+ Module::Build's own release subclass. [Report by Timothy Appnel,
+ fix by David Golden]
+
+0.37_06 - Mon Feb 28 21:43:31 EST 2011
+
+ [BUG FIXES]
+
+ - prerequisites with the empty string instead of a version are
+ normalized to "0". (RT#65909)
+
+ [OTHER]
+
+ - More Pod typo/link fixes [Hongwen Qiu]
+
0.37_05 - Sat Feb 19 20:43:23 EST 2011
[BUG FIXES]
use vars qw($VERSION @ISA);
@ISA = qw(Module::Build::Base);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
'actions'. In this case the actions run are 'build' (the default
action), 'test', and 'install'. Other actions defined so far include:
- build manifest_skip
- checkchanges manpages
- checkgit pardist
- clean patch_blead
- code ppd
- config_data ppmdist
- diff prereq_data
- dist prereq_report
- distcheck pure_install
- distclean realclean
- distdir retest
- distinstall skipcheck
- distmeta tag_git
- distsign test
- disttest testall
- docs testcover
- fakeinstall testdb
- help testpod
- html testpodcoverage
- install upload
+ build manifest
+ clean manifest_skip
+ code manpages
+ config_data pardist
+ diff ppd
+ dist ppmdist
+ distcheck prereq_data
+ distclean prereq_report
+ distdir pure_install
+ distinstall realclean
+ distmeta retest
+ distsign skipcheck
+ disttest test
+ docs testall
+ fakeinstall testcover
+ help testdb
+ html testpod
+ install testpodcoverage
installdeps versioninstall
- manifest
You can run the 'help' action for a complete list of actions.
[version 0.32]
Returns a reference to a hash describing all prerequisites. The keys of the
-hash will the various prerequisite types ('requires', 'build_requires',
-'configure_requires', 'recommends', or 'conflicts') and the values will
+hash will be the various prerequisite types ('requires', 'build_requires',
+'configure_requires', 'recommends', or 'conflicts') and the values will be
references to hashes of module names and version numbers. Only prerequisites
types that are defined will be included. The C<prereq_data> action is just a
thin wrapper around the C<prereq_data()> method and dumps the hash as a string
If you would like to add other useful metadata, C<Module::Build>
supports this with the C<meta_add> and C<meta_merge> arguments to
L</new()>. The authoritative list of supported metadata can be found at
-L<http://module-build.sourceforge.net/META-spec-current.html>, but for
-convenience - here are a few of the more useful ones:
+L<CPAN::META::Spec> but for convenience - here are a few of the more useful ones:
=over 4
For describing the distribution using keyword (or "tags") in order to
make CPAN.org indexing and search more efficient and useful.
-See L<http://module-build.sourceforge.net/META-spec-current.html#keywords>.
-
=item resources
A list of additional resources available for users of the
distribution. This can include links to a homepage on the web, a
-bug tracker, the repository location, a even subscription page for the
+bug tracker, the repository location, and even a subscription page for the
distribution mailing list.
-See L<http://module-build.sourceforge.net/META-spec-current.html#resources>.
-
=back
L<Module::Build::Cookbook>(3), L<ExtUtils::MakeMaker>(3)
F<META.yml> Specification:
-L<http://module-build.sourceforge.net/META-spec-current.html>
+L<CPAN::META::Spec>
=cut
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
BEGIN { require 5.00503 }
}
$mymeta->{dynamic_config} = 0;
$mymeta->{generated_by} = "Module::Build version $Module::Build::VERSION";
- $meta_obj = CPAN::Meta->new( $mymeta );
+ eval { $meta_obj = CPAN::Meta->new( $mymeta, { lazy_validation => 1 } ) }
}
# or generate from scratch, ignoring errors if META doesn't exist
else {
sub normalize_version {
my ($self, $version) = @_;
- $version = 0 unless defined $version;
+ $version = 0 unless defined $version and length $version;
if ( $version =~ /[=<>!,]/ ) { # logic, not just version
# take as is without modification
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
use File::Basename ();
use File::Spec;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Config;
package Module::Build::Cookbook;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
=head1 NAME
package Module::Build::Dumper;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
# This is just a split-out of a wrapper function to do Data::Dumper
# stuff "the right way". See:
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
require Module::Metadata;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Data::Dumper;
use IO::File;
use vars qw($VERSION);
use IO::File;
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
# This code is mostly borrowed from ExtUtils::MM_Unix 6.10_03, with a
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use vars qw(@ISA);
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use Config;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Config;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Module::Build::Platform::Unix;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use vars qw(@ISA);
package inc::latest;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use Carp;
package inc::latest::private;
use strict;
use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
$VERSION = eval $VERSION;
use File::Spec;
--- /dev/null
+# sample.t -- a sample test file for Module::Build
+
+use strict;
+use lib 't/lib';
+use MBTest;
+use DistGen;
+
+plan tests => 4;
+
+# Ensure any Module::Build modules are loaded from correct directory
+blib_load('Module::Build');
+
+my ($dist, $mb, $prereqs);
+
+#--------------------------------------------------------------------------#
+# try undefined prereq version
+#--------------------------------------------------------------------------#
+
+$dist = DistGen->new( name => 'Simple::Requires' );
+
+$dist->change_build_pl(
+ module_name => 'Simple::Requires',
+ requires => {
+ 'File::Basename' => undef,
+ },
+)->regen;
+
+$dist->chdir_in;
+
+$mb = $dist->new_from_context();
+isa_ok( $mb, "Module::Build" );
+
+$prereqs = $mb->_normalize_prereqs;
+is($prereqs->{requires}{'File::Basename'}, 0, "undef prereq converted to 0");
+
+#--------------------------------------------------------------------------#
+# try empty string prereq version
+#--------------------------------------------------------------------------#
+
+$dist->change_build_pl(
+ module_name => 'Simple::Requires',
+ requires => {
+ 'File::Basename' => '',
+ },
+)->regen;
+
+$mb = $dist->new_from_context();
+isa_ok( $mb, "Module::Build" );
+
+$prereqs = $mb->_normalize_prereqs;
+is($prereqs->{requires}{'File::Basename'}, 0, "empty string prereq converted to 0");
+
+
+# vim:ts=2:sw=2:et:sta:sts=2
=item *
+C<Module::Build> has been upgraded from version 0.37_05 to 0.3800
+
+=item *
+
C<Test::Harness> has been upgraded from version 3.22 to 3.23
=item *