dry-schema 1.10.3 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -2
- 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/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 -2
- 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: 3a3fdab16834d270d9cdfd3788fffb0899b711fc946e6aa3f4bc98115983acb7
|
4
|
+
data.tar.gz: c8349be888a2d957ba67137a7877828031d385e1452793730654cee3a9994e68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23d0a177d1b2bfe8ba70ca0de182785ef9016d271e28ae36dd5590aae7f0b30d6a9ae1336948d3a862bf6b04afcc75cb2a115c3de589509cf46bd4a471c5e054
|
7
|
+
data.tar.gz: 478dc03869f1913f736db5ec2c69ff17c68440463f4cf23f337ef5d3b41cc944242075ce0bc36c1971765563566eb2d86e15f54ff7e1d762f6dbd6ccb3217947
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
-
## 1.10.
|
3
|
+
## 1.10.4 2022-10-13
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- Once again reverting zeitwerk related changes that were included in 1.10.3 by an accident :( (@solnic)
|
9
|
+
|
10
|
+
|
11
|
+
[Compare v1.10.3...v1.10.4](https://github.com/dry-rb/dry-schema/compare/v1.10.3...v1.10.4)
|
12
|
+
|
13
|
+
## 1.10.3 2022-10-10
|
4
14
|
|
5
15
|
|
6
16
|
### Fixed
|
@@ -214,7 +224,7 @@ This release ships with a bunch of internal refactorings that should improve per
|
|
214
224
|
|
215
225
|
[Compare v1.5.4...v1.5.5](https://github.com/dry-rb/dry-schema/compare/v1.5.4...v1.5.5)
|
216
226
|
|
217
|
-
## 1.5.4
|
227
|
+
## 1.5.4
|
218
228
|
|
219
229
|
2020-09-03
|
220
230
|
|
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/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.4
|
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-13 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
|