deepstream 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 13931646d5a583ec6197cc7c78505ebdf0bd1b93
4
- data.tar.gz: 918b31b0595eb470bd6690ff5eb8fa184959e208
3
+ metadata.gz: 9e408d9efd700aa2a8ab393eb87f0e00dba1e43a
4
+ data.tar.gz: 812bb8d7c5af04a63334d7826701df0d961edf6b
5
5
  SHA512:
6
- metadata.gz: 55f280df143ad9e24aa4fb1f122fa86b2b68ec543aafd118e6cd43cffb01a04b7705a021590bba2907f5a9d67478147e2412107099b1a6010f9e69192feb394d
7
- data.tar.gz: 7f9a7232bf59258175e1ca9b05cceabc856314039383083e1d669b8b59cdc41476ada5865303c2f971c9060463e32127388325437b764443354c57790813c358
6
+ metadata.gz: 5468d8e34eed668c48c396622422884dc0fcf551e2c258b2ea2bab8a19f1ecfb8b1f9e9cd5cc226020608af59ba482da3a16ac0d4320612f497f128ff994d315
7
+ data.tar.gz: 59d69c20662f95e057f7a0cd3951e31f1cd82f78a18def3976c8cce9829baeb3d91e027c32a14e2d8b880ebb7af6a5e2f60fab08d88b12ed1674a924c0f32f6c
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 = "0.1.6"
7
+ spec.version = "0.1.7"
8
8
  spec.authors = ["Currency-One S.A."]
9
9
  spec.email = ["piotr.szczudlak@currency-one.com"]
10
10
 
data/lib/deepstream.rb CHANGED
@@ -115,7 +115,8 @@ class Deepstream::Client
115
115
 
116
116
  def _login(credentials)
117
117
  _write("A", "REQ", credentials.to_json)
118
- raise unless _read_socket == %w{A A}
118
+ ack = _read_socket
119
+ raise unless ack == %w{A A} || (ack == %w{C A} && _read_socket == %w{A A})
119
120
  end
120
121
 
121
122
  def _read_socket(timeout: nil)
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: 0.1.6
4
+ version: 0.1.7
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: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2016-09-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Basic ruby client for the deepstream.io server
14
14
  email:
@@ -43,8 +43,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 2.2.2
46
+ rubygems_version: 2.5.1
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: deepstream.io ruby client
50
50
  test_files: []
51
+ has_rdoc: