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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f477b99919f0345a6bf01e65d8c47f43fb3400c
4
- data.tar.gz: 81979846d1ae06d09b47b340fccd45b037a10aae
3
+ metadata.gz: 604987e3ff7305165038195449b437f41ca3b6ad
4
+ data.tar.gz: 8e899cf60639708edde8f0cfaad704c8cd9ef465
5
5
  SHA512:
6
- metadata.gz: bc2389bbfe57917464e092110e8e692949ce2ec2130805d584ed32e2b9291c5325da6ceeca3ea0e3b045dd410ccd4c6183a4ef27ed23b24b592c3fc5954018b5
7
- data.tar.gz: 17cce730a998855e337fecba959baa85aff10fcfb477e2bdf26f08932ab8c42b9be6ac49d8283c74022bc6a6950065a73638d7056aba4feb4638dfe43545114d
6
+ metadata.gz: 49a0abd0d515ef63162a7b9d7cf0f4a3feb3bdcca33343dd9ba35bd52dc1aabbb1358e298cf36f0479cad86cb0e1a8d9f398fb8d4e85a393945e875760303df6
7
+ data.tar.gz: 90cbe160348c544fc3d075575489e0f4ee189edc094c3e3d9a49e748f04a3df9cf9d4314678ce8aa7525de04fe853be23a240e9756906ea128c9c208ffdfd3a2
@@ -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 = build &assembly_block
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
- Registry[thread_group] = address
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.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-12 00:00:00.000000000 Z
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.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