bump version to 0.56 and update changes for release
[gitmo/Moose.git] / lib / Moose / Role.pm
index c1ba222..5c1bf0c 100644 (file)
@@ -11,6 +11,7 @@ use Data::OptList;
 use Sub::Exporter;
 
 our $VERSION   = '0.56';
+$VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
 use Moose       ();
@@ -139,7 +140,13 @@ sub init_meta {
     }
     else {
         $meta = $metaclass->initialize($role);
-        $meta->alias_method('meta' => sub { $meta });
+
+        $meta->add_method(
+            'meta' => sub {
+                # re-initialize so it inherits properly
+                $metaclass->initialize( ref($_[0]) || $_[0] );
+            }
+        );
     }
 
     return $meta;