X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FSpec.pm;h=9a61372a994ef61c944289dc1b1ce1e0cc5f8058;hb=32ec255c44d36d63cce20f5e21386d5cd11396b9;hp=0ea74b58909f6efaeb68ded4fc8be5355dccf1e8;hpb=4819ed36c693b311abb3f7d9965e1eeac1748345;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Spec.pm b/lib/Mouse/Spec.pm index 0ea74b5..9a61372 100644 --- a/lib/Mouse/Spec.pm +++ b/lib/Mouse/Spec.pm @@ -2,10 +2,10 @@ package Mouse::Spec; use strict; use warnings; -our $VERSION = '0.43'; +our $VERSION = '0.75'; our $MouseVersion = $VERSION; -our $MooseVersion = '0.93'; +our $MooseVersion = '1.10'; sub MouseVersion{ $MouseVersion } sub MooseVersion{ $MooseVersion } @@ -19,7 +19,7 @@ Mouse::Spec - To what extent Mouse is compatible with Moose =head1 VERSION -This document describes Mouse version 0.43 +This document describes Mouse version 0.75 =head1 SYNOPSIS @@ -31,20 +31,26 @@ This document describes Mouse version 0.43 =head1 DESCRIPTION Mouse is a subset of Moose. This document describes to what extend Mouse is -compatible with Moose. +compatible (and incompatible) with Moose. =head2 Compatibility with Moose -The sugary API is highly compatible with Moose. +=head3 Sugary APIs -=head2 Incompatibility with Moose +The sugary APIs are highly compatible with Moose. Methods which have the +same name as Moose's are expected to be compatible with Moose's. =head3 Meta object protocols -Any MOP in Mouse has no attributes. +Meta object protocols are a subset of the counterpart of Moose. +Their methods which have the same name as Moose's are expected to be +compatible with Moose's. Feel free to use these methods even if they +are not documented. -And C<< $metaclass->meta->make_immutable() >> does not yet work as you expect. -B. +However, there are differences between Moose's MOP and Mouse's, +For example, meta object protocols in Mouse have no attributes by default, +so C<< $metaclass->meta->make_immutable() >> will not work as you expect. +B. =head3 Mouse::Meta::Instance @@ -59,6 +65,14 @@ Role exclusion, C, is not implemented. C<< use Mouse -metaclass => ... >> are not implemented. Use C<< use Mouse -traits => ... >> instead. +=head3 Mouse::Meta::Attribute::Native + +Native traits are not supported directly, but C is +available on CPAN. Once you have installed it, you can use it as the same way +in Moose. That is, native traits are automatically loaded by Mouse. + +See L for details. + =head2 Notes about Moose::Cookbook Many recipes in L fit L, including: @@ -71,7 +85,7 @@ L - The (always classic) B example =item * -L - A simple B example +L - A simple B example =item * @@ -83,31 +97,31 @@ L - Subtypes, and modeling a simple B =item * -L - More subtypes, coercion in a B class +L - More subtypes, coercion in a B class =item * -L - The augment/inner example +L - The augment/inner example =item * -L - Making Moose fast with immutable +L - Making Moose fast with immutable =item * -L - Builder methods and lazy_build +L - Builder methods and lazy_build =item * -L - Operator overloading, subtypes, and coercion +L - Operator overloading, subtypes, and coercion =item * -L - Using BUILDARGS and BUILD to hook into object construction +L - Using BUILDARGS and BUILD to hook into object construction =item * -L - The Moose::Role example +L - The Moose::Role example =item * @@ -115,19 +129,19 @@ L - Advanced Role Composition - method exclusio =item * -L - Applying a role to an object instance +L - Applying a role to an object instance =item * -L - A meta-attribute, attributes with labels +L - A meta-attribute, attributes with labels =item * -L - Labels implemented via attribute traits +L - Labels implemented via attribute traits =item * -L - Providing an alternate base object class +L - Providing an alternate base object class =back