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: | File-Find-Declare-Moose-enum-warnings.patch |
diff -Naur File-Find-Declare-0.62_orig/lib/File/Find/Declare.pm File-Find-Declare-0.62/lib/File/Find/Declare.pm
--- File-Find-Declare-0.62_orig/lib/File/Find/Declare.pm 2010-02-02 01:25:55.000000000 -0500
+++ File-Find-Declare-0.62/lib/File/Find/Declare.pm 2014-01-21 18:44:36.700411921 -0500
@@ -24,13 +24,13 @@
=> as 'Str';
#available test directives
-enum 'Directive' => qw(readable r_readable writable r_writable
+enum 'Directive' => [qw(readable r_readable writable r_writable
executable r_executable owned r_owned
exists file empty directory
nonempty symlink fifo setuid
socket setgid block sticky
character tty modified accessed
- ascii changed binary);
+ ascii changed binary)];
#file permissions subtype
subtype 'Perms'