dry_validation_parser 0.1.6 → 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: '08617a8bec6a0e320de194f8a893cdd8ed95668fca9a19927d81d638fe0911ef'
4
- data.tar.gz: e289c597e3a3b9e055b0890a743d3f9ef3ca4f05e8ef12fed9cb08742dd11cb9
3
+ metadata.gz: 2fd43a018e7ec6b6c9a9e30fdc717d58be0c075c466e5ed8fb0a5db93587815b
4
+ data.tar.gz: a33f53b3206d1a951c25230224382a8fd24fed063bff9fda423aeb44ff4f0bac
5
5
  SHA512:
6
- metadata.gz: 1a37c7571550493d4928ed78dc694378e499ee6680b43c127657ac858cb87b09098331ff3db569e30d7fe94d88aa9b1180865d13dbbd38a719ea56e168c0b35f
7
- data.tar.gz: 8d14819d4fff4fef223596e4bee7ba8a53148d1b22aecf17d478467fb552c68fd4c9beb03df3ab2c716b898d20b93a2ab30d63843754e13053637e169c44a337
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: 5 } : ""
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.6"
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.6
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