dry-types 1.7.1 → 1.7.2

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: de2177cef33e440a52114ce67514c41a77b8efabb21d6c02c225160da1aebe13
4
- data.tar.gz: 29767eb8a1d0b1f776dbc780734972038fa649f27a8d864f798c738ef103ea6c
3
+ metadata.gz: 12b751a4799c67217dd1540dacc45a70ce51dab53441ec64e575f74a520e0eb6
4
+ data.tar.gz: e50e85513f68af8f0b98f5af707c2e82826c7daed237fba9ca014b96fc4e4754
5
5
  SHA512:
6
- metadata.gz: b9a87a1ba9e5897272e9a6beb699a13548acf94175cf25c080548ea50e92f84b9feef6d8cbdb94965fb2d839d9fd9ec1db17a1352f879a929b2143ecd265aa4e
7
- data.tar.gz: 74453f830111bb02b2a2067c8c2f6104691d4946a8fe84b9ad6234fdc67c66697c4937a8fd722af92781c6c9d111b38b092ecb0583421b6c979cfb1cf08bf6aa
6
+ metadata.gz: c7247fc6a64c97967a83de7613f298d25137c4d03ae9afa79929255cca792dcb6a9f7203f4cdefb942b662c7ec7a32d0386a005c8e6e19ecfa03d37d802d2877
7
+ data.tar.gz: 2a54fd10714b4a5a74e7026de501c9a74f4378890ed4e39f98f9b163eb23ebfd28d27d85165e18a68aa8603149df2c8d56eabef99f36d26c56f6e60676fa3e3b
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.2 2024-01-05
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Fixed BigDecimal warning due to not being required in gemspec (@bkuhlmann in #464)
9
+
10
+
11
+ [Compare v1.7.1...v1.7.2](https://github.com/dry-rb/dry-types/compare/v1.7.1...v1.7.2)
12
+
3
13
  ## 1.7.1 2023-02-17
4
14
 
5
15
 
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  <!--- this file is synced from dry-rb/template-gem project -->
2
+
2
3
  [gem]: https://rubygems.org/gems/dry-types
3
4
  [actions]: https://github.com/dry-rb/dry-types/actions
4
5
 
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]
6
+ # 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]
6
7
 
7
8
  ## Links
8
9
 
@@ -14,7 +15,7 @@
14
15
 
15
16
  This library officially supports the following Ruby versions:
16
17
 
17
- * MRI `>= 2.7.0`
18
+ * MRI `>= 3.0`
18
19
  * jruby `>= 9.4` (not tested on CI)
19
20
 
20
21
  ## License
data/dry-types.gemspec CHANGED
@@ -26,9 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-types"
27
27
  spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-types/issues"
28
28
 
29
- spec.required_ruby_version = ">= 2.7.0"
29
+ spec.required_ruby_version = ">= 3.0"
30
30
 
31
31
  # to update dependencies edit project.yml
32
+ spec.add_runtime_dependency "bigdecimal", "~> 3.0"
32
33
  spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
33
34
  spec.add_runtime_dependency "dry-core", "~> 1.0"
34
35
  spec.add_runtime_dependency "dry-inflector", "~> 1.0"
@@ -185,6 +185,11 @@ module Dry
185
185
  end
186
186
  end
187
187
 
188
+ # @api private
189
+ def visit_map(_node)
190
+ raise NotImplementedError, "map types are not supported yet"
191
+ end
192
+
188
193
  private
189
194
 
190
195
  # @api private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Types
5
- VERSION = "1.7.1"
5
+ VERSION = "1.7.2"
6
6
  end
7
7
  end
data/lib/dry/types.rb CHANGED
@@ -28,7 +28,7 @@ module Dry
28
28
  extend ::Dry::Core::Deprecations[:"dry-types"]
29
29
  include ::Dry::Core::Constants
30
30
 
31
- TYPE_SPEC_REGEX = /(.+)<(.+)>/.freeze
31
+ TYPE_SPEC_REGEX = /(.+)<(.+)>/
32
32
 
33
33
  def self.loader
34
34
  @loader ||= ::Zeitwerk::Loader.new.tap do |loader|
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bigdecimal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: concurrent-ruby
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
234
  requirements:
221
235
  - - ">="
222
236
  - !ruby/object:Gem::Version
223
- version: 2.7.0
237
+ version: '3.0'
224
238
  required_rubygems_version: !ruby/object:Gem::Requirement
225
239
  requirements:
226
240
  - - ">="