async-container 0.16.7 → 0.16.8

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: 87218f3196f6535fbb3849b6cb24ee3cc4ba6f59ed3c55ca9374b2889d51aa62
4
- data.tar.gz: 3b38ac9e91231d51b0d29d7fab36c5cdae70df84833aa97307d6e4e9462b405d
3
+ metadata.gz: ee8197b7402c0371e54a95c13e0f2d840d5482d23ba5f5824a0cd55255406ff0
4
+ data.tar.gz: 69d2cf1a6c6fa55984e85a00745ad282784c52c31855d447a94e3f279c06e63c
5
5
  SHA512:
6
- metadata.gz: 1c0c01247d61f0cdc5f5cf7aa404d2115ffecf853c1c33669dbd25dbed4d7e6f0db20495ffcf6052497156cfd16b41d7ec8319f7b57ee0ba6fda8aa799d28aa3
7
- data.tar.gz: 6fa64afb47c7f8a83e79773ed9ca891966bf88e5ba092e304f859ffc2a76cd0525830f96ece65d9b1ca5637fc3527aa1750ff93b2374d807eca7642f68b73714
6
+ metadata.gz: 8d95d54708ecf167ab38647cbe0ff9b92f87281c67c43e1f43ed9c251adfbadaed69e01ef9385005e010d59f771e347fe56d11d0b251d9e92592d3081606a0ba
7
+ data.tar.gz: 74379b807e40a3a3758404552365393fa55a09fc9fb4cb337a07cebbe8521ea93cce30315d225d574ef15f56d4d1b90548ab6d170fcd152493366d4498770656
@@ -201,6 +201,10 @@ module Async
201
201
  raise Terminate
202
202
  end
203
203
 
204
+ hangup_action = Signal.trap(:HUP) do
205
+ raise Hangup
206
+ end
207
+
204
208
  self.start
205
209
 
206
210
  while @container&.running?
@@ -228,6 +232,7 @@ module Async
228
232
  # Restore the interrupt handler:
229
233
  Signal.trap(:INT, interrupt_action)
230
234
  Signal.trap(:TERM, terminate_action)
235
+ Signal.trap(:HUP, hangup_action)
231
236
  end
232
237
  end
233
238
  end
@@ -36,6 +36,14 @@ module Async
36
36
  end
37
37
  end
38
38
 
39
+ class Hangup < SignalException
40
+ SIGHUP = Signal.list['HUP']
41
+
42
+ def initialize
43
+ super(SIGHUP)
44
+ end
45
+ end
46
+
39
47
  # Represents the error which occured when a container failed to start up correctly.
40
48
  class SetupError < Error
41
49
  def initialize(container)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module Container
25
- VERSION = "0.16.7"
25
+ VERSION = "0.16.8"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.7
4
+ version: 0.16.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-09 00:00:00.000000000 Z
11
+ date: 2020-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.1'
55
- - !ruby/object:Gem::Dependency
56
- name: bake-bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: bake-modernize
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: bundler
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -159,7 +131,7 @@ require_paths:
159
131
  - lib
160
132
  required_ruby_version: !ruby/object:Gem::Requirement
161
133
  requirements:
162
- - - "~>"
134
+ - - ">="
163
135
  - !ruby/object:Gem::Version
164
136
  version: '2.5'
165
137
  required_rubygems_version: !ruby/object:Gem::Requirement