r48075 - in /branches/upstream/libtemplate-provider-fromdata-perl/current: ./ inc/Module/Install/ lib/Template/Provider/ t/ xt/ xt/release/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Tue Dec 1 18:13:41 UTC 2009
Author: jawnsy-guest
Date: Tue Dec 1 18:13:35 2009
New Revision: 48075
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=48075
Log:
[svn-upgrade] Integrating new upstream version, libtemplate-provider-fromdata-perl (0.11)
Added:
branches/upstream/libtemplate-provider-fromdata-perl/current/inc/Module/Install/ExtraTests.pm
branches/upstream/libtemplate-provider-fromdata-perl/current/xt/
branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/
branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod.t
branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod_coverage.t
Removed:
branches/upstream/libtemplate-provider-fromdata-perl/current/t/98-pod_coverage.t
branches/upstream/libtemplate-provider-fromdata-perl/current/t/99-pod.t
Modified:
branches/upstream/libtemplate-provider-fromdata-perl/current/Changes
branches/upstream/libtemplate-provider-fromdata-perl/current/MANIFEST
branches/upstream/libtemplate-provider-fromdata-perl/current/META.yml
branches/upstream/libtemplate-provider-fromdata-perl/current/Makefile.PL
branches/upstream/libtemplate-provider-fromdata-perl/current/README
branches/upstream/libtemplate-provider-fromdata-perl/current/lib/Template/Provider/FromDATA.pm
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/Changes?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/Changes (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/Changes Tue Dec 1 18:13:35 2009
@@ -1,4 +1,8 @@
Revision history for Perl extension Template::Provider::FromDATA
+
+0.11 Tue Dec 01 2009
+ - Fix pod coverage test
+ - Move pod + pod coverage tests to release-only testing
0.10 Tue Nov 24 2009
- Added the ability to specify a fully qualified template
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/MANIFEST?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/MANIFEST (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/MANIFEST Tue Dec 1 18:13:35 2009
@@ -2,6 +2,7 @@
inc/Module/Install.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
+inc/Module/Install/ExtraTests.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
@@ -20,7 +21,7 @@
t/14-qualified.t
t/15-same_name.t
t/20-error.t
-t/98-pod_coverage.t
-t/99-pod.t
t/lib/My/Other/Templates.pm
t/lib/My/Templates.pm
+xt/release/pod.t
+xt/release/pod_coverage.t
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/META.yml?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/META.yml (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/META.yml Tue Dec 1 18:13:35 2009
@@ -18,6 +18,7 @@
directory:
- inc
- t
+ - xt
requires:
Class::Accessor: 0
Template: 2.15
@@ -25,4 +26,4 @@
resources:
license: http://dev.perl.org/licenses/
repository: http://github.com/bricas/template-provider-fromdata/tree/master
-version: 0.10
+version: 0.11
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/Makefile.PL?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/Makefile.PL (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/Makefile.PL Tue Dec 1 18:13:35 2009
@@ -13,6 +13,7 @@
requires 'Class::Accessor';
test_requires 'Test::More';
+extra_tests;
repository "http://github.com/bricas/template-provider-fromdata/tree/master";
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/README?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/README (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/README Tue Dec 1 18:13:35 2009
@@ -86,6 +86,13 @@
This function was mostly borrowed from Catalyst::Helper's "get_file"
function.
+ACCESSORS
+ classes
+ An arrayref of the class names containing our templates.
+
+ cache
+ A hashref of file and template data.
+
AUTHOR
Brian Cassidy <bricas at cpan.org>
Added: branches/upstream/libtemplate-provider-fromdata-perl/current/inc/Module/Install/ExtraTests.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/inc/Module/Install/ExtraTests.pm?rev=48075&op=file
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/inc/Module/Install/ExtraTests.pm (added)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/inc/Module/Install/ExtraTests.pm Tue Dec 1 18:13:35 2009
@@ -1,0 +1,100 @@
+#line 1
+use strict;
+use warnings;
+use 5.006;
+package Module::Install::ExtraTests;
+use Module::Install::Base;
+
+BEGIN {
+ our $VERSION = '0.006';
+ our $ISCORE = 1;
+ our @ISA = qw{Module::Install::Base};
+}
+
+sub extra_tests {
+ my ($self) = @_;
+
+ return unless -d 'xt';
+ return unless my @content = grep { $_ =~ /^[.]/ } <xt/*>;
+
+ die "unknown files found in ./xt" if grep { -f } @content;
+
+ my %known = map {; $_ => 1 } qw(author smoke release);
+ my @unknown = grep { not $known{$_} } @content;
+ die "unknown directories found in ./xt: @unknown" if @unknown;
+
+ {
+ no warnings qw(closure once);
+ package # The newline tells PAUSE, "DO NOT INDEXING!"
+ MY;
+ sub test_via_harness {
+ my ($self, $perl, $tests) = @_;
+ my $a_str = -d 'xt/author' ? 'xt/author' : '';
+ my $r_str = -d 'xt/release' ? 'xt/release' : '';
+ my $s_str = -d 'xt/smoke' ? 'xt/smoke' : '';
+ my $is_author = $Module::Install::AUTHOR ? 1 : 0;
+
+ return qq{\t$perl "-Iinc" "-MModule::Install::ExtraTests" }
+ . qq{"-e" "Module::Install::ExtraTests::__harness('Test::Harness', $is_author, '$a_str', '$r_str', '$s_str', \$(TEST_VERBOSE), '\$(INST_LIB)', '\$(INST_ARCHLIB)')" $tests\n};
+ }
+
+ sub dist_test {
+ my ($self, @args) = @_;
+ my $text = $self->SUPER::dist_test(@args);
+ my @lines = split /\n/, $text;
+ $_ =~ s/ (\S*MAKE\S* test )/ RELEASE_TESTING=1 $1 / for grep { m/ test / } @lines;
+ return join "\n", @lines;
+ }
+
+ }
+}
+
+sub __harness {
+ my $harness_class = shift;
+ my $is_author = shift;
+ my $author_tests = shift;
+ my $release_tests = shift;
+ my $smoke_tests = shift;
+
+ eval "require $harness_class; 1" or die;
+ require File::Spec;
+
+ my $verbose = shift;
+ eval "\$$harness_class\::verbose = $verbose; 1" or die;
+
+ # Because Windows doesn't do this for us and listing all the *.t files
+ # out on the command line can blow over its exec limit.
+ require ExtUtils::Command;
+ push @ARGV, __PACKAGE__->_deep_t($author_tests)
+ if $author_tests and (exists $ENV{AUTHOR_TESTING} ? $ENV{AUTHOR_TESTING} : $is_author);
+
+ push @ARGV, __PACKAGE__->_deep_t($release_tests)
+ if $release_tests and $ENV{RELEASE_TESTING};
+
+ push @ARGV, __PACKAGE__->_deep_t($smoke_tests)
+ if $smoke_tests and $ENV{AUTOMATED_TESTING};
+
+ my @argv = ExtUtils::Command::expand_wildcards(@ARGV);
+
+ local @INC = @INC;
+ unshift @INC, map { File::Spec->rel2abs($_) } @_;
+ $harness_class->can('runtests')->(sort { lc $a cmp lc $b } @argv);
+}
+
+sub _wanted {
+ my $href = shift;
+ no warnings 'once';
+ sub { /\.t$/ and -f $_ and $href->{$File::Find::dir} = 1 }
+}
+
+sub _deep_t {
+ my ($self, $dir) = @_;
+ require File::Find;
+
+ my %test_dir;
+ File::Find::find(_wanted(\%test_dir), $dir);
+ return map { "$_/*.t" } sort keys %test_dir;
+}
+
+1;
+__END__
Modified: branches/upstream/libtemplate-provider-fromdata-perl/current/lib/Template/Provider/FromDATA.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/lib/Template/Provider/FromDATA.pm?rev=48075&op=diff
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/lib/Template/Provider/FromDATA.pm (original)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/lib/Template/Provider/FromDATA.pm Tue Dec 1 18:13:35 2009
@@ -67,7 +67,7 @@
__PACKAGE__->mk_accessors( qw( cache classes ) );
-our $VERSION = '0.10';
+our $VERSION = '0.11';
=head1 METHODS
@@ -209,6 +209,16 @@
return $result;
}
+=head1 ACCESSORS
+
+=head2 classes
+
+An arrayref of the class names containing our templates.
+
+=head2 cache
+
+A hashref of file and template data.
+
=head1 AUTHOR
Brian Cassidy E<lt>bricas at cpan.orgE<gt>
Added: branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod.t?rev=48075&op=file
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod.t (added)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod.t Tue Dec 1 18:13:35 2009
@@ -1,0 +1,8 @@
+use Test::More;
+
+use strict;
+use warnings;
+
+eval 'use Test::Pod 1.00';
+plan skip_all => 'Test::Pod 1.00 required for testing POD' if $@;
+all_pod_files_ok();
Added: branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod_coverage.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod_coverage.t?rev=48075&op=file
==============================================================================
--- branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod_coverage.t (added)
+++ branches/upstream/libtemplate-provider-fromdata-perl/current/xt/release/pod_coverage.t Tue Dec 1 18:13:35 2009
@@ -1,0 +1,4 @@
+use Test::More;
+eval "use Test::Pod::Coverage 1.00";
+plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@;
+all_pod_coverage_ok();
More information about the Pkg-perl-cvs-commits
mailing list