deepstream 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/deepstream.gemspec +5 -5
- data/lib/deepstream.rb +1 -1
- data/lib/deepstream/async_patch.rb +1 -1
- data/lib/deepstream/client.rb +9 -9
- data/lib/deepstream/error_handler.rb +3 -3
- data/lib/deepstream/event_handler.rb +4 -4
- data/lib/deepstream/list.rb +1 -1
- data/lib/deepstream/message.rb +1 -1
- data/lib/deepstream/record.rb +2 -2
- data/lib/deepstream/record_handler.rb +4 -4
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df8169bda63ee658320c41ca0f1dd64de4a587d2b072786d1bc8ab936c96708c
|
4
|
+
data.tar.gz: 66648cc17ba621f33cbd9d7204f473201112adc309763331de39a723a665f342
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f67317f952de1c621942d12b37aab4dbb321c6b3fb00c81ecd22e8b1288f47b6b14f64d1081a871359a721b89f5e29c44f135ec4e3523336c3da28030a08568
|
7
|
+
data.tar.gz: 629ec25bb730fc2392c12669a30a05ef0a19ea69c0567701a1db58eca8461ae36074bbfa13845f22ce5fb72cf8b09bfa657768777d48788e7b3e7007749936a9
|
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.
|
7
|
+
spec.version = "1.0.2"
|
8
8
|
spec.authors = ["Currency-One S.A."]
|
9
9
|
spec.email = ["ruby@currency-one.com"]
|
10
10
|
|
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
spec.required_ruby_version = '>= 2.3.0'
|
21
21
|
spec.license = "Apache-2.0"
|
22
|
-
spec.add_runtime_dependency 'async', '~> 1.
|
23
|
-
spec.add_runtime_dependency 'async-io', '~> 1.
|
24
|
-
spec.add_runtime_dependency 'async-http', '~> 0.
|
25
|
-
spec.add_runtime_dependency 'async-websocket', '~> 0.
|
22
|
+
spec.add_runtime_dependency 'async', '~> 1.25.0'
|
23
|
+
spec.add_runtime_dependency 'async-io', '~> 1.29.0'
|
24
|
+
spec.add_runtime_dependency 'async-http', '~> 0.52.1'
|
25
|
+
spec.add_runtime_dependency 'async-websocket', '~> 0.14.0'
|
26
26
|
spec.add_development_dependency 'cucumber'
|
27
27
|
spec.add_development_dependency 'reel'
|
28
28
|
spec.add_development_dependency 'pry'
|
data/lib/deepstream.rb
CHANGED
data/lib/deepstream/client.rb
CHANGED
@@ -4,14 +4,14 @@ require 'async/io/stream'
|
|
4
4
|
require 'async/http/endpoint'
|
5
5
|
require 'async/websocket/client'
|
6
6
|
require 'async/logger'
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
require_relative './constants'
|
8
|
+
require_relative './error_handler'
|
9
|
+
require_relative './event_handler'
|
10
|
+
require_relative './record_handler'
|
11
|
+
require_relative './helpers'
|
12
|
+
require_relative './message'
|
13
|
+
require_relative './exceptions'
|
14
|
+
require_relative './async_patch'
|
15
15
|
|
16
16
|
module Deepstream
|
17
17
|
class Client
|
@@ -227,7 +227,7 @@ module Deepstream
|
|
227
227
|
break if ( connection.closed? || @deliberate_close )
|
228
228
|
while !@message_buffer.empty? && (logged_in? || !@message_buffer[0].needs_authentication?)
|
229
229
|
msg = @message_buffer.shift
|
230
|
-
next if
|
230
|
+
next if msg.expired?
|
231
231
|
encoded_msg = msg.to_s.encode(Encoding::UTF_8)
|
232
232
|
@log.info "Sending msg = #{msg.inspect}" if @verbose
|
233
233
|
connection.write(encoded_msg)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
require_relative './ack_timeout_registry'
|
2
|
+
require_relative './constants'
|
3
|
+
require_relative './exceptions'
|
4
|
+
require_relative './helpers'
|
5
5
|
|
6
6
|
module Deepstream
|
7
7
|
class EventHandler
|
data/lib/deepstream/list.rb
CHANGED
data/lib/deepstream/message.rb
CHANGED
data/lib/deepstream/record.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
require_relative './constants'
|
2
|
+
require_relative './exceptions'
|
3
|
+
require_relative './list'
|
4
|
+
require_relative './record'
|
5
5
|
|
6
6
|
module Deepstream
|
7
7
|
class RecordHandler
|
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.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Currency-One S.A.
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.25.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.25.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async-io
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.29.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.29.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: async-http
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.52.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.52.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: async-websocket
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.14.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.14.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: cucumber
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|