ntl-actor 1.1.1 → 1.1.2
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 +4 -4
- data/lib/actor/supervisor.rb +1 -2
- data/lib/actor/supervisor/address/put.rb +6 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604987e3ff7305165038195449b437f41ca3b6ad
|
4
|
+
data.tar.gz: 8e899cf60639708edde8f0cfaad704c8cd9ef465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a0abd0d515ef63162a7b9d7cf0f4a3feb3bdcca33343dd9ba35bd52dc1aabbb1358e298cf36f0479cad86cb0e1a8d9f398fb8d4e85a393945e875760303df6
|
7
|
+
data.tar.gz: 90cbe160348c544fc3d075575489e0f4ee189edc094c3e3d9a49e748f04a3df9cf9d4314678ce8aa7525de04fe853be23a240e9756906ea128c9c208ffdfd3a2
|
data/lib/actor/supervisor.rb
CHANGED
@@ -20,7 +20,6 @@ module Actor
|
|
20
20
|
def self.build &assembly_block
|
21
21
|
instance = new
|
22
22
|
instance.assembly_block = assembly_block
|
23
|
-
instance.configure
|
24
23
|
instance
|
25
24
|
end
|
26
25
|
|
@@ -28,7 +27,7 @@ module Actor
|
|
28
27
|
thread = Thread.new do
|
29
28
|
thread_group = Thread.current.group
|
30
29
|
|
31
|
-
instance =
|
30
|
+
instance = Build.(self, &assembly_block)
|
32
31
|
instance.run_loop
|
33
32
|
end
|
34
33
|
|
@@ -2,10 +2,14 @@ module Actor
|
|
2
2
|
class Supervisor
|
3
3
|
module Address
|
4
4
|
module Put
|
5
|
-
def self.call address
|
5
|
+
def self.call address=nil
|
6
6
|
thread_group = Thread.current.group
|
7
7
|
|
8
|
-
|
8
|
+
if address.nil?
|
9
|
+
Registry.delete thread_group
|
10
|
+
else
|
11
|
+
Registry[thread_group] = address
|
12
|
+
end
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntl-actor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Implementation of actor pattern for ruby
|
14
14
|
email: nathanladd+github@gmail.com
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.6.
|
87
|
+
rubygems_version: 2.6.8
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Implementation of actor pattern for ruby
|