Commit 14cc5460 authored by gregor herrmann's avatar gregor herrmann

Update upstream source from tag 'upstream/2.2011'

Update to upstream version '2.2011'
with Debian dir 6a518f2c67230ea97ab7fe298539ae686263d8f0
parents bfe36d8c eabc8e89
Also see Moose::Manual::Delta for more details of, and workarounds
for, noteworthy changes.
2.2011 2018-05-16
[BUG FIXES]
- Various native trait methods would refuse "0" where they expected a
string. They have been fixed to allow all defined, non-reference values,
and all objects with string, number, or boolean overloads.
[DOCUMENTATION]
- Moose::Manual::Construction now notes that roles can modify the BUILD sub.
(thanks, E. Choroba!)
[OTHER]
- adjustments have been made to the Makefile for 'bmake', so it now works
when not run in compatibility mode (Leon Timmermans).
2.2010 2018-02-16
[OTHER]
......
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.011.
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012.
Changes
Changes.Class-MOP
LICENSE
......
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.41.
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.42.
# Don't edit it but the dist.ini and plugins used to construct it.
use strict;
......@@ -66,7 +66,7 @@ my %WriteMakefileArgs = (
"Test::More" => "0.96",
"Test::Requires" => "0.05"
},
"VERSION" => "2.2010",
"VERSION" => "2.2011",
"XS" => {
"xs/Attribute.xs" => "xs/Attribute.c",
"xs/AttributeCore.xs" => "xs/AttributeCore.c",
......@@ -144,6 +144,23 @@ package MY;
use Config;
# These two are necessary to keep bmake happy
sub xs_c {
my $self = shift;
my $ret = $self->SUPER::xs_c(@_);
$ret =~ s/\$\*\.xs/\$</g;
$ret =~ s/\$\*\.c\b/\$@/g;
return $ret;
}
sub c_o {
my $self = shift;
my $ret = $self->SUPER::c_o(@_);
$ret =~ s/\$\*\.c\b/\$</g;
$ret =~ s/\$\*\$\(OBJ_EXT\)/\$@/g;
return $ret;
}
sub const_cccmd {
my $ret = shift->SUPER::const_cccmd(@_);
return q{} unless $ret;
......
......@@ -67,6 +67,9 @@ repository.type = git
x_IRC = irc://irc.perl.org/#moose
x_MailingList = http://lists.perl.org/list/moose.html
[UseUnsafeInc]
dot_in_INC = 0
[=Documentation]
module = Moose::Manual
module = Moose::Manual::Attributes
......@@ -267,7 +270,7 @@ skip = ^Moose::Meta::TypeConstraint::Union$
[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}
code = s{^(note 'Checking Changes')}{if \(\$ENV\{TRAVIS_PULL_REQUEST\} eq 'false'\) \{\n chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n \$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\n$1}
;[CheckPrereqsIndexed]
......
......@@ -52,6 +52,23 @@ package MY;
use Config;
# These two are necessary to keep bmake happy
sub xs_c {
my $self = shift;
my $ret = $self->SUPER::xs_c(@_);
$ret =~ s/\$\*\.xs/\$</g;
$ret =~ s/\$\*\.c\b/\$@/g;
return $ret;
}
sub c_o {
my $self = shift;
my $ret = $self->SUPER::c_o(@_);
$ret =~ s/\$\*\.c\b/\$</g;
$ret =~ s/\$\*\$\(OBJ_EXT\)/\$@/g;
return $ret;
}
sub const_cccmd {
my $ret = shift->SUPER::const_cccmd(@_);
return q{} unless $ret;
......
package Class::MOP;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -796,7 +796,7 @@ Class::MOP - A Meta Object Protocol for Perl 5
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Attribute;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -510,7 +510,7 @@ Class::MOP::Attribute - Attribute Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
package Class::MOP::Class;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -1527,7 +1527,7 @@ Class::MOP::Class - Class Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
package Class::MOP::Class::Immutable::Trait;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -107,7 +107,7 @@ Class::MOP::Class::Immutable::Trait - Implements immutability for metaclass obje
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Deprecated;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -24,7 +24,7 @@ Class::MOP::Deprecated - Manages deprecation warnings for Class::MOP
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Instance;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -285,7 +285,7 @@ Class::MOP::Instance - Instance Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Method;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -168,7 +168,7 @@ Class::MOP::Method - Method Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Method::Accessor;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -269,7 +269,7 @@ Class::MOP::Method::Accessor - Method Meta Object for accessors
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
package Class::MOP::Method::Constructor;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -133,7 +133,7 @@ Class::MOP::Method::Constructor - Method Meta Object for constructors
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
package Class::MOP::Method::Generated;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -76,7 +76,7 @@ Class::MOP::Method::Generated - Abstract base class for generated methods
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Method::Inlined;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
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.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Method::Meta;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -93,7 +93,7 @@ Class::MOP::Method::Meta - Method Meta Object for C<meta> methods
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Method::Wrapped;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
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.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::MiniTrait;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -49,7 +49,7 @@ Class::MOP::MiniTrait - Extremely limited trait application
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Mixin;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -33,7 +33,7 @@ Class::MOP::Mixin - Base class for mixin classes
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Mixin::AttributeCore;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -62,7 +62,7 @@ Class::MOP::Mixin::AttributeCore - Core attributes shared by attribute metaclass
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasAttributes;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -107,7 +107,7 @@ Class::MOP::Mixin::HasAttributes - Methods for metaclasses which have attributes
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasMethods;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -240,7 +240,7 @@ Class::MOP::Mixin::HasMethods - Methods for metaclasses which have methods
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Mixin::HasOverloads;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -179,7 +179,7 @@ Class::MOP::Mixin::HasOverloads - Methods for metaclasses which have overloads
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Module;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -102,7 +102,7 @@ Class::MOP::Module - Module Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Object;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -115,7 +115,7 @@ Class::MOP::Object - Base class for metaclasses
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
package Class::MOP::Overload;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -141,7 +141,7 @@ Class::MOP::Overload - Overload Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
package Class::MOP::Package;
our $VERSION = '2.2010';
our $VERSION = '2.2011';
use strict;
use warnings;
......@@ -283,7 +283,7 @@ Class::MOP::Package - Package Meta Object
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
use strict;
use warnings;
package Moose; # git description: 2.2009-11-ga73c5a370
our $VERSION = '2.2010';
package Moose; # git description: 2.2010-13-g18a585ef2
our $VERSION = '2.2011';
our $AUTHORITY = 'cpan:STEVAN';
use 5.008003;
......@@ -298,7 +298,7 @@ Moose - A postmodern object system for Perl 5
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
......@@ -13,7 +13,7 @@ Moose::Cookbook - How to cook a Moose
=head1 VERSION
version 2.2010
version 2.2011
=head1 DESCRIPTION
......
......@@ -13,7 +13,7 @@ Moose::Cookbook::Basics::BankAccount_MethodModifiersAndSubclassing - Demonstrate
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
......@@ -13,7 +13,7 @@ Moose::Cookbook::Basics::BinaryTree_AttributeFeatures - Demonstrates various att
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
......@@ -13,7 +13,7 @@ Moose::Cookbook::Basics::BinaryTree_BuilderAndLazyBuild - Builder methods and la
=head1 VERSION
version 2.2010
version 2.2011
=head1 SYNOPSIS
......
......@@ -13,7 +13,7 @@ Moose::Cookbook::Basics::Company_Subtypes - Demonstrates the use of subtypes and