LibreCat / Catmandu

Catmandu - a data processing toolkit
https://librecat.org
177 stars 31 forks source link

Add Catmandu->validator method #338

Closed nichtich closed 6 years ago

nichtich commented 6 years ago

This includes a new default validator, Catmandu::Validator::Env, and some refactoring of Catmandu::Env which could be extended even further for stores.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.07%) to 93.547% when pulling 590377223cb68e192c044c59488ccec6cab505c8 on validator-env into 51fa6c747f03baa4c025a23b9e7f7a87b104ed10 on dev.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.05%) to 93.526% when pulling 99a07e70466eb6fd89f5f316ea3b3f74d2ee8d46 on validator-env into 51fa6c747f03baa4c025a23b9e7f7a87b104ed10 on dev.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.05%) to 93.526% when pulling 99a07e70466eb6fd89f5f316ea3b3f74d2ee8d46 on validator-env into 51fa6c747f03baa4c025a23b9e7f7a87b104ed10 on dev.

nics commented 6 years ago

I replaced the Env validator with a Mock validator controlled by a flag. In Env, validators are now also memoized and store also uses the same _named_package helper