lib/dry/validation/message_compiler.rb in dry-validation-0.11.2 vs lib/dry/validation/message_compiler.rb in dry-validation-0.12.0

- old
+ new

@@ -158,17 +158,21 @@ val_type: input.class ) end def message_text(rule, template, tokens, opts) + original_verbosity = $VERBOSE + $VERBOSE = nil text = template % tokens if full? rule_name = messages.rule(rule, opts) || rule "#{rule_name} #{text}" else text end + ensure + $VERBOSE = original_verbosity end def message_tokens(args) args.each_with_object({}) { |arg, hash| case arg[1]