Skip to content

Commit

Permalink
updated version, added lang and version to client connect
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Jun 19, 2015
1 parent 67ae4cc commit e4e8f7d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
nats (0.5.0.beta.16)
nats (0.5.0)
daemons (~> 1.2, >= 1.2.2)
eventmachine (~> 1.0, >= 1.0.7)
json_pure (~> 1.8, >= 1.8.1)
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,5 +1,10 @@
# HISTORY

## v0.5.0 (June 19, 2015)
- Merged to master.
- Added language and version to client connect protocol
- See full list @ https://github.com/derekcollison/nats/compare/v0.5.0.beta.16...v0.5.0

## v0.5.0.beta.16 (December 7, 2014)
- Resolved major issue on cluster connects to non-first server, issue #78
- Official Support for Ruby 2.1
Expand Down
9 changes: 7 additions & 2 deletions lib/nats/client.rb
Expand Up @@ -9,7 +9,7 @@

module NATS

VERSION = "0.5.0.beta.16".freeze
VERSION = "0.5.0".freeze

DEFAULT_PORT = 4222
DEFAULT_URI = "nats://localhost:#{DEFAULT_PORT}".freeze
Expand Down Expand Up @@ -467,7 +467,12 @@ def auth_connection?
end

def connect_command #:nodoc:
cs = { :verbose => @options[:verbose], :pedantic => @options[:pedantic] }
cs = {
:verbose => @options[:verbose],
:pedantic => @options[:pedantic],
:lang => "ruby",
:version => VERSION
}
if auth_connection?
cs[:user] = @uri.user
cs[:pass] = @uri.password
Expand Down
2 changes: 1 addition & 1 deletion lib/nats/server.rb
Expand Up @@ -26,7 +26,7 @@
# Event Loop
EM.run do

log "WARNING: nats-server is deprecated and no longer supported. It will be removed in a future release. See https://github.com/apcera/gnatsd."
log "WARNING: nats-server is deprecated and no longer supported. It will be removed in a future release. See https://github.com/nats-io/gnatsd."
log "Starting #{NATSD::APP_NAME} version #{NATSD::VERSION} on port #{NATSD::Server.port}"
log "TLS/SSL Support Enabled" if NATSD::Server.options[:ssl]
begin
Expand Down
2 changes: 1 addition & 1 deletion lib/nats/server/const.rb
@@ -1,7 +1,7 @@

module NATSD #:nodoc:

VERSION = '0.5.0.beta.16'
VERSION = '0.5.0'
APP_NAME = 'nats-server'

DEFAULT_PORT = 4222
Expand Down

0 comments on commit e4e8f7d

Please sign in to comment.