dry-schema 1.9.1 → 1.9.2

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: c4447e05345b9fee9c6fa8014f1650d2f366428450f1a8b5de29da67794db47f
4
- data.tar.gz: 5dd78346a5a1f0e8df66f81ccb409e5870b409bb24547960954680b550186125
3
+ metadata.gz: c27dabeb33b1644739f90d7bbac22dfe85ae79d742da8376cad64bdfff46c514
4
+ data.tar.gz: 5b4df5b8215933c70fd3c04fd3a8cd74c0ff7bdfe4919110f95753348ce28726
5
5
  SHA512:
6
- metadata.gz: 1545a765733867780eef3bbfdcb4a5bf2fa9a4e7a5c7c47542a720e19f0b43a0ceef35e59a1c8238a4d4c2a38c7c01690d70df3677bc8a46f1e47d0d9eef3996
7
- data.tar.gz: a9c514202ba40aa68a503fa06a11f814cdaef34f196ad14664d23b13d713d364d328cfb73acbd889d55687e7e157e65b1e433df512c1ea2a18ff81bd5c7cb119
6
+ metadata.gz: 9111228ae652344f54044d93fd7516d67cdefa0789587b786d58291d40f9c61c009207c5b3ef68d7302e8e889a125e51fbd4bfa3a5ee6b8b2629a2e06cf7a538
7
+ data.tar.gz: bc1701018a9c35fb618c92a50fb4d68f24957f3d22431e343457dba65645d6476a5c7378620fe934b8520cfd20d62a2d2de1ac5c04af1f0130dfba5de86cb2f9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 1.9.2 2022-05-28
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Fix loose JSON schemas for nested hashes (via #401) (@tomdalling)
9
+ - Correct spelling error 'mininum' to 'minimum' in json-schema extension (via #404) (@svenanderzen)
10
+
11
+ ### Changed
12
+
13
+ - [performance] YAML message backend allocates less strings (via #399) (@casperisfine)
14
+
15
+ [Compare v1.9.1...v1.9.2](https://github.com/dry-rb/dry-schema/compare/v1.9.1...v1.9.2)
16
+
3
17
  ## 1.9.1 2022-02-17
4
18
 
5
19
 
@@ -146,7 +160,7 @@ This release ships with a bunch of internal refactorings that should improve per
146
160
  - Key validation works correctly with a non-nested maybe hashes (issue #311 fixed via #312) (@svobom57)
147
161
 
148
162
 
149
- [Compare v1.5.3...master](https://github.com/dry-rb/dry-schema/compare/v1.5.3...master)
163
+ [Compare v1.5.3...main](https://github.com/dry-rb/dry-schema/compare/v1.5.3...main)
150
164
 
151
165
  ## 1.5.3 2020-08-21
152
166
 
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  [![CI Status](https://github.com/dry-rb/dry-schema/workflows/ci/badge.svg)][actions]
12
12
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/961f5c776f1d49218b2cede3745e059c)][codacy]
13
13
  [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/961f5c776f1d49218b2cede3745e059c)][codacy]
14
- [![Inline docs](http://inch-ci.org/github/dry-rb/dry-schema.svg?branch=master)][inchpages]
14
+ [![Inline docs](http://inch-ci.org/github/dry-rb/dry-schema.svg?branch=main)][inchpages]
15
15
 
16
16
  ## Links
17
17
 
data/dry-schema.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ["lib"]
28
28
 
29
29
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
30
- spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/master/CHANGELOG.md"
30
+ spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md"
31
31
  spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-schema"
32
32
  spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-schema/issues"
33
33
 
@@ -47,7 +47,7 @@ module Dry
47
47
  pattern: "^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$"
48
48
  },
49
49
  gt?: {exclusiveMinimum: IDENTITY},
50
- gteq?: {mininum: IDENTITY},
50
+ gteq?: {minimum: IDENTITY},
51
51
  lt?: {exclusiveMaximum: IDENTITY},
52
52
  lteq?: {maximum: IDENTITY},
53
53
  odd?: {type: "integer", not: {multipleOf: 2}},
@@ -88,7 +88,7 @@ module Dry
88
88
 
89
89
  # @api private
90
90
  def visit_set(node, opts = EMPTY_HASH)
91
- target = (key = opts[:key]) ? self.class.new : self
91
+ target = (key = opts[:key]) ? self.class.new(loose: loose?) : self
92
92
 
93
93
  node.map { |child| target.visit(child, opts) }
94
94
 
@@ -39,10 +39,10 @@ module Dry
39
39
  super do |config|
40
40
  config.default_locale = :en unless config.default_locale
41
41
 
42
- config.root = "%<locale>s.#{config.root}"
42
+ config.root = -"%<locale>s.#{config.root}"
43
43
 
44
44
  config.rule_lookup_paths = config.rule_lookup_paths.map { |path|
45
- "%<locale>s.#{path}"
45
+ -"%<locale>s.#{path}"
46
46
  }
47
47
  end
48
48
  end
@@ -116,7 +116,7 @@ module Dry
116
116
  ->(input) { call(input) }
117
117
  end
118
118
 
119
- # Return string represntation
119
+ # Return string representation
120
120
  #
121
121
  # @return [String]
122
122
  #
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Schema
5
- VERSION = "1.9.1"
5
+ VERSION = "1.9.2"
6
6
  end
7
7
  end
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.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -237,10 +237,10 @@ licenses:
237
237
  - MIT
238
238
  metadata:
239
239
  allowed_push_host: https://rubygems.org
240
- changelog_uri: https://github.com/dry-rb/dry-schema/blob/master/CHANGELOG.md
240
+ changelog_uri: https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md
241
241
  source_code_uri: https://github.com/dry-rb/dry-schema
242
242
  bug_tracker_uri: https://github.com/dry-rb/dry-schema/issues
243
- post_install_message:
243
+ post_install_message:
244
244
  rdoc_options: []
245
245
  require_paths:
246
246
  - lib
@@ -255,8 +255,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  - !ruby/object:Gem::Version
256
256
  version: '0'
257
257
  requirements: []
258
- rubygems_version: 3.1.6
259
- signing_key:
258
+ rubygems_version: 3.2.32
259
+ signing_key:
260
260
  specification_version: 4
261
261
  summary: Coercion and validation for data structures
262
262
  test_files: []
263
+ ...