dry-schema 1.10.4 → 1.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -3
- data/lib/dry/schema/dsl.rb +2 -2
- data/lib/dry/schema/messages/namespaced.rb +3 -1
- data/lib/dry/schema/version.rb +1 -1
- data/lib/dry/schema.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fb3d7983387640c8dfe59ae9229bf2b11a03f8e9a62bd39451241a61723eaa1
|
4
|
+
data.tar.gz: 39958cdfd3beee497fd986fa9d243acb519387ef19731db1a5c702a9c38795fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27735a200ecca6798b592b7e240c3cfbc44f06fe24b58c35e7475d81cad49fbe0b4be6945220bfe17d7d2aa30b88f082c4374f290b242aa2175c55e47f1f0e12
|
7
|
+
data.tar.gz: 6d82d2b2ff0e0fdf3fe38620ffc62296070801ae2c4d17d9797f93eb0ecf99b705233f750b588bf3b147040724247762f59dcef8e57f85c6e779cc3bbdffb9fb
|
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.6 2022-10-01
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- Fix issues with rule name when top_namespace and namespace passed (issue #304 fixed via #432) (@RudskikhIvan)
|
9
|
+
|
10
|
+
|
11
|
+
[Compare v1.10.5...v1.10.6](https://github.com/dry-rb/dry-schema/compare/v1.10.5...v1.10.6)
|
12
|
+
|
13
|
+
## 1.10.5 2022-09-21
|
14
|
+
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
|
18
|
+
- Key maps no longer include duped keys when using inheritance (issues #428 #372 fixed via #429) (@solnic)
|
19
|
+
- Key validator and coercer no longer include duped keys when using parent schemas (via #430) (@solnic)
|
20
|
+
|
21
|
+
|
22
|
+
[Compare v1.10.4...v1.10.5](https://github.com/dry-rb/dry-schema/compare/v1.10.4...v1.10.5)
|
23
|
+
|
24
|
+
## 1.10.4 2022-09-13
|
4
25
|
|
5
26
|
|
6
27
|
### Fixed
|
@@ -10,7 +31,7 @@
|
|
10
31
|
|
11
32
|
[Compare v1.10.3...v1.10.4](https://github.com/dry-rb/dry-schema/compare/v1.10.3...v1.10.4)
|
12
33
|
|
13
|
-
## 1.10.3 2022-
|
34
|
+
## 1.10.3 2022-09-10
|
14
35
|
|
15
36
|
|
16
37
|
### Fixed
|
@@ -224,7 +245,7 @@ This release ships with a bunch of internal refactorings that should improve per
|
|
224
245
|
|
225
246
|
[Compare v1.5.4...v1.5.5](https://github.com/dry-rb/dry-schema/compare/v1.5.4...v1.5.5)
|
226
247
|
|
227
|
-
## 1.5.4
|
248
|
+
## 1.5.4
|
228
249
|
|
229
250
|
2020-09-03
|
230
251
|
|
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
|
@@ -63,7 +63,9 @@ module Dry
|
|
63
63
|
# @api private
|
64
64
|
def rule_lookup_paths(tokens)
|
65
65
|
base_paths = messages.rule_lookup_paths(tokens)
|
66
|
-
base_paths.map { |key|
|
66
|
+
base_paths.map { |key|
|
67
|
+
key.sub(config.top_namespace, "#{config.top_namespace}.#{namespace}")
|
68
|
+
} + base_paths
|
67
69
|
end
|
68
70
|
|
69
71
|
# @api private
|
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.6
|
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-
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|