From: gfx Date: Tue, 13 Oct 2009 05:15:16 +0000 (+0900) Subject: Add $VERSION to Mouse::Role to allow "use Mouse::Role VERSION" X-Git-Tag: 0.38~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=8bdd9cfc5383bf469942089b55156d4e561c3967 Add $VERSION to Mouse::Role to allow "use Mouse::Role VERSION" --- diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 12205ce..eb39b42 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -5,7 +5,7 @@ use Mouse::Exporter; # enables strict and warnings our $VERSION = '0.37_06'; -use Carp qw(confess); +use Carp qw(confess); use Scalar::Util qw(blessed); use Mouse::Util qw(load_class is_class_loaded get_code_package not_supported); diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm index ffc2b67..0e88ee7 100644 --- a/lib/Mouse/Role.pm +++ b/lib/Mouse/Role.pm @@ -1,11 +1,14 @@ package Mouse::Role; -use Mouse::Util qw(not_supported); # enables strict and warnings +use Mouse::Exporter; # enables strict and warnings -use Carp qw(confess); +our $VERSION = '0.37_06'; + +use Carp qw(confess); use Scalar::Util qw(blessed); +use Mouse::Util qw(not_supported); + use Mouse (); -use Mouse::Exporter; Mouse::Exporter->setup_import_methods( as_is => [qw(