Subject: | all_minimum_version_from_metayml_ok does not check correct 'requires' value for META 2.0 |
The 2.0 spec has the requires as:
prereqs:
runtime:
requires:
Class::Load: 0.01
perl: v5.10.1
etc.
test:
requires:
Test::CheckDeps: 0.002
Test::UseAllModules: 0.10
etc.
So, it should check something along the lines of:
unless my $version = $documents->[0]->{prereqs} ?
first { $_->{requires}{perl} } values %{ $documents->[0]->{prereqs} } :
$documents->[0]->{requires}{perl};