# -*- mode: cperl; tab-width: 8; indent-tabs-mode: nil; basic-offset: 2 -*-
# vim:ts=8:sw=2:et:sta:sts=2
-package Module::Metadata; # git description: v1.000028-4-gb283720
+package Module::Metadata; # git description: v1.000029-6-gae0d3b6
# ABSTRACT: Gather package and POD information from perl module files
# Adapted from Perl-licensed code originally distributed with
use strict;
use warnings;
-our $VERSION = '1.000029'; # TRIAL
+our $VERSION = '1.000030'; # TRIAL
use Carp qw/croak/;
use File::Spec;
=head1 VERSION
-version 1.000029
+version 1.000030
=head1 SYNOPSIS
(or L<bug-Module-Metadata@rt.cpan.org|mailto:bug-Module-Metadata@rt.cpan.org>).
There is also a mailing list available for users of this distribution, at
-http://lists.perl.org/list/cpan-workers.html.
+L<http://lists.perl.org/list/cpan-workers.html>.
There is also an irc channel available for users of this distribution, at
-irc://irc.perl.org/#toolchain.
+L<irc://irc.perl.org/#toolchain>.
=head1 AUTHOR
=head1 CONTRIBUTORS
-=for stopwords Karen Etheridge David Golden Vincent Pit Matt S Trout Chris Nehren Graham Knop Olivier Mengué Tomas Doran Tatsuhiko Miyagawa tokuhirom Peter Rabbitson Jerry D. Hedden Craig A. Berry Mitchell Steinbrunner Edward Zborowski Gareth Harper James Raspass 'BinGOs' Williams Josh Jore Kent Fredric
+=for stopwords Karen Etheridge David Golden Vincent Pit Matt S Trout Chris Nehren Graham Knop Olivier Mengué Tomas Doran Tatsuhiko Miyagawa tokuhirom Peter Rabbitson Steve Hay Josh Jore Craig A. Berry Mitchell Steinbrunner Edward Zborowski Gareth Harper James Raspass Jerry D. Hedden 'BinGOs' Williams Kent Fredric
=over 4
=item *
-Jerry D. Hedden <jdhedden@cpan.org>
+Steve Hay <steve.m.hay@googlemail.com>
+
+=item *
+
+Josh Jore <jjore@cpan.org>
=item *
=item *
-Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
+Jerry D. Hedden <jdhedden@cpan.org>
=item *
-Josh Jore <jjore@cpan.org>
+Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
=item *
---
vers => '1.23',
all_versions => { Simple => '1.23' },
- TODO => 'apply fix from ExtUtils-MakeMaker PR#135',
+ TODO_scalar => 'apply fix from ExtUtils-MakeMaker PR#135',
+ TODO_all_versions => 'apply fix from ExtUtils-MakeMaker PR#135',
},
{
name => 'our $VERSION inside BEGIN block',
---
vers => '1.23',
all_versions => { Simple => '1.23' },
- TODO => 'apply fix from ExtUtils-MakeMaker PR#135',
+ TODO_scalar => 'apply fix from ExtUtils-MakeMaker PR#135',
+ TODO_all_versions => 'apply fix from ExtUtils-MakeMaker PR#135',
},
{
name => 'no assumption of primary version merely if a package\'s $VERSION is referenced',
---
vers => undef,
all_versions => { '____caller' => '1.23' },
- TODO => 'FIXME! RT#74741',
+ TODO_all_versions => 'FIXME! RT#74741',
},
{
name => 'no package statement; bare $VERSION with our',
---
vers => undef,
all_versions => { '____caller' => '1.23' },
- TODO => 'FIXME! RT#74741',
+ TODO_all_versions => 'FIXME! RT#74741',
},
{
name => 'no package statement; fully-qualified $VERSION for main',
note $test_case->{name};
my $code = $test_case->{code};
my $expected_version = $test_case->{vers};
- local $TODO = $test_case->{TODO};
+
SKIP: {
skip( "No our() support until perl 5.6", (defined $expected_version ? 3 : 2) )
if $] < 5.006 && $code =~ /\bour\b/;
# from 0.95_01 and later, it just lets the objects figure out how to handle 'eq'
# We want to ensure we preserve the original, as long as it's legal, so we
# explicitly check the stringified form.
- isa_ok($got, 'version') if defined $expected_version;
+ {
+ local $TODO = $test_case->{TODO_got_version};
+ isa_ok($got, 'version') if defined $expected_version;
+ }
if (ref($expected_version) eq 'CODE') {
+ local $TODO = $test_case->{TODO_code_sub};
ok(
$expected_version->($got),
"case '$test_case->{name}': module version passes match sub"
or $errs++;
}
else {
+ local $TODO = $test_case->{TODO_scalar};
is(
(defined $got ? "$got" : $got),
$expected_version,
}
if (exists $test_case->{all_versions}) {
+ local $TODO = $test_case->{TODO_all_versions};
if (ref($expected_version) eq 'CODE') {
ok(
$test_case->{all_versions}->($pm_info->{versions}),