update use_moose docs and opt deps
Rafael Kitover [Sat, 29 Oct 2011 08:59:40 +0000 (04:59 -0400)]
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.

lib/DBIx/Class/Schema/Loader/Base.pm
lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm

index e7b81be..5b8bb11 100644 (file)
@@ -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<Moose>, L<MooseX::NonMoose> and
-L<namespace::autoclean> (or L<MooseX::MarkAsMethods>, see below). The default
+L<MooseX::MarkAsMethods> (or L<namespace::autoclean>, 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<MooseX::MarkAsMethods> to remove imported functions from
 your generated classes.  It uses L<namespace::autoclean> to do this, after
-telling your object's metaclass that any L<overload>s in your class are
-methods, which will cause namespace::autoclean to spare them from removal.
+telling your object's metaclass that any operator L<overload>s 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<namespace::autoclean> itself.
+If you don't care about operator overloads, enabling this option falls back to
+just using L<namespace::autoclean> itself.
 
 If none of the above made any sense, or you don't have some pressing need to
 only use L<namespace::autoclean>, leaving this set to the default is
index fad6d6d..8bd275e 100644 (file)
@@ -22,6 +22,7 @@ my $reqs = {
         req => {
             'Moose' => '1.12',
             'MooseX::NonMoose' => '0.16',
+            'namespace::autoclean' => '0.09',
             'MooseX::MarkAsMethods' => '0.13',
         },
         pod => {