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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTZjYWZjNDUxYmZmMzU2NTIxZjY0ODgwNTBlZWI4MGIwNTA1Y2U2NQ==
4
+ YmZjZmMwMGYxNWNjMTRjYjk3MGMxMWNmNDI4ZTZmYzVmN2M0OWZmMg==
5
5
  data.tar.gz: !binary |-
6
- MjVkYjliNDVkMzNkNDA4ZjIxYjBhNjgxMzcxNDQ3MDQ5NzRiYjFjOA==
6
+ NDE4MGEwZjU4ZDM5ZDdkNDQ0NGE1NWMxN2M0M2VkNWE3M2NiMmU5ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODFlNmMxMjkzMzgwYmIwM2I5NWMxNzE3YWY2ZjUxYzEwNDZiMzQyYWQ5M2Q5
10
- MzQ2ZGUzYTZiYmU1NTBhZDczMmZjZjBhMzlhM2Q4ZDkzYzNhYjMzYmRlNzFk
11
- Yzc2ZjUxNjEyNWUwZDQ3NzcxMDY0NGVmMzdlMDZlN2FlYzExMWQ=
9
+ NTlhM2IzMTdmYjQ3MjViN2M3YmJmMGNmNjIyZjFkOWEyYzRhNDk1NGFiMzQ1
10
+ NWY0Y2ZjYWQyMTY4ZWE4YjRiN2JkMDJmZWJhZGMwN2U4MGExN2E4ZWQzYjRi
11
+ NmMyNDUxMjI3NDQ4YjRjOGMyYjE0NjM5ZjhjNTlkNGIwNWIxMGU=
12
12
  data.tar.gz: !binary |-
13
- M2U4MTVjMmYyMzIxODI4NjZjZjhmNDkwOGE1MDM2ZWRmN2I4ZjJjMTYwMTQx
14
- MWY0MTA2NmJhNzQ3ZWI3NGI1YmY4ODFmMzk2YzRmMzMwOWJjYjJlMGE3MDAy
15
- N2EzNjM4MGZjOTQzOTgwMTYzNzk1YjY3ZTYzMTdjZTcyYmI0MDA=
13
+ NGZiZTNmOWViMzllYmQxNWVkMGNkZmI5M2YwNGM5MzQyZGMzMDI5YjMxYjRi
14
+ OTI4NjQ0M2UwMjUxNDIxNDg4YWUwMTUyMmRiMjg5ZDc1NTM3MDIyODJiOWNl
15
+ NWQ0Y2U2M2NjZDhkZGJmOWEzNzBmOWQyNjJjYzRlZWQ0ZDkyMDg=
data/Rakefile CHANGED
@@ -1,9 +1,8 @@
1
1
  desc "Run rspec"
2
2
  task :spec do
3
- sh('bundle install')
4
3
  require "rspec/core/rake_task"
5
4
  RSpec::Core::RakeTask.new do |t|
6
- t.rspec_opts = %w(-fs -c)
5
+ t.rspec_opts = %w(-fd -c)
7
6
  end
8
7
  end
9
8
  task :default => :spec
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".freeze
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
- EM.reconnect(@uri.host, @uri.port, self)
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
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  module NATSD #:nodoc:
3
3
 
4
- VERSION = '0.5.0.beta.12'
4
+ VERSION = '0.5.0.beta.14'
5
5
  APP_NAME = 'nats-server'
6
6
 
7
7
  DEFAULT_PORT = 4222
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.0')
20
+ s.add_dependency('json_pure', '>= 1.8.1')
21
21
  s.add_dependency('daemons', '>= 1.1.9')
22
- s.add_dependency('thin', '>= 1.5.0')
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.12
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: 2013-10-02 00:00:00.000000000 Z
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.0
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.0
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.5.0
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.5.0
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.5
127
+ rubygems_version: 2.1.9
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A lightweight cloud messaging system.