Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cope with Validate::Tiny API change from v1.501 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SysPete
Copy link

@SysPete SysPete commented Jul 25, 2016

As per GH issue #2 Validate::Tiny changed its API as from v1.501:

Object interface changed - new is now just a constructor and check is used
to do actual validation. To adapt your code, it should be enough to just
replace all Validate::Tiny->new with Validate::Tiny->check.

This commit checks whether Validate::Tiny->can('check') and calls constructor or constructor plus 'check' accordingly.

As per GH issue zurborg#2 Validate::Tiny changed its API as from v1.501:

> Object interface changed - new is now just a constructor and check is used
> to do actual validation. To adapt your code, it should be enough to just
> replace all Validate::Tiny->new with Validate::Tiny->check.

This commit checks whether `Validate::Tiny->can('check')` and calls
constructor or constructor plus 'check' accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant