dry-schema 1.10.3 → 1.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -1
- data/dry-schema.gemspec +3 -3
- data/lib/dry/schema/compiler.rb +1 -0
- data/lib/dry/schema/config.rb +3 -0
- data/lib/dry/schema/constants.rb +1 -0
- data/lib/dry/schema/dsl.rb +2 -2
- data/lib/dry/schema/key_coercer.rb +3 -0
- data/lib/dry/schema/key_map.rb +2 -0
- data/lib/dry/schema/macros/dsl.rb +2 -0
- data/lib/dry/schema/macros/each.rb +1 -0
- data/lib/dry/schema/message.rb +1 -0
- data/lib/dry/schema/message_set.rb +2 -0
- data/lib/dry/schema/messages/abstract.rb +2 -0
- data/lib/dry/schema/messages/template.rb +1 -0
- data/lib/dry/schema/messages/yaml.rb +3 -0
- data/lib/dry/schema/predicate.rb +3 -0
- data/lib/dry/schema/predicate_inferrer.rb +2 -0
- data/lib/dry/schema/predicate_registry.rb +3 -0
- data/lib/dry/schema/primitive_inferrer.rb +2 -0
- data/lib/dry/schema/processor.rb +2 -0
- data/lib/dry/schema/result.rb +1 -0
- data/lib/dry/schema/value_coercer.rb +1 -0
- data/lib/dry/schema/version.rb +1 -1
- data/lib/dry/schema.rb +1 -4
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 554c25036e827be6ef861157dd83013ca2c04a401c3fb238b4b9d186bd839d90
|
4
|
+
data.tar.gz: 37556dbf504ed1a928771687627e36034113077437fad2a1eed54c877ab4bf70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dc91041372b0d8a944c4d43df2bcea7beadc691cde5cd446345908195af1454293bd192b31eea571fcf8f6aca657d3f814eb8ad373a66e5f44be58f4d1486f3
|
7
|
+
data.tar.gz: f8fb0a30337e95bc3b83781640d0d8b03931907c2b5333df52d36e41ff1d52d8c852cc6056d4d82e4fe6a5e52c81beed8bb893a5e6b82da2814f2817302c6406
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,27 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
-
## 1.10.
|
3
|
+
## 1.10.5 2022-10-21
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- Key maps no longer include duped keys when using inheritance (issues #428 #372 fixed via #429) (@solnic)
|
9
|
+
- Key validator and coercer no longer include duped keys when using parent schemas (via #430) (@solnic)
|
10
|
+
|
11
|
+
|
12
|
+
[Compare v1.10.4...v1.10.5](https://github.com/dry-rb/dry-schema/compare/v1.10.4...v1.10.5)
|
13
|
+
|
14
|
+
## 1.10.4 2022-10-13
|
15
|
+
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Once again reverting zeitwerk related changes that were included in 1.10.3 by an accident :( (@solnic)
|
20
|
+
|
21
|
+
|
22
|
+
[Compare v1.10.3...v1.10.4](https://github.com/dry-rb/dry-schema/compare/v1.10.3...v1.10.4)
|
23
|
+
|
24
|
+
## 1.10.3 2022-10-10
|
4
25
|
|
5
26
|
|
6
27
|
### Fixed
|
data/dry-schema.gemspec
CHANGED
@@ -36,10 +36,10 @@ Gem::Specification.new do |spec|
|
|
36
36
|
# to update dependencies edit project.yml
|
37
37
|
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
38
38
|
spec.add_runtime_dependency "dry-configurable", "~> 0.13", ">= 0.13.0"
|
39
|
-
spec.add_runtime_dependency "dry-core", "~> 0.
|
39
|
+
spec.add_runtime_dependency "dry-core", "~> 0.5", ">= 0.5"
|
40
40
|
spec.add_runtime_dependency "dry-initializer", "~> 3.0"
|
41
|
-
spec.add_runtime_dependency "dry-logic", "~> 1.
|
42
|
-
spec.add_runtime_dependency "dry-types", "~> 1.
|
41
|
+
spec.add_runtime_dependency "dry-logic", "~> 1.2"
|
42
|
+
spec.add_runtime_dependency "dry-types", "~> 1.5"
|
43
43
|
|
44
44
|
spec.add_development_dependency "bundler"
|
45
45
|
spec.add_development_dependency "rake"
|
data/lib/dry/schema/compiler.rb
CHANGED
data/lib/dry/schema/config.rb
CHANGED
data/lib/dry/schema/constants.rb
CHANGED
data/lib/dry/schema/dsl.rb
CHANGED
@@ -437,7 +437,7 @@ module Dry
|
|
437
437
|
#
|
438
438
|
# @api private
|
439
439
|
def key_validator
|
440
|
-
KeyValidator.new(key_map: key_map
|
440
|
+
KeyValidator.new(key_map: key_map)
|
441
441
|
end
|
442
442
|
|
443
443
|
# Build a key coercer
|
@@ -446,7 +446,7 @@ module Dry
|
|
446
446
|
#
|
447
447
|
# @api private
|
448
448
|
def key_coercer
|
449
|
-
KeyCoercer.symbolized(key_map
|
449
|
+
KeyCoercer.symbolized(key_map)
|
450
450
|
end
|
451
451
|
|
452
452
|
# Build a value coercer
|
data/lib/dry/schema/key_map.rb
CHANGED
data/lib/dry/schema/message.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "yaml"
|
4
4
|
require "pathname"
|
5
5
|
|
6
|
+
require "dry/core/equalizer"
|
6
7
|
require "dry/schema/constants"
|
7
8
|
require "dry/schema/messages/abstract"
|
8
9
|
|
@@ -168,9 +169,11 @@ module Dry
|
|
168
169
|
text = input.gsub("%", "#")
|
169
170
|
|
170
171
|
# rubocop:disable Security/Eval
|
172
|
+
# rubocop:disable Style/DocumentDynamicEvalDefinition
|
171
173
|
evaluator = eval(<<~RUBY, EMPTY_CONTEXT, __FILE__, __LINE__ + 1)
|
172
174
|
-> (#{tokens.map { |token| "#{token}:" }.join(", ")}) { "#{text}" }
|
173
175
|
RUBY
|
176
|
+
# rubocop:enable Style/DocumentDynamicEvalDefinition
|
174
177
|
# rubocop:enable Security/Eval
|
175
178
|
|
176
179
|
{
|
data/lib/dry/schema/predicate.rb
CHANGED
data/lib/dry/schema/processor.rb
CHANGED
data/lib/dry/schema/result.rb
CHANGED
data/lib/dry/schema/version.rb
CHANGED
data/lib/dry/schema.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -50,20 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.5'
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '0.
|
56
|
+
version: '0.5'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.5'
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.5'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: dry-initializer
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,28 +84,28 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '1.
|
87
|
+
version: '1.2'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '1.
|
94
|
+
version: '1.2'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: dry-types
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1.
|
101
|
+
version: '1.5'
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: '1.
|
108
|
+
version: '1.5'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: bundler
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|