Hello community, here is the log from the commit of package perl-Class-Tiny for openSUSE:Factory checked in at 2016-09-13 22:24:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Class-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Class-Tiny.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Class-Tiny" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Class-Tiny/perl-Class-Tiny.changes 2015-11-12 19:41:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Class-Tiny.new/perl-Class-Tiny.changes 2016-09-13 22:25:43.000000000 +0200 @@ -1,0 +2,17 @@ +Sun Sep 11 05:05:48 UTC 2016 - [email protected] + +- updated to 1.006 + see /usr/share/doc/packages/perl-Class-Tiny/Changes + + 1.006 2016-09-10 14:47:49-04:00 America/New_York + + - No changes since 1.005 + + 1.005 2016-09-06 12:12:06-04:00 America/New_York (TRIAL RELEASE) + + [INTERNAL] + + - Optimize generated accessors (5% to 25% faster depending on + combination of read vs write and default vs no-default). + +------------------------------------------------------------------- Old: ---- Class-Tiny-1.004.tar.gz New: ---- Class-Tiny-1.006.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Class-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.87pZRh/_old 2016-09-13 22:25:44.000000000 +0200 +++ /var/tmp/diff_new_pack.87pZRh/_new 2016-09-13 22:25:44.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Class-Tiny # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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,7 +17,7 @@ Name: perl-Class-Tiny -Version: 1.004 +Version: 1.006 Release: 0 %define cpan_name Class-Tiny Summary: Minimalist class construction @@ -58,7 +58,7 @@ * 'DESTROY' calls 'DEMOLISH' for each class from child to parent Multiple-inheritance is possible, with superclass order determined via -mro::get_linear_isa|mro/Functions. +mro::get_linear_isa. It uses no non-core modules for any recent Perl. On Perls older than v5.10 it requires MRO::Compat. On Perls older than v5.14, it requires ++++++ Class-Tiny-1.004.tar.gz -> Class-Tiny-1.006.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/Changes new/Class-Tiny-1.006/Changes --- old/Class-Tiny-1.004/Changes 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/Changes 2016-09-10 20:47:59.000000000 +0200 @@ -1,5 +1,16 @@ Revision history for Class-Tiny +1.006 2016-09-10 14:47:49-04:00 America/New_York + + - No changes since 1.005 + +1.005 2016-09-06 12:12:06-04:00 America/New_York (TRIAL RELEASE) + + [INTERNAL] + + - Optimize generated accessors (5% to 25% faster depending on + combination of read vs write and default vs no-default). + 1.004 2015-10-30 10:33:59-04:00 America/New_York - No changes since 1.003 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/MANIFEST new/Class-Tiny-1.006/MANIFEST --- old/Class-Tiny-1.004/MANIFEST 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/MANIFEST 2016-09-10 20:47:59.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.041. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.007. CONTRIBUTING.mkdn Changes LICENSE @@ -39,7 +39,7 @@ xt/author/pod-coverage.t xt/author/pod-spell.t xt/author/pod-syntax.t +xt/author/portability.t xt/author/test-version.t xt/release/distmeta.t xt/release/minimum-version.t -xt/release/portability.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/META.json new/Class-Tiny-1.006/META.json --- old/Class-Tiny-1.004/META.json 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/META.json 2016-09-10 20:47:59.000000000 +0200 @@ -4,7 +4,7 @@ "David Golden <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150001", + "generated_by" : "Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150009", "license" : [ "apache_2_0" ], @@ -37,6 +37,7 @@ "Dist::Zilla::Plugin::OnlyCorePrereqs" : "0.003", "Dist::Zilla::Plugin::PerlVersionPrereqs" : "0", "Dist::Zilla::Plugin::Prereqs" : "0", + "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" : "0", "Dist::Zilla::Plugin::RemovePrereqs" : "0", "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072", "English" : "0", @@ -51,6 +52,7 @@ "Test::More" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", + "Test::Portability::Files" : "0", "Test::Spelling" : "0.12", "Test::Version" : "1", "blib" : "1.01" @@ -84,11 +86,11 @@ "provides" : { "Class::Tiny" : { "file" : "lib/Class/Tiny.pm", - "version" : "1.004" + "version" : "1.006" }, "Class::Tiny::Object" : { "file" : "lib/Class/Tiny.pm", - "version" : "1.004" + "version" : "1.006" } }, "release_status" : "stable", @@ -103,15 +105,16 @@ "web" : "https://github.com/dagolden/Class-Tiny" } }, - "version" : "1.004", + "version" : "1.006", "x_authority" : "cpan:DAGOLDEN", "x_contributors" : [ - "Dagfinn Ilmari Mannsåker <[email protected]>", + "Dagfinn Ilmari Manns\u00e5ker <[email protected]>", "David Golden <[email protected]>", "Gelu Lupas <[email protected]>", "Karen Etheridge <[email protected]>", - "Olivier Mengué <[email protected]>", + "Olivier Mengu\u00e9 <[email protected]>", "Toby Inkster <[email protected]>" - ] + ], + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/META.yml new/Class-Tiny-1.006/META.yml --- old/Class-Tiny-1.004/META.yml 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/META.yml 2016-09-10 20:47:59.000000000 +0200 @@ -15,7 +15,7 @@ ExtUtils::MakeMaker: '6.17' perl: '5.006' dynamic_config: 1 -generated_by: 'Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150001' +generated_by: 'Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150009' license: apache meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -32,10 +32,10 @@ provides: Class::Tiny: file: lib/Class/Tiny.pm - version: '1.004' + version: '1.006' Class::Tiny::Object: file: lib/Class/Tiny.pm - version: '1.004' + version: '1.006' requires: Carp: '0' perl: '5.006' @@ -45,7 +45,7 @@ bugtracker: https://github.com/dagolden/Class-Tiny/issues homepage: https://github.com/dagolden/Class-Tiny repository: https://github.com/dagolden/Class-Tiny.git -version: '1.004' +version: '1.006' x_authority: cpan:DAGOLDEN x_contributors: - 'Dagfinn Ilmari Mannsåker <[email protected]>' @@ -54,3 +54,4 @@ - 'Karen Etheridge <[email protected]>' - 'Olivier Mengué <[email protected]>' - 'Toby Inkster <[email protected]>' +x_serialization_backend: 'YAML::Tiny version 1.69' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/Makefile.PL new/Class-Tiny-1.006/Makefile.PL --- old/Class-Tiny-1.004/Makefile.PL 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/Makefile.PL 2016-09-10 20:47:59.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.041. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.007. use strict; use warnings; @@ -30,7 +30,7 @@ "lib" => 0, "subs" => 0 }, - "VERSION" => "1.004", + "VERSION" => "1.006", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/README new/Class-Tiny-1.006/README --- old/Class-Tiny-1.004/README 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/README 2016-09-10 20:47:59.000000000 +0200 @@ -2,7 +2,7 @@ Class::Tiny - Minimalist class construction VERSION - version 1.004 + version 1.006 SYNOPSIS In Person.pm: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/cpanfile new/Class-Tiny-1.006/cpanfile --- old/Class-Tiny-1.004/cpanfile 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/cpanfile 2016-09-10 20:47:59.000000000 +0200 @@ -29,6 +29,7 @@ requires "Dist::Zilla::Plugin::OnlyCorePrereqs" => "0.003"; requires "Dist::Zilla::Plugin::PerlVersionPrereqs" => "0"; requires "Dist::Zilla::Plugin::Prereqs" => "0"; + requires "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" => "0"; requires "Dist::Zilla::Plugin::RemovePrereqs" => "0"; requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072"; requires "English" => "0"; @@ -43,6 +44,7 @@ requires "Test::More" => "0"; requires "Test::Pod" => "1.41"; requires "Test::Pod::Coverage" => "1.08"; + requires "Test::Portability::Files" => "0"; requires "Test::Spelling" => "0.12"; requires "Test::Version" => "1"; requires "blib" => "1.01"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/dist.ini new/Class-Tiny-1.006/dist.ini --- old/Class-Tiny-1.004/dist.ini 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/dist.ini 2016-09-10 20:47:59.000000000 +0200 @@ -13,6 +13,9 @@ stopwords = interoperability stopwords = linearized +[ReleaseStatus::FromVersion] +testing = third_decimal_odd + [RemovePrereqs] remove = Devel::GlobalDestruction remove = MRO::Compat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/lib/Class/Tiny.pm new/Class-Tiny-1.006/lib/Class/Tiny.pm --- old/Class-Tiny-1.004/lib/Class/Tiny.pm 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/lib/Class/Tiny.pm 2016-09-10 20:47:59.000000000 +0200 @@ -6,7 +6,7 @@ package Class::Tiny; # ABSTRACT: Minimalist class construction -our $VERSION = '1.004'; +our $VERSION = '1.006'; use Carp (); @@ -62,18 +62,35 @@ sub __gen_sub_body { my ( $self, $name, $has_default, $default_type ) = @_; - my $sub = "sub $name { if (\@_ == 1) {"; - if ( $has_default && $default_type eq 'CODE' ) { - $sub .= "if ( !exists \$_[0]{$name} ) { \$_[0]{$name} = \$default->(\$_[0]) }"; + return << "HERE"; +sub $name { + return ( + ( \@_ == 1 && exists \$_[0]{$name} ) + ? ( \$_[0]{$name} ) + : ( \$_[0]{$name} = ( \@_ == 2 ) ? \$_[1] : \$default->( \$_[0] ) ) + ); +} +HERE } elsif ($has_default) { - $sub .= "if ( !exists \$_[0]{$name} ) { \$_[0]{$name} = \$default }"; + return << "HERE"; +sub $name { + return ( + ( \@_ == 1 && exists \$_[0]{$name} ) + ? ( \$_[0]{$name} ) + : ( \$_[0]{$name} = ( \@_ == 2 ) ? \$_[1] : \$default ) + ); +} +HERE + } + else { + return << "HERE"; +sub $name { + return \@_ == 1 ? \$_[0]{$name} : ( \$_[0]{$name} = \$_[1] ); +} +HERE } - - $sub .= "return \$_[0]{$name} } else { return \$_[0]{$name}=\$_[1] } }"; - - return $sub; } sub get_all_attributes_for { @@ -98,7 +115,7 @@ package Class::Tiny::Object; # ABSTRACT: Base class for classes built with Class::Tiny -our $VERSION = '1.004'; +our $VERSION = '1.006'; my ( %HAS_BUILDARGS, %BUILD_CACHE, %DEMOLISH_CACHE, %ATTR_CACHE ); @@ -194,7 +211,7 @@ =head1 VERSION -version 1.004 +version 1.006 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/t/00-report-prereqs.dd new/Class-Tiny-1.006/t/00-report-prereqs.dd --- old/Class-Tiny-1.004/t/00-report-prereqs.dd 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/t/00-report-prereqs.dd 2016-09-10 20:47:59.000000000 +0200 @@ -11,6 +11,7 @@ 'Dist::Zilla::Plugin::OnlyCorePrereqs' => '0.003', 'Dist::Zilla::Plugin::PerlVersionPrereqs' => '0', 'Dist::Zilla::Plugin::Prereqs' => '0', + 'Dist::Zilla::Plugin::ReleaseStatus::FromVersion' => '0', 'Dist::Zilla::Plugin::RemovePrereqs' => '0', 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072', 'English' => '0', @@ -25,6 +26,7 @@ 'Test::More' => '0', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08', + 'Test::Portability::Files' => '0', 'Test::Spelling' => '0.12', 'Test::Version' => '1', 'blib' => '1.01' @@ -40,9 +42,9 @@ }, 'test' => { 'recommends' => { - 'CPAN::Meta' => '2.120900', - 'Test::FailWarnings' => '0' - }, + 'CPAN::Meta' => '2.120900', + 'Test::FailWarnings' => '0' + }, 'requires' => { 'Exporter' => '0', 'ExtUtils::MakeMaker' => '0', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/t/00-report-prereqs.t new/Class-Tiny-1.006/t/00-report-prereqs.t --- old/Class-Tiny-1.004/t/00-report-prereqs.t 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/t/00-report-prereqs.t 2016-09-10 20:47:59.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.021 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 use Test::More tests => 1; @@ -78,10 +78,10 @@ # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; -if ( $source && $HAS_CPAN_META ) { - if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { - $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); - } +if ( $source && $HAS_CPAN_META + && (my $meta = eval { CPAN::Meta->load_file($source) } ) +) { + $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { $source = 'static metadata'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/xt/author/pod-spell.t new/Class-Tiny-1.006/xt/author/pod-spell.t --- old/Class-Tiny-1.004/xt/author/pod-spell.t 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/xt/author/pod-spell.t 2016-09-10 20:47:59.000000000 +0200 @@ -2,7 +2,7 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007000 +# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007002 use Test::Spelling 0.12; use Pod::Wordlist; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/xt/author/portability.t new/Class-Tiny-1.006/xt/author/portability.t --- old/Class-Tiny-1.004/xt/author/portability.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Class-Tiny-1.006/xt/author/portability.t 2016-09-10 20:47:59.000000000 +0200 @@ -0,0 +1,10 @@ +use strict; +use warnings; + +use Test::More; + +eval 'use Test::Portability::Files'; +plan skip_all => 'Test::Portability::Files required for testing portability' + if $@; +options(test_one_dot => 0); +run_tests(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/xt/author/test-version.t new/Class-Tiny-1.006/xt/author/test-version.t --- old/Class-Tiny-1.004/xt/author/test-version.t 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/xt/author/test-version.t 2016-09-10 20:47:59.000000000 +0200 @@ -2,7 +2,7 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::Version 1.05 +# generated by Dist::Zilla::Plugin::Test::Version 1.09 use Test::Version; my @imports = qw( version_all_ok ); @@ -17,7 +17,6 @@ push @imports, $params if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); - Test::Version->import(@imports); version_all_ok; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-1.004/xt/release/portability.t new/Class-Tiny-1.006/xt/release/portability.t --- old/Class-Tiny-1.004/xt/release/portability.t 2015-10-30 15:34:03.000000000 +0100 +++ new/Class-Tiny-1.006/xt/release/portability.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#!perl - -use strict; -use warnings; - -use Test::More; - -eval 'use Test::Portability::Files'; -plan skip_all => 'Test::Portability::Files required for testing portability' - if $@; -options(test_one_dot => 0); -run_tests();
