Module: Lazy
- Defined in:
- lib/lazy/check/reporter.rb,
lib/lazy/check/checker.rb,
lib/lazy/check/version.rb,
lib/lazy/check/constants.rb,
lib/lazy/check/checked_tag.rb,
lib/lazy/check/checked_url.rb,
lib/lazy/check/checker_url.rb,
lib/lazy/check/checker_case.rb,
lib/lazy/check/checker_code.rb,
lib/lazy/check/checker_test.rb
Overview
Lazy::Checker::Code
Classe pour utiliser Lazy::Check directement avec du code, sans passer par une URL ou une recette
Defined Under Namespace
Modules: Check Classes: Checker
Constant Summary collapse
- KNOWN_LANGS =
['fr','en']
- LANG =
lang
- APP_FOLDER =
File.dirname(File.dirname(File.dirname(__dir__)))
- YAML_OPTIONS =
{symbolize_names:true, aliases:true, permitted_classes:[Date,Integer,Float]}
- ERRORS =
YAML.safe_load(File.read(File.join(__dir__,'locales',LANG,'errors.yaml')), **YAML_OPTIONS)
- MESSAGES =
YAML.safe_load(File.read(File.join(__dir__,'locales',LANG,'messages.yaml')), **YAML_OPTIONS)