childprocess 0.5.1 → 0.5.2

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: 0a69d7a6d2d1a65d1496d2b2dc327348cfdf6801
4
- data.tar.gz: ec705f40bd0330bea05aa4ed556e047fa8cdf337
3
+ metadata.gz: 3723a7f95462549d5067a9f4d4beb41a90364542
4
+ data.tar.gz: a13ebffae12ab4f999dd12691486dd8be8fee2cf
5
5
  SHA512:
6
- metadata.gz: 474cbc9d237b873332e387e602b575628c49479cb60705509fc154dd35b5409fe1b48d2b8b9d5b5775d72b5b3787359cde2b9f35a37fb5834a444efb327b0002
7
- data.tar.gz: a25cb4f8d10b38537b101484bebf8888530020ff3876615d4daa5b78ee96b104758973f0e15b2f2e97e50cd82fd5de532d4bff1352a3bcc47d7497dafd0ac745
6
+ metadata.gz: ec8f62831def5b44109e0a90c6889a9a6032cafe3c81e6716440057a948df76ed3291f23a655ef7dcb9fd268327cad3d9293d37a54b23d7325283fefda85f7ed
7
+ data.tar.gz: 623c1367aa7bfbed9d93d3c5eb873ca836f3e189fd3b4f7b57f3a704988b4d1df236be0d59f504ec6174d30477ee880afd8a752432105254a460ee53211a5634
data/README.md CHANGED
@@ -130,7 +130,7 @@ By default, the child process does not create a new process group. This means th
130
130
 
131
131
  ```ruby
132
132
  process = ChildProcess.build(*args)
133
- process.new_process_group = true
133
+ process.leader = true
134
134
  process.start
135
135
  ```
136
136
 
@@ -17,7 +17,7 @@ module ChildProcess
17
17
  reader, writer = ::IO.pipe
18
18
  end
19
19
 
20
- @pid = fork {
20
+ @pid = Kernel.fork {
21
21
  # Children of the forked process will inherit its process group
22
22
  # This is to make sure that all grandchildren dies when this Process instance is killed
23
23
  ::Process.setpgid 0, 0 if leader?
@@ -40,7 +40,7 @@ module ChildProcess
40
40
  executable, *args = @args
41
41
 
42
42
  begin
43
- exec([executable, executable], *args)
43
+ Kernel.exec([executable, executable], *args)
44
44
  rescue SystemCallError => ex
45
45
  exec_w << ex.message
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module ChildProcess
2
- VERSION = "0.5.1"
3
- end
2
+ VERSION = "0.5.2"
3
+ 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.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-17 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec