nats 0.4.22 → 0.4.24

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # HISTORY
2
2
 
3
+ ## v0.4.24 (May 24, 2012)
4
+
5
+ - Persist queue groups across reconnects
6
+ - Proper exit codes for nats-server
7
+ - See full list @ https://github.com/derekcollison/nats/compare/v0.4.22...v0.4.24
8
+
3
9
  ## v0.4.22 (Mar 5, 2012)
4
10
 
5
11
  - HTTP based server monitoring (/varz, /connz, /healthz)
@@ -8,7 +8,7 @@ require "#{ep}/ext/json"
8
8
 
9
9
  module NATS
10
10
 
11
- VERSION = '0.4.22'.freeze
11
+ VERSION = '0.4.24'.freeze
12
12
 
13
13
  DEFAULT_PORT = 4222
14
14
  DEFAULT_URI = "nats://localhost:#{DEFAULT_PORT}".freeze
@@ -517,7 +517,7 @@ module NATS
517
517
  process_info($1)
518
518
  when UNKNOWN
519
519
  @buf = $'
520
- err_cb.call(NATS::ServerError.new("Unknown protocol: $1"))
520
+ err_cb.call(NATS::ServerError.new("Unknown protocol: #{$1}"))
521
521
  else
522
522
  # If we are here we do not have a complete line yet that we understand.
523
523
  return
@@ -560,7 +560,7 @@ module NATS
560
560
  if reconnecting?
561
561
  EM.cancel_timer(@reconnect_timer)
562
562
  send_connect_command
563
- @subs.each_pair { |k, v| send_command("SUB #{v[:subject]} #{k}#{CR_LF}") }
563
+ @subs.each_pair { |k, v| send_command("SUB #{v[:subject]} #{v[:queue]} #{k}#{CR_LF}") }
564
564
  end
565
565
  flush_pending unless @ssl
566
566
  unless user_err_cb? or reconnecting?
@@ -1,7 +1,7 @@
1
1
 
2
2
  module NATSD #:nodoc:
3
3
 
4
- VERSION = '0.4.22'
4
+ VERSION = '0.4.24'
5
5
  APP_NAME = 'nats-server'
6
6
 
7
7
  DEFAULT_PORT = 4222
@@ -1,4 +1,3 @@
1
-
2
1
  require 'optparse'
3
2
  require 'yaml'
4
3
 
@@ -107,7 +106,7 @@ module NATSD
107
106
 
108
107
  rescue => e
109
108
  log "Could not read configuration file: #{e}"
110
- exit
109
+ exit 1
111
110
  end
112
111
 
113
112
  def setup_logs
@@ -8,17 +8,17 @@ require 'nats/server/const'
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'nats'
10
10
  s.version = NATSD::VERSION
11
- s.summary = 'A lightweight publish-subscribe and distributed queuing messaging system.'
11
+ s.summary = 'A lightweight cloud messaging system.'
12
12
  s.homepage = 'http://github.com/derekcollison/nats'
13
- s.description = 'A lightweight publish-subscribe and distributed queuing messaging system.'
13
+ s.description = 'A lightweight cloud messaging system.'
14
14
  s.has_rdoc = true
15
15
 
16
16
  s.authors = ['Derek Collison']
17
17
  s.email = ['derek.collison@gmail.com']
18
18
 
19
19
  s.add_dependency('eventmachine', '>= 0.12.10')
20
- s.add_dependency('json_pure', '>= 1.6.1')
21
- s.add_dependency('daemons', '>= 1.1.4')
20
+ s.add_dependency('json_pure', '>= 1.7.3')
21
+ s.add_dependency('daemons', '>= 1.1.5')
22
22
  s.add_dependency('thin', '>= 1.3.1')
23
23
 
24
24
  s.require_paths = ['lib']
@@ -36,7 +36,7 @@ spec = Gem::Specification.new do |s|
36
36
  bin/nats-pub
37
37
  bin/nats-queue
38
38
  bin/nats-top
39
- bin/nats-request
39
+ bin/nats-request
40
40
  lib/nats/client.rb
41
41
  lib/nats/ext/bytesize.rb
42
42
  lib/nats/ext/em.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-05 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70168295087200 !ruby/object:Gem::Requirement
16
+ requirement: &70102540108020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,32 +21,32 @@ dependencies:
21
21
  version: 0.12.10
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70168295087200
24
+ version_requirements: *70102540108020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json_pure
27
- requirement: &70168295086600 !ruby/object:Gem::Requirement
27
+ requirement: &70102540107180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 1.6.1
32
+ version: 1.7.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70168295086600
35
+ version_requirements: *70102540107180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: daemons
38
- requirement: &70168295085380 !ruby/object:Gem::Requirement
38
+ requirement: &70102540106400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.1.4
43
+ version: 1.1.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70168295085380
46
+ version_requirements: *70102540106400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: thin
49
- requirement: &70168295084240 !ruby/object:Gem::Requirement
49
+ requirement: &70102540257660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,8 +54,8 @@ dependencies:
54
54
  version: 1.3.1
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70168295084240
58
- description: A lightweight publish-subscribe and distributed queuing messaging system.
57
+ version_requirements: *70102540257660
58
+ description: A lightweight cloud messaging system.
59
59
  email:
60
60
  - derek.collison@gmail.com
61
61
  executables:
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 1.8.17
115
+ rubygems_version: 1.8.10
116
116
  signing_key:
117
117
  specification_version: 3
118
- summary: A lightweight publish-subscribe and distributed queuing messaging system.
118
+ summary: A lightweight cloud messaging system.
119
119
  test_files: []