ntl-actor 1.0.0.pre2 → 1.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actor.rb +1 -0
- data/lib/actor/messaging/address/dependency.rb +1 -1
- data/lib/actor/messaging/address/none.rb +1 -10
- data/lib/actor/messaging/address/substitute.rb +11 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44c202e586645c46860c857331e19bf871a68542
|
4
|
+
data.tar.gz: d58fe2ff29c897a3480c3ebfe318776a442c1948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e63c41a7aaf9841cd5d9f0dcf5ce2a79407b0da35c78b27955599872d13aeab5fcf4c4df6a89c98c7b7d8eb6f1695b000161df0378bd7be01bcb0c4171b9218
|
7
|
+
data.tar.gz: f07863617317c9a811ea491e01ded5951a3200e0b5b6f9e87022308a5b3b8927e4e5147bcd3361a0d13e53e4ce43dbc9d815d1c971f19f860c9e4388efcd181b
|
data/lib/actor.rb
CHANGED
@@ -9,6 +9,7 @@ require 'actor/messaging/address'
|
|
9
9
|
require 'actor/messaging/address/controls'
|
10
10
|
require 'actor/messaging/address/dependency'
|
11
11
|
require 'actor/messaging/address/none'
|
12
|
+
require 'actor/messaging/address/substitute'
|
12
13
|
|
13
14
|
require 'actor/messaging/message'
|
14
15
|
require 'actor/messaging/message/name'
|
@@ -4,7 +4,7 @@ module Actor
|
|
4
4
|
class None < Address
|
5
5
|
def self.build
|
6
6
|
id = ID.get
|
7
|
-
queue = Queue.
|
7
|
+
queue = Queue::Substitute.build
|
8
8
|
|
9
9
|
new id, queue
|
10
10
|
end
|
@@ -13,15 +13,6 @@ module Actor
|
|
13
13
|
@instance ||= build
|
14
14
|
end
|
15
15
|
|
16
|
-
class Queue
|
17
|
-
def deq non_block=nil
|
18
|
-
sleep unless non_block == true
|
19
|
-
end
|
20
|
-
|
21
|
-
def enq msg, non_block=nil
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
16
|
module ID
|
26
17
|
def self.get
|
27
18
|
'(none)'
|
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.0.0.
|
4
|
+
version: 1.0.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
@@ -25,6 +25,7 @@ files:
|
|
25
25
|
- lib/actor/messaging/address/controls.rb
|
26
26
|
- lib/actor/messaging/address/dependency.rb
|
27
27
|
- lib/actor/messaging/address/none.rb
|
28
|
+
- lib/actor/messaging/address/substitute.rb
|
28
29
|
- lib/actor/messaging/message.rb
|
29
30
|
- lib/actor/messaging/message/name.rb
|
30
31
|
- lib/actor/messaging/publish.rb
|