percy-common 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/process_helpers.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eddf531fb91fbf22f998671ea14c366a2878ae73cbef43358455c49e268bb84c
|
4
|
+
data.tar.gz: ebb9c132cf0bfeacce25b0a0a2ac98e4f59e8143794b5610ac03086aab0c876e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1adb262f5d174c4d41d2c219dcb7f4b721844a400fbc677aa18d4f934e52bb4b3804f9ac1d6f85398fbe1cb7f5ddff0feaad77c84d9ad201d5ed8d927a755ad
|
7
|
+
data.tar.gz: 01c8e92f0a037101399430bc861729f26fe0a5e97202a1db2d154a421cd0b003113ff611a9757ef04f3777bfbf5fa38f175ce571e1f460cb795d4dfc31b3c757
|
data/lib/percy/common/version.rb
CHANGED
@@ -17,7 +17,12 @@ module Percy
|
|
17
17
|
# Status has already been collected, perhaps by a Process.detach thread.
|
18
18
|
return false
|
19
19
|
rescue Timeout::Error
|
20
|
-
|
20
|
+
begin
|
21
|
+
Process.kill('KILL', pid)
|
22
|
+
rescue Errno::ESRCH
|
23
|
+
# If the process has already ended, suppress any additional errors
|
24
|
+
return false
|
25
|
+
end
|
21
26
|
# Collect status so it doesn't stick around as zombie process.
|
22
27
|
Process.wait(pid, Process::WNOHANG)
|
23
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dogstatsd-ruby
|