From: gfx <gfuji@cpan.org>
Date: Wed, 7 Oct 2009 10:56:52 +0000 (+0900)
Subject: Retrieve @EXPORT, which is no longer used, but defined for backward compatibility
X-Git-Tag: 0.37_03~11
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4352306000f5015a5984891845a5016fa7c831a4;p=gitmo%2FMouse.git

Retrieve @EXPORT, which is no longer used, but defined for backward compatibility
---

diff --git a/lib/Mouse.pm b/lib/Mouse.pm
index 81bce55..877fc6f 100644
--- a/lib/Mouse.pm
+++ b/lib/Mouse.pm
@@ -6,7 +6,7 @@ use Mouse::Exporter; # enables strict and warnings
 our $VERSION = '0.37_02';
 
 use Carp qw(confess);
-use Scalar::Util ();
+use Scalar::Util qw(blessed);
 
 use Mouse::Util qw(load_class is_class_loaded get_code_package not_supported);
 
@@ -30,6 +30,16 @@ Mouse::Exporter->setup_import_methods(
    ],
 );
 
+# XXX: for backward compatibility
+our @EXPORT = qw(
+    extends with
+    has
+    before after around
+    override super
+    augment  inner
+    blessed confess
+);
+
 sub extends { Mouse::Meta::Class->initialize(scalar caller)->superclasses(@_) }
 
 sub has {
diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm
index 33350cc..da5b302 100644
--- a/lib/Mouse/Role.pm
+++ b/lib/Mouse/Role.pm
@@ -1,8 +1,8 @@
 package Mouse::Role;
 use Mouse::Util qw(not_supported); # enables strict and warnings
 
-use Carp ();
-use Scalar::Util ();
+use Carp qw(confess);
+use Scalar::Util qw(blessed);
 
 use Mouse ();
 use Mouse::Exporter;
@@ -22,6 +22,18 @@ Mouse::Exporter->setup_import_methods(
     ],
 );
 
+# XXX: for backward compatibility
+our @EXPORT = qw(
+    extends with
+    has
+    before after around
+    override super
+    augment  inner
+
+    requires excludes
+
+    blessed confess
+);
 
 sub before {
     my $meta = Mouse::Meta::Role->initialize(scalar caller);