dry-validation 1.9.0 → 1.10.0

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: fb13f4dba2e8837c0cff3c3d092eacc87c29c367286f6e16f37c4b5d78179066
4
- data.tar.gz: 66196d258e68914b4546dcc20033e74627f2c738fcbeadbe6d4bfff746861cc0
3
+ metadata.gz: 6b192702d3a1f1a9a085fd65f94e0feba5457ea8eb6fecbbb45fe108a4d2436b
4
+ data.tar.gz: 1b685144ee290ad020397181072c5444c5d9c4beb673113db0b96182246e3040
5
5
  SHA512:
6
- metadata.gz: 1ccea2694b25be64dd68f01c6d9d554c20ae7992ffe78dbf2d483e5d502cdcc2bc3884f567da8d1d303a3b8fa71fa42c85b1a63977c5bef2b42d1496585228f4
7
- data.tar.gz: e95cd0ce0d5fdcd583b9edb023c1ae6d0797ab5bcfad1816c1a2b9d989c50fea90b66699c89bc5aedeb09483315b8c5d33696cec2e1662e06c7cadff162e9e22
6
+ metadata.gz: 88c8d5869a083648e539fdb96b29b766977176d24f7f9876e72c691f3c78409fc4cbd75df1081f532b7a7366d66c46eaddd0ef43cafb6d1a62c240abb19f5b3c
7
+ data.tar.gz: be4cf74f428428af9f65401433b96b20d264c89c3246452906a43447ce642b114e7e709bbccdf6e9bdacc2361880048c08101bbaa454bd45196158f8a948c3df
@@ -30,10 +30,9 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  # to update dependencies edit project.yml
32
32
  spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
33
- spec.add_runtime_dependency "dry-container", "~> 0.7", ">= 0.7.1"
34
- spec.add_runtime_dependency "dry-core", "~> 0.9", ">= 0.9"
33
+ spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2"
35
34
  spec.add_runtime_dependency "dry-initializer", "~> 3.0"
36
- spec.add_runtime_dependency "dry-schema", "~> 1.11", ">= 1.11.0"
35
+ spec.add_runtime_dependency "dry-schema", ">= 1.12", "< 2"
37
36
  spec.add_runtime_dependency "zeitwerk", "~> 2.6"
38
37
 
39
38
  spec.add_development_dependency "bundler"
@@ -1,6 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/monads/result"
3
+ require "dry/monads"
4
+ require "dry/monads/version"
5
+
6
+ if Gem::Version.new(Dry::Monads::VERSION) < Gem::Version.new("1.6.0")
7
+ raise "dry-validation requires dry-monads >= 1.6.0"
8
+ end
4
9
 
5
10
  module Dry
6
11
  module Validation
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/container"
4
-
5
3
  module Dry
6
4
  module Validation
7
5
  # API for registering and accessing Rule macros
@@ -41,7 +39,7 @@ module Dry
41
39
  #
42
40
  # @api public
43
41
  class Container
44
- include Dry::Container::Mixin
42
+ include Core::Container::Mixin
45
43
 
46
44
  # Register a new macro
47
45
  #
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Validation
5
- VERSION = "1.9.0"
5
+ VERSION = "1.10.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
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-10-15 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -24,46 +24,26 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: dry-container
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.7'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.7.1
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '0.7'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.7.1
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: dry-core
49
29
  requirement: !ruby/object:Gem::Requirement
50
30
  requirements:
51
31
  - - "~>"
52
32
  - !ruby/object:Gem::Version
53
- version: '0.9'
54
- - - ">="
33
+ version: '1.0'
34
+ - - "<"
55
35
  - !ruby/object:Gem::Version
56
- version: '0.9'
36
+ version: '2'
57
37
  type: :runtime
58
38
  prerelease: false
59
39
  version_requirements: !ruby/object:Gem::Requirement
60
40
  requirements:
61
41
  - - "~>"
62
42
  - !ruby/object:Gem::Version
63
- version: '0.9'
64
- - - ">="
43
+ version: '1.0'
44
+ - - "<"
65
45
  - !ruby/object:Gem::Version
66
- version: '0.9'
46
+ version: '2'
67
47
  - !ruby/object:Gem::Dependency
68
48
  name: dry-initializer
69
49
  requirement: !ruby/object:Gem::Requirement
@@ -82,22 +62,22 @@ dependencies:
82
62
  name: dry-schema
83
63
  requirement: !ruby/object:Gem::Requirement
84
64
  requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.11'
88
65
  - - ">="
89
66
  - !ruby/object:Gem::Version
90
- version: 1.11.0
67
+ version: '1.12'
68
+ - - "<"
69
+ - !ruby/object:Gem::Version
70
+ version: '2'
91
71
  type: :runtime
92
72
  prerelease: false
93
73
  version_requirements: !ruby/object:Gem::Requirement
94
74
  requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.11'
98
75
  - - ">="
99
76
  - !ruby/object:Gem::Version
100
- version: 1.11.0
77
+ version: '1.12'
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: '2'
101
81
  - !ruby/object:Gem::Dependency
102
82
  name: zeitwerk
103
83
  requirement: !ruby/object:Gem::Requirement