From: Matt S Trout Date: Wed, 2 May 2012 20:36:27 +0000 (+0000) Subject: eliminate index attribute spec key X-Git-Tag: v0.091002~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=99b8bec0d3c4fd207387fca31da48fe742ace594;p=gitmo%2FMoo.git eliminate index attribute spec key --- diff --git a/lib/Moo/HandleMoose.pm b/lib/Moo/HandleMoose.pm index 68627cd..e5cef0f 100644 --- a/lib/Moo/HandleMoose.pm +++ b/lib/Moo/HandleMoose.pm @@ -58,6 +58,7 @@ sub inject_real_metaclass_for { local @{_getstash($name)}{keys %methods}; foreach my $name (keys %$attr_specs) { my %spec = %{$attr_specs->{$name}}; + delete $spec{index}; $spec{is} = 'ro' if $spec{is} eq 'lazy' or $spec{is} eq 'rwp'; delete $spec{asserter}; if (my $isa = $spec{isa}) { diff --git a/maint/fulltest b/maint/fulltest old mode 100644 new mode 100755