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.
+- Fix META.yml syntax
+
3.20 - May 29, 2008:
- MIT license
- FastCGI support
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
--- /dev/null
+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();
+