commit perl-Class-Tiny for openSUSE:Factory
Hello community, here is the log from the commit of package perl-Class-Tiny for openSUSE:Factory checked in at 2013-12-02 07:26:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2013-11-26 19:24:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Class-Tiny.new/perl-Class-Tiny.changes 2013-12-02 07:26:05.000000000 +0100 @@ -1,0 +2,10 @@ +Fri Nov 29 11:06:39 UTC 2013 - coolo@suse.com + +- updated to 0.014 + [FIXED] + - put back a 'no warnings "once"' line that caused downstream warnings + + [DOCUMENTED] + - expanded comparision to Object::Tiny and Class::Accessor + +------------------------------------------------------------------- Old: ---- Class-Tiny-0.012.tar.gz New: ---- Class-Tiny-0.014.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Class-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.kgTaGn/_old 2013-12-02 07:26:06.000000000 +0100 +++ /var/tmp/diff_new_pack.kgTaGn/_new 2013-12-02 07:26:06.000000000 +0100 @@ -17,7 +17,7 @@ Name: perl-Class-Tiny -Version: 0.012 +Version: 0.014 Release: 0 %define cpan_name Class-Tiny Summary: Minimalist class construction @@ -30,17 +30,6 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.96 -#BuildRequires: perl(Alfa) -#BuildRequires: perl(Baker) -#BuildRequires: perl(Class::Tiny) -#BuildRequires: perl(Delta) -#BuildRequires: perl(Devel::GlobalDestruction) -#BuildRequires: perl(Golf) -#BuildRequires: perl(India) -#BuildRequires: perl(Pod::Wordlist) -#BuildRequires: perl(Test::FailWarnings) -#BuildRequires: perl(Test::Spelling) >= 0.12 -#BuildRequires: perl(TestUtils) %{perl_requires} %description ++++++ Class-Tiny-0.012.tar.gz -> Class-Tiny-0.014.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/Changes new/Class-Tiny-0.014/Changes --- old/Class-Tiny-0.012/Changes 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/Changes 2013-11-28 13:12:20.000000000 +0100 @@ -1,5 +1,17 @@ Revision history for Class-Tiny +0.014 2013-11-28 07:12:14 America/New_York + + [FIXED] + + - put back a 'no warnings "once"' line that caused downstream warnings + +0.013 2013-11-26 12:01:13 America/New_York + + [DOCUMENTED] + + - expanded comparision to Object::Tiny and Class::Accessor + 0.012 2013-11-01 16:36:35 America/New_York [DOCUMENTED] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/META.json new/Class-Tiny-0.014/META.json --- old/Class-Tiny-0.012/META.json 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/META.json 2013-11-28 13:12:20.000000000 +0100 @@ -4,7 +4,7 @@ "David Golden <dagolden@cpan.org>" ], "dynamic_config" : 1, - "generated_by" : "Dist::Zilla version 5.003, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830", "license" : [ "apache_2_0" ], @@ -32,6 +32,12 @@ }, "develop" : { "requires" : { + "Dist::Zilla" : "5.006", + "Dist::Zilla::Plugin::OnlyCorePrereqs" : "0.003", + "Dist::Zilla::Plugin::PerlVersionPrereqs" : "0", + "Dist::Zilla::Plugin::Prereqs" : "0", + "Dist::Zilla::Plugin::RemovePrereqs" : "0", + "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.052", "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", @@ -72,11 +78,11 @@ "provides" : { "Class::Tiny" : { "file" : "lib/Class/Tiny.pm", - "version" : "0.012" + "version" : "0.014" }, "Class::Tiny::Object" : { "file" : "lib/Class/Tiny.pm", - "version" : "0.012" + "version" : "0.014" } }, "release_status" : "stable", @@ -91,9 +97,10 @@ "web" : "https://github.com/dagolden/Class-Tiny" } }, - "version" : "0.012", + "version" : "0.014", "x_authority" : "cpan:DAGOLDEN", "x_contributors" : [ + "Dagfinn Ilmari Manns\u00e5ker <ilmari@ilmari.org>", "Gelu Lupas <gelu@devnull.ro>", "Karen Etheridge <ether@cpan.org>", "Matt S Trout <mstrout@cpan.org>", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/META.yml new/Class-Tiny-0.014/META.yml --- old/Class-Tiny-0.012/META.yml 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/META.yml 2013-11-28 13:12:20.000000000 +0100 @@ -14,7 +14,7 @@ configure_requires: ExtUtils::MakeMaker: 6.17 dynamic_config: 1 -generated_by: 'Dist::Zilla version 5.003, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830' license: apache meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -31,10 +31,10 @@ provides: Class::Tiny: file: lib/Class/Tiny.pm - version: 0.012 + version: 0.014 Class::Tiny::Object: file: lib/Class/Tiny.pm - version: 0.012 + version: 0.014 requires: Carp: 0 perl: 5.008001 @@ -44,9 +44,10 @@ bugtracker: https://github.com/dagolden/Class-Tiny/issues homepage: https://github.com/dagolden/Class-Tiny repository: https://github.com/dagolden/Class-Tiny.git -version: 0.012 +version: 0.014 x_authority: cpan:DAGOLDEN x_contributors: + - 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>' - 'Gelu Lupas <gelu@devnull.ro>' - 'Karen Etheridge <ether@cpan.org>' - 'Matt S Trout <mstrout@cpan.org>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/Makefile.PL new/Class-Tiny-0.014/Makefile.PL --- old/Class-Tiny-0.012/Makefile.PL 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/Makefile.PL 2013-11-28 13:12:20.000000000 +0100 @@ -34,7 +34,7 @@ "lib" => 0, "subs" => 0 }, - "VERSION" => "0.012", + "VERSION" => "0.014", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/README new/Class-Tiny-0.014/README --- old/Class-Tiny-0.012/README 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/README 2013-11-28 13:12:20.000000000 +0100 @@ -2,7 +2,7 @@ Class::Tiny - Minimalist class construction VERSION - version 0.012 + version 0.014 SYNOPSIS In Person.pm: @@ -98,7 +98,7 @@ use Class::Tiny qw/name id/, { title => 'Peon', skills => sub { [] }, - hire_date => sub { $_[0]->_build_hire_date }, + hire_date => sub { $_[0]->_build_hire_date }, }; When subclassing, if multiple accessors of the same name exist in @@ -251,10 +251,31 @@ lacking some features I deemed necessary, and their maintainers have an even more strict philosophy against feature creep than I have. - I looked for something like it on CPAN, but after checking a dozen class - creators I realized I could implement it exactly how I wanted faster - than I could search CPAN for something merely sufficient. Compared to - everything else, this is smaller in implementation and simpler in API. + I also considered Class::Accessor, which has been around a long time and + is heavily used, but it, too, lacked features I wanted and did things in + ways I considered poor design. + + I looked for something else on CPAN, but after checking a dozen class + creators I realized I could implement exactly what I wanted faster than + I could search CPAN for something merely sufficient. + + In general, compared to most things on CPAN (other than Object::Tiny), + Class::Tiny is smaller in implementation and simpler in API. + + Specifically, here is how Class::Tiny ("C::T") compares to Object::Tiny + ("O::T") and Class::Accessor ("C::A"): + + FEATURE C::T O::T C::A + -------------------------------------------------------------- + attributes defined via import yes yes no + read/write accessors yes no yes + lazy attribute defaults yes no no + provides new yes yes yes + provides DESTROY yes no no + new takes either hashref or list yes no (list) no (hash) + new validates arguments yes no no + Moo(se)-like BUILD/DEMOLISH yes no no + no extraneous methods via @ISA yes yes no Why this instead of Moose or Moo? Moose and Moo are both excellent OO frameworks. Moose offers a powerful @@ -267,7 +288,7 @@ By contrast, Class::Tiny has no MOP and has zero non-core dependencies for Perls in the support window. It has far less code, less complexity and no learning curve. If you don't need or can't afford what Moo or - Moose offer, this is a intended to be a reasonable fallback. + Moose offer, this is intended to be a reasonable fallback. That said, Class::Tiny offers Moose-like conventions for things like "BUILD" and "DEMOLISH" for some minimal interoperability and an easier @@ -291,6 +312,8 @@ David Golden <dagolden@cpan.org> CONTRIBUTORS + * Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> + * Gelu Lupas <gelu@devnull.ro> * Karen Etheridge <ether@cpan.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/cpanfile new/Class-Tiny-0.014/cpanfile --- old/Class-Tiny-0.012/cpanfile 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/cpanfile 2013-11-28 13:12:20.000000000 +0100 @@ -25,6 +25,12 @@ }; on 'develop' => sub { + requires "Dist::Zilla" => "5.006"; + requires "Dist::Zilla::Plugin::OnlyCorePrereqs" => "0.003"; + requires "Dist::Zilla::Plugin::PerlVersionPrereqs" => "0"; + requires "Dist::Zilla::Plugin::Prereqs" => "0"; + requires "Dist::Zilla::Plugin::RemovePrereqs" => "0"; + requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.052"; requires "File::Spec" => "0"; requires "File::Temp" => "0"; requires "IO::Handle" => "0"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/lib/Class/Tiny.pm new/Class-Tiny-0.014/lib/Class/Tiny.pm --- old/Class-Tiny-0.012/lib/Class/Tiny.pm 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/lib/Class/Tiny.pm 2013-11-28 13:12:20.000000000 +0100 @@ -2,11 +2,10 @@ use strict; no strict 'refs'; use warnings; -no warnings 'once'; package Class::Tiny; # ABSTRACT: Minimalist class construction -our $VERSION = '0.012'; # VERSION +our $VERSION = '0.014'; # VERSION use Carp (); @@ -79,7 +78,7 @@ package Class::Tiny::Object; # ABSTRACT: Base class for classes built with Class::Tiny -our $VERSION = '0.012'; # VERSION +our $VERSION = '0.014'; # VERSION my ( %LINEAR_ISA_CACHE, %BUILD_CACHE, %DEMOLISH_CACHE, %CAN_CACHE ); @@ -90,6 +89,7 @@ ? [$class] : mro::get_linear_isa($class); for my $s ( @{ $LINEAR_ISA_CACHE{$class} } ) { + no warnings 'once'; # needed to avoid downstream warnings $BUILD_CACHE{$s} = *{"$s\::BUILD"}{CODE}; $DEMOLISH_CACHE{$s} = *{"$s\::DEMOLISH"}{CODE}; } @@ -171,7 +171,7 @@ =head1 VERSION -version 0.012 +version 0.014 =head1 SYNOPSIS @@ -294,7 +294,7 @@ use Class::Tiny qw/name id/, { title => 'Peon', skills => sub { [] }, - hire_date => sub { $_[0]->_build_hire_date }, + hire_date => sub { $_[0]->_build_hire_date }, }; When subclassing, if multiple accessors of the same name exist in different @@ -455,10 +455,31 @@ lacking some features I deemed necessary, and their maintainers have an even more strict philosophy against feature creep than I have. -I looked for something like it on CPAN, but after checking a dozen class -creators I realized I could implement it exactly how I wanted faster than I -could search CPAN for something merely sufficient. Compared to everything -else, this is smaller in implementation and simpler in API. +I also considered L<Class::Accessor>, which has been around a long time and is +heavily used, but it, too, lacked features I wanted and did things in ways I +considered poor design. + +I looked for something else on CPAN, but after checking a dozen class creators +I realized I could implement exactly what I wanted faster than I could search +CPAN for something merely sufficient. + +In general, compared to most things on CPAN (other than Object::Tiny), +Class::Tiny is smaller in implementation and simpler in API. + +Specifically, here is how Class::Tiny ("C::T") compares to Object::Tiny +("O::T") and Class::Accessor ("C::A"): + + FEATURE C::T O::T C::A + -------------------------------------------------------------- + attributes defined via import yes yes no + read/write accessors yes no yes + lazy attribute defaults yes no no + provides new yes yes yes + provides DESTROY yes no no + new takes either hashref or list yes no (list) no (hash) + new validates arguments yes no no + Moo(se)-like BUILD/DEMOLISH yes no no + no extraneous methods via @ISA yes yes no =head2 Why this instead of Moose or Moo? @@ -472,7 +493,7 @@ By contrast, Class::Tiny has no MOP and has B<zero> non-core dependencies for Perls in the L<support window|perlpolicy>. It has far less code, less complexity and no learning curve. If you don't need or can't afford what Moo or -Moose offer, this is a intended to be a reasonable fallback. +Moose offer, this is intended to be a reasonable fallback. That said, Class::Tiny offers Moose-like conventions for things like C<BUILD> and C<DEMOLISH> for some minimal interoperability and an easier upgrade path. @@ -506,6 +527,10 @@ =item * +Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> + +=item * + Gelu Lupas <gelu@devnull.ro> =item * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Tiny-0.012/xt/author/pod-spell.t new/Class-Tiny-0.014/xt/author/pod-spell.t --- old/Class-Tiny-0.012/xt/author/pod-spell.t 2013-11-01 21:36:39.000000000 +0100 +++ new/Class-Tiny-0.014/xt/author/pod-spell.t 2013-11-28 13:12:20.000000000 +0100 @@ -17,6 +17,10 @@ David Golden dagolden +Dagfinn +Ilmari +Mannsåker +ilmari Gelu Lupas gelu -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de