From 39428382103ab875cf13eb7fbe3b844ecec65628 Mon Sep 17 00:00:00 2001 From: bcronin Date: Thu, 14 Apr 2016 15:05:34 -0700 Subject: [PATCH] Remove internal version variable. Always use verison.rb --- Makefile | 5 +++++ lib/lightstep/tracer/client_tracer.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 13dc9a7..ed76aba 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,9 @@ test: rake spec publish: build test + gem bump --version patch + make build # rebuild after version increment + git tag $(shell ruby scripts/version.rb) + git push + git push --tags gem push lightstep-tracer-$(shell ruby scripts/version.rb).gem diff --git a/lib/lightstep/tracer/client_tracer.rb b/lib/lightstep/tracer/client_tracer.rb index baea349..6168a3c 100644 --- a/lib/lightstep/tracer/client_tracer.rb +++ b/lib/lightstep/tracer/client_tracer.rb @@ -6,8 +6,8 @@ require_relative './no_op_span' require_relative './util' require_relative './transports/transport_http_json' require_relative './thrift/types' +require_relative './version.rb' -LIGHTSTEP_VERSION = '0.1.0' # ============================================================ # Main implementation of the Tracer interface @@ -405,7 +405,7 @@ class ClientTracer # Tracer attributes runtime_attrs = { :lightstep_tracer_platform => 'ruby', - :lightstep_tracer_version => LIGHTSTEP_VERSION, + :lightstep_tracer_version => Lightstep::Tracer::VERSION, :ruby_version => RUBY_VERSION }