ractor-pool 0.1.0 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20f4d6392022d30bb6c629bcf5fc7e1de3cbc586a6bd111dfd1771a3ceb47845
4
- data.tar.gz: c653cd83e3b363471d671e2515bf6597f19bb27190f80a6c89571ae97adfbd19
3
+ metadata.gz: 91c084f008baa15ff5055f98088e65922bff71060b9041366ca6350b96037c6b
4
+ data.tar.gz: 7bea56f71397cd2c236d9f12dcb235d8fe48933af9382ff0de4cded751831ed3
5
5
  SHA512:
6
- metadata.gz: 97cdc940a685d8cf4522fa5b7e88ca64ba395eace72cbd84535d1b0021f03c1e8ac3823ac55b875390f7b5993832ee1b1aee706666a9f141edad3412c37a027f
7
- data.tar.gz: e50b79953aa3521285c76e756c64e1342032ae3f299ca5f712f5785fec2ed3bb1189c9074267137978c1d9e35a2f2214c72fbc7bb809cc3ed1c75770024e5f98
6
+ metadata.gz: 2e08dd1eab2b1eef62a057096f2e93fb866e50a01f25c2f19356e0a6ea56ba48b889d81b446c7ae9520797b98608513a693ebd7d220bffbd508600607d89465b
7
+ data.tar.gz: e1f8944501eaa6ff0e2732198c2cbbb5c66c72a40a5c799967b5305df6a51c9c63cecb4fc903c473e487a3beece1b0ee3397afdc835c98a795267c016f45bfa7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2025-10-22
3
+ ## [0.1.2] - 2025-10-29
4
+
5
+ - Fix `@coordinator` RBS type to allow nil
6
+
7
+ ## [0.1.1] - 2025-10-29
8
+
9
+ - Make `RactorPool::SHUTDOWN` private
10
+
11
+ ## [0.1.0] - 2025-10-29
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -5,13 +5,13 @@
5
5
  Install the gem and add to the application's Gemfile by executing:
6
6
 
7
7
  ```bash
8
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
8
+ bundle add ractor-pool
9
9
  ```
10
10
 
11
11
  If bundler is not being used to manage dependencies, install the gem by executing:
12
12
 
13
13
  ```bash
14
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+ gem install ractor-pool
15
15
  ```
16
16
 
17
17
  ## Usage
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RactorPool
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/ractor-pool.rb CHANGED
@@ -49,6 +49,7 @@ class RactorPool
49
49
  end
50
50
 
51
51
  SHUTDOWN = :shutdown
52
+ private_constant :SHUTDOWN
52
53
 
53
54
  # @rbs @size: Integer
54
55
  # @rbs @worker: ^(untyped) -> untyped
@@ -56,7 +57,7 @@ class RactorPool
56
57
  # @rbs @result_handler: (^(untyped) -> void | nil)
57
58
  # @rbs @state: Atom[Hash[Symbol, bool | Integer]]
58
59
  # @rbs @result_port: Ractor::Port?
59
- # @rbs @coordinator: Ractor
60
+ # @rbs @coordinator: Ractor?
60
61
  # @rbs @workers: Array[Ractor]
61
62
  # @rbs @collector: Thread?
62
63
 
@@ -48,7 +48,7 @@ class RactorPool
48
48
 
49
49
  @workers: Array[Ractor]
50
50
 
51
- @coordinator: Ractor
51
+ @coordinator: Ractor?
52
52
 
53
53
  @result_port: Ractor::Port?
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ractor-pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young