diff -Nru libclass-tiny-perl-1.004/Changes libclass-tiny-perl-1.006/Changes --- libclass-tiny-perl-1.004/Changes 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/Changes 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/cpanfile libclass-tiny-perl-1.006/cpanfile --- libclass-tiny-perl-1.004/cpanfile 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/cpanfile 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/debian/changelog libclass-tiny-perl-1.006/debian/changelog --- libclass-tiny-perl-1.004/debian/changelog 2015-10-31 17:04:08.000000000 +0000 +++ libclass-tiny-perl-1.006/debian/changelog 2021-03-20 17:22:53.000000000 +0000 @@ -1,3 +1,29 @@ +libclass-tiny-perl (1.006-1~16.04.sav0) xenial; urgency=medium + + * Backport to Xenial + + -- Rob Savoury Sat, 20 Mar 2021 10:22:53 -0700 + +libclass-tiny-perl (1.006-1) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + + [ Nuno Carvalho ] + * Import upstream version 1.006. + * debian/control: + + update standards version to 3.9.8. + + drop minimum required version per cme suggestion. + + drop libdevel-globaldestruction-perl dependency, not required with + perl >= 5.14. + + -- Nuno Carvalho Wed, 14 Sep 2016 11:02:30 +0100 + libclass-tiny-perl (1.004-1) unstable; urgency=medium * Team upload. diff -Nru libclass-tiny-perl-1.004/debian/control libclass-tiny-perl-1.006/debian/control --- libclass-tiny-perl-1.004/debian/control 2015-10-31 17:04:08.000000000 +0000 +++ libclass-tiny-perl-1.006/debian/control 2016-09-14 10:02:30.000000000 +0000 @@ -5,21 +5,18 @@ Priority: optional Build-Depends: debhelper (>= 9) Build-Depends-Indep: libtest-failwarnings-perl, - perl (>= 5.17.1) | libcpan-meta-perl (>= 2.120900), - perl (>= 5.13.4) | libtest-simple-perl (>= 0.96), - perl (>= 5.14.0) | libdevel-globaldestruction-perl, + perl (>= 5.17.1) | libcpan-meta-perl, perl -Standards-Version: 3.9.6 +Standards-Version: 3.9.8 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libclass-tiny-perl.git -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libclass-tiny-perl.git +Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libclass-tiny-perl.git Testsuite: autopkgtest-pkg-perl Homepage: https://metacpan.org/release/Class-Tiny Package: libclass-tiny-perl Architecture: all Depends: ${misc:Depends}, - ${perl:Depends}, - perl (>= 5.14.0) | libdevel-globaldestruction-perl + ${perl:Depends} Description: minimalist class construction module for Perl Class::Tiny offers a minimalist class construction kit in around 120 lines of code. It uses no non-core modules for any recent Perl, while diff -Nru libclass-tiny-perl-1.004/debian/copyright libclass-tiny-perl-1.006/debian/copyright --- libclass-tiny-perl-1.004/debian/copyright 2015-10-31 17:04:08.000000000 +0000 +++ libclass-tiny-perl-1.006/debian/copyright 2016-09-14 10:02:30.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Class-Tiny Upstream-Contact: David Golden Upstream-Name: Class-Tiny diff -Nru libclass-tiny-perl-1.004/dist.ini libclass-tiny-perl-1.006/dist.ini --- libclass-tiny-perl-1.004/dist.ini 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/dist.ini 2016-09-10 18:47:59.000000000 +0000 @@ -13,6 +13,9 @@ stopwords = interoperability stopwords = linearized +[ReleaseStatus::FromVersion] +testing = third_decimal_odd + [RemovePrereqs] remove = Devel::GlobalDestruction remove = MRO::Compat diff -Nru libclass-tiny-perl-1.004/lib/Class/Tiny.pm libclass-tiny-perl-1.006/lib/Class/Tiny.pm --- libclass-tiny-perl-1.004/lib/Class/Tiny.pm 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/lib/Class/Tiny.pm 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/Makefile.PL libclass-tiny-perl-1.006/Makefile.PL --- libclass-tiny-perl-1.004/Makefile.PL 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/Makefile.PL 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/MANIFEST libclass-tiny-perl-1.006/MANIFEST --- libclass-tiny-perl-1.004/MANIFEST 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/MANIFEST 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/META.json libclass-tiny-perl-1.006/META.json --- libclass-tiny-perl-1.004/META.json 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/META.json 2016-09-10 18:47:59.000000000 +0000 @@ -4,7 +4,7 @@ "David Golden " ], "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 ", + "Dagfinn Ilmari Manns\u00e5ker ", "David Golden ", "Gelu Lupas ", "Karen Etheridge ", - "Olivier Mengué ", + "Olivier Mengu\u00e9 ", "Toby Inkster " - ] + ], + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213" } diff -Nru libclass-tiny-perl-1.004/META.yml libclass-tiny-perl-1.006/META.yml --- libclass-tiny-perl-1.004/META.yml 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/META.yml 2016-09-10 18:47:59.000000000 +0000 @@ -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 ' @@ -54,3 +54,4 @@ - 'Karen Etheridge ' - 'Olivier Mengué ' - 'Toby Inkster ' +x_serialization_backend: 'YAML::Tiny version 1.69' diff -Nru libclass-tiny-perl-1.004/README libclass-tiny-perl-1.006/README --- libclass-tiny-perl-1.004/README 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/README 2016-09-10 18:47:59.000000000 +0000 @@ -2,7 +2,7 @@ Class::Tiny - Minimalist class construction VERSION - version 1.004 + version 1.006 SYNOPSIS In Person.pm: diff -Nru libclass-tiny-perl-1.004/t/00-report-prereqs.dd libclass-tiny-perl-1.006/t/00-report-prereqs.dd --- libclass-tiny-perl-1.004/t/00-report-prereqs.dd 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/t/00-report-prereqs.dd 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/t/00-report-prereqs.t libclass-tiny-perl-1.006/t/00-report-prereqs.t --- libclass-tiny-perl-1.004/t/00-report-prereqs.t 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/t/00-report-prereqs.t 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/xt/author/pod-spell.t libclass-tiny-perl-1.006/xt/author/pod-spell.t --- libclass-tiny-perl-1.004/xt/author/pod-spell.t 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/xt/author/pod-spell.t 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/xt/author/portability.t libclass-tiny-perl-1.006/xt/author/portability.t --- libclass-tiny-perl-1.004/xt/author/portability.t 1970-01-01 00:00:00.000000000 +0000 +++ libclass-tiny-perl-1.006/xt/author/portability.t 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/xt/author/test-version.t libclass-tiny-perl-1.006/xt/author/test-version.t --- libclass-tiny-perl-1.004/xt/author/test-version.t 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/xt/author/test-version.t 2016-09-10 18:47:59.000000000 +0000 @@ -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 -Nru libclass-tiny-perl-1.004/xt/release/portability.t libclass-tiny-perl-1.006/xt/release/portability.t --- libclass-tiny-perl-1.004/xt/release/portability.t 2015-10-30 14:34:03.000000000 +0000 +++ libclass-tiny-perl-1.006/xt/release/portability.t 1970-01-01 00:00:00.000000000 +0000 @@ -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();