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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52498945533408be846a7c22b278471bb1e45fec87b9b3a994eee33034009fff
4
- data.tar.gz: 1b5f542e5c07fb57a67cd7fa2062bf17a51bcc6acf2e9ba4955468f42a9c4b08
3
+ metadata.gz: 3a3fdab16834d270d9cdfd3788fffb0899b711fc946e6aa3f4bc98115983acb7
4
+ data.tar.gz: c8349be888a2d957ba67137a7877828031d385e1452793730654cee3a9994e68
5
5
  SHA512:
6
- metadata.gz: d189171c08a31c3011ff9747890eb3286f019edd2a5ec6f8bb28c9dcfd1b623886d52cdd88715bac608c1adf58d0ffd139c68a228799d207d1353821f16f5dd9
7
- data.tar.gz: 105ac239e814c3ce1b40641137c5b9bf01dbd3c077d3891606773e4825f92c90a37d1248f6b352f75b77bafc80b52b2a0c1d4b719ec3a4a5fde09c186f6dd4f5
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 2019-10-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.9", ">= 0.9"
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.3"
42
- spec.add_runtime_dependency "dry-types", "~> 1.6"
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"
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/logic/rule_compiler"
3
4
  require "dry/schema/namespaced_rule"
4
5
  require "dry/schema/predicate_registry"
5
6
 
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/equalizer"
4
+ require "dry/configurable"
5
+
3
6
  require "dry/schema/constants"
4
7
  require "dry/schema/predicate_registry"
5
8
  require "dry/schema/type_container"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pathname"
4
+ require "dry/core/constants"
4
5
 
5
6
  module Dry
6
7
  # Common constants used across the library
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/cache"
4
+ require "dry/core/equalizer"
5
+
3
6
  module Dry
4
7
  module Schema
5
8
  # Coerces keys in a hash using provided coercer function
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/equalizer"
4
+ require "dry/core/cache"
3
5
  require "dry/schema/constants"
4
6
  require "dry/schema/key"
5
7
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/logic/operators"
4
+
3
5
  require "dry/schema/macros/core"
4
6
  require "dry/schema/predicate_inferrer"
5
7
  require "dry/schema/primitive_inferrer"
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/types/type"
3
4
  require "dry/schema/macros/dsl"
4
5
 
5
6
  module Dry
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dry/initializer"
4
+ require "dry/core/equalizer"
4
5
 
5
6
  require "dry/schema/path"
6
7
  require "dry/schema/message/or"
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/equalizer"
4
+
3
5
  module Dry
4
6
  module Schema
5
7
  # A set of messages used to generate errors
@@ -2,6 +2,8 @@
2
2
 
3
3
  require "set"
4
4
  require "concurrent/map"
5
+ require "dry/core/equalizer"
6
+ require "dry/configurable"
5
7
 
6
8
  require "dry/schema/constants"
7
9
  require "dry/schema/messages/template"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dry/initializer"
4
+ require "dry/core/equalizer"
4
5
 
5
6
  require "dry/schema/constants"
6
7
 
@@ -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
  {
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/equalizer"
4
+ require "dry/logic/operators"
5
+
3
6
  module Dry
4
7
  module Schema
5
8
  # Predicate objects used within the DSL
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/types/predicate_inferrer"
4
+
3
5
  module Dry
4
6
  module Schema
5
7
  # @api private
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/logic/predicates"
4
+ require "dry/types/predicate_registry"
5
+
3
6
  module Dry
4
7
  module Schema
5
8
  # A registry with predicate objects from `Dry::Logic::Predicates`
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/types/primitive_inferrer"
4
+
3
5
  module Dry
4
6
  module Schema
5
7
  # @api private
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/configurable"
3
4
  require "dry/initializer"
5
+ require "dry/logic/operators"
4
6
 
5
7
  require "dry/schema/type_registry"
6
8
  require "dry/schema/type_container"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dry/initializer"
4
+ require "dry/core/equalizer"
4
5
 
5
6
  require "dry/schema/path"
6
7
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dry/core/equalizer"
3
4
  require "dry/initializer"
4
5
 
5
6
  module Dry
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Schema
5
- VERSION = "1.10.3"
5
+ VERSION = "1.10.4"
6
6
  end
7
7
  end
data/lib/dry/schema.rb CHANGED
@@ -1,9 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/core"
3
+ require "dry/core/extensions"
4
4
  require "dry/configurable"
5
5
  require "dry/logic"
6
- require "dry/types"
7
6
 
8
7
  require "dry/schema/config"
9
8
  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.3
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-10 00:00:00.000000000 Z
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.9'
53
+ version: '0.5'
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: '0.9'
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.9'
63
+ version: '0.5'
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: '0.9'
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.3'
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.3'
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.6'
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.6'
108
+ version: '1.5'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: bundler
111
111
  requirement: !ruby/object:Gem::Requirement