From e4e8f7d111cbd3f39b6399e33e4b4b784d10f407 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Fri, 19 Jun 2015 11:16:35 -0700 Subject: [PATCH] updated version, added lang and version to client connect --- Gemfile.lock | 2 +- HISTORY.md | 5 +++++ lib/nats/client.rb | 9 +++++++-- lib/nats/server.rb | 2 +- lib/nats/server/const.rb | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 55e2d7d8..2e7036e7 100644 --- a/Gemfile.lock +++ b/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) diff --git a/HISTORY.md b/HISTORY.md index 6fe66a2f..cbd2e0da 100644 --- a/HISTORY.md +++ b/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 diff --git a/lib/nats/client.rb b/lib/nats/client.rb index cd9c961d..086692a2 100644 --- a/lib/nats/client.rb +++ b/lib/nats/client.rb @@ -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 @@ -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 diff --git a/lib/nats/server.rb b/lib/nats/server.rb index 748a8702..a9a72d5d 100644 --- a/lib/nats/server.rb +++ b/lib/nats/server.rb @@ -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 diff --git a/lib/nats/server/const.rb b/lib/nats/server/const.rb index 189a8e02..eb8b8667 100644 --- a/lib/nats/server/const.rb +++ b/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