Skip Menu |

This queue is for tickets about the Getopt-Flex CPAN distribution.

Report information
The Basics
Id: 90687
Status: open
Priority: 0/
Queue: Getopt-Flex

People
Owner: Nobody in particular
Requestors: upasna.shukla [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: New Moose may break your code
Date: Sat, 23 Nov 2013 08:00:00 +0530
To: bug-Getopt-Flex [...] rt.cpan.org
From: "Upasana Shukla" <upasna.shukla [...] gmail.com>
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.
Attached patch fixes the issue. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Subject: Getopt-Flex-moose-warnings-enum.patch
diff -Naur Getopt-Flex-1.07_orig/lib/Getopt/Flex/Config.pm Getopt-Flex-1.07/lib/Getopt/Flex/Config.pm --- Getopt-Flex-1.07_orig/lib/Getopt/Flex/Config.pm 2014-01-21 19:51:07.260464206 -0500 +++ Getopt-Flex-1.07/lib/Getopt/Flex/Config.pm 2014-01-21 19:51:36.172464585 -0500 @@ -12,13 +12,13 @@ use Moose::Util::TypeConstraints; #valid non_option_mode arguments -enum 'NonOptionMode' => qw(IGNORE SWITCH_RET_0 VALUE_RET_0 STOP_RET_0 STOP); +enum 'NonOptionMode' => [qw(IGNORE SWITCH_RET_0 VALUE_RET_0 STOP_RET_0 STOP)]; #valid long_option_mode arguments -enum 'LongOptionMode' => qw(REQUIRE_DOUBLE_DASH SINGLE_OR_DOUBLE); +enum 'LongOptionMode' => [qw(REQUIRE_DOUBLE_DASH SINGLE_OR_DOUBLE)]; #valid case_mode arguments -enum 'CaseMode' => qw(SENSITIVE INSENSITIVE); +enum 'CaseMode' => [qw(SENSITIVE INSENSITIVE)]; #how to react when encountering something that #isn't an option