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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a3fdab16834d270d9cdfd3788fffb0899b711fc946e6aa3f4bc98115983acb7
4
- data.tar.gz: c8349be888a2d957ba67137a7877828031d385e1452793730654cee3a9994e68
3
+ metadata.gz: 9fb3d7983387640c8dfe59ae9229bf2b11a03f8e9a62bd39451241a61723eaa1
4
+ data.tar.gz: 39958cdfd3beee497fd986fa9d243acb519387ef19731db1a5c702a9c38795fc
5
5
  SHA512:
6
- metadata.gz: 23d0a177d1b2bfe8ba70ca0de182785ef9016d271e28ae36dd5590aae7f0b30d6a9ae1336948d3a862bf6b04afcc75cb2a115c3de589509cf46bd4a471c5e054
7
- data.tar.gz: 478dc03869f1913f736db5ec2c69ff17c68440463f4cf23f337ef5d3b41cc944242075ce0bc36c1971765563566eb2d86e15f54ff7e1d762f6dbd6ccb3217947
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.4 2022-10-13
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-10-10
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
 
@@ -437,7 +437,7 @@ module Dry
437
437
  #
438
438
  # @api private
439
439
  def key_validator
440
- KeyValidator.new(key_map: key_map + parent_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 + parent_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| key.gsub("dry_schema", "dry_schema.#{namespace}") } + base_paths
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Schema
5
- VERSION = "1.10.4"
5
+ VERSION = "1.10.6"
6
6
  end
7
7
  end
data/lib/dry/schema.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dry/core/extensions"
4
- require "dry/configurable"
5
- require "dry/logic"
6
4
 
7
5
  require "dry/schema/config"
8
6
  require "dry/schema/constants"
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
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-09-13 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby