Hello community,
here is the log from the commit of package perl-MooseX-StrictConstructor for openSUSE:Factory checked in at 2013-07-30 13:07:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooseX-StrictConstructor (Old)
and /work/SRC/openSUSE:Factory/.perl-MooseX-StrictConstructor.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooseX-StrictConstructor"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MooseX-StrictConstructor/perl-MooseX-StrictConstructor.changes 2012-01-04 07:28:12.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-MooseX-StrictConstructor.new/perl-MooseX-StrictConstructor.changes 2013-07-30 13:07:45.000000000 +0200
@@ -1,0 +2,11 @@
+Sat Jul 27 11:58:34 UTC 2013 - coolo@suse.com
+
+- updated to 0.19
+ - The 0.17 release broke compatibility with pre-2.0 versions of Moose.
+ - A small internal tweak which prevents the MooseX::ClassCompositor tests from
+ failing.
+ - Added a small optimization for an immutable constructor when used with Moose
+ 2.00+. The list of valid attributes is only generated once, rather than each
+ time the constructor is run. Reported by Chip Salzenberg. RT #73664.
+
+-------------------------------------------------------------------
Old:
----
MooseX-StrictConstructor-0.16.tar.gz
New:
----
MooseX-StrictConstructor-0.19.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooseX-StrictConstructor.spec ++++++
--- /var/tmp/diff_new_pack.qaqL8x/_old 2013-07-30 13:07:46.000000000 +0200
+++ /var/tmp/diff_new_pack.qaqL8x/_new 2013-07-30 13:07:46.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-StrictConstructor
#
-# 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
@@ -17,7 +17,7 @@
Name: perl-MooseX-StrictConstructor
-Version: 0.16
+Version: 0.19
Release: 0
%define cpan_name MooseX-StrictConstructor
Summary: Make your object constructors blow up on unknown attributes
@@ -29,19 +29,30 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moose) >= 0.94
+BuildRequires: perl(Moose::Exporter)
+BuildRequires: perl(Moose::Role)
+BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(Test::Fatal)
+BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(namespace::autoclean)
+#BuildRequires: perl(MooseX::StrictConstructor)
+#BuildRequires: perl(MooseX::StrictConstructor::Trait::Class)
+#BuildRequires: perl(MooseX::StrictConstructor::Trait::Method::Constructor)
+#BuildRequires: perl(Standard)
+#BuildRequires: perl(Stricter)
Requires: perl(Moose) >= 0.94
+Requires: perl(Moose::Exporter)
+Requires: perl(Moose::Role)
+Requires: perl(Moose::Util::MetaRole)
Requires: perl(namespace::autoclean)
%{perl_requires}
%description
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute init argument that your class does
-not declare, then it calls 'Moose-'throw_error()>. This is a great way to
+not declare, then it calls 'Moose->throw_error()'. This is a great way to
catch small typos.
%prep
@@ -51,19 +62,14 @@
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
-%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120
%check
%{__make} test
-%endif
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
++++++ MooseX-StrictConstructor-0.16.tar.gz -> MooseX-StrictConstructor-0.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/Changes new/MooseX-StrictConstructor-0.19/Changes
--- old/MooseX-StrictConstructor-0.16/Changes 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/Changes 2012-01-17 22:51:44.000000000 +0100
@@ -1,3 +1,21 @@
+0.19 2012-01-17
+
+- The 0.17 release broke compatibility with pre-2.0 versions of Moose.
+
+
+0.18 2012-01-10
+
+- A small internal tweak which prevents the MooseX::ClassCompositor tests from
+ failing.
+
+
+0.17 2012-01-04
+
+- Added a small optimization for an immutable constructor when used with Moose
+ 2.00+. The list of valid attributes is only generated once, rather than each
+ time the constructor is run. Reported by Chip Salzenberg. RT #73664.
+
+
0.16 2011-04-22
- Don't wrap BUILDALL, since this breaks if the object doesn't inherit from
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/LICENSE new/MooseX-StrictConstructor-0.19/LICENSE
--- old/MooseX-StrictConstructor-0.16/LICENSE 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/LICENSE 2012-01-17 22:51:44.000000000 +0100
@@ -1,4 +1,4 @@
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/MANIFEST new/MooseX-StrictConstructor-0.19/MANIFEST
--- old/MooseX-StrictConstructor-0.16/MANIFEST 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/MANIFEST 2012-01-17 22:51:44.000000000 +0100
@@ -6,15 +6,16 @@
META.yml
Makefile.PL
README
-SIGNATURE
dist.ini
lib/MooseX/StrictConstructor.pm
lib/MooseX/StrictConstructor/Trait/Class.pm
lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm
t/basic.t
t/instance.t
+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-StrictConstructor-0.16/META.json new/MooseX-StrictConstructor-0.19/META.json
--- old/MooseX-StrictConstructor-0.16/META.json 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/META.json 2012-01-17 22:51:44.000000000 +0100
@@ -4,7 +4,7 @@
"Dave Rolsky "
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110580",
+ "generated_by" : "Dist::Zilla version 4.300006, CPAN::Meta::Converter version 2.113640",
"license" : [
"artistic_2"
],
@@ -16,18 +16,25 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.31"
+ "ExtUtils::MakeMaker" : "6.30"
}
},
"runtime" : {
"requires" : {
+ "B" : 0,
"Moose" : "0.94",
- "namespace::autoclean" : 0
+ "Moose::Exporter" : 0,
+ "Moose::Role" : 0,
+ "Moose::Util::MetaRole" : 0,
+ "namespace::autoclean" : 0,
+ "strict" : 0,
+ "warnings" : 0
}
},
"test" : {
"requires" : {
"Test::Fatal" : 0,
+ "Test::Moose" : 0,
"Test::More" : "0.88"
}
}
@@ -44,6 +51,6 @@
"web" : "http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/MooseX-StrictConstructo..."
}
},
- "version" : "0.16"
+ "version" : "0.19"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/META.yml new/MooseX-StrictConstructor-0.19/META.yml
--- old/MooseX-StrictConstructor-0.16/META.yml 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/META.yml 2012-01-17 22:51:44.000000000 +0100
@@ -4,20 +4,27 @@
- 'Dave Rolsky '
build_requires:
Test::Fatal: 0
+ Test::Moose: 0
Test::More: 0.88
configure_requires:
- ExtUtils::MakeMaker: 6.31
+ ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110580'
+generated_by: 'Dist::Zilla version 4.300006, CPAN::Meta::Converter version 2.113640'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: MooseX-StrictConstructor
requires:
+ B: 0
Moose: 0.94
+ Moose::Exporter: 0
+ Moose::Role: 0
+ Moose::Util::MetaRole: 0
namespace::autoclean: 0
+ strict: 0
+ warnings: 0
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-StrictConstructor
repository: git://git.moose.perl.org/MooseX-StrictConstructor.git
-version: 0.16
+version: 0.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/Makefile.PL new/MooseX-StrictConstructor-0.19/Makefile.PL
--- old/MooseX-StrictConstructor-0.16/Makefile.PL 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/Makefile.PL 2012-01-17 22:51:44.000000000 +0100
@@ -4,31 +4,38 @@
-use ExtUtils::MakeMaker 6.31;
+use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
- 'ABSTRACT' => 'Make your object constructors blow up on unknown attributes',
- 'AUTHOR' => 'Dave Rolsky ',
- 'BUILD_REQUIRES' => {
- 'Test::Fatal' => '0',
- 'Test::More' => '0.88'
+ "ABSTRACT" => "Make your object constructors blow up on unknown attributes",
+ "AUTHOR" => "Dave Rolsky ",
+ "BUILD_REQUIRES" => {
+ "Test::Fatal" => 0,
+ "Test::Moose" => 0,
+ "Test::More" => "0.88"
},
- 'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.31'
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
},
- 'DISTNAME' => 'MooseX-StrictConstructor',
- 'EXE_FILES' => [],
- 'LICENSE' => 'artistic_2',
- 'NAME' => 'MooseX::StrictConstructor',
- 'PREREQ_PM' => {
- 'Moose' => '0.94',
- 'namespace::autoclean' => '0'
+ "DISTNAME" => "MooseX-StrictConstructor",
+ "EXE_FILES" => [],
+ "LICENSE" => "artistic_2",
+ "NAME" => "MooseX::StrictConstructor",
+ "PREREQ_PM" => {
+ "B" => 0,
+ "Moose" => "0.94",
+ "Moose::Exporter" => 0,
+ "Moose::Role" => 0,
+ "Moose::Util::MetaRole" => 0,
+ "namespace::autoclean" => 0,
+ "strict" => 0,
+ "warnings" => 0
},
- 'VERSION' => '0.16',
- 'test' => {
- 'TESTS' => 't/*.t'
+ "VERSION" => "0.19",
+ "test" => {
+ "TESTS" => "t/*.t"
}
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/README new/MooseX-StrictConstructor-0.19/README
--- old/MooseX-StrictConstructor-0.16/README 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/README 2012-01-17 22:51:44.000000000 +0100
@@ -1,11 +1,11 @@
This archive contains the distribution MooseX-StrictConstructor,
-version 0.16:
+version 0.19:
Make your object constructors blow up on unknown attributes
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/SIGNATURE new/MooseX-StrictConstructor-0.19/SIGNATURE
--- old/MooseX-StrictConstructor-0.16/SIGNATURE 2011-04-23 02:27:45.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/SIGNATURE 1970-01-01 01:00:00.000000000 +0100
@@ -1,42 +0,0 @@
-This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.66.
-
-To verify the content in this distribution, first make sure you have
-Module::Signature installed, then type:
-
- % cpansign -v
-
-It will check each file's integrity, as well as the signature's
-validity. If "==> Signature verified OK! <==" is not displayed,
-the distribution may already have been compromised, and you should
-not run its Makefile.PL or Build.PL.
-
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-SHA1 358b030a619370ea7359a866baedde5c719ea847 Changes
-SHA1 b09c48494e1d0630c6bd6b11fef8e0ac35d509da INSTALL
-SHA1 c715d20265d2931c7564fc64abfdc4f8ff33e297 LICENSE
-SHA1 3216b31652847aecf0a5a1d09c6edaab44442c64 MANIFEST
-SHA1 ab4aef0042f93aefcd71014e1cf93985c34d7b02 META.json
-SHA1 03bd578d7dc4ad35b1f583e16c00b540c6362f6a META.yml
-SHA1 1d18a87a69b5549170a6766c0175c0b977b10240 Makefile.PL
-SHA1 47723ff3c10caa4c1bb925272d6216035f7d6143 README
-SHA1 c680b8dbca6a46bcda6cb2a3384a3c87533e2290 dist.ini
-SHA1 048a8d21c1415ac0b28fbe5480d492cb4dd01815 lib/MooseX/StrictConstructor.pm
-SHA1 83e2d2032238372030d08daca7d4fbb464fe5226 lib/MooseX/StrictConstructor/Trait/Class.pm
-SHA1 3b12506e584abcf300a4b7f1f2d70092a96e048b lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm
-SHA1 4f5938ee545701adeec552fb3f898d4a5c147880 t/basic.t
-SHA1 62e0d60d9456d31463f448be2265c9fc15efcceb t/instance.t
-SHA1 a032c41ef6887fab1b900669c2d304fab46680e2 t/release-eol.t
-SHA1 455d1dd1867212a665ad5ea4126b572411de300c t/release-no-tabs.t
-SHA1 9433c240fe590bc404ab68ff63984df763e347ed t/release-pod-coverage.t
-SHA1 48e2a1a1f3252d687ed5d54cb68109fb1466de7d t/release-pod-spell.t
-SHA1 b30cbdfaf935017c4568c0c91b242438cb87786e t/release-pod-syntax.t
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.10 (GNU/Linux)
-
-iEYEARECAAYFAk2yHP4ACgkQIgMCsV8qvRKfJwCfYAhz4PJKqwEodUld2CX/y/Lj
-3IgAoJQImOdUqYu2EpyUc/0yyZwnbHdU
-=wHFF
------END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/dist.ini new/MooseX-StrictConstructor-0.19/dist.ini
--- old/MooseX-StrictConstructor-0.16/dist.ini 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/dist.ini 2012-01-17 22:51:44.000000000 +0100
@@ -3,7 +3,7 @@
license = Artistic_2_0
copyright_holder = Dave Rolsky
-version = 0.16
+version = 0.19
[NextRelease]
format = %-8v %{yyyy-MM-dd}d
@@ -24,20 +24,19 @@
[PkgVersion]
-[PodCoverageTests]
-[PodSyntaxTests]
-[NoTabsTests]
[EOLTests]
-[Signature]
+[NoTabsTests]
+[PodSyntaxTests]
+[Test::CPAN::Changes]
+[Test::Pod::LinkCheck]
+[Test::Pod::No404s]
[CheckChangeLog]
-[Prereqs]
-Moose = 0.94
-namespace::autoclean = 0
-
-[Prereqs / TestRequires]
-Test::Fatal = 0
-Test::More = 0.88
+[AutoPrereqs]
+skip = Standard
+skip = Stricter
+
+[CheckPrereqsIndexed]
[@Git]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor/Trait/Class.pm new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor/Trait/Class.pm
--- old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor/Trait/Class.pm 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor/Trait/Class.pm 2012-01-17 22:51:44.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::StrictConstructor::Trait::Class;
-BEGIN {
- $MooseX::StrictConstructor::Trait::Class::VERSION = '0.16';
+{
+ $MooseX::StrictConstructor::Trait::Class::VERSION = '0.19';
}
use Moose::Role;
@@ -35,7 +35,7 @@
return $instance;
};
-around '_inline_BUILDALL' => sub {
+around _inline_BUILDALL => sub {
my $orig = shift;
my $self = shift;
@@ -50,14 +50,31 @@
return (
@source,
- 'my %attrs = (' . ( join ' ', @attrs ) . ');',
- 'my @bad = sort grep { !$attrs{$_} } keys %{ $params };',
+ 'my @bad = sort grep { !$allowed_attrs{$_} } keys %{ $params };',
'if (@bad) {',
'Moose->throw_error("Found unknown attribute(s) passed to the constructor: @bad");',
'}',
);
} if $Moose::VERSION >= 1.9900;
+around _eval_environment => sub {
+ my $orig = shift;
+ my $self = shift;
+
+ my $env = $self->$orig();
+
+ my %attrs = map { $_ => 1 }
+ grep { defined }
+ map { $_->init_arg() }
+ $self->get_all_attributes();
+
+ $attrs{__INSTANCE__} = 1;
+
+ $env->{'%allowed_attrs'} = \%attrs;
+
+ return $env;
+} if $Moose::VERSION >= 1.9900;
+
1;
# ABSTRACT: A role to make immutable constructors strict
@@ -72,7 +89,7 @@
=head1 VERSION
-version 0.16
+version 0.19
=head1 DESCRIPTION
@@ -86,7 +103,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm
--- old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm 2012-01-17 22:51:44.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::StrictConstructor::Trait::Method::Constructor;
-BEGIN {
- $MooseX::StrictConstructor::Trait::Method::Constructor::VERSION = '0.16';
+{
+ $MooseX::StrictConstructor::Trait::Method::Constructor::VERSION = '0.19';
}
use Moose::Role;
@@ -9,19 +9,17 @@
use B ();
-around '_generate_BUILDALL' => sub {
+around _generate_BUILDALL => sub {
my $orig = shift;
my $self = shift;
my $source = $self->$orig();
$source .= ";\n" if $source;
- my @attrs = (
- '__INSTANCE__ => 1,',
- map { B::perlstring($_) . ' => 1,' }
- grep {defined}
- map { $_->init_arg() } @{ $self->_attributes() }
- );
+ my @attrs = '__INSTANCE__ => 1,';
+ push @attrs, map { B::perlstring($_) . ' => 1,' }
+ grep { defined }
+ map { $_->init_arg() } @{ $self->_attributes() };
$source .= <<"EOF";
my \%attrs = (@attrs);
@@ -34,7 +32,7 @@
EOF
return $source;
-};
+} if $Moose::VERSION < 1.9900;
1;
@@ -50,7 +48,7 @@
=head1 VERSION
-version 0.16
+version 0.19
=head1 DESCRIPTION
@@ -64,7 +62,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor.pm new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor.pm
--- old/MooseX-StrictConstructor-0.16/lib/MooseX/StrictConstructor.pm 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/lib/MooseX/StrictConstructor.pm 2012-01-17 22:51:44.000000000 +0100
@@ -1,6 +1,6 @@
package MooseX::StrictConstructor;
-BEGIN {
- $MooseX::StrictConstructor::VERSION = '0.16';
+{
+ $MooseX::StrictConstructor::VERSION = '0.19';
}
use strict;
@@ -10,20 +10,18 @@
use Moose::Exporter;
use Moose::Util::MetaRole;
-{
- my %class_meta = ( class => ['MooseX::StrictConstructor::Trait::Class'] );
+use MooseX::StrictConstructor::Trait::Class;
+use MooseX::StrictConstructor::Trait::Method::Constructor;;
+my %metaroles = (
+ class => ['MooseX::StrictConstructor::Trait::Class'],
+);
+
+$metaroles{constructor}
+ = ['MooseX::StrictConstructor::Trait::Method::Constructor']
+ if $Moose::VERSION <= 1.9900;
- if ( $Moose::VERSION < 1.9900 ) {
- require MooseX::StrictConstructor::Trait::Method::Constructor;
- $class_meta{constructor}
- = ['MooseX::StrictConstructor::Trait::Method::Constructor'];
- }
-
- Moose::Exporter->setup_import_methods(
- class_metaroles => \%class_meta,
- );
-}
+Moose::Exporter->setup_import_methods( class_metaroles => \%metaroles );
1;
@@ -39,7 +37,7 @@
=head1 VERSION
-version 0.16
+version 0.19
=head1 SYNOPSIS
@@ -58,9 +56,9 @@
=head1 DESCRIPTION
Simply loading this module makes your constructors "strict". If your
-constructor is called with an attribute init argument that your class
-does not declare, then it calls C<Moose->throw_error()>. This is a great way
-to catch small typos.
+constructor is called with an attribute init argument that your class does not
+declare, then it calls C<< Moose->throw_error() >>. This is a great way to
+catch small typos.
=head2 Subverting Strictness
@@ -96,7 +94,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is Copyright (c) 2011 by Dave Rolsky.
+This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/t/basic.t new/MooseX-StrictConstructor-0.19/t/basic.t
--- old/MooseX-StrictConstructor-0.16/t/basic.t 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/t/basic.t 2012-01-17 22:51:44.000000000 +0100
@@ -3,7 +3,7 @@
use Test::Fatal;
use Test::Moose qw( with_immutable );
-use Test::More;
+use Test::More 0.88;
{
package Standard;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/t/release-cpan-changes.t new/MooseX-StrictConstructor-0.19/t/release-cpan-changes.t
--- old/MooseX-StrictConstructor-0.16/t/release-cpan-changes.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-StrictConstructor-0.19/t/release-cpan-changes.t 2012-01-17 22:51:44.000000000 +0100
@@ -0,0 +1,15 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate testing');
+ }
+}
+
+
+use Test::More;
+eval 'use Test::CPAN::Changes';
+plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
+changes_ok();
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/t/release-pod-coverage.t new/MooseX-StrictConstructor-0.19/t/release-pod-coverage.t
--- old/MooseX-StrictConstructor-0.16/t/release-pod-coverage.t 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/t/release-pod-coverage.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.08";
-plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
- if $@;
-
-eval "use Pod::Coverage::TrustPod";
-plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
- if $@;
-
-all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/t/release-pod-linkcheck.t new/MooseX-StrictConstructor-0.19/t/release-pod-linkcheck.t
--- old/MooseX-StrictConstructor-0.16/t/release-pod-linkcheck.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-StrictConstructor-0.19/t/release-pod-linkcheck.t 2012-01-17 22:51:44.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-StrictConstructor-0.16/t/release-pod-no404s.t new/MooseX-StrictConstructor-0.19/t/release-pod-no404s.t
--- old/MooseX-StrictConstructor-0.16/t/release-pod-no404s.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-StrictConstructor-0.19/t/release-pod-no404s.t 2012-01-17 22:51:44.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();
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-StrictConstructor-0.16/t/release-pod-spell.t new/MooseX-StrictConstructor-0.19/t/release-pod-spell.t
--- old/MooseX-StrictConstructor-0.16/t/release-pod-spell.t 2011-04-23 02:27:42.000000000 +0200
+++ new/MooseX-StrictConstructor-0.19/t/release-pod-spell.t 2012-01-17 22:51:44.000000000 +0100
@@ -32,4 +32,5 @@
__DATA__
PayPal
+Rolsky
init
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org