Skip Menu |
 

This queue is for tickets about the MooseX-App-Cmd CPAN distribution.

Report information
The Basics
Id: 84437
Status: new
Priority: 0/
Queue: MooseX-App-Cmd

People
Owner: mjgardner [...] cpan.org
Requestors: chip [...] pobox.com
Cc:
AdminCc:

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



Subject: [PATCH] Missing parameter in call to attribute default function
Download (untitled) / with headers
text/plain 726b
Moose attribute default functions need to be called with a parameter. Ideally it is the object, but at the very least it should be the class. This causes self-test to fail on my platform. Maybe Moose has changed. Patch: --- MooseX-App-Cmd-0.09/lib/MooseX/App/Cmd/Command.pm 2012-03-18 17:21:29.000000000 -0700 +++ MooseX-App-Cmd-0.09x/lib/MooseX/App/Cmd/Command.pm 2013-04-04 18:53:12.365399845 -0700 @@ -43,7 +43,7 @@ if ( $cfmeta->has_default ) { my $default = $cfmeta->default; $configfile - = ref $default eq 'CODE' ? $default->() : $default; + = ref $default eq 'CODE' ? $default->($class) : $default; } }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.