dry-types 1.7.0 → 1.7.1

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: fdd7e08f86f3137ead67bb6170e91de625227e97783be335b982e5a4c313b32e
4
- data.tar.gz: faa51ae68eb4942cb64520eed7d6c4dbf5b46af384a91acdfc94105f32298839
3
+ metadata.gz: de2177cef33e440a52114ce67514c41a77b8efabb21d6c02c225160da1aebe13
4
+ data.tar.gz: 29767eb8a1d0b1f776dbc780734972038fa649f27a8d864f798c738ef103ea6c
5
5
  SHA512:
6
- metadata.gz: 588feadceca555b168266b6e6ee542d71b154152ea56a88f7b601c33a79b116c90b86356e03bc8ca273e4df5d38e4056277c88502387e836bba4af8409fede14
7
- data.tar.gz: 72326eb3f32d33cbc95d1e20d6bec4f1bc40a66fa6cac818d35b8ff2214d3932f3350d5e6cf36a6a49ea3ffd862d7422a49622d5a98937a0be6f914d0f390965
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2022 dry-rb team
3
+ Copyright (c) 2015-2023 dry-rb team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
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 [![Join the chat at https://dry-rb.zulipchat.com](https://img.shields.io/badge/dry--rb-join%20chat-%23346b7a.svg)][chat]
9
-
10
- [![Gem Version](https://badge.fury.io/rb/dry-types.svg)][gem]
11
- [![CI Status](https://github.com/dry-rb/dry-types/workflows/ci/badge.svg)][actions]
12
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f2d71613195f4da993acb9ac9d6ea336)][codacy]
13
- [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/f2d71613195f4da993acb9ac9d6ea336)][codacy]
14
- [![Inline docs](http://inch-ci.org/github/dry-rb/dry-types.svg?branch=main)][inchpages]
5
+ # dry-types [![Gem Version](https://badge.fury.io/rb/dry-types.svg)][gem] [![CI Status](https://github.com/dry-rb/dry-types/workflows/ci/badge.svg)][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.3` (postponed until 2.7 is supported)
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", "< 2"
34
- spec.add_runtime_dependency "dry-inflector", "~> 1.0", "< 2"
35
- spec.add_runtime_dependency "dry-logic", ">= 1.4", "< 2"
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[options.fetch(:fn, block)])
27
+ super(type, **options, fn: Function[Undefined.default(fn, block)])
28
28
  end
29
29
 
30
30
  # @param [Builder, Object] input
@@ -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/master/CHANGELOG.md"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Types
5
- VERSION = "1.7.0"
5
+ VERSION = "1.7.1"
6
6
  end
7
7
  end
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.0
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: 2022-11-04 00:00:00.000000000 Z
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.1.6
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