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 +4 -4
- data/lib/actor/messages.rb +3 -3
- data/lib/actor/start.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcd3c4b0848626a34e61b101d6536bf75a049c9c
|
4
|
+
data.tar.gz: 17cb2c95fc254bb96492adbf318fa90e2b13b222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9632097db8d7077e3b5bb50eec497ac510616cc7da23d8f2e196f6d3f64534416a2778980d5a51289f98d122aaa87a160df2ae465e4c13b92d298f718f53119
|
7
|
+
data.tar.gz: 878c75a9a3bb41ef638d8a0220daa74336ab34fc65341c74b20fc7129b94c91aa8ed020e33f0d0d7e5f940d6bcfbc207bc97a9524be0f79b35015e952feace61
|
data/lib/actor/messages.rb
CHANGED
@@ -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.
|
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.
|
87
|
+
rubygems_version: 2.6.6
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Implementation of actor pattern for ruby
|