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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1be2b492dcd241f1900936f9f0ac7dd9a2e79a899a6e2f629bc5af03034b5c0a
4
- data.tar.gz: b0f8c42cafdf5e8ef55bde1ec1453f1e7820f81e223cf1405d5d8928a770ab43
3
+ metadata.gz: df8169bda63ee658320c41ca0f1dd64de4a587d2b072786d1bc8ab936c96708c
4
+ data.tar.gz: 66648cc17ba621f33cbd9d7204f473201112adc309763331de39a723a665f342
5
5
  SHA512:
6
- metadata.gz: 71aa8a2594fc40036928a2427f7d89c23c5a181388c26d93d724c550dc4daba35940dabdaa6b6b9085d404bac1d05d0c313e51f8705bdaec756bd432ffa55237
7
- data.tar.gz: d5bf9c8bb2af9df2bcbd4610feb423c534a5333eceb5c92728d059d87dcaae17a13c897ac6c9aca275785f856e63d4149a84713daa464d06f6d435549040dbb0
6
+ metadata.gz: 0f67317f952de1c621942d12b37aab4dbb321c6b3fb00c81ecd22e8b1288f47b6b14f64d1081a871359a721b89f5e29c44f135ec4e3523336c3da28030a08568
7
+ data.tar.gz: 629ec25bb730fc2392c12669a30a05ef0a19ea69c0567701a1db58eca8461ae36074bbfa13845f22ce5fb72cf8b09bfa657768777d48788e7b3e7007749936a9
@@ -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.1"
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.28.3'
23
- spec.add_runtime_dependency 'async-io', '~> 1.30.1'
24
- spec.add_runtime_dependency 'async-http', '~> 0.54.1'
25
- spec.add_runtime_dependency 'async-websocket', '~> 0.16.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'
@@ -11,4 +11,4 @@
11
11
  # See the License for the specific language governing permissions and
12
12
  # limitations under the License.
13
13
 
14
- require 'deepstream/client'
14
+ require_relative './deepstream/client'
@@ -34,7 +34,7 @@ module Async
34
34
  end
35
35
 
36
36
  module Protocol
37
- module WebSocket
37
+ module WebSocket
38
38
  class TextFrame
39
39
 
40
40
  def unpack
@@ -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
- require 'deepstream/constants'
8
- require 'deepstream/error_handler'
9
- require 'deepstream/event_handler'
10
- require 'deepstream/record_handler'
11
- require 'deepstream/helpers'
12
- require 'deepstream/message'
13
- require 'deepstream/exceptions'
14
- require 'deepstream/async_patch'
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 message.expired?
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,6 +1,6 @@
1
- require 'deepstream/constants'
2
- require 'deepstream/helpers'
3
- require 'deepstream/message'
1
+ require_relative './constants'
2
+ require_relative './helpers'
3
+ require_relative './message'
4
4
 
5
5
  module Deepstream
6
6
  class ErrorHandler
@@ -1,7 +1,7 @@
1
- require 'deepstream/ack_timeout_registry'
2
- require 'deepstream/constants'
3
- require 'deepstream/exceptions'
4
- require 'deepstream/helpers'
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
@@ -1,4 +1,4 @@
1
- require 'deepstream/record'
1
+ require_relative './record'
2
2
 
3
3
  module Deepstream
4
4
  class List < Record
@@ -1,5 +1,5 @@
1
1
  require 'json'
2
- require 'deepstream/constants'
2
+ require_relative './constants'
3
3
 
4
4
  module Deepstream
5
5
  class Message
@@ -1,6 +1,6 @@
1
1
  require 'json'
2
- require 'deepstream/constants'
3
- require 'deepstream/helpers'
2
+ require_relative './constants'
3
+ require_relative './helpers'
4
4
 
5
5
  module Deepstream
6
6
  class Record
@@ -1,7 +1,7 @@
1
- require 'deepstream/constants'
2
- require 'deepstream/exceptions'
3
- require 'deepstream/list'
4
- require 'deepstream/record'
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.1
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.28.3
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.28.3
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.30.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.30.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.54.1
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.1
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.16.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.16.0
68
+ version: 0.14.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cucumber
71
71
  requirement: !ruby/object:Gem::Requirement