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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 896e0c8cdd1845e3ad71c931366a1930e3a21acc
4
- data.tar.gz: 38e01ef89b6417ac6c19e536f3a1b0c0101089e3
3
+ metadata.gz: 44c202e586645c46860c857331e19bf871a68542
4
+ data.tar.gz: d58fe2ff29c897a3480c3ebfe318776a442c1948
5
5
  SHA512:
6
- metadata.gz: 5e97f640579eb0444b6e65621151cfafa669c7656a18757d1ff09e5e521f482e0c2508196e35f6333053100eb5b126ccb0f567f4709a49fb7548ace41f3d1d62
7
- data.tar.gz: 91a38416a0837219be3791f4162ba3e37aecfa5f1970252045ef89c850bcb939e5e0a5335fed156d2304b0d2f476e20e02587c55479436995b03b9ee6f56c892
6
+ metadata.gz: 4e63c41a7aaf9841cd5d9f0dcf5ce2a79407b0da35c78b27955599872d13aeab5fcf4c4df6a89c98c7b7d8eb6f1695b000161df0378bd7be01bcb0c4171b9218
7
+ data.tar.gz: f07863617317c9a811ea491e01ded5951a3200e0b5b6f9e87022308a5b3b8927e4e5147bcd3361a0d13e53e4ce43dbc9d815d1c971f19f860c9e4388efcd181b
@@ -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'
@@ -5,7 +5,7 @@ module Actor
5
5
  attr_writer :address
6
6
 
7
7
  def address
8
- @address ||= Address::None.instance
8
+ @address ||= Address::Substitute.build
9
9
  end
10
10
  end
11
11
  end
@@ -4,7 +4,7 @@ module Actor
4
4
  class None < Address
5
5
  def self.build
6
6
  id = ID.get
7
- queue = Queue.new
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)'
@@ -0,0 +1,11 @@
1
+ module Actor
2
+ module Messaging
3
+ class Address
4
+ module Substitute
5
+ def self.build
6
+ None.build
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
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.pre2
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