Hello community, here is the log from the commit of package perl-Test-Output for openSUSE:Factory checked in at 2017-04-11 09:36:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Output (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Output.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Output" Tue Apr 11 09:36:26 2017 rev:18 rq:483758 version:1.031 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Output/perl-Test-Output.changes 2014-02-12 07:07:21.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Output.new/perl-Test-Output.changes 2017-04-11 09:36:38.301335659 +0200 @@ -1,0 +2,6 @@ +Thu Mar 30 06:47:44 UTC 2017 - [email protected] + +- updated to 1.031 + see /usr/share/doc/packages/perl-Test-Output/Changes + +------------------------------------------------------------------- Old: ---- Test-Output-1.03.tar.gz New: ---- Test-Output-1.031.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Output.spec ++++++ --- /var/tmp/diff_new_pack.vN2GSE/_old 2017-04-11 09:36:38.813263343 +0200 +++ /var/tmp/diff_new_pack.vN2GSE/_new 2017-04-11 09:36:38.817262778 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Output # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,37 +17,30 @@ Name: perl-Test-Output -Version: 1.03 +Version: 1.031 Release: 0 %define cpan_name Test-Output -Summary: Utilities to test STDOUT and STDERR messages. +Summary: Utilities to test STDOUT and STDERR messages License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Output/ -Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Capture::Tiny) >= 0.17 BuildRequires: perl(File::Temp) >= 0.17 -BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::Tester) >= 0.107 - Requires: perl(Capture::Tiny) >= 0.17 Requires: perl(File::Temp) >= 0.17 -Requires: perl(Sub::Exporter) -Requires: perl(Test::Tester) >= 0.107 %{perl_requires} %description -Test::Output provides a simple interface for testing output sent to STDOUT -or STDERR. A number of different utilities are included to try and be as -flexible as possible to the tester. - -Originally this module was designed not to have external requirements, -however, the features provided by the Sub::Exporter manpage over what the -Exporter manpage provides is just to great to pass up. +Test::Output provides a simple interface for testing output sent to +'STDOUT' or 'STDERR'. A number of different utilities are included to try +and be as flexible as possible to the tester. Likewise, Capture::Tiny provides a much more robust capture mechanism without than the original Test::Output::Tie. @@ -69,6 +62,7 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes LICENSE README +%doc Changes +%license LICENSE %changelog ++++++ Test-Output-1.03.tar.gz -> Test-Output-1.031.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/Changes new/Test-Output-1.031/Changes --- old/Test-Output-1.03/Changes 2014-01-03 18:19:42.000000000 +0100 +++ new/Test-Output-1.031/Changes 2017-03-29 23:32:14.000000000 +0200 @@ -1,101 +1,107 @@ -Revision history for Test-Output +Revision history for Perl module Test::Output -1.03 - Fri Jan 3 12:19:35 2014 +1.031 2017-03-29T21:30:57Z + * Get rid of Sub::Exporter. That module has nice features that this + module doesn't use and the prereq is causing problems with CPAN + Testers. CPAN Grep didn't show anyone using advanced features for + exports. + +1.03 - 2014-01-03 * Get rid of MYMETA -1.02_01 - Tue Dec 17 12:39:15 2013 +1.02_01 - 2013-12-17 * Get rid of MYMETA -1.02 - Mon Jul 8 21:15:30 2013 +1.02 - 2013-07-08 * Bump to stable release -1.01_02 - Thu Jul 19 06:18:35 2012 - * Remove the ::Tie stuff. It should be fully Capture::Tiny +1.01_02 - 2012-07-19 + * Remove the ::Tie stuff. It should be fully Capture::Tiny now. -1.01_01 - Mon May 14 16:05:22 2012 +1.01_01 - 2012-05-14 * David Golden re-did everything with Capture::Tiny to get around the odd output paths that we coudn't handle with a tie. -1.01 - Fri Apr 22 07:58:19 2011 +1.01 - 2011-04-22 * Bump to a full release. This fixes the tests that failed in the new 5.14 regex stringification -0.16_03 - Mon Oct 25 23:10:41 2010 +0.16_03 - 2010-10-25 * Fix cat-o with handling $, -0.16_02 - Tue Oct 19 03:26:14 2010 - * Update tests with hardcoded regex stringification for +0.16_02 - 2010-10-19 + * Update tests with hardcoded regex stringification for Perl's new (?^:) stuff -0.16_01 - Tue Jun 9 22:58:58 2009 +0.16_01 - 2009-06-09 * Added META_MERGE features from chorny -0.13 - Sun Mar 8 23:00:11 2009 +0.13 - 2009-03-08 * brian d foy ([email protected]) is the new maintainer * Updated docs for source code location, license, etc -0.12 - Sat Oct 25 09:59:18 2008 - Repacking to remove OS X extended attribute files that were causing tests to fail. +0.12 - 2008-10-25 + * Repacking to remove OS X extended attribute files that were causing tests to fail. + +0.11 2008-21-10 + * Fixes for STDERR handling under Perl 5.6. Thanks to + brian d foy for the patch with tests. -0.11 10/21/2008 - Fixes for STDERR handling under Perl 5.6. Thanks to - brian d foy for the patch with tests. - -0.10 07/18/2005 - Migrated from Exporter to Sub::Exporter +0.10 2005-18-07 + * Migrated from Exporter to Sub::Exporter -0.09 11/09/2005 - New version of Test::Tester added a depth test which was causing +0.09 2005-09-11 + * New version of Test::Tester added a depth test which was causing tests to fail. Thanks to neildp for the patch. - Fixed warning messages during perl Makefile.PL caused by Test::Tester + * Fixed warning messages during perl Makefile.PL caused by Test::Tester not being loaded first. -0.08 07/19/2005 - Supressed most warnings caused by newer versions of Test::Tester +0.08 2005-19-07 + * Supressed most warnings caused by newer versions of Test::Tester -0.07 03/26/2005 - Added methods: combined_is, combined_isnt, combined_like and +0.07 2005-26-03 + * Added methods: combined_is, combined_isnt, combined_like and combined_unlike. This combine STDOUT and STDERR into one filehandle and capture their output for testing. -0.06 03/07/2005 - Applied patch from David Wheeler to support code blocks within +0.06 2005-07-03 + * Applied patch from David Wheeler to support code blocks within tests as well as coderefs. -0.05 03/04/2005 - Added chromatic's patch fixing diag messages printing even when +0.05 2005-04-03 + * Added chromatic's patch fixing diag messages printing even when tests pass. - Updated stdout_unlike.t to test for success. - Updated all tests for successful tests to include diag => ''. + * Updated stdout_unlike.t to test for success. + * Updated all tests for successful tests to include diag => ''. -0.04 03/02/2005 - Added methods: output_like, output_unlike - Moved output_from stdout_from and stderr_from out of @EXPORT +0.04 2005-02-03 + * Added methods: output_like, output_unlike + * Moved output_from stdout_from and stderr_from out of @EXPORT and into @EXPORT_OK. - Reworked diag messages for output_is and output_isnt to only show + * Reworked diag messages for output_is and output_isnt to only show the output that doesn't match. - replaced "comment" with "description" - More tests - Much refactoring - -0.03 02/16/2005 - Reworked entire POD. Thanks to rjbs for his suggestions. - Additional POD fixes (date to data thanks to everyone who caught + * replaced "comment" with "description" + * More tests + * Much refactoring + +0.03 2005-16-02 + * Reworked entire POD. Thanks to rjbs for his suggestions. + * Additional POD fixes (date to data thanks to everyone who caught that). - New methods: stderr_like, stderr_unlike, stdout_like, stdout_unlike - Updated README from the default one created by Module::Starter. - Moved private methods _err,_out, and _errandout to stderr_from + * New methods: stderr_like, stderr_unlike, stdout_like, stdout_unlike + * Updated README from the default one created by Module::Starter. + * Moved private methods _err,_out, and _errandout to stderr_from stdout_from and output_from respectively. Allowing access from the test file. Thanks to rjbs for this suggestion. -0.02 02/12/2005 - New methods: output_isnt, stderr_inst, stdout_isnt - Removed requirement for Filehandle - Removed errant leftover Test::Builder::Tester::Color from tests - Migrated all tests to Test::Tester (Test::Tester now a prereq) +0.02 2005-12-02 + * New methods: output_isnt, stderr_inst, stdout_isnt + * Removed requirement for Filehandle + * Removed errant leftover Test::Builder::Tester::Color from tests + * Migrated all tests to Test::Tester (Test::Tester now a prereq) -0.01 02/12/2005 - First version, released on an unsuspecting world. +0.01 2005-12-02 + * First version, released on an unsuspecting world. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/INSTALL.SKIP new/Test-Output-1.031/INSTALL.SKIP --- old/Test-Output-1.03/INSTALL.SKIP 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Output-1.031/INSTALL.SKIP 2017-03-29 23:32:14.000000000 +0200 @@ -0,0 +1,6 @@ +README\.pod +README.* + +# things that might be in local directories after fooling +# around with them +\.DS_Store diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/LICENSE new/Test-Output-1.031/LICENSE --- old/Test-Output-1.03/LICENSE 2014-01-03 18:19:42.000000000 +0100 +++ new/Test-Output-1.031/LICENSE 2017-03-29 23:32:14.000000000 +0200 @@ -1 +1,177 @@ -You can use Test::Output under the same terms as Perl itself. +The Test::Output module is licensed under the same terms as perl +itself, under the Artistic License 2.0. + + +Artistic License 2.0 +Copyright (c) 2000-2006, The Perl Foundation. +http://www.perlfoundation.org/artistic_license_2_0 + +Preamble + +This license establishes the terms under which a given free software +Package may be copied, modified, distributed, and/or redistributed. +The intent is that the Copyright Holder maintains some artistic +control over the development of that Package while still keeping the +Package available as open source and free software. + +You are always permitted to make arrangements wholly outside of this +license directly with the Copyright Holder of a given Package. If the +terms of this license do not permit the full use that you propose to +make of the Package, you should contact the Copyright Holder and seek +a different licensing arrangement. + +Definitions + +"Copyright Holder" means the individual(s) or organization(s) named in +the copyright notice for the entire Package. + +"Contributor" means any party that has contributed code or other +material to the Package, in accordance with the Copyright Holder's +procedures. + +"You" and "your" means any person who would like to copy, distribute, +or modify the Package. + +"Package" means the collection of files distributed by the Copyright +Holder, and derivatives of that collection and/or of those files. A +given Package may consist of either the Standard Version, or a +Modified Version. + +"Distribute" means providing a copy of the Package or making it +accessible to anyone else, or in the case of a company or +organization, to others outside of your company or organization. + +"Distributor Fee" means any fee that you charge for Distributing this +Package or providing support for this Package to another party. It +does not mean licensing fees. + +"Standard Version" refers to the Package if it has not been modified, +or has been modified only in ways explicitly requested by the +Copyright Holder. + +"Modified Version" means the Package, if it has been changed, and such +changes were not explicitly requested by the Copyright Holder. + +"Original License" means this Artistic License as Distributed with the +Standard Version of the Package, in its current version or as it may +be modified by The Perl Foundation in the future. + +"Source" form means the source code, documentation source, and +configuration files for the Package. + +"Compiled" form means the compiled bytecode, object code, binary, or +any other form resulting from mechanical transformation or translation +of the Source form. + +Permission for Use and Modification Without Distribution + +(1) You are permitted to use the Standard Version and create and use +Modified Versions for any purpose without restriction, provided that +you do not Distribute the Modified Version. + +Permissions for Redistribution of the Standard Version + +(2) You may Distribute verbatim copies of the Source form of the +Standard Version of this Package in any medium without restriction, +either gratis or for a Distributor Fee, provided that you duplicate +all of the original copyright notices and associated disclaimers. At +your discretion, such verbatim copies may or may not include a +Compiled form of the Package. + +(3) You may apply any bug fixes, portability changes, and other +modifications made available from the Copyright Holder. The resulting +Package will still be considered the Standard Version, and as such +will be subject to the Original License. + +Distribution of Modified Versions of the Package as Source + +(4) You may Distribute your Modified Version as Source (either gratis +or for a Distributor Fee, and with or without a Compiled form of the +Modified Version) provided that you clearly document how it differs +from the Standard Version, including, but not limited to, documenting +any non-standard features, executables, or modules, and provided that +you do at least ONE of the following: + + (a) make the Modified Version available to the Copyright Holder of the + Standard Version, under the Original License, so that the Copyright + Holder may include your modifications in the Standard Version. + + (b) ensure that installation of your Modified Version does not prevent + the user installing or running the Standard Version. In addition, the + Modified Version must bear a name that is different from the name of + the Standard Version. + + (c) allow anyone who receives a copy of the Modified Version to make + the Source form of the Modified Version available to others under + + (i) the Original License or + + (ii) a license that permits the licensee to freely copy, modify and + redistribute the Modified Version using the same licensing terms that + apply to the copy that the licensee received, and requires that the + Source form of the Modified Version, and of any works derived from it, + be made freely available in that license fees are prohibited but + Distributor Fees are allowed. + +Distribution of Compiled Forms of the Standard Version or Modified +Versions without the Source + +(5) You may Distribute Compiled forms of the Standard Version without +the Source, provided that you include complete instructions on how to +get the Source of the Standard Version. Such instructions must be +valid at the time of your distribution. If these instructions, at any +time while you are carrying out such distribution, become invalid, you +must provide new instructions on demand or cease further distribution. +If you provide valid instructions or cease distribution within thirty +days after you become aware that the instructions are invalid, then +you do not forfeit any of your rights under this license. + +(6) You may Distribute a Modified Version in Compiled form without the +Source, provided that you comply with Section 4 with respect to the +Source of the Modified Version. + +Aggregating or Linking the Package + +(7) You may aggregate the Package (either the Standard Version or +Modified Version) with other packages and Distribute the resulting +aggregation provided that you do not charge a licensing fee for the +Package. Distributor Fees are permitted, and licensing fees for other +components in the aggregation are permitted. The terms of this license +apply to the use and Distribution of the Standard or Modified Versions +as included in the aggregation. + +(8) You are permitted to link Modified and Standard Versions with +other works, to embed the Package in a larger work of your own, or to +build stand-alone binary or bytecode versions of applications that +include the Package, and Distribute the result without restriction, +provided the result does not expose a direct interface to the Package. + +Items That are Not Considered Part of a Modified Version + +(9) Works (including, but not limited to, modules and scripts) that +merely extend or make use of the Package, do not, by themselves, cause +the Package to be a Modified Version. In addition, such works are not +considered parts of the Package itself, and are not subject to the +terms of this license. + +General Provisions + +(10) Any use, modification, and distribution of the Standard or +Modified Versions is governed by this Artistic License. By using, +modifying or distributing the Package, you accept this license. Do not +use, modify, or distribute the Package, if you do not accept this +license. + +(11) If your Modified Version has been derived from a Modified Version +made by someone other than you, you are nevertheless required to +ensure that your Modified Version complies with the requirements of +this license. + +(12) This license does not grant you the right to use any trademark, +service mark, tradename, or logo of the Copyright Holder. + +(13) This license includes the non-exclusive, worldwide, +free-of-charge patent license to make, have made, use, offer to sell, +sell, import and otherwise transfer the Package with respect to any +patent claims licensable by the Copyright Holder that are necessarily +infringed by the Package. If you institute patent litigation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/MANIFEST new/Test-Output-1.031/MANIFEST --- old/Test-Output-1.03/MANIFEST 2014-01-03 18:19:44.000000000 +0100 +++ new/Test-Output-1.031/MANIFEST 2017-03-29 23:32:32.000000000 +0200 @@ -1,10 +1,11 @@ Changes +INSTALL.SKIP lib/Test/Output.pm LICENSE Makefile.PL MANIFEST This list of files MANIFEST.SKIP -README +README.pod t/00.load.t t/binmode.t t/carp-5.6.t @@ -26,5 +27,6 @@ t/stdout_isnt.t t/stdout_like.t t/stdout_unlike.t +xt/changes.t META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/META.json new/Test-Output-1.031/META.json --- old/Test-Output-1.03/META.json 2014-01-03 18:19:44.000000000 +0100 +++ new/Test-Output-1.031/META.json 2017-03-29 23:32:31.000000000 +0200 @@ -4,7 +4,7 @@ "brian d foy <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.112150", + "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.140640", "keywords" : [ "testing", "STDOUT", @@ -26,31 +26,39 @@ }, "prereqs" : { "build" : { - "requires" : { - "ExtUtils::MakeMaker" : 0 - } + "requires" : {} }, "configure" : { "requires" : { - "ExtUtils::MakeMaker" : 0 + "ExtUtils::MakeMaker" : "6.64", + "File::Spec::Functions" : "0" } }, "runtime" : { "requires" : { "Capture::Tiny" : "0.17", "File::Temp" : "0.17", - "Sub::Exporter" : 0, - "Test::More" : 0, - "Test::Tester" : "0.107", - "perl" : "5.006" + "perl" : "5.008" + } + }, + "test" : { + "requires" : { + "Test::More" : "0", + "Test::Tester" : "0.107" } } }, "release_status" : "stable", "resources" : { + "bugtracker" : { + "web" : "https://github.com/briandfoy/test-output/issues" + }, + "homepage" : "https://github.com/briandfoy/test-output", "repository" : { - "url" : "git://github.com/briandfoy/test-output.git" + "type" : "git", + "url" : "https://github.com/briandfoy/test-output.git", + "web" : "https://github.com/briandfoy/test-output" } }, - "version" : "1.03" + "version" : "1.031" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/META.yml new/Test-Output-1.031/META.yml --- old/Test-Output-1.03/META.yml 2014-01-03 18:19:43.000000000 +0100 +++ new/Test-Output-1.031/META.yml 2017-03-29 23:32:29.000000000 +0200 @@ -3,11 +3,13 @@ author: - 'brian d foy <[email protected]>' build_requires: - ExtUtils::MakeMaker: 0 + Test::More: '0' + Test::Tester: '0.107' configure_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::MakeMaker: '6.64' + File::Spec::Functions: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.112150' +generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.140640' keywords: - testing - STDOUT @@ -15,19 +17,18 @@ license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Test-Output no_index: directory: - t - inc requires: - Capture::Tiny: 0.17 - File::Temp: 0.17 - Sub::Exporter: 0 - Test::More: 0 - Test::Tester: 0.107 - perl: 5.006 + Capture::Tiny: '0.17' + File::Temp: '0.17' + perl: '5.008' resources: - repository: git://github.com/briandfoy/test-output.git -version: 1.03 + bugtracker: https://github.com/briandfoy/test-output/issues + homepage: https://github.com/briandfoy/test-output + repository: https://github.com/briandfoy/test-output.git +version: '1.031' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/Makefile.PL new/Test-Output-1.031/Makefile.PL --- old/Test-Output-1.03/Makefile.PL 2014-01-03 18:19:42.000000000 +0100 +++ new/Test-Output-1.031/Makefile.PL 2017-03-29 23:32:14.000000000 +0200 @@ -1,42 +1,116 @@ -use 5.006; - +package Test::Output; use strict; use warnings; -use ExtUtils::MakeMaker; -eval "use Test::Tester"; +=encoding utf8 + +=head1 The build file for Test::Output + +This build file is a modulino; it works as both a build script and +a module. + +To build the distribution, run this file normally: + + % perl Makefile.PL + +But, it's more interesting than that. You can load it with C<require> +and call C<arguments> to get the data structure it passes to +C<WriteMakefile>: + + my $package = require '/path/to/Makefile.PL'; + my $arguments = $package->arguments; + +Note that C<require>-ing a file makes an entry in C<%INC> for exactly +that name. If you try to C<require> another file with the same name, +even from a different path, C<require> thinks it has already loaded +the file. As such, I recommend you always require the full path to the +file. + +The return value of the C<require> is a package name (in this case, +the name of the main module. Use that to call the C<arguments> method. + +Even if this distribution needs a higher version of Perl, this bit +only needs v5.8. You can play with the data structure with a primitive +Perl. + +=cut + +use File::Spec::Functions qw(catfile); + +my $module = __PACKAGE__; +( my $dist = $module ) =~ s/::/-/g; + +my $github = 'https://github.com/briandfoy/test-output'; +my $main_file = catfile( 'lib', split /::/, "$module.pm" ); + +my %WriteMakefile = ( + 'MIN_PERL_VERSION' => '5.008', -WriteMakefile( - NAME => 'Test::Output', - AUTHOR => 'brian d foy <[email protected]>', - VERSION_FROM => 'lib/Test/Output.pm', - LICENSE => 'perl', - ABSTRACT_FROM => 'lib/Test/Output.pm', - PL_FILES => {}, - PREREQ_PM => { + 'NAME' => $module, + 'AUTHOR' => 'brian d foy <[email protected]>', + 'ABSTRACT_FROM' => $main_file, + 'VERSION_FROM' => $main_file, + 'LICENSE' => 'perl', + + 'CONFIGURE_REQUIRES' => { + 'ExtUtils::MakeMaker' => '6.64', + 'File::Spec::Functions' => '0', + }, + + 'BUILD_REQUIRES' => { + }, + + 'TEST_REQUIRES' => { + 'Test::More' => '0.94', 'Test::Tester' => '0.107', 'Test::More' => '0', - 'Sub::Exporter' => '0', + }, + + 'PREREQ_PM' => { 'File::Temp' => '0.17', # needs :seekable 'Capture::Tiny' => '0.17', }, - ( - $ExtUtils::MakeMaker::VERSION ge '6.48' ? - ( - MIN_PERL_VERSION => 5.006, - - META_MERGE => { - resources => { - repository => 'git://github.com/briandfoy/test-output.git', + 'META_MERGE' => { + 'meta-spec' => { version => 2 }, + keywords => ['testing','STDOUT','STDERR'], + resources => { + repository => { + type => 'git', + url => "$github.git", + web => $github, + }, + bugtracker => { + web => "$github/issues", }, - keywords => ['testing','STDOUT','STDERR'], - }, - ) - : - () - ), - - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Test-Output-*' }, -); + homepage => $github, + }, + }, + + clean => { FILES => "$dist-*" }, + ); + +sub arguments { \%WriteMakefile } + +do_it() unless caller; +sub do_it { + require File::Spec; + my $MM ='ExtUtils::MakeMaker'; + my $MM_version = + eval{ "$MM " . $WriteMakefile{'CONFIGURE_REQUIRES'}{'ExtUtils::MakeMaker'} } + || + "$MM 6.64"; + eval "use $MM_version; 1" or die "Could not load $MM_version: $@"; + eval "use Test::Manifest 1.21" + if -e File::Spec->catfile( qw(t test_manifest) ); + + my $arguments = arguments(); + my $minimum_perl = $arguments->{MIN_PERL_VERSION} || '5.008'; + eval "require $minimum_perl;" or die $@; + + WriteMakefile( %$arguments ); + } + + +no warnings; +__PACKAGE__; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/README new/Test-Output-1.031/README --- old/Test-Output-1.03/README 2014-01-03 18:19:42.000000000 +0100 +++ new/Test-Output-1.031/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -Test-Output - -Test-Output provides a simple interface for testing output send to STDOUT -or STDERR. A number of different utilies are included to try and be as -flexible as possible to the tester. - -While Test::Output requires Test::Tester during installation, this -requirement is only for it's own tests, not for what it's testing. One of -the main ideas behind Test::Output is to make it as self contained as -possible so it can be included with other's modules. As of this release -the only requirement is to include Test::Output::Tie along with it. - -INSTALLATION - -To install this module, run the following commands: - - perl Makefile.PL - make - make test - make install - - -COPYRIGHT AND LICENCE - -Copyright (C) 2005 Shawn Sorichetti - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/README.pod new/Test-Output-1.031/README.pod --- old/Test-Output-1.03/README.pod 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Output-1.031/README.pod 2017-03-29 23:32:14.000000000 +0200 @@ -0,0 +1,114 @@ +=pod + +=encoding utf8 + +=head1 The Test::Output module + +This is the I<README> for the L<Test::Output> Perl module. You're probably +looking at this because you don't know where else to find what you're +looking for. Read this once and you might never have to read one again +for any Perl module. + +=head2 Documentation + +To read about L<Test::Output>, look at the embedded documentation +in the module itself. Inside the distribution, you can format it +with L<perldoc|http://perldoc.perl.org/perldoc.html>: + + % perldoc lib/Test/Output.pm + +If you have already installed the module, you can specify the module +name instead of the file location: + + % perldoc Test::Output + +You can read the documentation and inspect the meta data on one of the +CPAN web interfaces, such as L<CPAN Search|http://search.cpan.org/dist/Test-Output> or +L<MetaCPAN|http://www.metacpan.org/module/Test::Output>: + +=over 4 + +=item * L<http://search.cpan.org/dist/Test-Output> + +=item * L<http://www.metacpan.org/module/Test::Output> + +=back + +The standard module documentation has example uses in the SYNOPSIS +section, but you can also look in the I<examples/> directory (if it's +there), or look at the test files in I<t/>. + +=head2 Installation + +You can install this module with a CPAN client, which will resolve +and install the dependencies: + + % cpan Test::Output + % cpanm Test::Output + +You can also install directly from the distribution directory, which +will also install the dependencies: + + % cpan . + % cpanm . + +You could install just this module manually: + + % perl Makefile.PL + % make + % make test + % make install + +You probably don't want to do that unless you're fiddling with the +module and only want to run the tests without installing anything. + +=head2 Source location + +The meta data, such as the source repository and bug tracker, is in +I<Makefile.PL> or the I<META.*> files it creates. You can find that on +those CPAN web interfaces, but you can also look at files directly in +the source repository: + +=over 4 + +=item * L<https://github.com/briandfoy/test-output> + +=back + +If you find a problem, file a ticket in the L<issue +tracker|https://github.com/briandfoy/test-output/issues>: + +=over 4 + +=item * L<https://github.com/briandfoy/test-output/issues> + +=back + +=head2 Getting help + +Although I'm happy to hear from module users in private email, +that's the best way for me to forget to do something. + +Besides the issue trackers, you can find help at +L<Perlmonks|http://www.perlmonks.org> or +L<Stackoverflow|http://www.stackoverflow.com>, both of which have many +competent Perlers who can answer your question, almost in real time. +They might not know the particulars of this module, but they can help +you diagnose your problem. + +You might like to read L<brian's Guide to Solving Any Perl +Problem|http://archive.oreilly.com/pub/a/perl/excerpts/9780596527242/brians-guide.html>. + +=head2 Copyright and License + +You should have received a I<LICENSE> file, but the license is also noted +in the module files. About the only thing you can't do is pretend that +you wrote code that you didn't. + +=head2 Good luck! + +Enjoy, + +brian d foy, [email protected] + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/lib/Test/Output.pm new/Test-Output-1.031/lib/Test/Output.pm --- old/Test-Output-1.03/lib/Test/Output.pm 2014-01-03 18:19:42.000000000 +0100 +++ new/Test-Output-1.031/lib/Test/Output.pm 2017-03-29 23:32:14.000000000 +0200 @@ -1,22 +1,15 @@ package Test::Output; -use vars qw($VERSION); use warnings; use strict; use Test::Builder; use Capture::Tiny qw/capture capture_stdout capture_stderr capture_merged/; -use Sub::Exporter -setup => { - exports => [ - qw(output_is output_isnt output_like output_unlike - stderr_is stderr_isnt stderr_like stderr_unlike - stdout_is stdout_isnt stdout_like stdout_unlike - combined_is combined_isnt combined_like combined_unlike - output_from stderr_from stdout_from combined_from - ) - ], - groups => { - stdout => [ + +use Exporter qw(import); + +our %EXPORT_TAGS = ( + stdout => [ qw( stdout_is stdout_isnt stdout_like stdout_unlike ) @@ -49,23 +42,38 @@ combined_is combined_isnt combined_like combined_unlike ) ], - default => [ '-tests' ], - }, -}; + all => [ + qw( + output_is output_isnt output_like output_unlike + stderr_is stderr_isnt stderr_like stderr_unlike + stdout_is stdout_isnt stdout_like stdout_unlike + combined_is combined_isnt combined_like combined_unlike + output_from stderr_from stdout_from combined_from + ) + ], + ); + +our @EXPORT = keys %{ + { + map { $_ => 1 } + map { + @{ $EXPORT_TAGS{$_} } + } + keys %EXPORT_TAGS + } + }; my $Test = Test::Builder->new; +=encoding utf8 + =head1 NAME Test::Output - Utilities to test STDOUT and STDERR messages. -=head1 VERSION - -Version 0.16 - =cut -$VERSION = '1.03'; +our $VERSION = '1.031'; =head1 SYNOPSIS @@ -103,16 +111,12 @@ =head1 DESCRIPTION -Test::Output provides a simple interface for testing output sent to STDOUT -or STDERR. A number of different utilities are included to try and be as +Test::Output provides a simple interface for testing output sent to C<STDOUT> +or C<STDERR>. A number of different utilities are included to try and be as flexible as possible to the tester. -Originally this module was designed not to have external requirements, -however, the features provided by L<Sub::Exporter> over what L<Exporter> -provides is just to great to pass up. - -Likewise, Capture::Tiny provides a much more robust capture mechanism without -than the original Test::Output::Tie. +Likewise, L<Capture::Tiny> provides a much more robust capture mechanism without +than the original L<Test::Output::Tie>. =cut @@ -133,10 +137,10 @@ stdout_isnt( $coderef, $expected, 'description' ); stdout_isnt { ... } $expected, 'description'; -stdout_is() captures output sent to STDOUT from $coderef and compares -it against $expected. The test passes if equal. +C<stdout_is()> captures output sent to C<STDOUT> from C<$coderef> and compares +it against C<$expected>. The test passes if equal. -stdout_isnt() passes if STDOUT is not equal to $expected. +C<stdout_isnt()> passes if C<STDOUT> is not equal to C<$expected>. =cut @@ -181,10 +185,10 @@ stdout_unlike( $coderef, qr/$expected/, 'description' ); stdout_unlike { ... } qr/$expected/, 'description'; -stdout_like() captures the output sent to STDOUT from $coderef and compares -it to the regex in $expected. The test passes if the regex matches. +C<stdout_like()> captures the output sent to C<STDOUT> from C<$coderef> and compares +it to the regex in C<$expected>. The test passes if the regex matches. -stdout_unlike() passes if STDOUT does not match the regex. +C<stdout_unlike()> passes if STDOUT does not match the regex. =back @@ -244,10 +248,10 @@ stderr_isnt( $coderef, $expected, 'description' ); stderr_isnt {... } $expected, 'description'; -stderr_is() is similar to stdout_is, except that it captures STDERR. The -test passes if STDERR from $coderef equals $expected. +C<stderr_is()> is similar to C<stdout_is>, except that it captures C<STDERR>. The +test passes if C<STDERR> from C<$coderef> equals C<$expected>. -stderr_isnt() passes if STDERR is not equal to $expected. +C<stderr_isnt()> passes if C<STDERR> is not equal to C<$expected>. =cut @@ -292,11 +296,11 @@ stderr_unlike( $coderef, qr/$expected/, 'description' ); stderr_unlike { ...} qr/$expected/, 'description'; -stderr_like() is similar to stdout_like() except that it compares the regex -$expected to STDERR captured from $codref. The test passes if the regex +C<stderr_like()> is similar to C<stdout_like()> except that it compares the regex +C<$expected> to C<STDERR> captured from C<$codref>. The test passes if the regex matches. -stderr_unlike() passes if STDERR does not match the regex. +C<stderr_unlike()> passes if C<STDERR> does not match the regex. =back @@ -355,12 +359,12 @@ combined_isnt ( $coderef, $expected, 'description' ); combined_isnt {... } $expected, 'description'; -combined_is() directs STDERR to STDOUT then captures STDOUT. This is -equivalent to UNIXs 2>&1. The test passes if the combined STDOUT -and STDERR from $coderef equals $expected. +C<combined_is()> directs C<STDERR> to C<STDOUT> then captures C<STDOUT>. This is +equivalent to UNIXs C<< 2>&1 >>. The test passes if the combined C<STDOUT> +and C<STDERR> from $coderef equals $expected. -combined_isnt() passes if combined STDOUT and STDERR are not equal -to $expected. +C<combined_isnt()> passes if combined C<STDOUT> and C<STDERR> are not equal +to C<$expected>. =cut @@ -407,11 +411,11 @@ combined_unlike ( $coderef, qr/$expected/, 'description' ); combined_unlike { ...} qr/$expected/, 'description'; -combined_like() is similar to combined_is() except that it compares a regex -($expected) to STDOUT and STDERR captured from $codref. The test passes if +C<combined_like()> is similar to C<combined_is()> except that it compares a regex +(C<$expected)> to C<STDOUT> and C<STDERR> captured from C<$codref>. The test passes if the regex matches. -combined_unlike() passes if the combined STDOUT and STDERR does not match +C<combined_unlike()> passes if the combined C<STDOUT> and C<STDERR> does not match the regex. =back @@ -473,47 +477,47 @@ output_isnt( $coderef, $expected_stdout, $expected_stderr, 'description' ); output_isnt {... } $expected_stdout, $expected_stderr, 'description'; -The output_is() function is a combination of the stdout_is() and stderr_is() +The C<output_is()> function is a combination of the C<stdout_is()> and C<stderr_is()> functions. For example: output_is(sub {print "foo"; print STDERR "bar";},'foo','bar'); is functionally equivalent to - stdout_is(sub {print "foo";},'foo') + stdout_is(sub {print "foo";},'foo') && stderr_is(sub {print STDERR "bar";'bar'); -except that $coderef is only executed once. +except that C<$coderef> is only executed once. -Unlike, stdout_is() and stderr_is() which ignore STDERR and STDOUT -respectively, output_is() requires both STDOUT and STDERR to match in order -to pass. Setting either $expected_stdout or $expected_stderr to C<undef> -ignores STDOUT or STDERR respectively. +Unlike C<stdout_is()> and C<stderr_is()> which ignore STDERR and STDOUT +respectively, C<output_is()> requires both C<STDOUT> and C<STDERR> to match in order +to pass. Setting either C<$expected_stdout> or C<$expected_stderr> to C<undef> +ignores C<STDOUT> or C<STDERR> respectively. output_is(sub {print "foo"; print STDERR "bar";},'foo',undef); is the same as - stdout_is(sub {print "foo";},'foo') + stdout_is(sub {print "foo";},'foo') -output_isnt() provides the opposite function of output_is(). It is a -combination of stdout_isnt() and stderr_isnt(). +C<output_isnt()> provides the opposite function of C<output_is()>. It is a +combination of C<stdout_isnt()> and C<stderr_isnt()>. output_isnt(sub {print "foo"; print STDERR "bar";},'bar','foo'); is functionally equivalent to - stdout_is(sub {print "foo";},'bar') + stdout_is(sub {print "foo";},'bar') && stderr_is(sub {print STDERR "bar";'foo'); -As with output_is(), setting either $expected_stdout or $expected_stderr to +As with C<output_is()>, setting either C<$expected_stdout> or C<$expected_stderr> to C<undef> ignores the output to that facility. output_isnt(sub {print "foo"; print STDERR "bar";},undef,'foo'); is the same as - stderr_is(sub {print STDERR "bar";},'foo') + stderr_is(sub {print STDERR "bar";},'foo') =cut @@ -622,17 +626,17 @@ output_unlike( $coderef, $regex_stdout, $regex_stderr, 'description' ); output_unlike { ... } $regex_stdout, $regex_stderr, 'description'; -output_like() and output_unlike() follow the same principles as output_is() -and output_isnt() except they use a regular expression for matching. +C<output_like()> and C<output_unlike()> follow the same principles as C<output_is()> +and C<output_isnt()> except they use a regular expression for matching. -output_like() attempts to match $regex_stdout and $regex_stderr against -STDOUT and STDERR produced by $coderef. The test passes if both match. +C<output_like()> attempts to match C<$regex_stdout> and C<$regex_stderr> against +C<STDOUT> and C<STDERR> produced by $coderef. The test passes if both match. output_like(sub {print "foo"; print STDERR "bar";},qr/foo/,qr/bar/); The above test is successful. -Like output_is(), setting either $regex_stdout or $regex_stderr to +Like C<output_is()>, setting either C<$regex_stdout> or C<$regex_stderr> to C<undef> ignores the output to that facility. output_like(sub {print "foo"; print STDERR "bar";},qr/foo/,undef); @@ -641,8 +645,8 @@ stdout_like(sub {print "foo"; print STDERR "bar";},qr/foo/); -output_unlike() test pass if output from $coderef doesn't match -$regex_stdout and $regex_stderr. +C<output_unlike()> test pass if output from C<$coderef> doesn't match +C<$regex_stdout> and C<$regex_stderr>. =back @@ -755,56 +759,26 @@ =head1 EXPORTS -By default, all tests are exported, however with the switch to L<Sub::Exporter> -export groups are now available to better limit imports. - -To import tests for STDOUT: - - use Test::Output qw(:stdout); - -To import tests STDERR: - - use Test::Output qw(:stderr); - -To import just the functions: - - use Test::Output qw(:functions); - -And to import all tests: - - use Test::Output; - -The following is a list of group names and which functions are exported: +By default, all subroutines are exported by default. =over 4 -=item stdout +=item * :stdout - the subs with C<stdout> in the name. -stdout_is stdout_isnt stdout_like stdout_unlike +=item * :stderr - the subs with C<stderr> in the name. -=item stderr +=item * :functions - the subs with C<_from> at the end. -stderr_is stderr_isnt stderr_like stderr_unlike +=item * :output - the subs with C<output> in the name. -=item output +=item * :combined - the subs with C<combined> in the name. -output_is output_isnt output_like output_unlike +=item * :tests - everything that outputs TAP -=item combined - -combined_is combined_isnt combined_like combined_unlike - -=item tests - -All of the above, this is the default when no options are given. +=item * :all - everything (which is the same as the default) =back -L<Sub::Exporter> allows for many other options, I encourage reading its -documentation. - -=cut - =head1 FUNCTIONS =cut @@ -834,7 +808,7 @@ my $stderr = stderr_from($coderef) my $stderr = stderr_from { ... }; -stderr_from() executes $coderef and captures STDERR. +C<stderr_from()> executes C<$coderef> and captures C<STDERR>. =cut @@ -858,7 +832,7 @@ my ($stdout, $stderr) = output_from($coderef) my ($stdout, $stderr) = output_from {...}; -output_from() executes $coderef one time capturing both STDOUT and STDERR. +C<output_from()> executes C<$coderef> one time capturing both C<STDOUT> and C<STDERR>. =cut @@ -879,8 +853,8 @@ my $combined = combined_from($coderef); my $combined = combined_from {...}; -combined_from() executes $coderef one time combines STDOUT and STDERR, and -captures them. combined_from() is equivalent to using 2>&1 in UNIX. +C<combined_from()> executes C<$coderef> one time combines C<STDOUT> and C<STDERR>, and +captures them. C<combined_from()> is equivalent to using C<< 2>&1 >> in UNIX. =cut @@ -922,7 +896,7 @@ Shawn Sorichetti, C<< <[email protected]> >> =head1 SOURCE AVAILABILITY - + This module is in Github: http://github.com/briandfoy/test-output/tree/master @@ -939,11 +913,12 @@ Thanks to chromatic whose TieOut.pm was the basis for capturing output. Also thanks to rjbs for his help cleaning the documentation, and pushing me to -L<Sub::Exporter>. +L<Sub::Exporter>. (This feature has been removed since it uses none of +L<Sub::Exporter>'s strengths). Thanks to David Wheeler for providing code block support and tests. -Thanks to Michael G Schwern for the solution to combining STDOUT and STDERR. +Thanks to Michael G Schwern for the solution to combining C<STDOUT> and C<STDERR>. =head1 COPYRIGHT & LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Output-1.03/xt/changes.t new/Test-Output-1.031/xt/changes.t --- old/Test-Output-1.03/xt/changes.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Output-1.031/xt/changes.t 2017-03-29 23:32:14.000000000 +0200 @@ -0,0 +1,4 @@ +use Test::More; +eval 'use Test::CPAN::Changes'; +plan skip_all => 'Test::CPAN::Changes required for this test' if $@; +changes_ok(); ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
