nats 0.5.0.beta.12 → 0.5.0.beta.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Rakefile +1 -2
- data/lib/nats/client.rb +6 -2
- data/lib/nats/server/const.rb +1 -1
- data/nats.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmZjZmMwMGYxNWNjMTRjYjk3MGMxMWNmNDI4ZTZmYzVmN2M0OWZmMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDE4MGEwZjU4ZDM5ZDdkNDQ0NGE1NWMxN2M0M2VkNWE3M2NiMmU5ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTlhM2IzMTdmYjQ3MjViN2M3YmJmMGNmNjIyZjFkOWEyYzRhNDk1NGFiMzQ1
|
10
|
+
NWY0Y2ZjYWQyMTY4ZWE4YjRiN2JkMDJmZWJhZGMwN2U4MGExN2E4ZWQzYjRi
|
11
|
+
NmMyNDUxMjI3NDQ4YjRjOGMyYjE0NjM5ZjhjNTlkNGIwNWIxMGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGZiZTNmOWViMzllYmQxNWVkMGNkZmI5M2YwNGM5MzQyZGMzMDI5YjMxYjRi
|
14
|
+
OTI4NjQ0M2UwMjUxNDIxNDg4YWUwMTUyMmRiMjg5ZDc1NTM3MDIyODJiOWNl
|
15
|
+
NWQ0Y2U2M2NjZDhkZGJmOWEzNzBmOWQyNjJjYzRlZWQ0ZDkyMDg=
|
data/Rakefile
CHANGED
data/lib/nats/client.rb
CHANGED
@@ -9,7 +9,7 @@ require "#{ep}/ext/json"
|
|
9
9
|
|
10
10
|
module NATS
|
11
11
|
|
12
|
-
VERSION = "0.5.0.beta.
|
12
|
+
VERSION = "0.5.0.beta.14".freeze
|
13
13
|
|
14
14
|
DEFAULT_PORT = 4222
|
15
15
|
DEFAULT_URI = "nats://localhost:#{DEFAULT_PORT}".freeze
|
@@ -671,6 +671,7 @@ module NATS
|
|
671
671
|
@reconnecting = true if connected?
|
672
672
|
@connected = false
|
673
673
|
@pending = @pongs = nil
|
674
|
+
@buf = nil
|
674
675
|
cancel_ping_timer
|
675
676
|
|
676
677
|
schedule_primary_and_connect
|
@@ -722,7 +723,10 @@ module NATS
|
|
722
723
|
current = server_pool.first
|
723
724
|
current[:reconnect_attempts] += 1 if current[:reconnect_attempts]
|
724
725
|
send_connect_command
|
725
|
-
|
726
|
+
begin
|
727
|
+
EM.reconnect(@uri.host, @uri.port, self)
|
728
|
+
rescue
|
729
|
+
end
|
726
730
|
@reconnect_cb.call unless @reconnect_cb.nil?
|
727
731
|
end
|
728
732
|
|
data/lib/nats/server/const.rb
CHANGED
data/nats.gemspec
CHANGED
@@ -17,9 +17,9 @@ spec = Gem::Specification.new do |s|
|
|
17
17
|
s.email = ['derek.collison@gmail.com']
|
18
18
|
|
19
19
|
s.add_dependency('eventmachine', '>= 1.0.3')
|
20
|
-
s.add_dependency('json_pure', '>= 1.8.
|
20
|
+
s.add_dependency('json_pure', '>= 1.8.1')
|
21
21
|
s.add_dependency('daemons', '>= 1.1.9')
|
22
|
-
s.add_dependency('thin', '>= 1.
|
22
|
+
s.add_dependency('thin', '>= 1.6.0')
|
23
23
|
|
24
24
|
s.require_paths = ['lib']
|
25
25
|
s.bindir = 'bin'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.beta.
|
4
|
+
version: 0.5.0.beta.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Collison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.8.
|
33
|
+
version: 1.8.1
|
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.8.
|
40
|
+
version: 1.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: daemons
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.6.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: 1.
|
68
|
+
version: 1.6.0
|
69
69
|
description: A lightweight cloud messaging system.
|
70
70
|
email:
|
71
71
|
- derek.collison@gmail.com
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: 1.3.1
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.1.
|
127
|
+
rubygems_version: 2.1.9
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A lightweight cloud messaging system.
|