Skip Menu |

This queue is for tickets about the MouseX-Params-Validate CPAN distribution.

Report information
The Basics
Id: 98668
Status: resolved
Priority: 0/
Queue: MouseX-Params-Validate

People
Owner: MANWAR [...] cpan.org
Requestors: STAUGAARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.06



Subject: Params::Validate 'depends' spec parameter not working
The depends spec parameter (see: https://metacpan.org/pod/Params::Validate#Dependencies) is not passed to Params::Validate Patch attached
Subject: Validate.pm.patch
--- Validate.pm 2014-09-06 19:27:57.236931200 +0200 +++ Validate.new.pm 2014-09-06 19:29:39.840187400 +0200 @@ -347,6 +347,8 @@ if exists $spec->{default}; $pv_spec{coerce} = $spec->{coerce} if exists $spec->{coerce}; + $pv_spec{depends} = $spec->{depends} + if exists $spec->{depends}; my $constraint; if (defined $spec->{isa}) @@ -460,4 +462,4 @@ =cut -1; # End of MouseX::Params::Validate \ No newline at end of file +1; # End of MouseX::Params::Validate
Hi Hans, Thanks for reporting the bug and patch as well. Much appreciated. I have applied the patch and uploaded to CPAN. It should be available soon. However I have also added it to my public git repository as below: https://github.com/Manwar/MouseX-Params-Validate Best Regards, Mohammad S Anwar
Closing the ticket as the code is patched.