Commit db97a67f authored by Damyan Ivanov's avatar Damyan Ivanov

Update upstream source from tag 'upstream/2.2010'

Update to upstream version '2.2010'
with Debian dir 956e7434aa8921a03c08a105f21bf1e3e7bb4211
parents 1edfb9c7 6341add9
Also see Moose::Manual::Delta for more details of, and workarounds
for, noteworthy changes.
2.2010 2018-02-16
[OTHER]
- A performance improvement with operator overloads has been made by making
use of a new Devel::OverloadInfo interface (thanks, ilmari!)
2.2009 2017-11-29
[BUG FIXES]
......@@ -8,7 +15,7 @@ for, noteworthy changes.
- Some hash native trait methods (notably clear and delete) were broken in
various ways when the associated attribute's type allowed for coercion of
the hash values and coercion was enabled for the hash. Reported by Ralf
Bartel in RT #12737.
Bartel in RT #123737.
[TESTS]
......
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010.
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.011.
Changes
Changes.Class-MOP
LICENSE
......@@ -1046,6 +1046,7 @@ xt/author/pod-spell.t
xt/author/pod-syntax.t
xt/author/test-my-dependents.t
xt/release/00-compile.t
xt/release/changes_has_content.t
xt/release/cpan-changes.t
xt/release/distmeta.t
xt/release/kwalitee.t
This diff is collapsed.
This diff is collapsed.
# This Makefile.PL for Moose was generated by
# MakeMaker <self>
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.39.
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.41.
# Don't edit it but the dist.ini and plugins used to construct it.
use strict;
......@@ -35,7 +35,7 @@ my %WriteMakefileArgs = (
"Class::Load::XS" => "0.01",
"Data::OptList" => "0.107",
"Devel::GlobalDestruction" => 0,
"Devel::OverloadInfo" => "0.004",
"Devel::OverloadInfo" => "0.005",
"Devel::StackTrace" => "2.03",
"Dist::CheckConflicts" => "0.02",
"Eval::Closure" => "0.04",
......@@ -66,7 +66,7 @@ my %WriteMakefileArgs = (
"Test::More" => "0.96",
"Test::Requires" => "0.05"
},
"VERSION" => "2.2009",
"VERSION" => "2.2010",
"XS" => {
"xs/Attribute.xs" => "xs/Attribute.c",
"xs/AttributeCore.xs" => "xs/AttributeCore.c",
......@@ -98,7 +98,7 @@ my %FallbackPrereqs = (
"Class::Load::XS" => "0.01",
"Data::OptList" => "0.107",
"Devel::GlobalDestruction" => 0,
"Devel::OverloadInfo" => "0.004",
"Devel::OverloadInfo" => "0.005",
"Devel::StackTrace" => "2.03",
"Dist::CheckConflicts" => "0.02",
"Eval::Closure" => "0.04",
......
......@@ -264,7 +264,11 @@ skip = ^Moose::Meta::TypeConstraint::Union$
;:version = 2.000003
;max_target_perl = 5.008003
[CheckChangesHasContent]
[Test::ChangesHasContent]
[Substitute]
file = xt/release/changes_has_content.t
code = s{^(note 'Checking Changes')}{chomp\(my \$branch_name = \`git rev-parse --abbrev-ref HEAD\`\);\nlocal \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\n$1}
;[CheckPrereqsIndexed]
; all runtime deps must be author deps
......@@ -279,8 +283,8 @@ skip = ^Moose::Meta::TypeConstraint::Union$
;authordep Data::OptList = 0.107
Devel::GlobalDestruction = 0
;authordep Devel::GlobalDestruction = 0
Devel::OverloadInfo = 0.004
;authordep Devel::OverloadInfo = 0.004
Devel::OverloadInfo = 0.005
;authordep Devel::OverloadInfo = 0.005
Devel::StackTrace = 2.03
;authordep Devel::StackTrace = 2.03
Eval::Closure = 0.04
......
package Class::MOP;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -796,7 +796,7 @@ Class::MOP - A Meta Object Protocol for Perl 5
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Attribute;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -510,7 +510,7 @@ Class::MOP::Attribute - Attribute Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
package Class::MOP::Class;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -1527,7 +1527,7 @@ Class::MOP::Class - Class Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
package Class::MOP::Class::Immutable::Trait;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -107,7 +107,7 @@ Class::MOP::Class::Immutable::Trait - Implements immutability for metaclass obje
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Deprecated;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -24,7 +24,7 @@ Class::MOP::Deprecated - Manages deprecation warnings for Class::MOP
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Instance;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -285,7 +285,7 @@ Class::MOP::Instance - Instance Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Method;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -168,7 +168,7 @@ Class::MOP::Method - Method Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Method::Accessor;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -269,7 +269,7 @@ Class::MOP::Method::Accessor - Method Meta Object for accessors
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
package Class::MOP::Method::Constructor;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -133,7 +133,7 @@ Class::MOP::Method::Constructor - Method Meta Object for constructors
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
package Class::MOP::Method::Generated;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -76,7 +76,7 @@ Class::MOP::Method::Generated - Abstract base class for generated methods
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Method::Inlined;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -119,7 +119,7 @@ Class::MOP::Method::Inlined - Method base class for methods which have been inli
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Method::Meta;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -93,7 +93,7 @@ Class::MOP::Method::Meta - Method Meta Object for C<meta> methods
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Method::Wrapped;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -217,7 +217,7 @@ Class::MOP::Method::Wrapped - Method Meta Object for methods with before/after/a
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::MiniTrait;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -49,7 +49,7 @@ Class::MOP::MiniTrait - Extremely limited trait application
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Mixin;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -33,7 +33,7 @@ Class::MOP::Mixin - Base class for mixin classes
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Mixin::AttributeCore;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -62,7 +62,7 @@ Class::MOP::Mixin::AttributeCore - Core attributes shared by attribute metaclass
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasAttributes;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -107,7 +107,7 @@ Class::MOP::Mixin::HasAttributes - Methods for metaclasses which have attributes
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasMethods;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -240,7 +240,7 @@ Class::MOP::Mixin::HasMethods - Methods for metaclasses which have methods
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasOverloads;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
use Class::MOP::Overload;
use Devel::OverloadInfo 0.004 'overload_info';
use Devel::OverloadInfo 0.005 'overload_info', 'overload_op_info';
use Scalar::Util 'blessed';
use Sub::Identify 'sub_name', 'stash_name';
......@@ -34,7 +34,7 @@ sub get_all_overloaded_operators {
sub has_overloaded_operator {
my $self = shift;
my ($op) = @_;
return defined $self->_overload_info->{$op};
return defined $self->_overload_info_for($op);
}
sub _overload_map {
......@@ -110,7 +110,7 @@ sub remove_overloaded_operator {
sub get_overload_fallback_value {
my $self = shift;
return $self->_overload_info->{fallback}{value};
return ($self->_overload_info_for('fallback') || {})->{value};
}
sub set_overload_fallback_value {
......@@ -127,6 +127,12 @@ sub _overload_info {
return overload_info( $self->name ) || {};
}
sub _overload_info_for {
my $self = shift;
my $op = shift;
return overload_op_info( $self->name, $op );
}
sub _overload_for {
my $self = shift;
my $op = shift;
......@@ -134,7 +140,7 @@ sub _overload_for {
my $map = $self->_overload_map;
return $map->{$op} if $map->{$op};
my $info = $self->_overload_info->{$op};
my $info = $self->_overload_info_for($op);
return unless $info;
my %p = (
......@@ -173,7 +179,7 @@ Class::MOP::Mixin::HasOverloads - Methods for metaclasses which have overloads
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Module;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -102,7 +102,7 @@ Class::MOP::Module - Module Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Object;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -115,7 +115,7 @@ Class::MOP::Object - Base class for metaclasses
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
package Class::MOP::Overload;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -141,7 +141,7 @@ Class::MOP::Overload - Overload Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
package Class::MOP::Package;
our $VERSION = '2.2009';
our $VERSION = '2.2010';
use strict;
use warnings;
......@@ -283,7 +283,7 @@ Class::MOP::Package - Package Meta Object
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
use strict;
use warnings;
package Moose; # git description: 2.2008-4-gf9468cd8f
our $VERSION = '2.2009';
package Moose; # git description: 2.2009-11-ga73c5a370
our $VERSION = '2.2010';
our $AUTHORITY = 'cpan:STEVAN';
use 5.008003;
......@@ -298,7 +298,7 @@ Moose - A postmodern object system for Perl 5
=head1 VERSION
version 2.2009
version 2.2010
=head1 SYNOPSIS
......
......@@ -13,7 +13,7 @@ Moose::Cookbook - How to cook a Moose
=head1 VERSION
version 2.2009
version 2.2010
=head1 DESCRIPTION
......
......@@ -13,7 +13,7 @@ Moose::Cookbook::Basics::BankAccount_MethodModifiersAndSubclassing - Demonstrate
=head1 VERSION