Subject: | [PATCH] Moose enum Warnings |
Hey,
Attached patch fixes the warnings produced by the change to the way enum should be called. Below is a blurb the Moose guys have been distributing.
---
We recently changed the syntax of enum declarations in Moose types. It appears that your module is affected. You can read more about the change here: https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200 We recommend that you take a look at your code to see if it indeed does need to be updated with respect to the latest Moose release, 2.1106-TRIAL. If you have any questions, then please ask either on Moose mailing list : http://lists.perl.org/list/moose.html or on #moose & #moose-dev on irc.perl.org.--
Cheers,
ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: | NetHack-Monster-Spoiler-0.05.patch |
diff -Naur NetHack-Monster-Spoiler-0.05_orig/lib/NetHack/Monster/Spoiler.pm NetHack-Monster-Spoiler-0.05/lib/NetHack/Monster/Spoiler.pm
--- NetHack-Monster-Spoiler-0.05_orig/lib/NetHack/Monster/Spoiler.pm 2014-01-22 18:06:37.253514083 -0500
+++ NetHack-Monster-Spoiler-0.05/lib/NetHack/Monster/Spoiler.pm 2014-01-22 18:07:05.293514450 -0500
@@ -321,7 +321,7 @@
isa => 'Str'
);
-enum 'NetHack::Monster::Size' => qw/tiny small medium large huge gigantic/;
+enum 'NetHack::Monster::Size' => [qw/tiny small medium large huge gigantic/];
has size => (
is => 'ro',