Remove internal version variable. Always use verison.rb

This commit is contained in:
bcronin 2016-04-14 15:05:34 -07:00
Родитель 117a60b455
Коммит 3942838210
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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
}