opentracing 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61ca714ff9464163db6bb5a8a868c2047c107980
4
- data.tar.gz: 8c796e19b4a5ce768e24e4479260a55de79c5c95
3
+ metadata.gz: f761a5b465cf95f65ce40a201dd8cd3714286c78
4
+ data.tar.gz: 1d1c484d531e165480dd7c16db268a9fd1d8b0db
5
5
  SHA512:
6
- metadata.gz: 79a42b7afe696afe3d476e778de5dc71889dea2b24e49206bd2201e7245b470fea039c3ce0510bcabc9dff46f90879fd5eeba237cb50b6a3beddc487848b78e0
7
- data.tar.gz: 5ffb674ee8757cff0944129872bf8929f6987430adc2380a6b54e865482a41d93355d342a9bd3fea249f15d7217e657a1b3094a63594978b60b1294b51eb260d
6
+ metadata.gz: 20cd823a49e8f8782367b8f31f87c25e082e02d6995a0c1ee8a1a0132ed61dec4dd54f34335f5a99e33b9f09b12576fa445da605c39c14802e44a1fb0b683f68
7
+ data.tar.gz: c2cfafcde7cbe58ffeb9b2c436806bd545b7dc94e4e5ae834b5c1db64d9fe147f7dc84046fe03100d1dd7b929284e109bf290c33d2e0043b6930ec7b82d37c09
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.3.2
4
+
5
+ * Addressing Ruby style issues ([#14](https://github.com/opentracing/opentracing-ruby/pull/14))
6
+ * Default to the no-op tracer ([#17](https://github.com/opentracing/opentracing-ruby/pull/17))
7
+ * Fixing serialization example in README ([#18](https://github.com/opentracing/opentracing-ruby/pull/18))
8
+ * Removing bundler development version requirement
data/README.md CHANGED
@@ -77,7 +77,7 @@ span.finish
77
77
 
78
78
  Using `Net::HTTP`:
79
79
  ```ruby
80
- client = Net::HTTP.new("http://myservice")
80
+ client = Net::HTTP.new("myservice.com")
81
81
  req = Net::HTTP::Post.new("/")
82
82
 
83
83
  span = OpenTracing.start_span("my_span")
@@ -36,3 +36,6 @@ module OpenTracing
36
36
  def_delegators :global_tracer, :start_span, :inject, :extract
37
37
  end
38
38
  end
39
+
40
+ # Default to the no-op tracer
41
+ OpenTracing.global_tracer = OpenTracing::Tracer.new
@@ -24,10 +24,7 @@ module OpenTracing
24
24
  # ])
25
25
  #
26
26
  def self.child_of(context)
27
- if context.is_a?(Span)
28
- context = context.context
29
- end
30
-
27
+ context = context.context if context.is_a?(Span)
31
28
  Reference.new(CHILD_OF, context)
32
29
  end
33
30
 
@@ -63,10 +60,7 @@ module OpenTracing
63
60
  # ])
64
61
  #
65
62
  def self.follows_from(context)
66
- if context.is_a?(Span)
67
- context = context.context
68
- end
69
-
63
+ context = context.context if context.is_a?(Span)
70
64
  Reference.new(FOLLOWS_FROM, context)
71
65
  end
72
66
 
@@ -75,14 +69,10 @@ module OpenTracing
75
69
  @context = context
76
70
  end
77
71
 
78
- # Return [String] reference type
79
- def type
80
- @type
81
- end
72
+ # @return [String] reference type
73
+ attr_reader :type
82
74
 
83
75
  # @return [SpanContext] the context of a span this reference is referencing
84
- def context
85
- @context
86
- end
76
+ attr_reader :context
87
77
  end
88
78
  end
@@ -1,3 +1,3 @@
1
1
  module OpenTracing
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.13"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "minitest", "~> 5.0"
26
26
  spec.add_development_dependency "simplecov"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ngauthier
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-08-05 00:00:00.000000000 Z
13
+ date: 2018-01-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '1.13'
21
+ version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '1.13'
28
+ version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +93,7 @@ files:
93
93
  - ".gitignore"
94
94
  - ".rubocop.yml"
95
95
  - ".travis.yml"
96
+ - CHANGELOG.md
96
97
  - Gemfile
97
98
  - LICENSE
98
99
  - README.md
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  version: '0'
128
129
  requirements: []
129
130
  rubyforge_project:
130
- rubygems_version: 2.5.1
131
+ rubygems_version: 2.4.8
131
132
  signing_key:
132
133
  specification_version: 4
133
134
  summary: OpenTracing Ruby Platform API