deepstream 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: ce0d374d6501431341af6d92bc81dac4d69625ff7f1798589d219ac8fdd1a2b9
4
- data.tar.gz: 155d1a92062f7fdb6e1743634e1faab24bfcf9ddc4b437989068e1d8fc75c285
3
+ metadata.gz: 2bfc3a3e7fb0cbc56c2f9ec0e30ab73136a62d64079741c29d5a812261eb1979
4
+ data.tar.gz: 4a3fc3e674eafc3ae4a7e622da0dd086c85ed34ab55d0c6e6c03cb32c5a6d377
5
5
  SHA512:
6
- metadata.gz: dd265a7de16feb50657b0d764a4105b8db11b200d558811d57a8acd0d83c619a007aa98a79246bae1bdda59e55a1bc5c65a9276901fa5751a4be22cb8de95a7f
7
- data.tar.gz: 0a980e1dda5288e1b66655951ebd4ef02eb6dfae4496677f02ff2958a29b26b05e77ce09b4a78ac71e92933169088069fb1b601015b38fcc34f90aa588b0f168
6
+ metadata.gz: 560920f9777edd39cdf2d062c855868dac777d8594d67025173353ae295804c11428562fc87dfb56ff5660452fcd331d0735ee7c7cc85804cca6d790b676707e
7
+ data.tar.gz: '09e60641ee2d502e3fc1f8f5ea017377c4ae2d0aa7dc4a96e1d606b6c4f9d9db509af3edaa543c03e462542042debc1f299c017d5e91986cd0c844ab280bd808'
data/deepstream.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "deepstream"
7
- spec.version = "1.0.9"
7
+ spec.version = "1.0.10"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["ruby@currency-one.com"]
10
10
 
@@ -5,6 +5,8 @@ module Deepstream
5
5
  class List < Record
6
6
  LIST_CALLBACKS = %i{added removed}
7
7
 
8
+ attr_reader :version
9
+
8
10
  def initialize(*args)
9
11
  super
10
12
  @data = []
@@ -15,7 +17,7 @@ module Deepstream
15
17
  unless @data.include?(record_name)
16
18
  @data << record_name
17
19
  set
18
- notify_listeners(:removed, record_name)
20
+ notify_listeners(:added, record_name)
19
21
  end
20
22
  rescue => e
21
23
  @client.on_exception(e)
@@ -98,4 +100,4 @@ module Deepstream
98
100
  end
99
101
  end
100
102
  end
101
- end
103
+ end
@@ -32,6 +32,7 @@ module Deepstream
32
32
  if list
33
33
  name.prepend("#{list}/")
34
34
  @records[list] ||= List.new(@client, list)
35
+ sleep 0.1 while @records[list].version.nil?
35
36
  @records[list].add(name)
36
37
  end
37
38
  @records[name] ||= Record.new(@client, name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Currency-One S.A.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-14 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async