childprocess 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/childprocess/unix/process.rb +3 -0
- data/lib/childprocess/version.rb +1 -1
- data/spec/childprocess_spec.rb +12 -0
- 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: 13d6fa4c53bfc8bced81226a842c321cd1f9efd6
|
4
|
+
data.tar.gz: a3d8088d705d267bc4705ce7c5943c947da24904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f144cceccd0b92c3ef4b6380a2769c0243440c8458ae71df738b621ac0075e0efd1eeaba13111cdd267e362abcc6462364f6227e3dedbf819665c10559aaaf
|
7
|
+
data.tar.gz: c23654e897ac4d32bba1383fa20f89a792c58a42b1bed1e69afa8c5da031b43fa171d915e9bfe043e2da4f58f46cebfdf633e84fb479da949a31848f64388f08
|
data/.travis.yml
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
data/lib/childprocess/version.rb
CHANGED
data/spec/childprocess_spec.rb
CHANGED
@@ -241,4 +241,16 @@ describe ChildProcess do
|
|
241
241
|
|
242
242
|
threads.each { |t| t.join }
|
243
243
|
end
|
244
|
+
|
245
|
+
it 'can check if a detached child is alive' do
|
246
|
+
proc = ruby_process("-e", "sleep")
|
247
|
+
proc.detach = true
|
248
|
+
|
249
|
+
proc.start
|
250
|
+
|
251
|
+
expect(proc).to be_alive
|
252
|
+
proc.stop(0)
|
253
|
+
|
254
|
+
expect(proc).to be_exited
|
255
|
+
end
|
244
256
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: childprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|