fix META.yml syntax
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 29 May 2008 18:04:40 +0000 (20:04 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 31 May 2008 19:47:00 +0000 (19:47 +0000)
Bah, used lists where simple maps were expected (though this syntax is
used with optional_features and another project of mine, so slightly
excusable except for missing tests).

Also, Test::YAML::Meta wants keys of optional_features to conform to
/^[a-z_-]+$/.  This isn't mentioned anywhere in the specifications, but
a passing test is more useful than a minor stylistic detail.

Finally, while 'repository' apparantly still isn't an official resources
key, it _is_ mentioned as such (lowercased) in the specs.  In fact
everyone seems to use it like that, so I guess being technically
incorrect will be supported better.

Changes
META.yml
t/meta.t [new file with mode: 0644]

diff --git a/Changes b/Changes
index 4d7a9b02970fc1a9a80f6b395afe69eaf52031b6..258d9b2f0a403c59fda694307e5f3dfe7699dfb5 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+- Fix META.yml syntax
+
 3.20 - May 29, 2008:
 - MIT license
 - FastCGI support
index b6a10c533e2e61be0cf2db34ef4bff4ce2e00ee2..de8628c02219b029b0c1f8f057d40e321b47319d 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -8,24 +8,24 @@ author:
 license: mit
 resources:
     homepage: http://plp.shiar.net/
-    Repository: git://git.shiar.net/plp
+    repository: git://git.shiar.net/plp
 requires:
-    perl: 5.6.0
+    perl: 5.6.0
 recommends:
-    CGI::Cookie: 0
+    CGI::Cookie: 0
 optional_features:
     - mod_perl:
         description: mod_perl backend for Apache
         requires:
             Apache::Constants: 0
-       - mod_perl2:
+    - mod_perl-two:
         description: mod_perl2 backend for Apache
-               requires:
-                       Apache2::Const: 0
-                       Apache2::RequestRec: 0
-                       Apache2::RequestUtil: 0
-                       Apache2::RequestIO: 0
-    - FastCGI:
+        requires:
+            Apache2::Const: 0
+            Apache2::RequestRec: 0
+            Apache2::RequestUtil: 0
+            Apache2::RequestIO: 0
+    - fastcgi:
         description: FastCGI backend
         requires:
             FCGI: 0.61
diff --git a/t/meta.t b/t/meta.t
new file mode 100644 (file)
index 0000000..8d65d18
--- /dev/null
+++ b/t/meta.t
@@ -0,0 +1,9 @@
+use strict;
+use warnings;
+
+use Test::More;
+eval 'use Test::YAML::Meta';
+plan skip_all => "Test::YAML::Meta required for testing META.yml" if $@;
+
+meta_yaml_ok();
+