deepstream 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/deepstream.gemspec +1 -1
- data/lib/deepstream/list.rb +3 -2
- data/lib/deepstream/record.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dde628c9b01e1545e6d819d373a8732c401f9b3eebbb79ebba0e4feb7c82c3a4
|
4
|
+
data.tar.gz: 87a8510ac03cefae2108e07f76635dea13899824092308bc21263611084e1b7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12d90e379cc60c377997a66a0f261aafe0634e1a1681c025521b8d830accd1631c74d500da757861bf6d836057f0954cff9f1797ab72a0897f19cde11ceda759
|
7
|
+
data.tar.gz: 175a64c6483af003191d2fe3540ab2eb2c2363900cbb7e0b1e637a75ee76cda942bafc2afb7a234c90732157c2a1a5d1b896e727ae569fa9ce1fa06d571b3839
|
data/deepstream.gemspec
CHANGED
data/lib/deepstream/list.rb
CHANGED
@@ -82,6 +82,7 @@ module Deepstream
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def set_new_data(new_data)
|
85
|
+
p @data - new_data
|
85
86
|
(@data - new_data).each { |uid| notify_listeners(:removed, uid) }
|
86
87
|
(new_data - @data).each { |uid| notify_listeners(:added, uid) }
|
87
88
|
@data = new_data
|
@@ -90,8 +91,8 @@ module Deepstream
|
|
90
91
|
def notify_listeners(cb_name, uid)
|
91
92
|
(@handlers[cb_name] || []).each do |proc|
|
92
93
|
record = @client.get(uid)
|
93
|
-
if record.
|
94
|
-
proc.call()
|
94
|
+
if record.__version
|
95
|
+
proc.call(record)
|
95
96
|
else
|
96
97
|
record.when_ready(&proc)
|
97
98
|
end
|
data/lib/deepstream/record.rb
CHANGED