sigurd 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/README.md +1 -1
- data/lib/sigurd.rb +2 -0
- data/lib/sigurd/signal_handler.rb +2 -1
- data/lib/sigurd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f07c122083a1660b13660365c50697540880b435529921f610132d9812670b92
|
4
|
+
data.tar.gz: a3f8c982afe4b4c798e14c76ba14aa5e8dab8acaa829c775ba47f5bbd7ccba2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66054bbcae792d1ffdf96a2a3688a03123aa995b09b33e0f90c89901fc8b195a5675941524591dd8bb75452259d204b19e209d87dd2d5ed7de15ed6e193e660a
|
7
|
+
data.tar.gz: aaadff9649837dc5448850a6c23acfd6ba3c2d85642eaa2e7dcfce9bb26bbf3f85a81c994174080a8aaf0e46a874ba6036035d6c8db905f065bbd297a06e6286
|
data/CHANGELOG.md
CHANGED
@@ -7,8 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## UNRELEASED
|
9
9
|
|
10
|
-
## [0.0.
|
10
|
+
## [0.0.3] - 2020-11-25
|
11
11
|
- Allow to access the executor from outside the signal handler.
|
12
|
+
- Use `require "sigurd"` without having to require files individually.
|
12
13
|
|
13
14
|
## [0.0.1] - 2020-06-02
|
14
15
|
- Initial release.
|
data/README.md
CHANGED
data/lib/sigurd.rb
CHANGED
@@ -5,6 +5,7 @@ module Sigurd
|
|
5
5
|
# signals to ask them to stop nicely.
|
6
6
|
class SignalHandler
|
7
7
|
SIGNALS = %i(INT TERM QUIT).freeze
|
8
|
+
attr_reader :runner
|
8
9
|
|
9
10
|
# Takes any object that responds to the `start` and `stop` methods.
|
10
11
|
# @param runner[#start, #stop]
|
@@ -35,7 +36,7 @@ module Sigurd
|
|
35
36
|
|
36
37
|
private
|
37
38
|
|
38
|
-
attr_reader :reader, :writer, :signal_queue
|
39
|
+
attr_reader :reader, :writer, :signal_queue
|
39
40
|
|
40
41
|
# https://stackoverflow.com/questions/29568298/run-code-when-signal-is-sent-but-do-not-trap-the-signal-in-ruby
|
41
42
|
def prepend_handler(signal)
|
data/lib/sigurd/version.rb
CHANGED