[Module-build-checkins] Module-Build/lib/Module/Build Base.pm,1.505,1.506
Status: Beta
Brought to you by:
kwilliams
From: Randy W. S. <si...@us...> - 2005-10-23 04:38:48
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30455/lib/Module/Build Modified Files: Base.pm Log Message: Add meta-spec field to the generated META.yml. Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.505 retrieving revision 1.506 diff -u -d -r1.505 -r1.506 --- Base.pm 23 Oct 2005 03:37:38 -0000 1.505 +++ Base.pm 23 Oct 2005 04:38:34 -0000 1.506 @@ -2833,6 +2833,7 @@ foreach (qw(dist_name dist_version dist_author dist_abstract license)) { (my $name = $_) =~ s/^dist_//; + die "Missing required field '$name' for META.yml\n" unless length($name); $node->{$name} = $self->$_(); } if (defined( $self->license ) && @@ -2857,6 +2858,12 @@ $node->{generated_by} = "Module::Build version $Module::Build::VERSION"; + $node->{'meta-spec'} = { + version => '1.2', + url => 'http://module-build.sourceforge.net/META-spec-v1.2.html', + }; + + while (my($k, $v) = each %{$p->{meta_add}}) { $node->{$k} = $v; } |