rename gem and bump to version 0.9.0
This commit is contained in:
Родитель
4748d8f274
Коммит
38fd69ba39
|
@ -2,7 +2,7 @@ require 'benchmark'
|
|||
require 'securerandom'
|
||||
|
||||
require 'bundler/setup'
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
rng = Random.new
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'bundler/setup'
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
LightStep.configure(component_name: 'lightstep/ruby/example', access_token: '{your_access_token}')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require 'bundler/setup'
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
# You can add fixtures and/or initialization code here to make experimenting
|
||||
# with your gem easier. You can also use a different console, if you like.
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'bundler/setup'
|
|||
require 'simplecov'
|
||||
SimpleCov.command_name 'example.rb'
|
||||
SimpleCov.start
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
access_token = '{your_access_token}'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# disabled before the fork and reenabled afterward.
|
||||
|
||||
require 'bundler/setup'
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
LightStep.configure(
|
||||
component_name: 'lightstep/ruby/examples/fork_children',
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
require 'bundler'
|
||||
require 'lightstep-tracer'
|
||||
require 'bundler/setup'
|
||||
require 'lightstep'
|
||||
|
||||
require 'rack'
|
||||
require 'rack/server'
|
||||
|
||||
LightStep.init_global_tracer(
|
||||
LightStep.configure(
|
||||
component_name: 'lightstep/ruby/examples/rack',
|
||||
access_token: '{your_access_token}'
|
||||
)
|
||||
|
|
|
@ -19,5 +19,5 @@ module LightStep
|
|||
def_delegator :instance, :flush
|
||||
end
|
||||
|
||||
require 'lightstep/tracer/tracer'
|
||||
require 'lightstep/tracer/global_tracer'
|
||||
require 'lightstep/tracer'
|
||||
require 'lightstep/global_tracer'
|
|
@ -1,10 +1,10 @@
|
|||
require 'json'
|
||||
require 'concurrent'
|
||||
|
||||
require 'lightstep/tracer/span'
|
||||
require 'lightstep/tracer/transport/http_json'
|
||||
require 'lightstep/tracer/transport/nil'
|
||||
require 'lightstep/tracer/transport/callback'
|
||||
require 'lightstep/span'
|
||||
require 'lightstep/transport/http_json'
|
||||
require 'lightstep/transport/nil'
|
||||
require 'lightstep/transport/callback'
|
||||
|
||||
module LightStep
|
||||
class Tracer
|
||||
|
@ -234,7 +234,7 @@ module LightStep
|
|||
'group_name' => component_name,
|
||||
'attrs' => [
|
||||
{"Key" => "lightstep_tracer_platform", "Value" => "ruby"},
|
||||
{"Key" => "lightstep_tracer_version", "Value" => LightStep::Tracer::VERSION},
|
||||
{"Key" => "lightstep_tracer_version", "Value" => LightStep::VERSION},
|
||||
{"Key" => "ruby_version", "Value" => RUBY_VERSION}
|
||||
]
|
||||
}.freeze
|
|
@ -1,5 +0,0 @@
|
|||
module LightStep
|
||||
class Tracer
|
||||
VERSION = '0.8.14'.freeze
|
||||
end
|
||||
end
|
|
@ -1,4 +1,4 @@
|
|||
require 'lightstep/tracer/transport/base'
|
||||
require 'lightstep/transport/base'
|
||||
|
||||
module LightStep
|
||||
module Transport
|
|
@ -1,5 +1,5 @@
|
|||
require 'net/http'
|
||||
require 'lightstep/tracer/transport/base'
|
||||
require 'lightstep/transport/base'
|
||||
|
||||
module LightStep
|
||||
module Transport
|
|
@ -1,4 +1,4 @@
|
|||
require 'lightstep/tracer/transport/base'
|
||||
require 'lightstep/transport/base'
|
||||
|
||||
module LightStep
|
||||
module Transport
|
|
@ -0,0 +1,3 @@
|
|||
module LightStep
|
||||
VERSION = '0.9.0'.freeze
|
||||
end
|
|
@ -1,11 +1,11 @@
|
|||
# coding: utf-8
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'lightstep/tracer/version'
|
||||
require 'lightstep/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'lightstep-tracer'
|
||||
spec.version = LightStep::Tracer::VERSION
|
||||
spec.name = 'lightstep'
|
||||
spec.version = LightStep::VERSION
|
||||
spec.authors = ['bcronin']
|
||||
spec.email = ['support@lightstep.com']
|
||||
|
||||
|
@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|||
|
||||
spec.add_dependency 'concurrent-ruby', '~> 1.0.0'
|
||||
spec.add_development_dependency 'rake', '~> 10.0'
|
||||
spec.add_development_dependency 'rack', '~> 2.0.0'
|
||||
spec.add_development_dependency 'rspec', '~> 3.0'
|
||||
spec.add_development_dependency 'bump', '~> 0.5'
|
||||
spec.add_development_dependency 'simplecov', '~> 0.12.0'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
lib = File.expand_path('../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'lightstep/tracer/version'
|
||||
require 'lightstep/version'
|
||||
|
||||
print LightStep::Tracer::VERSION
|
||||
print LightStep::VERSION
|
||||
|
|
|
@ -134,7 +134,7 @@ describe LightStep do
|
|||
it 'should handle all valid payloads types' do
|
||||
tracer = init_test_tracer
|
||||
span = tracer.start_span('test_span')
|
||||
file = File.open('./lib/lightstep-tracer.rb', 'r')
|
||||
file = File.open('./lib/lightstep.rb', 'r')
|
||||
data = [
|
||||
nil,
|
||||
TRUE, FALSE,
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
require 'pp'
|
||||
require 'lightstep-tracer'
|
||||
require 'lightstep'
|
||||
|
||||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
||||
RSpec.configure do |config|
|
||||
|
|
Загрузка…
Ссылка в новой задаче