projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7c72ed4
)
load Moo::sification in Moo::Role too
Matt S Trout [Fri, 4 May 2012 20:31:06 +0000 (20:31 +0000)]
Changes
patch
|
blob
|
blame
|
history
lib/Moo/Role.pm
patch
|
blob
|
blame
|
history
diff --git
a/Changes
b/Changes
index
e29d48c
..
0055a6b
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,3
+1,4
@@
+ - enable Moo::sification if only Moo::Role is loaded and not Moo
- preserve attribute ordering
- factor out accessor generation code a bit more to enable extension
diff --git
a/lib/Moo/Role.pm
b/lib/Moo/Role.pm
index
d84a5fd
..
72f3808
100644
(file)
--- a/
lib/Moo/Role.pm
+++ b/
lib/Moo/Role.pm
@@
-4,6
+4,8
@@
use strictures 1;
use Moo::_Utils;
use base qw(Role::Tiny);
+require Moo::sification;
+
BEGIN { *INFO = \%Role::Tiny::INFO }
our %INFO;