docker_toolkit 0.1.21 → 0.1.23

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
  SHA256:
3
- metadata.gz: f203e1bb70de96bcdfdcb341bc0e4eb3466a2a2a8aa6ebc00653c9e26427674f
4
- data.tar.gz: cbd053c7089875d83694327eea6bf0f7c19e6cb2912777fd6c7156f0bcf7d44f
3
+ metadata.gz: fdb91997423fc5dd86b7c26f586fe6e04e7f1a2eefadf397802537b613a52359
4
+ data.tar.gz: 4d5111ad64589a5c201d49d44d76b4b037588ea708df4ac64b21d0f065c1801d
5
5
  SHA512:
6
- metadata.gz: 64d05ccf038c5f4ed63de2c09071632065399f23f34bf3a6ad13d7ff7a877ee00d7c879596df4819a81676e910beb827fd9a4709f658d74c07f81825540cdce8
7
- data.tar.gz: 38aac6414f3106ec403f8570314774c2de7d0b548400f9c6eb4d3ee53b382675253e1aa6788ec814ac63eb3283aabebac5974fd96effc70bf323c1c460dc3693
6
+ metadata.gz: f2faa78e0a6a92b5318e04993afdf0ed54d95551130d4d8da3fc522a8c59fb261b6efe7f87445cac70ff4cc9810d7417bfb6303b196ffda15f0d2693ede1cf46
7
+ data.tar.gz: ca940063d3755981f4a0d103a8ffe1e488e862f6c9adcba77b5184233ac8382cde2a5168333869e573ea703e713fa1cc42f1aa4f19e237b925ad8001ca3347fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker_toolkit (0.1.21)
4
+ docker_toolkit (0.1.23)
5
5
  diplomat
6
6
  dotenv
7
7
  json
@@ -15,7 +15,7 @@ GEM
15
15
  faraday (~> 0.9)
16
16
  json
17
17
  dotenv (2.5.0)
18
- faraday (0.15.2)
18
+ faraday (0.15.3)
19
19
  multipart-post (>= 1.2, < 3)
20
20
  json (2.1.0)
21
21
  multipart-post (2.0.0)
@@ -1,5 +1,5 @@
1
1
  module DockerToolkit
2
2
 
3
- VERSION = '0.1.21'.freeze
3
+ VERSION = '0.1.23'.freeze
4
4
 
5
5
  end
@@ -167,7 +167,7 @@ module DockerToolkit
167
167
  meta[:handled] || !meta[:process].exited?
168
168
  end
169
169
 
170
- unhandled.any? do |meta|
170
+ completed = unhandled.any? do |meta|
171
171
  log 'Child finished'
172
172
  log " Process[#{meta[:pid]}]: #{meta[:cmd]}"
173
173
  log " status: #{meta[:process].crashed? ? 'crashed' : 'exited'}"
@@ -203,6 +203,14 @@ module DockerToolkit
203
203
 
204
204
  true
205
205
  end
206
+
207
+ unless completed
208
+ pid, status = Process.waitpid2(-1, Process::WNOHANG) rescue nil
209
+ if status
210
+ log "Subprocess finished: #{status.inspect}"
211
+ end
212
+ end
213
+
206
214
  end
207
215
 
208
216
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Godko Ivan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-13 00:00:00.000000000 Z
12
+ date: 2018-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diplomat