From: Rafael Kitover Date: Sat, 29 Oct 2011 08:59:40 +0000 (-0400) Subject: update use_moose docs and opt deps X-Git-Tag: 0.07011~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=461637965b8c5b80fd3581c2968e13f0f8a97b8d;hp=7d265d7f4d1ccb93bc022fb11bda57e97b30f80f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git update use_moose docs and opt deps Add namespace::autoclean as an optional dep for use_moose. Even though it is a dependency of MooseX::MarkAsMethods, we want to list it explicitly. Update use_moose and only_autoclean POD to say that the overloads being protected are operator overloads. --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index e7b81be..5b8bb11 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -741,7 +741,7 @@ __PACKAGE__->table >> calls, and to some other things like Oracle sequences. =head2 use_moose Creates Schema and Result classes that use L, L and -L (or L, see below). The default +L (or L, see below). The default content after the md5 sum also makes the classes immutable. It is safe to upgrade your existing Schema to this option. @@ -750,13 +750,13 @@ It is safe to upgrade your existing Schema to this option. By default, we use L to remove imported functions from your generated classes. It uses L to do this, after -telling your object's metaclass that any Ls in your class are -methods, which will cause namespace::autoclean to spare them from removal. +telling your object's metaclass that any operator Ls in your class +are methods, which will cause namespace::autoclean to spare them from removal. This prevents the "Hey, where'd my overloads go?!" effect. -If you don't care about overloads, enabling this option falls back to just using -L itself. +If you don't care about operator overloads, enabling this option falls back to +just using L itself. If none of the above made any sense, or you don't have some pressing need to only use L, leaving this set to the default is diff --git a/lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm b/lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm index fad6d6d..8bd275e 100644 --- a/lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm +++ b/lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm @@ -22,6 +22,7 @@ my $reqs = { req => { 'Moose' => '1.12', 'MooseX::NonMoose' => '0.16', + 'namespace::autoclean' => '0.09', 'MooseX::MarkAsMethods' => '0.13', }, pod => {