dry-types 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/LICENSE +1 -1
- data/README.md +3 -11
- data/dry-types.gemspec +3 -3
- data/lib/dry/types/constructor.rb +2 -2
- data/lib/dry/types/hash.rb +1 -1
- data/lib/dry/types/version.rb +1 -1
- metadata +5 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de2177cef33e440a52114ce67514c41a77b8efabb21d6c02c225160da1aebe13
|
|
4
|
+
data.tar.gz: 29767eb8a1d0b1f776dbc780734972038fa649f27a8d864f798c738ef103ea6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9a87a1ba9e5897272e9a6beb699a13548acf94175cf25c080548ea50e92f84b9feef6d8cbdb94965fb2d839d9fd9ec1db17a1352f879a929b2143ecd265aa4e
|
|
7
|
+
data.tar.gz: 74453f830111bb02b2a2067c8c2f6104691d4946a8fe84b9ad6234fdc67c66697c4937a8fd722af92781c6c9d111b38b092ecb0583421b6c979cfb1cf08bf6aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
|
2
2
|
|
|
3
|
+
## 1.7.1 2023-02-17
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
|
|
8
|
+
- Warning from jruby about overwritten keyword (@flash-gordon + @klobuczek in #454)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
[Compare v1.7.0...v1.7.1](https://github.com/dry-rb/dry-types/compare/v1.7.0...v1.7.1)
|
|
12
|
+
|
|
3
13
|
## 1.7.0 2022-11-04
|
|
4
14
|
|
|
5
15
|
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
<!--- this file is synced from dry-rb/template-gem project -->
|
|
2
2
|
[gem]: https://rubygems.org/gems/dry-types
|
|
3
3
|
[actions]: https://github.com/dry-rb/dry-types/actions
|
|
4
|
-
[codacy]: https://www.codacy.com/gh/dry-rb/dry-types
|
|
5
|
-
[chat]: https://dry-rb.zulipchat.com
|
|
6
|
-
[inchpages]: http://inch-ci.org/github/dry-rb/dry-types
|
|
7
4
|
|
|
8
|
-
# dry-types [][gem]
|
|
11
|
-
[][actions]
|
|
12
|
-
[][codacy]
|
|
13
|
-
[][codacy]
|
|
14
|
-
[][inchpages]
|
|
5
|
+
# dry-types [][gem] [][actions]
|
|
15
6
|
|
|
16
7
|
## Links
|
|
17
8
|
|
|
18
9
|
* [User documentation](https://dry-rb.org/gems/dry-types)
|
|
19
10
|
* [API documentation](http://rubydoc.info/gems/dry-types)
|
|
11
|
+
* [Forum](https://discourse.dry-rb.org)
|
|
20
12
|
|
|
21
13
|
## Supported Ruby versions
|
|
22
14
|
|
|
23
15
|
This library officially supports the following Ruby versions:
|
|
24
16
|
|
|
25
17
|
* MRI `>= 2.7.0`
|
|
26
|
-
* jruby `>= 9.
|
|
18
|
+
* jruby `>= 9.4` (not tested on CI)
|
|
27
19
|
|
|
28
20
|
## License
|
|
29
21
|
|
data/dry-types.gemspec
CHANGED
|
@@ -30,9 +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-core", "~> 1.0"
|
|
34
|
-
spec.add_runtime_dependency "dry-inflector", "~> 1.0"
|
|
35
|
-
spec.add_runtime_dependency "dry-logic", "
|
|
33
|
+
spec.add_runtime_dependency "dry-core", "~> 1.0"
|
|
34
|
+
spec.add_runtime_dependency "dry-inflector", "~> 1.0"
|
|
35
|
+
spec.add_runtime_dependency "dry-logic", "~> 1.4"
|
|
36
36
|
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
|
|
37
37
|
|
|
38
38
|
spec.add_development_dependency "bundler"
|
|
@@ -22,9 +22,9 @@ module Dry
|
|
|
22
22
|
# @param [#call, nil] block
|
|
23
23
|
#
|
|
24
24
|
# @api public
|
|
25
|
-
def self.new(input, **options, &block)
|
|
25
|
+
def self.new(input, fn: Undefined, **options, &block)
|
|
26
26
|
type = input.is_a?(Builder) ? input : Nominal.new(input)
|
|
27
|
-
super(type, **options, fn: Function[
|
|
27
|
+
super(type, **options, fn: Function[Undefined.default(fn, block)])
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# @param [Builder, Object] input
|
data/lib/dry/types/hash.rb
CHANGED
|
@@ -49,7 +49,7 @@ module Dry
|
|
|
49
49
|
# @api private
|
|
50
50
|
def weak(*)
|
|
51
51
|
raise "Support for old hash schemas was removed, please refer to the CHANGELOG "\
|
|
52
|
-
"on how to proceed with the new API https://github.com/dry-rb/dry-types/blob/
|
|
52
|
+
"on how to proceed with the new API https://github.com/dry-rb/dry-types/blob/main/CHANGELOG.md"
|
|
53
53
|
end
|
|
54
54
|
alias_method :permissive, :weak
|
|
55
55
|
alias_method :strict, :weak
|
data/lib/dry/types/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-types
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Solnica
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -31,9 +31,6 @@ dependencies:
|
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '1.0'
|
|
34
|
-
- - "<"
|
|
35
|
-
- !ruby/object:Gem::Version
|
|
36
|
-
version: '2'
|
|
37
34
|
type: :runtime
|
|
38
35
|
prerelease: false
|
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -41,9 +38,6 @@ dependencies:
|
|
|
41
38
|
- - "~>"
|
|
42
39
|
- !ruby/object:Gem::Version
|
|
43
40
|
version: '1.0'
|
|
44
|
-
- - "<"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '2'
|
|
47
41
|
- !ruby/object:Gem::Dependency
|
|
48
42
|
name: dry-inflector
|
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -51,9 +45,6 @@ dependencies:
|
|
|
51
45
|
- - "~>"
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
47
|
version: '1.0'
|
|
54
|
-
- - "<"
|
|
55
|
-
- !ruby/object:Gem::Version
|
|
56
|
-
version: '2'
|
|
57
48
|
type: :runtime
|
|
58
49
|
prerelease: false
|
|
59
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -61,29 +52,20 @@ dependencies:
|
|
|
61
52
|
- - "~>"
|
|
62
53
|
- !ruby/object:Gem::Version
|
|
63
54
|
version: '1.0'
|
|
64
|
-
- - "<"
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version: '2'
|
|
67
55
|
- !ruby/object:Gem::Dependency
|
|
68
56
|
name: dry-logic
|
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
|
70
58
|
requirements:
|
|
71
|
-
- - "
|
|
59
|
+
- - "~>"
|
|
72
60
|
- !ruby/object:Gem::Version
|
|
73
61
|
version: '1.4'
|
|
74
|
-
- - "<"
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: '2'
|
|
77
62
|
type: :runtime
|
|
78
63
|
prerelease: false
|
|
79
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
65
|
requirements:
|
|
81
|
-
- - "
|
|
66
|
+
- - "~>"
|
|
82
67
|
- !ruby/object:Gem::Version
|
|
83
68
|
version: '1.4'
|
|
84
|
-
- - "<"
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: '2'
|
|
87
69
|
- !ruby/object:Gem::Dependency
|
|
88
70
|
name: zeitwerk
|
|
89
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -245,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
245
227
|
- !ruby/object:Gem::Version
|
|
246
228
|
version: '0'
|
|
247
229
|
requirements: []
|
|
248
|
-
rubygems_version: 3.
|
|
230
|
+
rubygems_version: 3.3.26
|
|
249
231
|
signing_key:
|
|
250
232
|
specification_version: 4
|
|
251
233
|
summary: Type system for Ruby supporting coercions, constraints and complex types
|