X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FSpec.pm;h=f7a7f446e7c8b92bf5d796c6c7ea23a1e0e995ca;hp=dd72d32341fe2fb756a39c8127af6341999a2c86;hb=278448b8f21fcab08c1e364e145b1848cca64c5c;hpb=a25ca8d637c040b2f929b1a23dd62ff63d85f5d1 diff --git a/lib/Mouse/Spec.pm b/lib/Mouse/Spec.pm index dd72d32..f7a7f44 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.37_06'; +our $VERSION = '0.4501'; our $MouseVersion = $VERSION; -our $MooseVersion = '0.90'; +our $MooseVersion = '0.93'; sub MouseVersion{ $MouseVersion } sub MooseVersion{ $MooseVersion } @@ -19,10 +19,45 @@ Mouse::Spec - To what extent Mouse is compatible with Moose =head1 VERSION -This document describes Mouse version 0.37_06 +This document describes Mouse version 0.4501 + +=head1 SYNOPSIS + + use Mouse::Spec; + + printf "Mouse/%s is compatible with Moose/%s\n", + Mouse::Spec->MouseVersion, Mouse::Spec->MooseVersion; =head1 DESCRIPTION +Mouse is a subset of Moose. This document describes to what extend Mouse is +compatible with Moose. + +=head2 Compatibility with Moose + +The sugary API is highly compatible with Moose. + +=head2 Incompatibility with Moose + +=head3 Meta object protocols + +Any MOP in Mouse has no attributes. + +For this reason, C<< $metaclass->meta->make_immutable() >> does not yet work as you expect. +B. + +=head3 Mouse::Meta::Instance + +Meta instance mechanism is not implemented. + +=head3 Role exclusion + +Role exclusion, C, is not implemented. + +=head3 -metaclass in Mouse::Exporter + +C<< use Mouse -metaclass => ... >> are not implemented. +Use C<< use Mouse -traits => ... >> instead. =head2 Notes about Moose::Cookbook @@ -36,7 +71,7 @@ L - The (always classic) B example =item * -L - A simple B example +L - A simple B example =item * @@ -48,31 +83,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 * @@ -80,19 +115,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 @@ -100,5 +135,11 @@ L - Providing an alternate base object clas L +L + +L + +L + =cut