update META.yml to spec v1.4
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 15 Dec 2011 21:41:26 +0000 (22:41 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 15 Dec 2011 21:55:30 +0000 (22:55 +0100)
Recent Test::YAML::Meta does not allow a valid optional_features array
according to v1.3 spec, instead requiring v1.4 syntax regardless of version:

> ERR: Expected a map structure from YAML string or file (optional_features)
> [Validation: 1.3]

META.yml
t/91-meta.t

index 0f7e9eae55d803b9036d003c286effd36a16bcbf..23a60fd37dc1a8f1ab36eaf2f351442c544b8846 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -14,18 +14,18 @@ requires:
 recommends:
     CGI::Cookie: 0
 optional_features:
-    mod_perl:
+    mod_perl:
         description: mod_perl backend for Apache
         requires:
             Apache::Constants: 0
-    - mod_perl-two:
+    mod_perl_two:
         description: mod_perl2 backend for Apache
         requires:
             Apache2::Const: 0
             Apache2::RequestRec: 0
             Apache2::RequestUtil: 0
             Apache2::RequestIO: 0
-    fastcgi:
+    fastcgi:
         description: FastCGI backend
         requires:
             FCGI: 0.61
@@ -59,5 +59,5 @@ provides:
         version: 1.00
 generated_by: Mischa POSLAWSKY <perl@shiar.org>
 meta-spec:
-    version: 1.3
-    url: http://module-build.sourceforge.net/META-spec-v1.3.html
+    version: 1.4
+    url: http://module-build.sourceforge.net/META-spec-v1.4.html
index d5e720b6791745bc87f7407a38ee85930ba18e90..2f9862791d1b7c47e96843f88a8ecdfa2cf27c01 100644 (file)
@@ -4,8 +4,8 @@ use warnings;
 use Test::More;
 eval 'use Test::YAML::Meta';
 plan skip_all => "Test::YAML::Meta required to test META.yml" if $@;
-plan skip_all => "Test::YAML::Meta v0.10 required to test META.yml correctly"
-       if $Test::YAML::Meta::VERSION < 0.10;
+plan skip_all => "Test::YAML::Meta v0.13 required to test META.yml correctly"
+       if $Test::YAML::Meta::VERSION < 0.13;
 
 meta_yaml_ok();