ntl-actor 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/actor/messaging/read.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d155bcafbdf0831c61b82e6fcfc18b94981597a6
4
- data.tar.gz: f2e1f3efd93dde774f4b35d55358d27f5da122e6
3
+ metadata.gz: ba3e71c91c282205936e4cc9bf199e6d80dcae8c
4
+ data.tar.gz: d46dbe635f619d79c02ef1fc333c3504edeac9ac
5
5
  SHA512:
6
- metadata.gz: 1dab9b719644b6d86960311de0f60b01d9644bf82976d873a9bff1f42e72f592312f8b7ba42d60d8e865b17c4ed950fc5bdacf12fe323e1c17cce4378cb97c7a
7
- data.tar.gz: 7fc2c6503506c97582e340534147c211e7f2292140369a56a02f527d435543b879a24ac3fdbee4dcbc64af5f6ceb8fbd06c7a5faeea4f05607ed66976464e7d7
6
+ metadata.gz: aeb1c9a814dbfb72de543631797c343960f5b357e9985f03a950282709293e142150c74e41e1ef5cc9141edd73c50168aa0eed0c372a699acba605d0157797d9
7
+ data.tar.gz: 5f897414547a15bb858c8a0b4fbcfb07761c7c978ac18a202d449df8e17f0b65c2f9e16cd70f94eac5e6954c8e81fa05eb083fb53b4f20649f2de592e4b8edec
@@ -9,10 +9,10 @@ module Actor
9
9
  @stream = stream
10
10
  end
11
11
 
12
- def self.build address
13
- stream = address.stream
12
+ def self.build address, queue=nil
13
+ queue ||= Queue.new
14
14
 
15
- queue = Queue.new
15
+ stream = address.stream
16
16
  stream.add_queue queue
17
17
 
18
18
  instance = new queue, stream
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: 0.4.0
4
+ version: 0.4.1
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-09-15 00:00:00.000000000 Z
11
+ date: 2016-09-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Implementation of actor pattern for ruby designed for simplicity and
14
14
  frugality