On Sun, 31 Aug 2008 12:11:44 +0200, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote:
> All the missing entries are in place, so I pass the version, like > --8<--- > my $t = Test::YAML::Meta::Version->new ( > spec => $h->{"meta-spec"}->{version}, > ); > $t->parse ($h) and print join "\n", $t->errors, ""; > -->8--- Right, I misread the docs here. That should have been my $t = Test::YAML::Meta::Version->new (yaml => $h); $t->parse () and print join "\n", $t->errors, ""; Much better diagnostics, but I still don't match the requirements against the documentation If I follow http://module-build.sourceforge.net/META-spec-v1.3.html#recommends optional_features: - opt_csv: description: Provides parsing of CSV streams requires: Text::CSV_XS: 0.23 recommends: Text::CSV: 1 Text::CSV_PP: 1.05 Text::CSV_XS: 0.52 => Expected a map structure from YAML string or file (optional_features -> HASH(0x8332350) -> opt_csv) [Validation: 1.4] Unknown key, 'Text::CSV_XS', found in map structure (optional_features -> HASH(0x8332350) -> requires -> Text::CSV_XS) [Validation: 1.4] Unknown key, 'Text::CSV_PP', found in map structure (optional_features -> HASH(0x8332350) -> recommends -> Text::CSV_PP) [Validation: 1.4] Unknown key, 'Text::CSV_XS', found in map structure (optional_features -> HASH(0x8332350) -> recommends -> Text::CSV_XS) [Validation: 1.4] Unknown key, 'Text::CSV', found in map structure (optional_features -> HASH(0x8332350) -> recommends -> Text::CSV) [Validation: 1.4] Expected a map structure from YAML string or file (optional_features -> HASH(0x8332350) -> description) [Validation: 1.4] And if I follow http://module-build.sourceforge.net/META-spec-v1.3.html#recommends optional_features: opt_csv: description: Provides parsing of CSV streams requires: Text::CSV_XS: 0.23 recommends: Text::CSV: 1 Text::CSV_PP: 1.05 Text::CSV_XS: 0.52 => Expected a list structure (optional_features) [Validation: 1.4] -- H.Merijn Brand Amsterdam Perl Mongers http://amsterdam.pm.org/ using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00, 11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/