ntl-actor 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/actor/supervisor.rb +4 -0
  3. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a248085a59139b5a654ffd3c4d88a125c409847
4
- data.tar.gz: 0a95b14dc7bee4ce4ffb259c4058baedf2a59be1
3
+ metadata.gz: e0c88b4604c03bb629e693a7d72e274dfae3c2cc
4
+ data.tar.gz: ec1392122225b29127297bfb32ad2e080276685a
5
5
  SHA512:
6
- metadata.gz: 21bed49350bde9295a5d5380b2d80a6c4a5d4ef2c8241e3b5ef4795d1c24c866116be5695339cd639bb44a7ef850aa6d1dc9fc26b67d0f955865d44f005d14fb
7
- data.tar.gz: 9fc7de957667da0179a58e37ff7aaa4d72991839cbbaec75b01ea0b34f52ab42187fde4cdc678b920e8b5b55209d54db61e259c3a7735252dac19292604a682e
6
+ metadata.gz: 3dc160915615a234617ad0a4880bcc9a5a07e88bb92ff6ce91ca5ab80743a2f7231599fe989783f50e433df6ff698faafe4745cc6de327127724e21ff1727e90
7
+ data.tar.gz: ead037eba5b21614ba7169227906544e878e4c6470182d6362ebb6656420fb5803ece15fa4b2b62079ab8029aa7a447aecbabbdb01f4632e23220668222ea300
@@ -42,6 +42,10 @@ module Actor
42
42
  end
43
43
 
44
44
  def start &supplementary_action
45
+ Signal.trap 'CONT' do resume end
46
+ Signal.trap 'INT' do stop end
47
+ Signal.trap 'TSTP' do pause end
48
+
45
49
  loop do
46
50
  supplementary_action.() if supplementary_action
47
51
 
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntl-actor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Implementation of actor pattern for ruby designed for simplicity and frugality
13
+ description: Implementation of actor pattern for ruby designed for simplicity and
14
+ frugality
14
15
  email: nathanladd+github@gmail.com
15
16
  executables: []
16
17
  extensions: []
@@ -51,7 +52,7 @@ homepage: https://github.com/ntl/actor
51
52
  licenses:
52
53
  - MIT
53
54
  metadata: {}
54
- post_install_message:
55
+ post_install_message:
55
56
  rdoc_options: []
56
57
  require_paths:
57
58
  - lib
@@ -66,9 +67,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
67
  - !ruby/object:Gem::Version
67
68
  version: '0'
68
69
  requirements: []
69
- rubyforge_project:
70
- rubygems_version: 2.6.4
71
- signing_key:
70
+ rubyforge_project:
71
+ rubygems_version: 2.6.6
72
+ signing_key:
72
73
  specification_version: 4
73
74
  summary: Implementation of actor pattern for ruby
74
75
  test_files: []