deepstream 1.0.8 → 1.0.9

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: 9fff30aea0355fa344202c8b0d7fc50eb68dc6dcc32d2f5da474f9bca70ef068
4
- data.tar.gz: c0f4cef7341b68a0378444aa020f3483a6e68fc44dd7c0abb6e7777f94ac6395
3
+ metadata.gz: ce0d374d6501431341af6d92bc81dac4d69625ff7f1798589d219ac8fdd1a2b9
4
+ data.tar.gz: 155d1a92062f7fdb6e1743634e1faab24bfcf9ddc4b437989068e1d8fc75c285
5
5
  SHA512:
6
- metadata.gz: c6248cae180ef82f9f1efaecea3366ec2d30c8fc24cf89a395a32e62ac1b75573c2b01a3486f8c30e8584b05dae4ac679318041348148174e8f7fc6367afc396
7
- data.tar.gz: 82cf0ed01406e8c9e62e91bacf75e4a3005bef50ea9087d87dd73a4f21ba4f2b51b52949676c612a02e9140b6865e39000fcd2eee227b18935eafc04118a5673
6
+ metadata.gz: dd265a7de16feb50657b0d764a4105b8db11b200d558811d57a8acd0d83c619a007aa98a79246bae1bdda59e55a1bc5c65a9276901fa5751a4be22cb8de95a7f
7
+ data.tar.gz: 0a980e1dda5288e1b66655951ebd4ef02eb6dfae4496677f02ff2958a29b26b05e77ce09b4a78ac71e92933169088069fb1b601015b38fcc34f90aa588b0f168
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.8"
7
+ spec.version = "1.0.9"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["ruby@currency-one.com"]
10
10
 
@@ -34,8 +34,9 @@ module Deepstream
34
34
  @challenge_denied, @@deliberate_close = false
35
35
  @state = CONNECTION_STATE::CLOSED
36
36
  @verbose = @options[:verbose]
37
+ @reinitialize_master = @options[:reinitialize_master]
37
38
  @log = Async.logger
38
- @never_connected_before = true
39
+ @connected_before = false
39
40
  connect
40
41
  end
41
42
 
@@ -156,7 +157,7 @@ module Deepstream
156
157
  def on_connection_ack
157
158
  @state = CONNECTION_STATE::AUTHENTICATING
158
159
  @message_buffer.delete_if { |msg| msg.action == ACTION::PATCH }
159
- @record_handler.reinitialize unless @never_connected_before
160
+ @record_handler.reinitialize if @connected_before
160
161
  login
161
162
  end
162
163
 
@@ -166,7 +167,7 @@ module Deepstream
166
167
  end
167
168
 
168
169
  def on_login
169
- @never_connected_before = false
170
+ @connected_before = true
170
171
  @state = CONNECTION_STATE::OPEN
171
172
  every(@options[:heartbeat_interval]) { check_heartbeat } if @options[:heartbeat_interval]
172
173
  resubscribe
@@ -38,7 +38,8 @@ module Deepstream
38
38
  heartbeat_interval: nil,
39
39
  in_thread: true,
40
40
  verbose: false,
41
- debug: false
41
+ debug: false,
42
+ reinitialize_master: false
42
43
  }
43
44
  end
44
45
 
@@ -40,8 +40,8 @@ module Deepstream
40
40
  end
41
41
 
42
42
  def end_reinitializing
43
- reset_version
44
- set(@data_cache)
43
+ reset_version if @client.options[:reinitialize_master]
44
+ set(@data_cache) if @client.options[:reinitialize_master]
45
45
  @is_reinitializing = false
46
46
  end
47
47
 
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.8
4
+ version: 1.0.9
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-02-24 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async