ractor-pool 0.1.3 → 0.1.4

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: cccb1804757e873a03a33ad500bc670bbe6c15fea30aed69997150b0575ac5f9
4
- data.tar.gz: 04c10358846e174157d1afc063b57357b9406593c2b8d5633c604d34c2aea468
3
+ metadata.gz: db5eade7ed071733ea399dae4fdee20f9a2c1ec3a542d0587f1c9450fa53d2c6
4
+ data.tar.gz: a9769861a3f55e1801eaf9a702841dd8112223656bbfb0842c0b167d850a6823
5
5
  SHA512:
6
- metadata.gz: 96415baf0c0cd793167157cd2c0548c8d505749987adbed28eaea02ad68172f75723b58df6043da22c1fd8ab4940ebff5eeaae9c53d99ec6c124d554e91cfc32
7
- data.tar.gz: 0f185f8d1c0fb935e214a914976004e9a68115331511449c3166a9114bb3e05e08b855033a7d91176c9e45e9d4fc8f6d1e480e82ac1918c7baefe2e40f7b9d63
6
+ metadata.gz: 27b437672161ad04c27724374c8d03710e7f21b9fdc7a9e3f602f69bf5c3e12db1ac21e1116d325a92762d85791fa3450242e9015b9a552fe6e498e57ce3bb2f
7
+ data.tar.gz: 3ccc58e97f8c40328b01cc608e2ded0e2316c595de01c8c583305f0ecafd857737dcf42704c1b013852eab3211d2f2af2385a5ca2c43f28284953a2dd6e93627
@@ -1,17 +1,13 @@
1
1
  steps:
2
- - label: ":ruby: Ruby master-dev"
2
+ # - label: ":ruby: Ruby 4.0"
3
+ # image: "ruby:4.0"
4
+ # commands:
5
+ # - bundle install
6
+ # - bundle exec rake
7
+
8
+ - label: ":ruby: Ruby head"
3
9
  image: "rubylang/ruby:master-dev"
4
10
  commands:
5
11
  - apt-get update && apt-get install -y libyaml-dev
6
12
  - bundle install
7
13
  - bundle exec rake
8
-
9
- # - label: ":ruby: Ruby {{matrix.ruby}}"
10
- # image: "ruby:{{matrix.ruby}}"
11
- # commands:
12
- # - bundle install
13
- # - bundle exec rake
14
- # matrix:
15
- # setup:
16
- # ruby:
17
- # - 3.5.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.4] - 2025-11-10
4
+
5
+ - Replace Ruby 3.5 references with 4.0
6
+
3
7
  ## [0.1.3] - 2025-10-31
4
8
 
5
9
  - Allow `:worker` to be a Proc, not just a lambda
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RactorPool
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
data/lib/ractor-pool.rb CHANGED
@@ -72,10 +72,10 @@ class RactorPool
72
72
  # @raise [ArgumentError] if worker is not a proc
73
73
  #
74
74
  # @example With result handler
75
- # pool = RactorPool.new(size: 4, worker: -> { it }) { |result| puts result }
75
+ # pool = RactorPool.new(size: 4, worker: proc { it }) { |result| puts result }
76
76
  #
77
77
  # @example Without result handler
78
- # pool = RactorPool.new(size: 4, worker: -> { it })
78
+ # pool = RactorPool.new(size: 4, worker: proc { it })
79
79
  #
80
80
  # @rbs (?size: Integer, worker: ^(untyped) -> untyped, ?name: String?) ?{ (untyped) -> void } -> void
81
81
  def initialize(size: Etc.nprocessors, worker:, name: nil, &result_handler)
@@ -73,10 +73,10 @@ class RactorPool
73
73
  # @raise [ArgumentError] if worker is not a proc
74
74
  #
75
75
  # @example With result handler
76
- # pool = RactorPool.new(size: 4, worker: -> { it }) { |result| puts result }
76
+ # pool = RactorPool.new(size: 4, worker: proc { it }) { |result| puts result }
77
77
  #
78
78
  # @example Without result handler
79
- # pool = RactorPool.new(size: 4, worker: -> { it })
79
+ # pool = RactorPool.new(size: 4, worker: proc { it })
80
80
  #
81
81
  # @rbs (?size: Integer, worker: ^(untyped) -> untyped, ?name: String?) ?{ (untyped) -> void } -> void
82
82
  def initialize: (worker: ^(untyped) -> untyped, ?size: Integer, ?name: String?) ?{ (untyped) -> void } -> void
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 3.5.0.dev
69
+ version: 4.0.0.dev
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="