From: Stevan Little <stevan.little@iinteractive.com>
Date: Tue, 22 Jan 2008 23:59:53 +0000 (+0000)
Subject: some minor tweaks
X-Git-Tag: 0_35^0
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a5016656153a950a0d5ae8035d1c0287d5f088f5;p=gitmo%2FMoose.git

some minor tweaks
---

diff --git a/Changes b/Changes
index 9184c62..cd542fa 100644
--- a/Changes
+++ b/Changes
@@ -5,6 +5,12 @@ Revision history for Perl extension Moose
       - fix to make sure even Class::MOP attributes 
         are handled correctly (Thanks to Dave Rolsky)
         - added test for this (also Dave Rolsky)
+    
+    * Moose::Meta::Class
+      - improved error message on _apply_all_roles, 
+        you should now use Moose::Util::apply_all_roles
+        and you shouldnt have been using a _ prefixed
+        method in the first place ;)
 
 0.34 Mon. Jan. 21, 2008
     ~~~ more misc. doc. fixes ~~~
diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm
index a784547..3f927f5 100644
--- a/lib/Moose/Meta/Class.pm
+++ b/lib/Moose/Meta/Class.pm
@@ -9,7 +9,7 @@ use Class::MOP;
 use Carp         'confess';
 use Scalar::Util 'weaken', 'blessed', 'reftype';
 
-our $VERSION   = '0.17';
+our $VERSION   = '0.18';
 our $AUTHORITY = 'cpan:STEVAN';
 
 use Moose::Meta::Method::Overriden;
@@ -271,7 +271,9 @@ sub _fix_metaclass_incompatability {
 # this was crap anyway, see
 # Moose::Util::apply_all_roles
 # instead
-sub _apply_all_roles { die "DEPRECATED" }
+sub _apply_all_roles { 
+    die 'DEPRECATED: use Moose::Util::apply_all_roles($meta, @roles) instead' 
+}
 
 my %ANON_CLASSES;