dry_validation_parser 0.1.7 → 0.1.8

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: 3777412afd0ab74607ad2b0394fabb2837a686a95ccd85f393944be9d1929d25
4
- data.tar.gz: 293b9b8bc0b1e37328f3b941ecfc4e7ccf192e3920d504f50d0b9fa1ec630a26
3
+ metadata.gz: 2fd43a018e7ec6b6c9a9e30fdc717d58be0c075c466e5ed8fb0a5db93587815b
4
+ data.tar.gz: a33f53b3206d1a951c25230224382a8fd24fed063bff9fda423aeb44ff4f0bac
5
5
  SHA512:
6
- metadata.gz: 01fcad7a5b06a6dab8b1486dc1969314938c7dae8af7f51408c5d5f7f09aab1b4364c3a0015e1a9dfd1468ebbbebd53443bfa6374d87a6ffd23a3e6e9ad0965f
7
- data.tar.gz: 3bfd883d74430f57d04471fd6fd058b5f3511de29379176cd5d185ff94904691a152493600e3697d03b046ca902ffe8f932d744ff37fe0172d6b7fa05343fa9a
6
+ metadata.gz: 99fed3396eb7bf4c766d6b7d6ebd9a4cbeeca230a580febbc92be3d9ccd70f7af1844415aa8762292c8fc3dda2b0f31faaaca8df46984494db9ffc2f2c89ebe9
7
+ data.tar.gz: 3e45f4d391637b1711e1724f85a7d0f5dbf2584a71d7f34f1e3ff5998069c019c78b496d54950ea7fe2774039f2397d17b5f406964315ad630e60955055a180d
@@ -127,12 +127,8 @@ module DryValidationParser
127
127
  end
128
128
 
129
129
  def predicate_description(name, value)
130
- if ::I18n.locale_available?(::I18n.locale)
131
- ::I18n.t("contract.descriptions.#{name}", value: value, default: '')
132
- else
133
- description = DESCRIPTION_MAPPING[name]
134
- description ? description % { value: value } : ""
135
- end
130
+ description = DESCRIPTION_MAPPING[name]
131
+ description ? description % { value: value } : ""
136
132
  end
137
133
  end
138
134
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DryValidationParser
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  require_relative "dry_validation_parser/version"
4
4
  require_relative "dry_validation_parser/validation_schema_parser"
5
- require 'i18n'
6
5
 
7
6
  module DryValidationParser
8
7
  class Error < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry_validation_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jane-Terziev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-types