dry_validation_parser 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3777412afd0ab74607ad2b0394fabb2837a686a95ccd85f393944be9d1929d25
|
4
|
+
data.tar.gz: 293b9b8bc0b1e37328f3b941ecfc4e7ccf192e3920d504f50d0b9fa1ec630a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01fcad7a5b06a6dab8b1486dc1969314938c7dae8af7f51408c5d5f7f09aab1b4364c3a0015e1a9dfd1468ebbbebd53443bfa6374d87a6ffd23a3e6e9ad0965f
|
7
|
+
data.tar.gz: 3bfd883d74430f57d04471fd6fd058b5f3511de29379176cd5d185ff94904691a152493600e3697d03b046ca902ffe8f932d744ff37fe0172d6b7fa05343fa9a
|
@@ -117,7 +117,7 @@ module DryValidationParser
|
|
117
117
|
elsif PREDICATE_TO_TYPE[name]
|
118
118
|
keys[key][:type] = PREDICATE_TO_TYPE[name]
|
119
119
|
else
|
120
|
-
description = predicate_description(name
|
120
|
+
description = predicate_description(name, rest[0][1].to_s)
|
121
121
|
if keys[key][:description].to_s.empty?
|
122
122
|
keys[key][:description] = description unless description.to_s.empty?
|
123
123
|
else
|
@@ -131,7 +131,7 @@ module DryValidationParser
|
|
131
131
|
::I18n.t("contract.descriptions.#{name}", value: value, default: '')
|
132
132
|
else
|
133
133
|
description = DESCRIPTION_MAPPING[name]
|
134
|
-
description ? description % { value:
|
134
|
+
description ? description % { value: value } : ""
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|