diff -Nru libclass-field-perl-0.23/Changes libclass-field-perl-0.24/Changes --- libclass-field-perl-0.23/Changes 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/Changes 2019-02-12 21:55:52.000000000 +0000 @@ -1,3 +1,6 @@ +0.24 Tue Feb 12 13:55:49 PST 2019 + - Apply https://github.com/ingydotnet/class-field-pm/pull/3 @mtmail++ + 0.23 Thu Aug 21 12:06:13 PDT 2014 - Typo fix via PR/1. @wollmers++ @@ -37,4 +40,3 @@ 0.10 Tue Jan 31 00:44:04 PST 2006 - Maiden voyage - diff -Nru libclass-field-perl-0.23/CONTRIBUTING libclass-field-perl-0.24/CONTRIBUTING --- libclass-field-perl-0.23/CONTRIBUTING 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/CONTRIBUTING 2019-02-12 21:55:52.000000000 +0000 @@ -9,7 +9,7 @@ GitHub ------ -The code for this Project is hosted at GitHub. The repository is: +The code for this Project is hosted at GitHub. The URL is: https://github.com/ingydotnet/class-field-pm @@ -36,7 +36,7 @@ This Project uses Zilla::Dist to prepare it for publishing to CPAN. Read: - https://metacpan.org/pod/distribution/Zilla-Dist/lib/Zilla/Dist/Contributing.pod + https://metacpan.org/pod/Zilla::Dist::Contributing for up-to-date instructions on what contributors like yourself need to know to use it. @@ -51,5 +51,10 @@ Join the channel. Join the team! - Thanks in advance, Ingy döt Net + Thanks in advance, + + + + +# This file generated by Zilla-Dist-0.0.203 diff -Nru libclass-field-perl-0.23/debian/changelog libclass-field-perl-0.24/debian/changelog --- libclass-field-perl-0.23/debian/changelog 2018-01-14 17:16:11.000000000 +0000 +++ libclass-field-perl-0.24/debian/changelog 2019-02-13 19:11:05.000000000 +0000 @@ -1,3 +1,17 @@ +libclass-field-perl (0.24-1) unstable; urgency=medium + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ gregor herrmann ] + * Add debian/upstream/metadata. + * Import upstream version 0.24. + * Update years of upstream and packaging copyright. + * Declare compliance with Debian Policy 4.3.0. + * Bump debhelper compatibility level to 11. + + -- gregor herrmann Wed, 13 Feb 2019 20:11:05 +0100 + libclass-field-perl (0.23-1) unstable; urgency=medium * Team upload. diff -Nru libclass-field-perl-0.23/debian/compat libclass-field-perl-0.24/debian/compat --- libclass-field-perl-0.23/debian/compat 2018-01-14 17:15:10.000000000 +0000 +++ libclass-field-perl-0.24/debian/compat 2019-02-13 19:11:05.000000000 +0000 @@ -1 +1 @@ -10 +11 diff -Nru libclass-field-perl-0.23/debian/control libclass-field-perl-0.24/debian/control --- libclass-field-perl-0.23/debian/control 2018-01-14 17:15:16.000000000 +0000 +++ libclass-field-perl-0.24/debian/control 2019-02-13 19:11:05.000000000 +0000 @@ -4,11 +4,11 @@ Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional -Build-Depends: debhelper (>= 10) +Build-Depends: debhelper (>= 11) Build-Depends-Indep: perl -Standards-Version: 4.1.1 -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libclass-field-perl.git -Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libclass-field-perl.git +Standards-Version: 4.3.0 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libclass-field-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libclass-field-perl.git Homepage: https://metacpan.org/release/Class-Field Package: libclass-field-perl diff -Nru libclass-field-perl-0.23/debian/copyright libclass-field-perl-0.24/debian/copyright --- libclass-field-perl-0.23/debian/copyright 2018-01-14 17:12:14.000000000 +0000 +++ libclass-field-perl-0.24/debian/copyright 2019-02-13 19:11:05.000000000 +0000 @@ -4,12 +4,12 @@ Upstream-Name: Class-Field Files: * -Copyright: 2006-2014, Ingy döt Net +Copyright: 2006-2019, Ingy döt Net License: Artistic or GPL-1+ Files: debian/* Copyright: 2007-2009, Christoph Berg - 2014, gregor herrmann + 2014-2019, gregor herrmann License: Artistic or GPL-1+ License: Artistic diff -Nru libclass-field-perl-0.23/debian/upstream/metadata libclass-field-perl-0.24/debian/upstream/metadata --- libclass-field-perl-0.23/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ libclass-field-perl-0.24/debian/upstream/metadata 2019-02-13 19:11:05.000000000 +0000 @@ -0,0 +1,7 @@ +--- +Archive: CPAN +Bug-Database: https://github.com/ingydotnet/class-field-pm/issues +Contact: Ingy döt Net +Name: Class-Field +Repository: https://github.com/ingydotnet/class-field-pm.git +Repository-Browse: https://github.com/ingydotnet/class-field-pm diff -Nru libclass-field-perl-0.23/lib/Class/Field.pm libclass-field-perl-0.24/lib/Class/Field.pm --- libclass-field-perl-0.23/lib/Class/Field.pm 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/lib/Class/Field.pm 2019-02-12 21:55:52.000000000 +0000 @@ -1,6 +1,6 @@ use strict; use warnings; package Class::Field; -our $VERSION = '0.23'; +our $VERSION = '0.24'; use base 'Exporter'; @@ -55,8 +55,11 @@ my $code = sprintf $code{sub_start}, $package, $field; if ($args->{-init}) { - my $fragment = $args->{-weak} ? $code{weak_init} : $code{init}; - $code .= sprintf $fragment, $field, $args->{-init}, ($field) x 4; + if ($args->{-weak}) { + $code .= sprintf $code{weak_init}, $field, $args->{-init}, ($field) x 4; + } else { + $code .= sprintf $code{init}, $field, $args->{-init}, $field; + } } $code .= sprintf $code{set_default}, $field, $default_string, $field if defined $default; diff -Nru libclass-field-perl-0.23/lib/Class/Field.pod libclass-field-perl-0.24/lib/Class/Field.pod --- libclass-field-perl-0.23/lib/Class/Field.pod 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/lib/Class/Field.pod 2019-02-12 21:55:52.000000000 +0000 @@ -1,7 +1,7 @@ =pod =for comment -DO NOT EDIT. This Pod was generated by Swim. +DO NOT EDIT. This Pod was generated by Swim v0.1.46. See http://github.com/ingydotnet/swim-pm#readme =encoding utf8 @@ -10,9 +10,9 @@ Class::Field - Class Field Accessor Generator -=for html -class-field-pm -class-field-pm +=head1 VERSION + +This document describes L version B<0.24>. =head1 SYNOPSIS @@ -77,11 +77,11 @@ =head1 AUTHOR -ingy döt Net +Ingy döt Net -=head1 COPYRIGHT +=head1 COPYRIGHT AND LICENSE -Copyright 2006-2014. Ingy döt Net. +Copyright 2006-2019. Ingy döt Net. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libclass-field-perl-0.23/LICENSE libclass-field-perl-0.24/LICENSE --- libclass-field-perl-0.23/LICENSE 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/LICENSE 2019-02-12 21:55:52.000000000 +0000 @@ -1,4 +1,4 @@ -This software is copyright (c) 2014 by Ingy döt Net. +This software is copyright (c) 2019 by Ingy döt Net. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2014 by Ingy döt Net. +This software is Copyright (c) 2019 by Ingy döt Net. This is free software, licensed under: @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2014 by Ingy döt Net. +This software is Copyright (c) 2019 by Ingy döt Net. This is free software, licensed under: diff -Nru libclass-field-perl-0.23/Makefile.PL libclass-field-perl-0.24/Makefile.PL --- libclass-field-perl-0.23/Makefile.PL 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/Makefile.PL 2019-02-12 21:55:52.000000000 +0000 @@ -1,26 +1,23 @@ - -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012. use strict; use warnings; use 5.008001; -use ExtUtils::MakeMaker 6.30; - - +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Class Field Accessor Generator", "AUTHOR" => "Ingy d\x{f6}t Net ", "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Class-Field", - "EXE_FILES" => [], "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.008001", "NAME" => "Class::Field", "PREREQ_PM" => {}, - "VERSION" => "0.23", + "VERSION" => "0.24", "test" => { "TESTS" => "t/*.t" } @@ -40,6 +37,3 @@ unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); - - - diff -Nru libclass-field-perl-0.23/MANIFEST libclass-field-perl-0.24/MANIFEST --- libclass-field-perl-0.23/MANIFEST 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/MANIFEST 2019-02-12 21:55:52.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. CONTRIBUTING Changes LICENSE @@ -12,6 +12,6 @@ t/000-compile-modules.t t/TestFieldBase.pm t/anon.t +t/author-pod-syntax.t t/const.t t/field.t -t/release-pod-syntax.t diff -Nru libclass-field-perl-0.23/META.json libclass-field-perl-0.24/META.json --- libclass-field-perl-0.23/META.json 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/META.json 2019-02-12 21:55:52.000000000 +0000 @@ -1,30 +1,30 @@ { "abstract" : "Class Field Accessor Generator", "author" : [ - "Ingy döt Net " + "Ingy d\u00f6t Net " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Class-Field", "no_index" : { "directory" : [ + "example", "inc", "t", - "xt", - "example" + "xt" ] }, "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { @@ -50,6 +50,8 @@ "web" : "https://github.com/ingydotnet/class-field-pm" } }, - "version" : "0.23" + "version" : "0.24", + "x_generated_by_perl" : "v5.28.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.06" } diff -Nru libclass-field-perl-0.23/META.yml libclass-field-perl-0.24/META.yml --- libclass-field-perl-0.23/META.yml 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/META.yml 2019-02-12 21:55:52.000000000 +0000 @@ -4,9 +4,9 @@ - 'Ingy döt Net ' build_requires: {} configure_requires: - ExtUtils::MakeMaker: '6.30' + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -14,14 +14,16 @@ name: Class-Field no_index: directory: + - example - inc - t - xt - - example requires: perl: v5.8.1 resources: bugtracker: https://github.com/ingydotnet/class-field-pm/issues homepage: https://github.com/ingydotnet/class-field-pm repository: https://github.com/ingydotnet/class-field-pm.git -version: '0.23' +version: '0.24' +x_generated_by_perl: v5.28.0 +x_serialization_backend: 'YAML::Tiny version 1.73' diff -Nru libclass-field-perl-0.23/README libclass-field-perl-0.24/README --- libclass-field-perl-0.23/README 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/README 2019-02-12 21:55:52.000000000 +0000 @@ -1,10 +1,16 @@ NAME + Class::Field - Class Field Accessor Generator +VERSION + + This document describes Class::Field version 0.24. + SYNOPSIS + package Thing; use Class::Field qw'field const'; - + field 'this'; field 'list' => []; field 'map' => {}; @@ -13,54 +19,61 @@ const 'answer' => 42; DESCRIPTION - Class::Field exports two subroutines, "field" and "const". These - functions are used to declare fields and constants in your class. + + Class::Field exports two subroutines, field and const. These functions + are used to declare fields and constants in your class. Class::Field generates custom code for each accessor that is optimized for speed. FUNCTIONS - "field" - Defines accessor methods for a field of your class: - package Example; - use base 'Parent'; - use Class::Field qw'field const'; - - field 'foo'; - field bar => []; - - sub lalala { - my $self = shift; - $self->foo(42); - push @{$self->{bar}}, $self->foo; - } - - The first parameter passed to "field" is the name of the attribute - being defined. Accessors can be given an optional default value. - This value will be returned if no value for the field has been set - in the object. - - "const" - const bar => 42; - - The "const" function is similar to except that it is - immutable. It also does not store data in the object. You probably - always want to give a "const" a default value, otherwise the - generated method will be somewhat useless. + field + + Defines accessor methods for a field of your class: + + package Example; + use base 'Parent'; + use Class::Field qw'field const'; + + field 'foo'; + field bar => []; + + sub lalala { + my $self = shift; + $self->foo(42); + push @{$self->{bar}}, $self->foo; + } + + The first parameter passed to field is the name of the attribute + being defined. Accessors can be given an optional default value. This + value will be returned if no value for the field has been set in the + object. + + const + + const bar => 42; + + The const function is similar to except that it is immutable. + It also does not store data in the object. You probably always want + to give a const a default value, otherwise the generated method will + be somewhat useless. NOTE + This code was taken directly out the Spiffy module for those people who just want this functionality without using the rest of Spiffy. AUTHOR - ingy döt Net -COPYRIGHT - Copyright 2006-2014. Ingy döt Net. + Ingy döt Net + +COPYRIGHT AND LICENSE + + Copyright 2006-2019. Ingy döt Net. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. - See + See http://www.perl.com/perl/misc/Artistic.html diff -Nru libclass-field-perl-0.23/t/000-compile-modules.t libclass-field-perl-0.24/t/000-compile-modules.t --- libclass-field-perl-0.23/t/000-compile-modules.t 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/t/000-compile-modules.t 2019-02-12 21:55:52.000000000 +0000 @@ -9,6 +9,8 @@ use_ok $_; } +$ENV{PERL_ZILD_TEST_000_COMPILE_MODULES} = 1; + find { wanted => \&test, no_chdir => 1, diff -Nru libclass-field-perl-0.23/t/author-pod-syntax.t libclass-field-perl-0.24/t/author-pod-syntax.t --- libclass-field-perl-0.23/t/author-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ libclass-field-perl-0.24/t/author-pod-syntax.t 2019-02-12 21:55:52.000000000 +0000 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + print qq{1..0 # SKIP these tests are for testing by the author\n}; + exit + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -Nru libclass-field-perl-0.23/t/release-pod-syntax.t libclass-field-perl-0.24/t/release-pod-syntax.t --- libclass-field-perl-0.23/t/release-pod-syntax.t 2014-08-21 19:06:20.000000000 +0000 +++ libclass-field-perl-0.24/t/release-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; -use Test::Pod 1.41; - -all_pod_files_ok();