sigurd 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75efcb785b0d995dae7843c66db4ad72955b2a7d3574af71c41aea634f5f8358
4
- data.tar.gz: 4fb1c060a723a5d827fc76bdf23da681904d05ad458dca3653106557d8de4b17
3
+ metadata.gz: f07c122083a1660b13660365c50697540880b435529921f610132d9812670b92
4
+ data.tar.gz: a3f8c982afe4b4c798e14c76ba14aa5e8dab8acaa829c775ba47f5bbd7ccba2c
5
5
  SHA512:
6
- metadata.gz: 4c933ceb70894580031de2cd35af38910c9fc896497c0f60e4e4a72d707663c68c80dc6f4c9739bc1cc342080ad6479f3e5855d541c3d3f37516ada1d19b9218
7
- data.tar.gz: a5d0795a16a10342e75ee45e8ddf09e5fdbab3ec86d7b1c5e2500dda96e8889f70d5ec1e980c81f8d98df5a230dd906b5de25d8f84b57e3ebffdc9b6e99bb2e1
6
+ metadata.gz: 66054bbcae792d1ffdf96a2a3688a03123aa995b09b33e0f90c89901fc8b195a5675941524591dd8bb75452259d204b19e209d87dd2d5ed7de15ed6e193e660a
7
+ data.tar.gz: aaadff9649837dc5448850a6c23acfd6ba3c2d85642eaa2e7dcfce9bb26bbf3f85a81c994174080a8aaf0e46a874ba6036035d6c8db905f065bbd297a06e6286
@@ -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.2] - 2020-11-25
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
@@ -30,7 +30,7 @@ are for bugfixes or new functionality which does not affect existing code. You
30
30
  should be locking your Gemfile to the minor version:
31
31
 
32
32
  ```ruby
33
- gem 'sigurd', '0.0.1'
33
+ gem 'sigurd', '0.0.3'
34
34
  ```
35
35
 
36
36
  # Usage
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'sigurd/version'
4
+ require 'sigurd/executor'
5
+ require 'sigurd/signal_handler'
4
6
 
5
7
  # :nodoc:
6
8
  module Sigurd
@@ -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, :runner
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sigurd
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigurd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner