ntl-actor 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 604987e3ff7305165038195449b437f41ca3b6ad
4
- data.tar.gz: 8e899cf60639708edde8f0cfaad704c8cd9ef465
3
+ metadata.gz: bcd3c4b0848626a34e61b101d6536bf75a049c9c
4
+ data.tar.gz: 17cb2c95fc254bb96492adbf318fa90e2b13b222
5
5
  SHA512:
6
- metadata.gz: 49a0abd0d515ef63162a7b9d7cf0f4a3feb3bdcca33343dd9ba35bd52dc1aabbb1358e298cf36f0479cad86cb0e1a8d9f398fb8d4e85a393945e875760303df6
7
- data.tar.gz: 90cbe160348c544fc3d075575489e0f4ee189edc094c3e3d9a49e748f04a3df9cf9d4314678ce8aa7525de04fe853be23a240e9756906ea128c9c208ffdfd3a2
6
+ metadata.gz: b9632097db8d7077e3b5bb50eec497ac510616cc7da23d8f2e196f6d3f64534416a2778980d5a51289f98d122aaa87a160df2ae465e4c13b92d298f718f53119
7
+ data.tar.gz: 878c75a9a3bb41ef638d8a0220daa74336ab34fc65341c74b20fc7129b94c91aa8ed020e33f0d0d7e5f940d6bcfbc207bc97a9524be0f79b35015e952feace61
@@ -4,15 +4,15 @@ module Actor
4
4
  extend Messaging::Message
5
5
  end
6
6
 
7
- ActorStarted = Struct.new :address do
7
+ ActorStarted = Struct.new :address, :actor do
8
8
  include Messaging::Message
9
9
  end
10
10
 
11
- ActorStopped = Struct.new :address do
11
+ ActorStopped = Struct.new :address, :actor do
12
12
  include Messaging::Message
13
13
  end
14
14
 
15
- ActorCrashed = Struct.new :error do
15
+ ActorCrashed = Struct.new :error, :actor do
16
16
  include Messaging::Message
17
17
  end
18
18
 
data/lib/actor/start.rb CHANGED
@@ -36,17 +36,17 @@ module Actor
36
36
  end
37
37
 
38
38
  def actor_crashed error
39
- actor_crashed = Messages::ActorCrashed.new error
39
+ actor_crashed = Messages::ActorCrashed.new error, actor
40
40
  send.(actor_crashed, supervisor_address)
41
41
  end
42
42
 
43
43
  def actor_started
44
- actor_started = Messages::ActorStarted.new address
44
+ actor_started = Messages::ActorStarted.new address, actor
45
45
  send.(actor_started, supervisor_address)
46
46
  end
47
47
 
48
48
  def actor_stopped
49
- actor_stopped = Messages::ActorStopped.new address
49
+ actor_stopped = Messages::ActorStopped.new address, actor
50
50
  send.(actor_stopped, supervisor_address)
51
51
  end
52
52
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntl-actor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
@@ -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.8
87
+ rubygems_version: 2.6.6
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Implementation of actor pattern for ruby