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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed4dc92acd6566d623035a51532d94c6b4eb2586
4
- data.tar.gz: c157a15976ed4ead4f2049fad070b4fae96be54c
3
+ metadata.gz: b55f9e86b529f41dcb5c2f39f4dc57150c07f18e
4
+ data.tar.gz: 6e9431c5a96a39ce23e9f581399d03d6b8cdf803
5
5
  SHA512:
6
- metadata.gz: 700c4e7864a361db22527bc3bbe0f81584e3459a2be1d609a060cf21d63d3016d9afa68d6b71536be90fe7abf6da906a8c9364e255355c1ce2031cd774ecfa7b
7
- data.tar.gz: 8571f6db42d6447788111a01362d3d578acaa5e8b7eef867e666020a2788d9b255c304341c21b9f31444cc7087df9cf5a76074e7245c642a3ad939076c98081d
6
+ metadata.gz: bc292e31ff4a75cb0999d1d65ad760920710e2c646134db9506484f8e60497009552f62ff364f7900da25136e1d4b23f74d40eb4c43666a825cce0d7b173b77c
7
+ data.tar.gz: cdb1fd8323ee87d76da12031ee7262cae59a39a33eb77c30485aa46b0db00ae44991f8d74891cde20e2b150a57e0e73f3b5eae3bc0401641d0e212a00d2fb7da
@@ -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?
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "3.2.5"
4
+ VERSION = "3.2.6"
5
5
 
6
6
  end
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.5
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-04-10 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport