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: ccb12036211270788b640b218b3f50906ad6f8daf79c683e82b2ba4f4e9730b0
4
- data.tar.gz: 9cf5b8d262ce584279af7b43566d148fa2ee224cc74630689ac5c824aca7b0f8
3
+ metadata.gz: 3777412afd0ab74607ad2b0394fabb2837a686a95ccd85f393944be9d1929d25
4
+ data.tar.gz: 293b9b8bc0b1e37328f3b941ecfc4e7ccf192e3920d504f50d0b9fa1ec630a26
5
5
  SHA512:
6
- metadata.gz: 8be3fe48b53e530f316af84f4910d6a5d225b78b76de0fed4dbca1bff7435e69cf5d94ad24bd46bd98b924eff745c79aa2bb413e45c3d917b52cc3615e5d8c72
7
- data.tar.gz: 4c118798fc0736758d95587a63098917dea8bcb5f02a8dccf799bf69619409295ed03ab120f367b6906d5b663da2877480a10f035217b3072546cc26811314ac
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.to_s, rest[0][1].to_s)
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: 5 } : ""
134
+ description ? description % { value: value } : ""
135
135
  end
136
136
  end
137
137
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DryValidationParser
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry_validation_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jane-Terziev