META.yml 1.3 accomodates MakeMaker, which uses 1.2 :(

[email protected] (brian d foy)
Newsgroups perl.makemaker
Message-ID <250920071205528180%[email protected]>
I noticed that CPANTS is now validating distros using the META.yml spec
version 1.3, which apparently exists only to accomodate Makemaker using
"directory" instead of "dir".

I've changed my local copy of ExtUtils::MM_Any::metafile_target() to
have a hard-coded 1.3 instead of a hardcoded 1.2.


--- MM_Any.pm-6.36      2007-09-25 11:52:01.000000000 -0500
+++ MM_Any.pm-patched   2007-09-25 12:02:09.000000000 -0500
@@ -703,7 +703,7 @@
 
 Writes the file META.yml YAML encoded meta-data about the module in
 the distdir.  The format follows Module::Build's as closely as
-possible.
+possible. This uses version 1.3 of the META.yml specification: 
 
 =cut
 
@@ -742,11 +742,13 @@
         $meta .= sprintf "%-20s %s\n", "$key:", $val;
     };
 
+       my $spec_version  = 1.3;
+
     $meta .= <<"YAML";
 requires:     $prereq_pm
 meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.2.html
-    version: 1.2
+    url:    
http://module-build.sourceforge.net/META-spec-v${spec_version}.html
+    version: $spec_version
 YAML
 
     $meta .= <<"YAML" if defined $self->{AUTHOR};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.