multi_process 0.5.1 → 0.5.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
  SHA1:
3
- metadata.gz: be405d13696f31e0ad55781ca32ac0ea3d15b17e
4
- data.tar.gz: 71c59ee5225a53a48b01066a5f7605b1e07913ad
3
+ metadata.gz: 550774b3bb8c3f49060efc3d508f1d55a0c70924
4
+ data.tar.gz: e8bfbfe219cd440b5c7163db8cf81c8e8c1f0470
5
5
  SHA512:
6
- metadata.gz: 1309b238b1533cab1fcc3243533a7f3cacf64c8faae9b4145258240f816223fe072745ce92ede6c2c90880b59ff1c73835ab0de0ad1a5e516b4df70318e2bdfe
7
- data.tar.gz: 9b047b73e46cff0c792bb6c64da59046c516244eb06f78f7a2c6c0f74f829c5bac286c3e0e55fa5dce61e7a2b7bd7ada73f65d06d21451af4ae5d388802682c4
6
+ metadata.gz: 098592026b269f5afcee611ab82bc06863eba7795e1f7afd446d314d6f44584e14901518ff9b18e12e1b85a435d9a8238d21ac0471de0f65af10f64fd5851cdf
7
+ data.tar.gz: 87be05c69577bac776b30dcd4a009029e7591a1d9512771ce885939769340a5e79baf5d1fbc5f2c23d851a80e5c5dbfa35dbdaa4b6cc4ba47bc2f949663b19ce
@@ -95,7 +95,7 @@ module MultiProcess
95
95
  # If timeout is given process will be terminated using {#stop}
96
96
  # when timeout error is raised.
97
97
  #
98
- def run(**kwargs)
98
+ def run(delay: nil, timeout: nil)
99
99
  if partition > 0
100
100
  partition.times.map do
101
101
  Thread.new do
@@ -105,8 +105,8 @@ module MultiProcess
105
105
  end
106
106
  end.each(&:join)
107
107
  else
108
- start(**kwargs)
109
- wait(**kwargs)
108
+ start delay: delay
109
+ wait timeout: timeout
110
110
  end
111
111
  ensure
112
112
  stop
@@ -2,7 +2,7 @@ module MultiProcess
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_process
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen