Hello community,
here is the log from the commit of package perl-MooseX-ClassAttribute for
openSUSE:Factory checked in at 2013-06-13 18:15:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooseX-ClassAttribute (Old)
and /work/SRC/openSUSE:Factory/.perl-MooseX-ClassAttribute.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooseX-ClassAttribute"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-MooseX-ClassAttribute/perl-MooseX-ClassAttribute.changes
2012-01-04 07:27:12.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-MooseX-ClassAttribute.new/perl-MooseX-ClassAttribute.changes
2013-06-13 18:15:37.000000000 +0200
@@ -1,0 +2,8 @@
+Wed Jun 5 18:47:35 UTC 2013 - [email protected]
+
+- updated to 0.27
+ - The latest Moose release (2.08) broke this module. This release fixes
+ MooseX::ClassAttribute to work with both new and old Mooses. Reported by
+ Jonathan Stowe. RT #84263.
+
+-------------------------------------------------------------------
Old:
----
MooseX-ClassAttribute-0.26.tar.gz
New:
----
MooseX-ClassAttribute-0.27.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooseX-ClassAttribute.spec ++++++
--- /var/tmp/diff_new_pack.Z7dGNZ/_old 2013-06-13 18:15:37.000000000 +0200
+++ /var/tmp/diff_new_pack.Z7dGNZ/_new 2013-06-13 18:15:37.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-ClassAttribute
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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
@@ -15,8 +15,9 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+
Name: perl-MooseX-ClassAttribute
-Version: 0.26
+Version: 0.27
Release: 0
%define cpan_name MooseX-ClassAttribute
Summary: Declare class attributes Moose-style
@@ -28,19 +29,19 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Moose) >= 1.23
+BuildRequires: perl(List::MoreUtils)
+BuildRequires: perl(Moose) >= 2.00
+BuildRequires: perl(Moose::Exporter)
+BuildRequires: perl(Moose::Meta::Role::Attribute)
+BuildRequires: perl(Moose::Role)
+BuildRequires: perl(Moose::Util)
+BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires) >= 0.05
BuildRequires: perl(namespace::autoclean) >= 0.11
BuildRequires: perl(namespace::clean) >= 0.20
#BuildRequires: perl(HasClassAttribute)
-#BuildRequires: perl(List::MoreUtils)
-#BuildRequires: perl(Moose::Exporter)
-#BuildRequires: perl(Moose::Meta::Role::Attribute)
-#BuildRequires: perl(Moose::Role)
-#BuildRequires: perl(Moose::Util)
-#BuildRequires: perl(Moose::Util::MetaRole)
#BuildRequires: perl(MooseX::AttributeHelpers)
#BuildRequires: perl(MooseX::ClassAttribute)
#BuildRequires: perl(MooseX::ClassAttribute::Meta::Role::Attribute)
@@ -61,7 +62,13 @@
#BuildRequires: perl(RoleHCA)
#BuildRequires: perl(RoleWithRoleHCA)
#BuildRequires: perl(SharedTests)
-Requires: perl(Moose) >= 1.23
+Requires: perl(List::MoreUtils)
+Requires: perl(Moose) >= 2.00
+Requires: perl(Moose::Exporter)
+Requires: perl(Moose::Meta::Role::Attribute)
+Requires: perl(Moose::Role)
+Requires: perl(Moose::Util)
+Requires: perl(Moose::Util::MetaRole)
Requires: perl(namespace::autoclean) >= 0.11
Requires: perl(namespace::clean) >= 0.20
%{perl_requires}
++++++ MooseX-ClassAttribute-0.26.tar.gz -> MooseX-ClassAttribute-0.27.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/Changes
new/MooseX-ClassAttribute-0.27/Changes
--- old/MooseX-ClassAttribute-0.26/Changes 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/Changes 2013-03-28 17:13:04.000000000
+0100
@@ -1,3 +1,10 @@
+0.27 2013-03-28
+
+- The latest Moose release (2.08) broke this module. This release fixes
+ MooseX::ClassAttribute to work with both new and old Mooses. Reported by
+ Jonathan Stowe. RT #84263.
+
+
0.26 2011-06-06
- The default() method for class attributes always returned a value, even if
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/LICENSE
new/MooseX-ClassAttribute-0.27/LICENSE
--- old/MooseX-ClassAttribute-0.26/LICENSE 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/LICENSE 2013-03-28 17:13:04.000000000
+0100
@@ -1,4 +1,4 @@
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/MANIFEST
new/MooseX-ClassAttribute-0.27/MANIFEST
--- old/MooseX-ClassAttribute-0.26/MANIFEST 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/MANIFEST 2013-03-28 17:13:04.000000000
+0100
@@ -28,10 +28,13 @@
t/09-bare-native-traits.t
t/10-strict-role-composition.t
t/11-moose-exporter.t
+t/12-with-initializer.t
t/lib/SharedTests.pm
t/release-cpan-changes.t
t/release-eol.t
t/release-no-tabs.t
t/release-pod-coverage.t
+t/release-pod-linkcheck.t
+t/release-pod-no404s.t
t/release-pod-spell.t
t/release-pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/META.json
new/MooseX-ClassAttribute-0.27/META.json
--- old/MooseX-ClassAttribute-0.26/META.json 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/META.json 2013-03-28 17:13:04.000000000
+0100
@@ -4,7 +4,7 @@
"Dave Rolsky <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.200007, CPAN::Meta::Converter
version 2.110440",
+ "generated_by" : "Dist::Zilla version 4.300031, CPAN::Meta::Converter
version 2.120921",
"license" : [
"artistic_2"
],
@@ -19,19 +19,33 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41"
+ }
+ },
"runtime" : {
"requires" : {
- "Moose" : "1.23",
+ "List::MoreUtils" : "0",
+ "Moose" : "2.00",
+ "Moose::Exporter" : "0",
+ "Moose::Meta::Role::Attribute" : "0",
+ "Moose::Role" : "0",
+ "Moose::Util" : "0",
+ "Moose::Util::MetaRole" : "0",
+ "Scalar::Util" : "0",
"namespace::autoclean" : "0.11",
- "namespace::clean" : "0.20"
+ "namespace::clean" : "0.20",
+ "strict" : "0",
+ "warnings" : "0"
}
},
"test" : {
"requires" : {
- "Scalar::Util" : 0,
- "Test::Fatal" : 0,
+ "Test::Fatal" : "0",
"Test::More" : "0.88",
- "Test::Requires" : "0.05"
+ "Test::Requires" : "0.05",
+ "vars" : "0"
}
}
},
@@ -47,6 +61,6 @@
"web" :
"http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/MooseX-ClassAttribute.git;a=summary"
}
},
- "version" : "0.26"
+ "version" : "0.27"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/META.yml
new/MooseX-ClassAttribute-0.27/META.yml
--- old/MooseX-ClassAttribute-0.26/META.yml 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/META.yml 2013-03-28 17:13:04.000000000
+0100
@@ -3,24 +3,33 @@
author:
- 'Dave Rolsky <[email protected]>'
build_requires:
- Scalar::Util: 0
Test::Fatal: 0
Test::More: 0.88
Test::Requires: 0.05
+ vars: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200007, CPAN::Meta::Converter version
2.110440'
+generated_by: 'Dist::Zilla version 4.300031, CPAN::Meta::Converter version
2.120921'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: MooseX-ClassAttribute
requires:
- Moose: 1.23
+ List::MoreUtils: 0
+ Moose: 2.00
+ Moose::Exporter: 0
+ Moose::Meta::Role::Attribute: 0
+ Moose::Role: 0
+ Moose::Util: 0
+ Moose::Util::MetaRole: 0
+ Scalar::Util: 0
namespace::autoclean: 0.11
namespace::clean: 0.20
+ strict: 0
+ warnings: 0
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-ClassAttribute
repository: git://git.moose.perl.org/MooseX-ClassAttribute.git
-version: 0.26
+version: 0.27
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/Makefile.PL
new/MooseX-ClassAttribute-0.27/Makefile.PL
--- old/MooseX-ClassAttribute-0.26/Makefile.PL 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/Makefile.PL 2013-03-28 17:13:04.000000000
+0100
@@ -9,29 +9,38 @@
my %WriteMakefileArgs = (
- 'ABSTRACT' => 'Declare class attributes Moose-style',
- 'AUTHOR' => 'Dave Rolsky <[email protected]>',
- 'BUILD_REQUIRES' => {
- 'Scalar::Util' => '0',
- 'Test::Fatal' => '0',
- 'Test::More' => '0.88',
- 'Test::Requires' => '0.05'
+ "ABSTRACT" => "Declare class attributes Moose-style",
+ "AUTHOR" => "Dave Rolsky <autarch\@urth.org>",
+ "BUILD_REQUIRES" => {
+ "Test::Fatal" => 0,
+ "Test::More" => "0.88",
+ "Test::Requires" => "0.05",
+ "vars" => 0
},
- 'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.30'
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
},
- 'DISTNAME' => 'MooseX-ClassAttribute',
- 'EXE_FILES' => [],
- 'LICENSE' => 'artistic_2',
- 'NAME' => 'MooseX::ClassAttribute',
- 'PREREQ_PM' => {
- 'Moose' => '1.23',
- 'namespace::autoclean' => '0.11',
- 'namespace::clean' => '0.20'
+ "DISTNAME" => "MooseX-ClassAttribute",
+ "EXE_FILES" => [],
+ "LICENSE" => "artistic_2",
+ "NAME" => "MooseX::ClassAttribute",
+ "PREREQ_PM" => {
+ "List::MoreUtils" => 0,
+ "Moose" => "2.00",
+ "Moose::Exporter" => 0,
+ "Moose::Meta::Role::Attribute" => 0,
+ "Moose::Role" => 0,
+ "Moose::Util" => 0,
+ "Moose::Util::MetaRole" => 0,
+ "Scalar::Util" => 0,
+ "namespace::autoclean" => "0.11",
+ "namespace::clean" => "0.20",
+ "strict" => 0,
+ "warnings" => 0
},
- 'VERSION' => '0.26',
- 'test' => {
- 'TESTS' => 't/*.t'
+ "VERSION" => "0.27",
+ "test" => {
+ "TESTS" => "t/*.t"
}
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/README
new/MooseX-ClassAttribute-0.27/README
--- old/MooseX-ClassAttribute-0.26/README 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/README 2013-03-28 17:13:04.000000000
+0100
@@ -1,11 +1,11 @@
This archive contains the distribution MooseX-ClassAttribute,
-version 0.26:
+version 0.27:
Declare class attributes Moose-style
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/dist.ini
new/MooseX-ClassAttribute-0.27/dist.ini
--- old/MooseX-ClassAttribute-0.26/dist.ini 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/dist.ini 2013-03-28 17:13:04.000000000
+0100
@@ -3,7 +3,7 @@
license = Artistic_2_0
copyright_holder = Dave Rolsky
-version = 0.26
+version = 0.27
[NextRelease]
format = %-6v %{yyyy-MM-dd}d
@@ -24,22 +24,20 @@
[PkgVersion]
-[PodSyntaxTests]
-[NoTabsTests]
[EOLTests]
+[NoTabsTests]
+[PodSyntaxTests]
[Test::CPAN::Changes]
+[Test::Pod::LinkCheck]
+[Test::Pod::No404s]
-[CheckChangeLog]
+[AutoPrereqs]
+skip = HasClassAttribute
+skip = MooseX::AttributeHelpers
+skip = MooseX::Role::Parameterized
+skip = MooseX::Role::Strict
+skip = ^Role
-[Prereqs]
-Moose = 1.23
-namespace::autoclean = 0.11
-namespace::clean = 0.20
-
-[Prereqs / TestRequires]
-Test::Fatal = 0
-Test::More = 0.88
-Test::Requires = 0.05
-Scalar::Util = 0
+[CheckPrereqsIndexed]
[@Git]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Meta/Role/Attribute.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Meta/Role/Attribute.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Meta/Role/Attribute.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Meta/Role/Attribute.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Meta::Role::Attribute;
-BEGIN {
- $MooseX::ClassAttribute::Meta::Role::Attribute::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Meta::Role::Attribute::VERSION = '0.27';
}
use strict;
@@ -28,7 +28,7 @@
# ABSTRACT: An attribute metaclass for class attributes in roles
-
+__END__
=pod
@@ -38,7 +38,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -55,14 +55,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application/ToClass.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application/ToClass.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application/ToClass.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application/ToClass.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Application::ToClass;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Application::ToClass::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Application::ToClass::VERSION = '0.27';
}
use strict;
@@ -12,7 +12,7 @@
with 'MooseX::ClassAttribute::Trait::Application';
around apply => sub {
- my $orig = shift;
+ my $orig = shift;
my $self = shift;
my $role = shift;
my $class = shift;
@@ -52,7 +52,7 @@
# ABSTRACT: A trait that supports applying class attributes to classes
-
+__END__
=pod
@@ -62,7 +62,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -79,14 +79,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application/ToRole.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application/ToRole.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application/ToRole.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application/ToRole.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Application::ToRole;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Application::ToRole::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Application::ToRole::VERSION = '0.27';
}
use strict;
@@ -62,7 +62,7 @@
# ABSTRACT: A trait that supports applying class attributes to roles
-
+__END__
=pod
@@ -72,7 +72,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -89,14 +89,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Application.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Application.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Application;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Application::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Application::VERSION = '0.27';
}
use strict;
@@ -17,7 +17,7 @@
# ABSTRACT: A trait that supports role application for roles with class
attributes
-
+__END__
=pod
@@ -27,7 +27,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -44,14 +44,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Attribute.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Attribute.pm
--- old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Attribute.pm
2011-06-06 07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Attribute.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Attribute;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Attribute::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Attribute::VERSION = '0.27';
}
use strict;
@@ -45,8 +45,10 @@
my $metaclass = shift;
if ( $self->has_default() ) {
- $self->set_value( undef,
- $self->default( $self->associated_class() ) );
+ $self->set_value(
+ undef,
+ $self->default( $self->associated_class() )
+ );
}
elsif ( $self->has_builder() ) {
$self->set_value( undef, $self->_call_builder( $metaclass->name() ) );
@@ -137,8 +139,10 @@
my $code
= $meta->_inline_set_class_slot_value( $self->slots(), $value )
. ";";
- $code
- .= $meta->_inline_weaken_class_slot_value( $self->slots(), $value )
+ $code .= $meta->_inline_weaken_class_slot_value(
+ $self->slots(),
+ $value
+ )
. " if ref $value;"
if $self->is_weak_ref();
@@ -217,7 +221,7 @@
# ABSTRACT: A trait for class attributes
-
+__END__
=pod
@@ -227,7 +231,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -249,14 +253,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Class.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Class.pm
--- old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Class.pm
2011-06-06 07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Class.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Class;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Class::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Class::VERSION = '0.27';
}
use strict;
@@ -62,7 +62,7 @@
}
sub _attach_class_attribute {
- my ($self, $attribute) = @_;
+ my ( $self, $attribute ) = @_;
$attribute->attach_to_class($self);
}
@@ -129,8 +129,7 @@
sub get_all_class_attributes {
my $self = shift;
- my %attrs
- = map {
+ my %attrs = map {
my $meta = Class::MOP::class_of($_);
$meta && $meta->can('_class_attribute_map')
? %{ $meta->_class_attribute_map() }
@@ -159,7 +158,7 @@
return $meta->get_class_attribute($name)
if $meta->can('has_class_attribute')
- && $meta->has_class_attribute($name);
+ && $meta->has_class_attribute($name);
}
return;
@@ -230,7 +229,7 @@
# ABSTRACT: A trait for classes with class attributes
-
+__END__
=pod
@@ -240,7 +239,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 SYNOPSIS
@@ -315,14 +314,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Mixin/HasClassAttributes.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Mixin/HasClassAttributes.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Mixin/HasClassAttributes.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Mixin/HasClassAttributes.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Mixin::HasClassAttributes;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Mixin::HasClassAttributes::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Mixin::HasClassAttributes::VERSION = '0.27';
}
use strict;
@@ -79,7 +79,7 @@
# ABSTRACT: A mixin trait for things which have class attributes
-
+__END__
=pod
@@ -89,7 +89,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -109,14 +109,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Role/Composite.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Role/Composite.pm
---
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Role/Composite.pm
2011-06-06 07:54:16.000000000 +0200
+++
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Role/Composite.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Role::Composite;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Role::Composite::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Role::Composite::VERSION = '0.27';
}
use strict;
@@ -77,7 +77,7 @@
# ABSTRACT: A trait that supports applying multiple roles at once
-
+__END__
=pod
@@ -87,7 +87,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 DESCRIPTION
@@ -104,14 +104,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Role.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Role.pm
--- old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute/Trait/Role.pm
2011-06-06 07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute/Trait/Role.pm
2013-03-28 17:13:04.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::ClassAttribute::Trait::Role;
-BEGIN {
- $MooseX::ClassAttribute::Trait::Role::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::Trait::Role::VERSION = '0.27';
}
use strict;
@@ -42,7 +42,7 @@
# ABSTRACT: A trait for roles with class attributes
-
+__END__
=pod
@@ -52,7 +52,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 SYNOPSIS
@@ -101,14 +101,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute.pm
new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute.pm
--- old/MooseX-ClassAttribute-0.26/lib/MooseX/ClassAttribute.pm 2011-06-06
07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/lib/MooseX/ClassAttribute.pm 2013-03-28
17:13:04.000000000 +0100
@@ -1,12 +1,17 @@
package MooseX::ClassAttribute;
-BEGIN {
- $MooseX::ClassAttribute::VERSION = '0.26';
+{
+ $MooseX::ClassAttribute::VERSION = '0.27';
}
use strict;
use warnings;
-use Moose 1.23 ();
+# This module doesn't really need these pragmas - this is just for the benefit
+# of prereq scanning.
+use namespace::clean 0.20 ();
+use namespace::autoclean 0.11 ();
+
+use Moose 2.00 ();
use Moose::Exporter;
use Moose::Util;
use MooseX::ClassAttribute::Trait::Class;
@@ -29,21 +34,29 @@
);
sub class_has {
- my $meta = shift;
- my $name = shift;
+ my $meta = shift;
+ my $name = shift;
my $attrs = ref $name eq 'ARRAY' ? $name : [$name];
- my %options = ( definition_context => Moose::Util::_caller_info(), @_ );
+ my %options = ( definition_context => _caller_info(), @_ );
$meta->add_class_attribute( $_, %options ) for @{$attrs};
}
+# Copied from Moose::Util in 2.06
+sub _caller_info {
+ my $level = @_ ? ( $_[0] + 1 ) : 2;
+ my %info;
+ @info{qw(package file line)} = caller($level);
+ return \%info;
+}
+
1;
# ABSTRACT: Declare class attributes Moose-style
-
+__END__
=pod
@@ -53,7 +66,7 @@
=head1 VERSION
-version 0.26
+version 0.27
=head1 SYNOPSIS
@@ -157,14 +170,10 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
-
-
-__END__
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/01-basic.t
new/MooseX-ClassAttribute-0.27/t/01-basic.t
--- old/MooseX-ClassAttribute-0.26/t/01-basic.t 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/t/01-basic.t 2013-03-28 17:13:04.000000000
+0100
@@ -4,7 +4,7 @@
use lib 't/lib';
use SharedTests;
-use Test::More;
+use Test::More 0.88;
SharedTests::run_tests();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/MooseX-ClassAttribute-0.26/t/05-with-attribute-helpers-backcompat.t
new/MooseX-ClassAttribute-0.27/t/05-with-attribute-helpers-backcompat.t
--- old/MooseX-ClassAttribute-0.26/t/05-with-attribute-helpers-backcompat.t
2011-06-06 07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/t/05-with-attribute-helpers-backcompat.t
2013-03-28 17:13:04.000000000 +0100
@@ -3,11 +3,10 @@
use Test::More;
-use Test::Requires {
+use Test::Requires 0.05 {
'MooseX::AttributeHelpers' => 0.23,
};
-
{
package MyClass;
@@ -15,12 +14,13 @@
use MooseX::ClassAttribute;
use MooseX::AttributeHelpers;
- class_has counter =>
- ( metaclass => 'Counter',
- is => 'ro',
- provides => { inc => 'inc_counter',
- },
- );
+ class_has counter => (
+ metaclass => 'Counter',
+ is => 'ro',
+ provides => {
+ inc => 'inc_counter',
+ },
+ );
}
is( MyClass->counter(), 0 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/06-role.t
new/MooseX-ClassAttribute-0.27/t/06-role.t
--- old/MooseX-ClassAttribute-0.26/t/06-role.t 2011-06-06 07:54:16.000000000
+0200
+++ new/MooseX-ClassAttribute-0.27/t/06-role.t 2013-03-28 17:13:04.000000000
+0100
@@ -38,7 +38,7 @@
$self->ObjectCount( $self->ObjectCount() + 1 );
}
- sub _BuildIt {42}
+ sub _BuildIt { 42 }
sub _CallTrigger {
push @{ $_[0]->TriggerRecord() }, [@_];
@@ -59,7 +59,6 @@
'ClassWithRoleHCA (immutable) does RoleHCA'
);
-
# These next tests are aimed at testing to-role application followed by
# to-class application
{
@@ -95,7 +94,7 @@
$self->ObjectCount( $self->ObjectCount() + 1 );
}
- sub _BuildIt {42}
+ sub _BuildIt { 42 }
sub _CallTrigger {
push @{ $_[0]->TriggerRecord() }, [@_];
@@ -127,7 +126,7 @@
default => 5,
);
- sub _BuildIt {42}
+ sub _BuildIt { 42 }
sub _CallTrigger {
push @{ $_[0]->TriggerRecord() }, [@_];
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/11-moose-exporter.t
new/MooseX-ClassAttribute-0.27/t/11-moose-exporter.t
--- old/MooseX-ClassAttribute-0.26/t/11-moose-exporter.t 2011-06-06
07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/t/11-moose-exporter.t 2013-03-28
17:13:04.000000000 +0100
@@ -15,7 +15,7 @@
use MooseX::ClassAttribute ();
Moose::Exporter->setup_import_methods(
- also => [ 'MooseX::ClassAttribute' ],
+ also => ['MooseX::ClassAttribute'],
);
}
@@ -23,13 +23,14 @@
package MyClass;
use Moose;
+
# use MooseX::Foo; # normal use
MooseX::Foo->import;
# Now theoretically, this should work -- the 'class_has' method
# should have been imported via the MooseX package above.
class_has attr => (
- is => 'ro', isa => 'Str',
+ is => 'ro', isa => 'Str',
default => 'foo',
);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/12-with-initializer.t
new/MooseX-ClassAttribute-0.27/t/12-with-initializer.t
--- old/MooseX-ClassAttribute-0.26/t/12-with-initializer.t 1970-01-01
01:00:00.000000000 +0100
+++ new/MooseX-ClassAttribute-0.27/t/12-with-initializer.t 2013-03-28
17:13:04.000000000 +0100
@@ -0,0 +1,80 @@
+use strict;
+use warnings;
+use Test::More;
+
+{
+ package ClassFoo;
+
+ use Moose;
+ use MooseX::ClassAttribute;
+
+ class_has 'chas' => (
+ isa => 'Int',
+ is => 'ro',
+ default => 1,
+ initializer => sub { $_[2]->( $_[1] + 1 ) }
+ );
+}
+
+{
+ package ClassBar;
+ use Moose;
+
+ has 'chas' => (
+ isa => 'Int',
+ is => 'ro',
+ default => 1,
+ initializer => sub { $_[2]->( $_[1] + 1 ) }
+ );
+}
+
+{
+ package ClassBaz;
+ use Moose;
+ use MooseX::ClassAttribute;
+
+ class_has 'chas' => (
+ isa => 'Str',
+ is => 'rw',
+ default => 'Foobar',
+ trigger => sub { die __PACKAGE__ }
+ );
+}
+
+{
+ package ClassQuz;
+ use Moose;
+
+ has 'chas' => (
+ isa => 'Str',
+ is => 'rw',
+ default => 'Foobar',
+ trigger => sub { die __PACKAGE__ }
+ );
+}
+
+{
+ local $TODO
+ = 'Class attributes with an initializer are not initialized properly';
+
+ is(
+ ClassFoo->chas, 2,
+ "ClassFoo's class_has (ClassAttribute) initializer fires"
+ );
+}
+
+is(
+ ClassBar->new->chas, 2,
+ "ClassBar's has (non-ClassAttribute) initializer fires"
+);
+
+eval { ClassBaz->new->chas('foobar') };
+like(
+ $@, qr/ClassBaz/,
+ "ClassBaz's class_has (ClassAttribute) trigger fires"
+);
+
+eval { ClassQuz->new->chas('foobar') };
+like( $@, qr/ClassQuz/, "ClassQuz's has (non-ClassAttribute) trigger fires" );
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/lib/SharedTests.pm
new/MooseX-ClassAttribute-0.27/t/lib/SharedTests.pm
--- old/MooseX-ClassAttribute-0.26/t/lib/SharedTests.pm 2011-06-06
07:54:16.000000000 +0200
+++ new/MooseX-ClassAttribute-0.27/t/lib/SharedTests.pm 2013-03-28
17:13:04.000000000 +0100
@@ -23,6 +23,7 @@
is => 'rw',
isa => 'Int',
lazy => 1,
+
# The side effect is used to test that this was called
# lazily.
default => sub { $Lazy = 1 },
@@ -44,6 +45,7 @@
is => 'rw',
isa => 'Delegatee',
handles => [ 'units', 'color' ],
+
# if it's not lazy it makes a new object before we define
# Delegatee's attributes.
lazy => 1,
@@ -104,7 +106,7 @@
$self->ObjectCount( $self->ObjectCount() + 1 );
}
- sub _BuildIt {42}
+ sub _BuildIt { 42 }
sub _CallTrigger {
push @{ $_[0]->TriggerRecord() }, [@_];
@@ -329,8 +331,8 @@
{
$thing->Triggerish(42);
- is( scalar @{ $thing->TriggerRecord() }, 1, 'trigger was called' );
- is( $thing->Triggerish(), 42, 'Triggerish is now 42' );
+ is( scalar @{ $thing->TriggerRecord() }, 1, 'trigger was called' );
+ is( $thing->Triggerish(), 42, 'Triggerish is now 42' );
$thing->Triggerish(84);
is( $thing->Triggerish(), 84, 'Triggerish is now 84' );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/release-pod-linkcheck.t
new/MooseX-ClassAttribute-0.27/t/release-pod-linkcheck.t
--- old/MooseX-ClassAttribute-0.26/t/release-pod-linkcheck.t 1970-01-01
01:00:00.000000000 +0100
+++ new/MooseX-ClassAttribute-0.27/t/release-pod-linkcheck.t 2013-03-28
17:13:04.000000000 +0100
@@ -0,0 +1,28 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate
testing');
+ }
+}
+
+
+use strict;
+use warnings;
+use Test::More;
+
+foreach my $env_skip ( qw(
+ SKIP_POD_LINKCHECK
+) ){
+ plan skip_all => "\$ENV{$env_skip} is set, skipping"
+ if $ENV{$env_skip};
+}
+
+eval "use Test::Pod::LinkCheck";
+if ( $@ ) {
+ plan skip_all => 'Test::Pod::LinkCheck required for testing POD';
+}
+else {
+ Test::Pod::LinkCheck->new->all_pod_ok;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/MooseX-ClassAttribute-0.26/t/release-pod-no404s.t
new/MooseX-ClassAttribute-0.27/t/release-pod-no404s.t
--- old/MooseX-ClassAttribute-0.26/t/release-pod-no404s.t 1970-01-01
01:00:00.000000000 +0100
+++ new/MooseX-ClassAttribute-0.27/t/release-pod-no404s.t 2013-03-28
17:13:04.000000000 +0100
@@ -0,0 +1,29 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate
testing');
+ }
+}
+
+
+use strict;
+use warnings;
+use Test::More;
+
+foreach my $env_skip ( qw(
+ SKIP_POD_NO404S
+ AUTOMATED_TESTING
+) ){
+ plan skip_all => "\$ENV{$env_skip} is set, skipping"
+ if $ENV{$env_skip};
+}
+
+eval "use Test::Pod::No404s";
+if ( $@ ) {
+ plan skip_all => 'Test::Pod::No404s required for testing POD';
+}
+else {
+ all_pod_files_ok();
+}
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]