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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0167226999cb5c1382b9d396aa2e8ce699fae587de39a970e9bdd64427a9e2a
4
- data.tar.gz: 4b703477f808e422b964a0bbe0d23c7d0eef50d6bd815c109a334a59f98163e3
3
+ metadata.gz: dde628c9b01e1545e6d819d373a8732c401f9b3eebbb79ebba0e4feb7c82c3a4
4
+ data.tar.gz: 87a8510ac03cefae2108e07f76635dea13899824092308bc21263611084e1b7e
5
5
  SHA512:
6
- metadata.gz: 7b8c909ac4d4dc9117749a63e077d423f995ac340ca6bd843286c6dee0bc7eda4285ff69efb98a7285924ba83335832e45165ad265cecf356dbdf4f71ca44837
7
- data.tar.gz: 642ded8ef97cc5429331accc0d86405e5938b8fe660a3dfc36bc1d2690799df882002d6bb4d4f3769cafac8bb1ca70ff6d341a7a64c31b90c31f3c5a1443dda3
6
+ metadata.gz: 12d90e379cc60c377997a66a0f261aafe0634e1a1681c025521b8d830accd1631c74d500da757861bf6d836057f0954cff9f1797ab72a0897f19cde11ceda759
7
+ data.tar.gz: 175a64c6483af003191d2fe3540ab2eb2c2363900cbb7e0b1e637a75ee76cda942bafc2afb7a234c90732157c2a1a5d1b896e727ae569fa9ce1fa06d571b3839
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.5"
7
+ spec.version = "1.0.6"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["ruby@currency-one.com"]
10
10
 
@@ -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.version
94
- proc.call()
94
+ if record.__version
95
+ proc.call(record)
95
96
  else
96
97
  record.when_ready(&proc)
97
98
  end
@@ -17,6 +17,14 @@ module Deepstream
17
17
  @ready_callback = nil
18
18
  end
19
19
 
20
+ def __version
21
+ @version
22
+ end
23
+
24
+ def __name
25
+ @name
26
+ end
27
+
20
28
  def reset_version
21
29
  @version = 0
22
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deepstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Currency-One S.A.