Skip to content

Commit

Permalink
re-work META.yml validation and fix the detected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed May 23, 2011
1 parent 10ea52a commit 4989229
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 40 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Bug fixes:
- re-work, document and test Imager's logging facility. - re-work, document and test Imager's logging facility.
https://rt.cpan.org/Ticket/Display.html?id=65227 https://rt.cpan.org/Ticket/Display.html?id=65227


- fix META.yml testing and the generated META.yml
https://rt.cpan.org/Ticket/Display.html?id=65235

Imager 0.83 - 21 May 2011 Imager 0.83 - 21 May 2011
=========== ===========


Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ t/t91pod.t Test POD with Test::Pod
t/t92samples.t t/t92samples.t
t/t93podcover.t POD Coverage tests t/t93podcover.t POD Coverage tests
t/t94kwalitee.t Various "kwalitee" tests t/t94kwalitee.t Various "kwalitee" tests
t/t95log.t
t/t98meta.t
t/t99thread.t Test wrt to perl threads t/t99thread.t Test wrt to perl threads
t/tr18561.t Regression tests t/tr18561.t Regression tests
t/tr18561b.t t/tr18561b.t
Expand Down
20 changes: 0 additions & 20 deletions META.yml

This file was deleted.

13 changes: 2 additions & 11 deletions Makefile.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -220,17 +220,8 @@ if ($MM_ver >= 6.46) {
resources => resources =>
{ {
homepage => "http://imager.perl.org/", homepage => "http://imager.perl.org/",
repository => repository => "git://git.imager.perl.org/imager.git",
{ bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
url => "git://git.imager.perl.org/imager.git",
web => "http://git.imager.perl.org/imager.git",
type => "git",
},
bugtracker =>
{
web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
mailto => 'bug-Imager@rt.cpan.org',
},
}, },
}; };
} }
Expand Down
19 changes: 19 additions & 0 deletions t/t98meta.t
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,19 @@
#!perl -w
use strict;
use Test::More;
plan skip_all => "Only run as part of the dist"
unless -f "META.yml";
eval "use CPAN::Meta 2.0;";
plan skip_all => "CPAN::Meta required for testing META.yml"
if $@;
plan skip_all => "Only if automated or author testing"
unless $ENV{AUTOMATED_TESTING} || -d "../.git";
plan tests => 1;

my $meta;
unless (ok(eval {
$meta = CPAN::Meta->load_file("META.yml",
{ lazy_validation => 0 }) },
"loaded META.yml successfully")) {
diag($@);
}
9 changes: 0 additions & 9 deletions t/x10meta.t

This file was deleted.

0 comments on commit 4989229

Please sign in to comment.