ztk 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ztk/parallel.rb +3 -0
- data/lib/ztk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b55f9e86b529f41dcb5c2f39f4dc57150c07f18e
|
4
|
+
data.tar.gz: 6e9431c5a96a39ce23e9f581399d03d6b8cdf803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc292e31ff4a75cb0999d1d65ad760920710e2c646134db9506484f8e60497009552f62ff364f7900da25136e1d4b23f74d40eb4c43666a825cce0d7b173b77c
|
7
|
+
data.tar.gz: cdb1fd8323ee87d76da12031ee7262cae59a39a33eb77c30485aa46b0db00ae44991f8d74891cde20e2b150a57e0e73f3b5eae3bc0401641d0e212a00d2fb7da
|
data/lib/ztk/parallel.rb
CHANGED
@@ -199,6 +199,9 @@ module ZTK
|
|
199
199
|
def wait(flags=0)
|
200
200
|
config.ui.logger.debug { "wait" }
|
201
201
|
config.ui.logger.debug { "forks(#{@forks.inspect})" }
|
202
|
+
|
203
|
+
return nil if @forks.count <= 0
|
204
|
+
|
202
205
|
pid, status = (Process.wait2(-1, flags) rescue nil)
|
203
206
|
|
204
207
|
if !pid.nil? && !status.nil? && !(fork = @forks.select{ |f| f[:pid] == pid }.first).nil?
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Patten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|