Hello community, here is the log from the commit of package perl-Test-Most for openSUSE:Factory checked in at 2013-06-06 13:52:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Most (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Most.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Most" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Most/perl-Test-Most.changes 2012-01-04 07:29:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Most.new/perl-Test-Most.changes 2013-06-06 13:52:35.000000000 +0200 @@ -1,0 +2,11 @@ +Tue Jun 4 15:05:24 UTC 2013 - [email protected] + +- updated to 0.31 + - Fix "You tried to plan twice" bug (reported on #78564) + - Bugfix: Moose can now be used safely as we exclude + Test::Deep::blessed by default (multiple reports) + - Bugfix from Randy Stauner. Time::HiRes eval test uses $@, not @_ + - carp instead of warn (Olivier Mengué) + - Remove autogenerated files (Olivier Mengué) + +------------------------------------------------------------------- Old: ---- Test-Most-0.25.tar.gz New: ---- Test-Most-0.31.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Most.spec ++++++ --- /var/tmp/diff_new_pack.ktK6hT/_old 2013-06-06 13:52:36.000000000 +0200 +++ /var/tmp/diff_new_pack.ktK6hT/_new 2013-06-06 13:52:36.000000000 +0200 @@ -1,8 +1,7 @@ -# vim: set sw=4 ts=4 et nu: # # spec file for package perl-Test-Most # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,21 +14,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: perl-Test-Most -Version: 0.25 +Version: 0.31 Release: 0 -Summary: Most commonly needed test functions and features +%define cpan_name Test-Most +Summary: Most commonly needed test functions and features. License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Most-%{version}.tar.gz Url: http://search.cpan.org/dist/Test-Most/ +Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Exception::Class) >= 1.14 -BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build) >= 0.4000 BuildRequires: perl(Test::Deep) >= 0.106 BuildRequires: perl(Test::Differences) >= 0.61 BuildRequires: perl(Test::Exception) >= 0.31 @@ -47,46 +48,53 @@ Requires: perl(Test::More) >= 0.88 Requires: perl(Test::Warn) >= 0.23 Recommends: perl(Data::Dumper::Names) >= 0.03 +%{perl_requires} %description -Test::Most exists to reduce boilerplate and to make your testing life easier. -We provide "one stop shopping" for most commonly used testing modules. In fact, -we often require the latest versions so that you get bug fixes through -Test::Most and don't have to keep upgrading these modules separately. - -This module provides you with the most commonly used testing functions, along -with automatically turning on strict and warning and gives you a bit more -fine-grained control over your test suite. +the Test::Most manpage exists to reduce boilerplate and to make your +testing life easier. We provide "one stop shopping" for most commonly used +testing modules. In fact, we often require the latest versions so that you +get bug fixes through the Test::Most manpage and don't have to keep +upgrading these modules separately. + +This module provides you with the most commonly used testing functions, +along with automatically turning on strict and warning and gives you a bit +more fine-grained control over your test suite. + + use Test::Most tests => 4, 'die'; + + ok 1, 'Normal calls to ok() should succeed'; + is 2, 2, '... as should all passing tests'; + eq_or_diff [3], [4], '... but failing tests should die'; + ok 4, '... will never get to here'; + +As you can see, the 'eq_or_diff' test will fail. Because 'die' is in the +import list, the test program will halt at that point. + +If you do not want strict and warnings enabled, you must explicitly disable +them. Thus, you must be explicit about what you want and no longer need to +worry about accidentally forgetting them. + + use Test::Most tests => 4; + no strict; + no warnings; %prep -%setup -q -n "Test-Most-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} -%install -%perl_make_install -%perl_process_packlist - -%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120 %check -%__make test -%endif +./Build test -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist -%files -%defattr(-,root,root) -%doc Changes README -%dir %{perl_vendorlib}/Test -%{perl_vendorlib}/Test/Most.pm -%{perl_vendorlib}/Test/Most -%dir %{perl_vendorarch}/auto/Test -%{perl_vendorarch}/auto/Test/Most -%doc %{perl_man3dir}/Test::Most.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/Test::Most::*.%{perl_man3ext}%{ext_man} +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README xt %changelog ++++++ Test-Most-0.25.tar.gz -> Test-Most-0.31.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/Changes new/Test-Most-0.31/Changes --- old/Test-Most-0.25/Changes 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/Changes 2012-09-06 11:35:29.000000000 +0200 @@ -1,5 +1,15 @@ Revision history for Test::Most +0.31 2012-09-06 + - Fix "You tried to plan twice" bug (reported on #78564) + +0.30 2012-09-05 + - Bugfix: Moose can now be used safely as we exclude + Test::Deep::blessed by default (multiple reports) + - Bugfix from Randy Stauner. Time::HiRes eval test uses $@, not @_ + - carp instead of warn (Olivier Mengué) + - Remove autogenerated files (Olivier Mengué) + 0.25 2011-08-17 - Add timeit() function to time individual behaviours. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/MANIFEST new/Test-Most-0.31/MANIFEST --- old/Test-Most-0.25/MANIFEST 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/MANIFEST 2012-09-06 11:35:29.000000000 +0200 @@ -3,7 +3,9 @@ lib/Test/Most.pm lib/Test/Most/Exception.pm Makefile.PL -MANIFEST +MANIFEST This list of files +MANIFEST.SKIP +META.json META.yml README t/00-load.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/MANIFEST.SKIP new/Test-Most-0.31/MANIFEST.SKIP --- old/Test-Most-0.25/MANIFEST.SKIP 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Most-0.31/MANIFEST.SKIP 2012-09-06 11:35:29.000000000 +0200 @@ -0,0 +1,62 @@ + +#!start included /usr/share/perl/5.14/ExtUtils/MANIFEST.SKIP +# Avoid version control files. +\bRCS\b +\bCVS\b +\bSCCS\b +,v$ +\B\.svn\b +\B\.git\b +\B\.gitignore\b +\b_darcs\b +\B\.cvsignore$ + +# Avoid VMS specific MakeMaker generated files +\bDescrip.MMS$ +\bDESCRIP.MMS$ +\bdescrip.mms$ + +# Avoid Makemaker generated and utility files. +\bMANIFEST\.bak +\bMakefile$ +\bblib/ +\bMakeMaker-\d +\bpm_to_blib\.ts$ +\bpm_to_blib$ +\bblibdirs\.ts$ # 6.18 through 6.25 generated this + +# Avoid Module::Build generated and utility files. +\bBuild$ +\b_build/ +\bBuild\.bat$ +\bBuild\.COM$ +\bBUILD\.COM$ +\bbuild\.com$ + +# Avoid temp and backup files. +~$ +\.old$ +\#$ +\b\.# +\.bak$ +\.tmp$ +\.# +\.rej$ +\.sw.$ + +# Avoid OS-specific files/dirs +# Mac OSX metadata +\B\.DS_Store +# Mac OSX SMB mount metadata files +\B\._ + +# Avoid Devel::Cover and Devel::CoverX::Covered files. +\bcover_db\b +\bcovered\b + +# Avoid MYMETA files +^MYMETA\. +#!end included /usr/share/perl/5.14/ExtUtils/MANIFEST.SKIP + +# Avoid archives of this distribution +\bTest-Most-[\d\.\_]+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/META.json new/Test-Most-0.31/META.json --- old/Test-Most-0.25/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Most-0.31/META.json 2012-09-06 11:35:29.000000000 +0200 @@ -0,0 +1,58 @@ +{ + "abstract" : "Most commonly needed test functions and features.", + "author" : [ + "Curtis \"Ovid\" Poe <[email protected]>" + ], + "dynamic_config" : 1, + "generated_by" : "Module::Build version 0.4, CPAN::Meta::Converter version 2.120351", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Test-Most", + "prereqs" : { + "configure" : { + "requires" : { + "Module::Build" : "0.4" + } + }, + "runtime" : { + "recommends" : { + "Data::Dumper::Names" : "0.03" + }, + "requires" : { + "Exception::Class" : "1.14", + "Test::Deep" : "0.106", + "Test::Differences" : "0.61", + "Test::Exception" : "0.31", + "Test::Harness" : "3.21", + "Test::More" : "0.88", + "Test::Warn" : "0.23", + "perl" : "5.006" + } + } + }, + "provides" : { + "Test::Most" : { + "file" : "lib/Test/Most.pm", + "version" : "0.31" + }, + "Test::Most::Exception" : { + "file" : "lib/Test/Most/Exception.pm", + "version" : "0.31" + } + }, + "release_status" : "stable", + "resources" : { + "license" : [ + "http://dev.perl.org/licenses/" + ], + "repository" : { + "url" : "http://github.com/Ovid/test--most" + } + }, + "version" : "0.31" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/META.yml new/Test-Most-0.31/META.yml --- old/Test-Most-0.25/META.yml 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/META.yml 2012-09-06 11:35:29.000000000 +0200 @@ -2,9 +2,11 @@ abstract: 'Most commonly needed test functions and features.' author: - "Curtis \"Ovid\" Poe <[email protected]>" +build_requires: {} configure_requires: - Module::Build: 0.36 -generated_by: 'Module::Build version 0.3607' + Module::Build: 0.4 +dynamic_config: 1 +generated_by: 'Module::Build version 0.4, CPAN::Meta::Converter version 2.120351' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -13,10 +15,10 @@ provides: Test::Most: file: lib/Test/Most.pm - version: 0.25 + version: 0.31 Test::Most::Exception: file: lib/Test/Most/Exception.pm - version: 0.25 + version: 0.31 recommends: Data::Dumper::Names: 0.03 requires: @@ -31,4 +33,4 @@ resources: license: http://dev.perl.org/licenses/ repository: http://github.com/Ovid/test--most -version: 0.25 +version: 0.31 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/Makefile.PL new/Test-Most-0.31/Makefile.PL --- old/Test-Most-0.25/Makefile.PL 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/Makefile.PL 2012-09-06 11:35:29.000000000 +0200 @@ -1,4 +1,4 @@ -# Note: this file was auto-generated by Module::Build::Compat version 0.3607 +# Note: this file was auto-generated by Module::Build::Compat version 0.40 require 5.006; use ExtUtils::MakeMaker; WriteMakefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/lib/Test/Most/Exception.pm new/Test-Most-0.31/lib/Test/Most/Exception.pm --- old/Test-Most-0.25/lib/Test/Most/Exception.pm 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/lib/Test/Most/Exception.pm 2012-09-06 11:35:29.000000000 +0200 @@ -12,11 +12,11 @@ =head1 VERSION -Version 0.25 +Version 0.31 =cut -our $VERSION = '0.25'; +our $VERSION = '0.31'; $VERSION = eval $VERSION; =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Most-0.25/lib/Test/Most.pm new/Test-Most-0.31/lib/Test/Most.pm --- old/Test-Most-0.25/lib/Test/Most.pm 2011-08-17 22:54:35.000000000 +0200 +++ new/Test-Most-0.31/lib/Test/Most.pm 2012-09-06 11:35:29.000000000 +0200 @@ -18,7 +18,7 @@ @Test::More::EXPORT = grep { $_ ne 'explain' } @Test::More::EXPORT; Test::More->import; eval "use Time::HiRes"; - $HAVE_TIME_HIRES = 1 unless @_; + $HAVE_TIME_HIRES = 1 unless $@; } use Test::Builder; @@ -33,11 +33,11 @@ =head1 VERSION -Version 0.25 +Version 0.31 =cut -our $VERSION = '0.25'; +our $VERSION = '0.31'; $VERSION = eval $VERSION; =head1 SYNOPSIS @@ -317,6 +317,19 @@ =head1 MISCELLANEOUS +=head2 Moose + +It used to be that this module would produce a warning when used with Moose: + + Prototype mismatch: sub main::blessed ($) vs none + +This was because L<Test::Deep> exported a C<blessed()> function by default, +but its prototype did not match the L<Moose> version's prototype. We now +excluse the L<Test::Deep> version by default. If you need it, you can call the +fully-qualified version or request it on the command line: + + use Test::Most 'blessed'; + =head2 Excluding Test Modules Sometimes you want a exclude a particular test module. For example, @@ -481,8 +494,15 @@ } } - my @exclude_symbols; + my %exclude_symbol; my $i = 0; + + if ( grep { $_ eq 'blessed' } @_ ) { + @_ = grep { $_ ne 'blessed' } @_; + } + else { + $exclude_symbol{blessed} = 1; + } while ($i < @_) { if ( !$bail_set and ( 'die' eq $_[$i] ) ) { splice @_, $i, 1; @@ -503,7 +523,7 @@ } if ( $_[$i] =~ /^!(.*)/ ) { splice @_, $i, 1; - push @exclude_symbols => $1; + $exclude_symbol{$1} = 1; $i = 0; next; } @@ -521,24 +541,15 @@ $i++; } foreach my $module (keys %modules_to_load) { - # some Test modules we use are naughty and don't use Exporter. - # See RT#61145. - if ($module->isa('Exporter')) { - my $exclude_symbols = 'qw(' . join(' ', map { '!' . $_ } @exclude_symbols) . ')'; - eval "require $module; import $module $exclude_symbols;"; - } else { - eval "use $module"; - } + eval "use $module"; if ( my $error = $@) { require Carp; Carp::croak($error); } no strict 'refs'; - my %count; - $count{$_}++ foreach @{"${module}::EXPORT"}, @exclude_symbols; # Note: export_to_level would be better here. - push @EXPORT => grep { $count{$_} == 1 } @{"${module}::EXPORT"}; + push @EXPORT => grep { !$exclude_symbol{$_} } @{"${module}::EXPORT"}; } # 'magic' goto to avoid updating the callstack @@ -598,7 +609,8 @@ sub _show { unless ( $DATA_DUMPER_NAMES_INSTALLED ) { - warn "Data::Dumper::Names 0.03 not found. Use explain() instead of show()"; + require Carp; + Carp::carp("Data::Dumper::Names 0.03 not found. Use explain() instead of show()"); goto &_explain; } my $diag = shift; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
