nats-pure 0.6.0 → 0.6.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: 23e0d5e7517e6747ba93d5e0f0941d2443bcce881936a7d986b9aeda9a668007
4
- data.tar.gz: 1ee9d4e3277a283bc1a3eabefbb56bae81be9e32422311b9c9f48c4b2f369d07
3
+ metadata.gz: 705212803ac5f40ecb4b1ffa6bcb6fa16d0153ef90c2d46ef2f937c66d340503
4
+ data.tar.gz: 580ac629b82778d88de22293bb5e1f501f8090c8cbd2635728cac38f819e6752
5
5
  SHA512:
6
- metadata.gz: 0eeae802740d61db43b624ffdd21996200befa37125fd04eda0e49474db17bdedbba3408da06ffec907076f935279df80901f4eb5c94a07e6cf26fa1e36ed649
7
- data.tar.gz: a31a3936f8fafafb4b0ebfc47913021d62a208606193cc2566e2051dd06141011c75e0879f4cb69157677b2ef8f64bbac77f728c0e478bdc5f0ff116d1f26d81
6
+ metadata.gz: e41fc0cc6a94ba6e50d7eca22810c20b9cfe133a8cb89df4734b7bbdc4053a4d2dada84cf26ea71c54c4b578af57a24bb8739437489018dfa00637017a44b5aa
7
+ data.tar.gz: 6e31b6352d5771f6f6da6541a9c045081919630357efe2535f3ac29687a7c2edca7ec26385bb2dbfd75ad0279e41fd76a857aa52e118b3f7b65c3f34cc587b34
@@ -981,8 +981,13 @@ module NATS
981
981
  if !line or line.empty?
982
982
  raise ConnectError.new("nats: protocol exception, INFO not received")
983
983
  end
984
- _, info_json = line.split(' ')
985
- process_info(info_json)
984
+
985
+ if match = line.match(NATS::Protocol::INFO)
986
+ info_json = match.captures.first
987
+ process_info(info_json)
988
+ else
989
+ raise ConnectError.new("nats: protocol exception, INFO not valid")
990
+ end
986
991
 
987
992
  case
988
993
  when (server_using_secure_connection? and client_using_secure_connection?)
@@ -15,7 +15,7 @@
15
15
  module NATS
16
16
  module IO
17
17
  # NOTE: These are all announced to the server on CONNECT
18
- VERSION = "0.6.0"
18
+ VERSION = "0.6.2"
19
19
  LANG = "#{RUBY_ENGINE}2".freeze
20
20
  PROTOCOL = 1
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nats-pure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Waldemar Quevedo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: NATS is an open-source, high-performance, lightweight cloud messaging
14
14
  system.