Hello community,
here is the log from the commit of package perl-MooseX-Role-Parameterized for openSUSE:Factory checked in at 2012-03-01 17:25:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooseX-Role-Parameterized (Old)
and /work/SRC/openSUSE:Factory/.perl-MooseX-Role-Parameterized.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooseX-Role-Parameterized", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MooseX-Role-Parameterized/perl-MooseX-Role-Parameterized.changes 2011-12-21 10:02:31.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-MooseX-Role-Parameterized.new/perl-MooseX-Role-Parameterized.changes 2012-03-01 17:25:11.000000000 +0100
@@ -1,0 +2,19 @@
+Mon Feb 27 10:09:25 UTC 2012 - coolo@suse.com
+
+- updated to 1.00
+ * MooseX::Role::Parameterized now depends on Moose 2.0300
+ released 2011-09-23 for its several core improvements, hence the
+ major version number bump.
+ * MXRP now uses the new meta_lookup feature added to Moose 2.0300
+ (specifically for MXRP) to avoid duplicating Moose-0.60-era
+ Moose::Role sugar. This means the error messages you get are
+ better, and there's a lot less ugly code in MXRP.
+ * Remove alias/excludes special case errors. They have long since been
+ replaced in core Moose by -alias and -excludes, and were finally
+ removed in Moose 2.0200.
+ * Expressly forbid using role { } inside role { } (which makes no
+ sense but I suppose you could accidentally trigger it)
+ * Documentation fix from cweyl@alumni.drew.edu
+ https://github.com/sartak/MooseX-Role-Parameterized/pull/5
+
+-------------------------------------------------------------------
Old:
----
MooseX-Role-Parameterized-0.27.tar.gz
New:
----
MooseX-Role-Parameterized-1.00.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooseX-Role-Parameterized.spec ++++++
--- /var/tmp/diff_new_pack.0QHeDY/_old 2012-03-01 17:25:12.000000000 +0100
+++ /var/tmp/diff_new_pack.0QHeDY/_new 2012-03-01 17:25:12.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-Role-Parameterized
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -17,11 +17,11 @@
Name: perl-MooseX-Role-Parameterized
-Version: 0.27
+Version: 1.00
Release: 0
%define cpan_name MooseX-Role-Parameterized
Summary: Roles with composition parameters
-License: GPL-1.0+ or Artistic-1.0
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-Role-Parameterized/
Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz
@@ -30,11 +30,47 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Moose) >= 0.78
+BuildRequires: perl(Moose) >= 2.0300
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.96
-Requires: perl(Moose) >= 0.78
+#BuildRequires: perl(Bar)
+#BuildRequires: perl(Foo)
+#BuildRequires: perl(Foo::Role)
+#BuildRequires: perl(inc::Module::Install)
+#BuildRequires: perl(JSON)
+#BuildRequires: perl(LWP::Simple)
+#BuildRequires: perl(Module::Build)
+#BuildRequires: perl(Module::Install::AutoManifest)
+#BuildRequires: perl(Module::Install::Base)
+#BuildRequires: perl(Module::Install::GithubMeta)
+#BuildRequires: perl(Module::Install::ManifestSkip)
+#BuildRequires: perl(Moose::Exporter)
+#BuildRequires: perl(Moose::Meta::Role)
+#BuildRequires: perl(Moose::Role)
+#BuildRequires: perl(Moose::Util::TypeConstraints)
+#BuildRequires: perl(MooseX::Role::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterizable)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Trait::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Parameters)
+#BuildRequires: perl(MyCompositeRoleA)
+#BuildRequires: perl(MyItem::Role::Equippable)
+#BuildRequires: perl(MyItem::Role::Wearable)
+#BuildRequires: perl(MyPRole)
+#BuildRequires: perl(MyRole)
+#BuildRequires: perl(MyRole::Delegator)
+#BuildRequires: perl(MyRole::LogMethod)
+#BuildRequires: perl(MyRole::Parameterized)
+#BuildRequires: perl(MyRole::Sans::Block)
+#BuildRequires: perl(MyRole::Storage)
+#BuildRequires: perl(MyTrait)
+#BuildRequires: perl(OtherRole)
+#BuildRequires: perl(Parse::CPAN::Meta)
+#BuildRequires: perl(P::Role)
+#BuildRequires: perl(Test::Consumer)
+#BuildRequires: perl(YAML::Tiny)
+Requires: perl(Moose) >= 2.0300
%{perl_requires}
%description
@@ -81,9 +117,6 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes
++++++ MooseX-Role-Parameterized-0.27.tar.gz -> MooseX-Role-Parameterized-1.00.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/Changes new/MooseX-Role-Parameterized-1.00/Changes
--- old/MooseX-Role-Parameterized-0.27/Changes 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/Changes 2012-01-12 18:46:02.000000000 +0100
@@ -1,5 +1,22 @@
Changes for MooseX-Role-Parameterized
+1.00 January 12, 2012
+ * MooseX::Role::Parameterized now depends on Moose 2.0300
+ released 2011-09-23 for its several core improvements, hence the
+ major version number bump.
+
+ * MXRP now uses the new meta_lookup feature added to Moose 2.0300
+ (specifically for MXRP) to avoid duplicating Moose-0.60-era
+ Moose::Role sugar. This means the error messages you get are
+ better, and there's a lot less ugly code in MXRP.
+ * Remove alias/excludes special case errors. They have long since been
+ replaced in core Moose by -alias and -excludes, and were finally
+ removed in Moose 2.0200.
+ * Expressly forbid using role { } inside role { } (which makes no
+ sense but I suppose you could accidentally trigger it)
+ * Documentation fix from cweyl@alumni.drew.edu
+ https://github.com/sartak/MooseX-Role-Parameterized/pull/5
+
0.27 August 22, 2011
* Remove MooseX::Role::Parameterized::Meta::Parameter; instead,
the default for parameters of (is => 'ro') is set by the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/META.yml new/MooseX-Role-Parameterized-1.00/META.yml
--- old/MooseX-Role-Parameterized-0.27/META.yml 2011-08-22 20:58:54.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/META.yml 2012-01-12 18:45:11.000000000 +0100
@@ -21,7 +21,7 @@
- inc
- t
requires:
- Moose: 0.78
+ Moose: 2.0300
perl: 5.8.1
resources:
homepage: http://github.com/sartak/MooseX-Role-Parameterized/tree
@@ -30,4 +30,4 @@
type: git
url: git://github.com/sartak/MooseX-Role-Parameterized.git
web: http://github.com/sartak/MooseX-Role-Parameterized/tree
-version: 0.27
+version: 1.00
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/Makefile.PL new/MooseX-Role-Parameterized-1.00/Makefile.PL
--- old/MooseX-Role-Parameterized-0.27/Makefile.PL 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/Makefile.PL 2011-09-26 20:54:02.000000000 +0200
@@ -9,7 +9,7 @@
all_from 'lib/MooseX/Role/Parameterized.pm';
githubmeta;
-requires 'Moose' => '0.78';
+requires 'Moose' => '2.0300';
test_requires 'Test::Moose';
test_requires 'Test::More' => '0.96';
test_requires 'Test::Fatal';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
--- old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm 2012-01-12 18:38:14.000000000 +0100
@@ -7,7 +7,11 @@
use MooseX::Role::Parameterized::Meta::Role::Parameterized;
use MooseX::Role::Parameterized::Parameters;
-use constant parameterized_role_metaclass => 'MooseX::Role::Parameterized::Meta::Role::Parameterized';
+has parameterized_role_metaclass => (
+ is => 'ro',
+ isa => 'ClassName',
+ default => 'MooseX::Role::Parameterized::Meta::Role::Parameterized',
+);
has parameters_class => (
is => 'ro',
@@ -19,15 +23,11 @@
is => 'rw',
isa => 'Moose::Meta::Class',
lazy => 1,
- default => sub {
- my $self = shift;
-
- $self->parameters_class->meta->create_anon_class(
- superclasses => [$self->parameters_class],
- );
- },
+ builder => '_build_parameters_metaclass',
handles => {
- has_parameter => 'has_attribute',
+ has_parameter => 'has_attribute',
+ add_parameter => 'add_attribute',
+ construct_parameters => 'new_object',
},
);
@@ -37,30 +37,12 @@
predicate => 'has_role_generator',
);
-sub add_parameter {
+sub _build_parameters_metaclass {
my $self = shift;
- my $name = shift;
-
- confess "You must provide a name for the parameter"
- if !defined($name);
- confess "The parameter name ($name) is currently forbidden"
- if $name eq 'alias'
- || $name eq 'excludes';
-
- $self->parameters_metaclass->add_attribute($name => @_);
-}
-
-sub construct_parameters {
- my $self = shift;
- my %args = @_;
-
- for my $name ('alias', 'excludes') {
- confess "The parameter name ($name) is currently forbidden"
- if exists $args{$name};
- }
-
- $self->parameters_metaclass->new_object(\%args);
+ return $self->parameters_class->meta->create_anon_class(
+ superclasses => [$self->parameters_class],
+ );
}
sub generate_role {
@@ -146,14 +128,19 @@
=head1 DESCRIPTION
-This is the metaclass for parameterizable roles, roles that have their
-parameters currently unbound. These are the roles that you use L