Subject: | [PATCH] Moose enum Warnings |
This 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: | Chart-OFC-Moose-enum-warnings.patch |
diff --git a/lib/Chart/OFC/Types.pm b/lib/Chart/OFC/Types.pm
index e0c67b0..2fd4ae8 100644
--- a/lib/Chart/OFC/Types.pm
+++ b/lib/Chart/OFC/Types.pm
@@ -117,7 +117,7 @@ subtype 'Chart::OFC::Type::PosOrZeroInt'
subtype 'Chart::OFC::Type::Size'
=> as 'Chart::OFC::Type::PosInt';
-enum 'Chart::OFC::Type::Orientation' => qw( horizontal vertical diagonal );
+enum 'Chart::OFC::Type::Orientation' => [qw( horizontal vertical diagonal )];
{