From 2948db1f40f3b7c126732e0e662a28ffb43008b0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 29 May 2008 20:04:40 +0200 Subject: [PATCH] fix META.yml syntax 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 | 2 ++ META.yml | 20 ++++++++++---------- t/meta.t | 9 +++++++++ 3 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 t/meta.t diff --git a/Changes b/Changes index 4d7a9b0..258d9b2 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +- Fix META.yml syntax + 3.20 - May 29, 2008: - MIT license - FastCGI support diff --git a/META.yml b/META.yml index b6a10c5..de8628c 100644 --- 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 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(); + -- 2.30.0