This is an automated email from the git hooks/post-receive script. gregoa pushed a commit to branch master in repository libtap-harness-archive-perl.
commit 30ef130f469b21d5505d0c7177b9c95eedff0e84 Author: gregor herrmann <gre...@debian.org> Date: Fri May 29 20:42:29 2015 +0200 Imported Upstream version 0.17 --- Build.PL | 1 + Changes | 7 +++ MANIFEST | 5 +- META.json | 39 ++++++------- META.yml | 48 ++++++++-------- Makefile.PL | 1 + README | 133 --------------------------------------------- lib/TAP/Harness/Archive.pm | 17 ++++-- 8 files changed, 68 insertions(+), 183 deletions(-) diff --git a/Build.PL b/Build.PL index 7938e70..272047a 100644 --- a/Build.PL +++ b/Build.PL @@ -19,6 +19,7 @@ my $builder = Module::Build->new( 'File::Path' => 0, 'File::Find' => 0, 'YAML::Tiny' => 0, + 'base' => 2.18, }, create_readme => 1, ); diff --git a/Changes b/Changes index acacb5c..24eaef7 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for TAP-Harness-Archive +0.17 02 Apr, 2015 + + fix YAML::Tiny warning in version >= 0.57 (rt#95465) [Michal Špaček] + +0.16 14 Jan, 2015 + + allow relative paths to archive [Renée Bäcker] + + Bump base.pm requirement [Tatsuhiko Miyagawa] + 0.15 13 Apr, 2013 + Fix tests to correctly use File::Temp which no longer allows wrong use of tempdir() as class method. [Steffen Schwigon] diff --git a/MANIFEST b/MANIFEST index 38e5cde..14f3222 100644 --- a/MANIFEST +++ b/MANIFEST @@ -14,6 +14,5 @@ t/foo.t t/pod-coverage.t t/pod.t TODO -README -META.yml -META.json +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff --git a/META.json b/META.json index 9f4c703..1ff39ca 100644 --- a/META.json +++ b/META.json @@ -1,22 +1,33 @@ { - "abstract" : "Create an archive of TAP test results", + "abstract" : "unknown", "author" : [ - "Michael Peters <mpet...@plusthree.com>" + "unknown" ], "dynamic_config" : 1, - "generated_by" : "Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921", + "generated_by" : "ExtUtils::MakeMaker version 6.9, CPAN::Meta::Converter version 2.143240", "license" : [ - "perl_5" + "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "TAP-Harness-Archive", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, "configure" : { "requires" : { - "Module::Build" : "0.40" + "ExtUtils::MakeMaker" : "0" } }, "runtime" : { @@ -27,24 +38,14 @@ "File::Find" : "0", "File::Path" : "0", "File::Spec" : "0", - "File::Temp" : "0.19", + "File::Temp" : "0", "TAP::Harness" : "3.05", "Test::More" : "0", - "YAML::Tiny" : "0" + "YAML::Tiny" : "0", + "base" : "2.18" } } }, - "provides" : { - "TAP::Harness::Archive" : { - "file" : "lib/TAP/Harness/Archive.pm", - "version" : "0.15" - } - }, "release_status" : "stable", - "resources" : { - "license" : [ - "http://dev.perl.org/licenses/" - ] - }, - "version" : "0.15" + "version" : "0.17" } diff --git a/META.yml b/META.yml index 7f0a6fa..83dc454 100644 --- a/META.yml +++ b/META.yml @@ -1,32 +1,32 @@ --- -abstract: 'Create an archive of TAP test results' +abstract: unknown author: - - 'Michael Peters <mpet...@plusthree.com>' -build_requires: {} + - unknown +build_requires: + ExtUtils::MakeMaker: '0' configure_requires: - Module::Build: 0.40 + ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921' -license: perl +generated_by: 'ExtUtils::MakeMaker version 6.9, CPAN::Meta::Converter version 2.143240' +license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: TAP-Harness-Archive -provides: - TAP::Harness::Archive: - file: lib/TAP/Harness/Archive.pm - version: 0.15 +no_index: + directory: + - t + - inc requires: - Archive::Tar: 0 - Cwd: 0 - File::Basename: 0 - File::Find: 0 - File::Path: 0 - File::Spec: 0 - File::Temp: 0.19 - TAP::Harness: 3.05 - Test::More: 0 - YAML::Tiny: 0 -resources: - license: http://dev.perl.org/licenses/ -version: 0.15 + Archive::Tar: '0' + Cwd: '0' + File::Basename: '0' + File::Find: '0' + File::Path: '0' + File::Spec: '0' + File::Temp: '0' + TAP::Harness: '3.05' + Test::More: '0' + YAML::Tiny: '0' + base: '2.18' +version: '0.17' diff --git a/Makefile.PL b/Makefile.PL index 8c1de70..d3e3c73 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,6 +7,7 @@ WriteMakefile 'EXE_FILES' => [], 'VERSION_FROM' => 'lib/TAP/Harness/Archive.pm', 'PREREQ_PM' => { + 'base' => '2.18', 'YAML::Tiny' => 0, 'File::Spec' => 0, 'TAP::Harness' => '3.05', diff --git a/README b/README deleted file mode 100644 index c86633b..0000000 --- a/README +++ /dev/null @@ -1,133 +0,0 @@ -NAME - TAP::Harness::Archive - Create an archive of TAP test results - -SYNOPSIS - use TAP::Harness::Archive; - my $harness = TAP::Harness::Archive->new(\%args); - $harness->runtests(@tests); - -DESCRIPTION - This module is a direct subclass of TAP::Harness and behaves in exactly - the same way except for one detail. In addition to outputting a running - progress of the tests and an ending summary it can also capture all of - the raw TAP from the individual test files or streams into an archive - file (".tar" or ".tar.gz"). - -METHODS - All methods are exactly the same as our base TAP::Harness except for the - following. - - new - In addition to the options that TAP::Harness allow to this method, we - also allow the following: - - archive - This is the name of the archive file to generate. We use - Archive::Tar in the background so we only support ".tar" and - ".tar.gz" archive file formats. This can optionally be an existing - directory that will have the TAP archive's contents deposited - therein without any file archiving (no Archive::Tar involved). - - extra_files - This is an array reference to extra files that you want to include - in the TAP archive but which are not TAP files themselves. This is - useful if you want to include some log files that contain useful - information about the test run. - - extra_properties - This is a hash reference of extra properties that you've collected - during your test run. Some things you might want to include are the - Perl version, the system's architecture, the operating system, etc. - - runtests - Takes the same arguments as TAP::Harness's version and returns the same - thing (a TAP::Parser::Aggregator object). The only difference is that in - addition to the normal test running and progress output we also create - the TAP Archive when it's all done. - - aggregator_from_archive - This class method will return a TAP::Parser::Aggregator object when - given a TAP Archive to open and parse. It's pretty much the reverse of - creating a TAP Archive from using "new" and "runtests". - - It takes a hash of arguments which are as follows: - - archive - The path to the archive file. This can also be a directory if you - created the archive as a directory. This is required. - - parser_callbacks - This is a hash ref containing callbacks for the TAP::Parser objects - that are created while parsing the TAP files. See the TAP::Parser - documentation for details about these callbacks. - - made_parser_callback - This callback is executed every time a new TAP::Parser object is - created. It will be passed the new parser object, the name of the - file to be parsed, and also the full (temporary) path of that file. - - meta_yaml_callback - This is a subroutine that will be called if we find and parse a YAML - file containing meta information about the test run in the archive. - The structure of the YAML file will be passed in as an argument. - - my $aggregator = TAP::Harness::Archive->aggregator_from_archive( - { - archive => 'my_tests.tar.gz', - parser_callbacks => { - plan => sub { warn "Nice to see you plan ahead..." }, - unknown => sub { warn "Your TAP is bad!" }, - }, - made_parser_callback => sub { - my ($parser, $file, $full_path) = @_; - warn "$file is temporarily located at $full_path\n"; - } - - } - ); - -AUTHOR - Michael Peters, "<mpeters at plusthree.com>" - -BUGS - Please report any bugs or feature requests to "bug-tap-harness-archive - at rt.cpan.org", or through the web interface at - <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TAP-Harness-Archive>. I - will be notified, and then you'll automatically be notified of progress - on your bug as I make changes. - -SUPPORT - You can find documentation for this module with the perldoc command. - - perldoc TAP::Harness::Archive - - You can also look for information at: - - * AnnoCPAN: Annotated CPAN documentation - - <http://annocpan.org/dist/TAP-Harness-Archive> - - * CPAN Ratings - - <http://cpanratings.perl.org/d/TAP-Harness-Archive> - - * RT: CPAN's request tracker - - <http://rt.cpan.org/NoAuth/Bugs.html?Dist=TAP-Harness-Archive> - - * Search CPAN - - <http://search.cpan.org/dist/TAP-Harness-Archive> - -ACKNOWLEDGEMENTS - * A big thanks to Plus Three, LP (<http://www.plusthree.com>) for - sponsoring my work on this module and other open source pursuits. - - * Andy Armstrong - -COPYRIGHT & LICENSE - Copyright 2007 Michael Peters, all rights reserved. - - This program is free software; you can redistribute it and/or modify it - under the same terms as Perl itself. - diff --git a/lib/TAP/Harness/Archive.pm b/lib/TAP/Harness/Archive.pm index 6868861..cdb872a 100644 --- a/lib/TAP/Harness/Archive.pm +++ b/lib/TAP/Harness/Archive.pm @@ -19,7 +19,7 @@ TAP::Harness::Archive - Create an archive of TAP test results =cut -our $VERSION = '0.15'; +our $VERSION = '0.17'; =head1 SYNOPSIS @@ -321,7 +321,7 @@ sub aggregator_from_archive { my ($class, $args) = @_; my $meta; - my $file = $args->{archive} + my $file = Cwd::abs_path( $args->{archive} ) or $class->_croak("You must provide the path to the archive!"); my $is_directory = -d $file; @@ -340,8 +340,17 @@ sub aggregator_from_archive { if( -e $yaml_file) { # parse it into a structure - $meta = YAML::Tiny->new()->read($yaml_file); - die "Could not read YAML $yaml_file: " . YAML::Tiny->errstr if YAML::Tiny->errstr; + if ($YAML::Tiny::VERSION < 1.57) { + $meta = YAML::Tiny->new()->read($yaml_file); + die "Could not read YAML $yaml_file: " . YAML::Tiny->errstr if YAML::Tiny->errstr; + } else { + $meta = eval { + YAML::Tiny->new()->read($yaml_file); + }; + if ($@) { + die "Could not read YAML $yaml_file: ".$@; + } + } if($args->{meta_yaml_callback}) { $args->{meta_yaml_callback}->($meta); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtap-harness-archive-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits