async-process 1.1.1 → 1.2.0

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: 4463891d96186ffaabc950fb43a8784031b9a383ac37d98b1a318d08a3f6803b
4
- data.tar.gz: a75a9a3282746bee3a5ff399a6a31cef7a88f9c884187e5226317effde9817ce
3
+ metadata.gz: 1a421360f70006357500001d0c51640b764bb412f30aa093582279e9d952c7dc
4
+ data.tar.gz: 79d0814078f172ed27a7499d032fbd07d6c2b792eb0874d07401abc2f25f980b
5
5
  SHA512:
6
- metadata.gz: fe570d03a1e40729796882f7562511a39b2ed9d4891e16d38da8cefb50e00412ce317aaead9bf4cc1f110f44d4c627880f0a8bbf6fa0b2acc55bc5d65a5ccd4d
7
- data.tar.gz: baaea941dfbe47af1634d5a6df49374a41c6b9c90ce4a972d1aeba24e5d1ae4a7166dae05fa164a2a7f4779546acb649588748ae8883fdb92eed905685c84b9e
6
+ metadata.gz: 5f8895f382a4279ac4f66fd89ee9ec1e64dc967fd1f41a9df1cb192cd6ecc8cc904fe15a9ee9f1458135dbc949d3da8b7282f44b015f61a4ff8e4ff6598284b4
7
+ data.tar.gz: b83ec5ea0ad0a3a7351513e586c16ab3fb0692b6450b1dfaa020d65dceee95275f1289f43c247c34d85cd4d9d04a24a793f929d90ba26a4df15c6ca22e6506fd
@@ -0,0 +1,6 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = tab
5
+ indent_size = 2
6
+
@@ -45,6 +45,10 @@ module Async
45
45
  @exit_status.nil?
46
46
  end
47
47
 
48
+ def kill(signal = :TERM)
49
+ ::Process.kill(signal, -@pid)
50
+ end
51
+
48
52
  def wait
49
53
  if @exit_status.nil?
50
54
  wait_thread
@@ -61,7 +65,7 @@ module Async
61
65
  ensure
62
66
  # If the user stops this task, we kill the process:
63
67
  if @exit_status.nil?
64
- ::Process.kill(:TERM, -@pid)
68
+ ::Process.kill(:KILL, -@pid)
65
69
  end
66
70
 
67
71
  @thread.join
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module Process
23
- VERSION = "1.1.1"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-process
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".editorconfig"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - ".travis.yml"
@@ -129,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.7.7
133
+ rubygems_version: 3.0.0.beta3
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Asynchronous process spawning.