r52626 - in /branches/upstream/libtest-compile-perl/current: ./ inc/Module/Install/ inc/Pod/ lib/Test/ t/ xt/author/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Fri Feb 12 02:25:16 UTC 2010


Author: jawnsy-guest
Date: Fri Feb 12 02:25:08 2010
New Revision: 52626

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=52626
Log:
[svn-upgrade] Integrating new upstream version, libtest-compile-perl (0.12)

Added:
    branches/upstream/libtest-compile-perl/current/t/00_versions.t
Modified:
    branches/upstream/libtest-compile-perl/current/Changes
    branches/upstream/libtest-compile-perl/current/MANIFEST
    branches/upstream/libtest-compile-perl/current/META.yml
    branches/upstream/libtest-compile-perl/current/Makefile.PL
    branches/upstream/libtest-compile-perl/current/README
    branches/upstream/libtest-compile-perl/current/README.mkdn
    branches/upstream/libtest-compile-perl/current/inc/Module/Install/ReadmeMarkdownFromPod.pm
    branches/upstream/libtest-compile-perl/current/inc/Module/Install/Repository.pm
    branches/upstream/libtest-compile-perl/current/inc/Pod/Markdown.pm
    branches/upstream/libtest-compile-perl/current/lib/Test/Compile.pm
    branches/upstream/libtest-compile-perl/current/xt/author/07_portability_files.t

Modified: branches/upstream/libtest-compile-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/Changes?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/Changes (original)
+++ branches/upstream/libtest-compile-perl/current/Changes Fri Feb 12 02:25:08 2010
@@ -1,4 +1,8 @@
 Revision history for Perl extension Test-Compile
+
+0.12  Thu 2010.02.11 15:16:22 CET (Marcel Gruenauer <marcel at cpan.org>)
+    - updated skeleton files
+    - recommend, not require, Devel::CheckOS - only needed for VMS anyway
 
 0.11  Tue 2009.12.08 12:19:25 CET (Marcel Gruenauer <marcel at cpan.org>)
     - made author tests more robust

Modified: branches/upstream/libtest-compile-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/MANIFEST?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/MANIFEST (original)
+++ branches/upstream/libtest-compile-perl/current/MANIFEST Fri Feb 12 02:25:08 2010
@@ -27,6 +27,7 @@
 META.yml
 README
 README.mkdn
+t/00_versions.t
 t/03_pl_file_ok.t
 t/04_pl_file_ok-vms.t
 t/scripts/failure.pl

Modified: branches/upstream/libtest-compile-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/META.yml?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/META.yml (original)
+++ branches/upstream/libtest-compile-perl/current/META.yml Fri Feb 12 02:25:08 2010
@@ -19,8 +19,9 @@
     - inc
     - t
     - xt
+recommends:
+  Devel::CheckOS: 0
 requires:
-  Devel::CheckOS: 1.42
   UNIVERSAL::require: 0
   perl: 5.6.0
 resources:
@@ -28,4 +29,4 @@
   homepage: http://search.cpan.org/dist/Test-Compile/
   license: http://dev.perl.org/licenses/
   repository: git://github.com/hanekomu/test-compile.git
-version: 0.11
+version: 0.12

Modified: branches/upstream/libtest-compile-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/Makefile.PL?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/Makefile.PL (original)
+++ branches/upstream/libtest-compile-perl/current/Makefile.PL Fri Feb 12 02:25:08 2010
@@ -8,7 +8,7 @@
 auto_set_bugtracker;
 auto_set_repository;
 requires 'UNIVERSAL::require';
-requires 'Devel::CheckOS'  => '1.42';
+recommends 'Devel::CheckOS';
 test_requires 'Test::More' => '0.70';
 extra_tests;
 author_requires 'ShipIt';
@@ -23,10 +23,14 @@
 author_requires 'Pod::Wordlist::hanekomu';
 author_requires 'Test::Pod::Coverage';
 
-# author_requires 'Test::Kwalitee';   # Attempt to free unreferenced scalar
+# author_requires 'Test::Kwalitee';
 author_requires 'Test::YAML::Meta';
 author_requires 'Test::Portability::Files';
 author_requires 'Test::Synopsis';
+author_requires 'Test::MinimumVersion';
+author_requires 'Test::HasVersion';
+author_requires 'Test::CheckChanges';
+author_requires 'Test::DistManifest';
 auto_install;
 auto_include;
 WriteAll;

Modified: branches/upstream/libtest-compile-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/README?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/README (original)
+++ branches/upstream/libtest-compile-perl/current/README Fri Feb 12 02:25:08 2010
@@ -174,3 +174,7 @@
     This library is free software; you can redistribute it and/or modify it
     under the same terms as Perl itself.
 
+SEE ALSO
+    Test::LoadAllModules just handles modules, not script files, but has
+    more fine-grained control.
+

Modified: branches/upstream/libtest-compile-perl/current/README.mkdn
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/README.mkdn?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/README.mkdn (original)
+++ branches/upstream/libtest-compile-perl/current/README.mkdn Fri Feb 12 02:25:08 2010
@@ -181,4 +181,9 @@
 Copyright 2007-2009 by the authors.
 
 This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+it under the same terms as Perl itself.
+
+# SEE ALSO
+
+[Test::LoadAllModules](http://search.cpan.org/perldoc?Test::LoadAllModules) just handles modules, not script files, but has more
+fine-grained control.

Modified: branches/upstream/libtest-compile-perl/current/inc/Module/Install/ReadmeMarkdownFromPod.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/inc/Module/Install/ReadmeMarkdownFromPod.pm?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/inc/Module/Install/ReadmeMarkdownFromPod.pm (original)
+++ branches/upstream/libtest-compile-perl/current/inc/Module/Install/ReadmeMarkdownFromPod.pm Fri Feb 12 02:25:08 2010
@@ -1,12 +1,9 @@
 #line 1
 package Module::Install::ReadmeMarkdownFromPod;
-
 use 5.006;
 use strict;
 use warnings;
-
 our $VERSION = '0.03';
-
 use base qw(Module::Install::Base);
 
 sub readme_markdown_from {
@@ -18,13 +15,11 @@
     # non-authors don't have Pod::Markdown, which would be bad.
     require Pod::Markdown;
     $self->admin->copy_package('Pod::Markdown', $INC{'Pod/Markdown.pm'});
-
     my $parser = Pod::Markdown->new;
     $parser->parse_from_file($file);
     open my $fh, '>', 'README.mkdn' or die "$!\n";
     print $fh $parser->as_markdown;
     close $fh or die "$!\n";
-
     return 1 unless $clean;
     $self->postamble(<<"END");
 distclean :: license_clean
@@ -60,9 +55,7 @@
     $self->readme_from($file);
     $self->readme_markdown_from($file);
 }
-
 1;
-
 __END__
 
-#line 188
+#line 181

Modified: branches/upstream/libtest-compile-perl/current/inc/Module/Install/Repository.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/inc/Module/Install/Repository.pm?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/inc/Module/Install/Repository.pm (original)
+++ branches/upstream/libtest-compile-perl/current/inc/Module/Install/Repository.pm Fri Feb 12 02:25:08 2010
@@ -4,7 +4,7 @@
 use strict;
 use 5.005;
 use vars qw($VERSION);
-$VERSION = '0.05';
+$VERSION = '0.06';
 
 use base qw(Module::Install::Base);
 

Modified: branches/upstream/libtest-compile-perl/current/inc/Pod/Markdown.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/inc/Pod/Markdown.pm?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/inc/Pod/Markdown.pm (original)
+++ branches/upstream/libtest-compile-perl/current/inc/Pod/Markdown.pm Fri Feb 12 02:25:08 2010
@@ -1,12 +1,9 @@
 #line 1
 package Pod::Markdown;
-
 use 5.006;
 use strict;
 use warnings;
-
 our $VERSION = '0.02';
-
 use base qw(Pod::Parser);
 
 sub initialize {
@@ -19,25 +16,23 @@
 sub _private {
     my $self = shift;
     $self->{_MyParser} ||= {
-        Text      => [],     # final text
-        Indent    => 0,      # list indent levels counter
-        ListType  => '-',    # character on every item
-        searching => undef,  # what are we searching for? (title, author etc.)
-        Title     => undef,  # page title
-        Author    => undef,  # page author
+        Text      => [],       # final text
+        Indent    => 0,        # list indent levels counter
+        ListType  => '-',      # character on every item
+        searching => undef,    # what are we searching for? (title, author etc.)
+        Title     => undef,    # page title
+        Author    => undef,    # page author
     };
 }
 
 sub as_markdown {
     my ($parser, %args) = @_;
-    my $data   = $parser->_private;
-    my $lines  = $data->{Text};
-
+    my $data  = $parser->_private;
+    my $lines = $data->{Text};
     my @header;
     if ($args{with_meta}) {
         @header = $parser->_build_markdown_head;
     }
-
     join("\n" x 2, @header, @{$lines});
 }
 
@@ -155,7 +150,7 @@
 
 sub interior_sequence {
     my ($parser, $seq_command, $seq_argument, $pod_seq) = @_;
-    my $data       = $parser->_private;
+    my $data      = $parser->_private;
     my %interiors = (
         'I' => sub { return '_' . $_[1] . '_' },      # italic
         'B' => sub { return '__' . $_[1] . '__' },    # bold
@@ -187,14 +182,12 @@
         # direct link to a URL
         return sprintf '<%s>', $arg;
     } elsif ($arg =~ m{^(\w+(::\w+)*)$}) {
-        return "[$1](http://search.cpan.org/perldoc?$1)"
+        return "[$1](http://search.cpan.org/perldoc?$1)";
     } else {
         return sprintf '%s<%s>', $cmd, $arg;
     }
 }
-
 1;
-
 __END__
 
-#line 291
+#line 284

Modified: branches/upstream/libtest-compile-perl/current/lib/Test/Compile.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/lib/Test/Compile.pm?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/lib/Test/Compile.pm (original)
+++ branches/upstream/libtest-compile-perl/current/lib/Test/Compile.pm Fri Feb 12 02:25:08 2010
@@ -5,7 +5,7 @@
 use Test::Builder;
 use File::Spec;
 use UNIVERSAL::require;
-our $VERSION = '0.11';
+our $VERSION = '0.12';
 my $Test = Test::Builder->new;
 
 sub import {
@@ -35,7 +35,6 @@
     my $module = $file;
     $module =~ s!^(blib[/\\])?lib[/\\]!!;
     $module =~ s![/\\]!::!g;
-
     $module =~ s/\.pm$//;
     my $ok = 1;
     $module->use;
@@ -364,4 +363,9 @@
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
+=head1 SEE ALSO
+
+L<Test::LoadAllModules> just handles modules, not script files, but has more
+fine-grained control.
+
 =cut

Added: branches/upstream/libtest-compile-perl/current/t/00_versions.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/t/00_versions.t?rev=52626&op=file
==============================================================================
--- branches/upstream/libtest-compile-perl/current/t/00_versions.t (added)
+++ branches/upstream/libtest-compile-perl/current/t/00_versions.t Fri Feb 12 02:25:08 2010
@@ -1,0 +1,42 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+use Test::More;
+
+BEGIN {
+
+    # Skip modules that either don't want to be loaded directly, such as
+    # Module::Install, or that mess with the test count, such as the Test::*
+    # modules listed here.
+    my %skip = map { $_ => 1 } qw(
+      Module::Install
+      Test::YAML::Meta
+      Test::Pod::Coverage
+      Test::Portability::Files
+    );
+    my @dependencies;
+    my $main_module;
+    my $file = 'Makefile.PL';
+    open my $fh, $file or BAIL_OUT("can't open $file: $!");
+
+    while (<$fh>) {
+        if (/^\s*(?:test_)?requires\s+(['"])([\w:]+)\1/) {
+            my $module = $2;
+            next if $skip{$module};
+            push @dependencies => $module;
+        } elsif (/^\s*name\s+(['"])([\w-]+)\1/) {
+            ($main_module = $2) =~ s/-/::/g;
+        }
+    }
+    $main_module        or BAIL_OUT("can't determine main module name");
+    close $fh           or BAIL_OUT("can't close $file: $!");
+    use_ok $main_module or BAIL_OUT("can't load $main_module");
+    my $version = $main_module->VERSION;
+    diag("Testing $main_module $version, Perl $], $^X");
+    for my $module (@dependencies) {
+        use_ok $module or BAIL_OUT("can't load $module");
+        my $version = $module->VERSION;
+        diag("    $module version is $version");
+    }
+    done_testing;
+}

Modified: branches/upstream/libtest-compile-perl/current/xt/author/07_portability_files.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-compile-perl/current/xt/author/07_portability_files.t?rev=52626&op=diff
==============================================================================
--- branches/upstream/libtest-compile-perl/current/xt/author/07_portability_files.t (original)
+++ branches/upstream/libtest-compile-perl/current/xt/author/07_portability_files.t Fri Feb 12 02:25:08 2010
@@ -2,8 +2,12 @@
 use strict;
 use warnings;
 use Test::More;
-eval 'use Test::Portability::Files; 1' or
-    plan skip_all => 'Test::Portability::Files required';
-plan skip_all => 'skip author tests during AUTOMATED_TESTING' if
-    $ENV{AUTOMATED_TESTING};
-run_tests();
+eval 'use Test::Portability::Files; 1'
+  or plan skip_all => 'Test::Portability::Files required';
+SKIP: {
+
+    # Have to use a skip block because that module plans a test in import()
+    skip 'skip author tests during AUTOMATED_TESTING', 1
+      if $ENV{AUTOMATED_TESTING};
+    run_tests();
+}




More information about the Pkg-perl-cvs-commits mailing list