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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/opentracing.rb +3 -0
- data/lib/opentracing/reference.rb +5 -15
- data/lib/opentracing/version.rb +1 -1
- data/opentracing.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f761a5b465cf95f65ce40a201dd8cd3714286c78
|
4
|
+
data.tar.gz: 1d1c484d531e165480dd7c16db268a9fd1d8b0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20cd823a49e8f8782367b8f31f87c25e082e02d6995a0c1ee8a1a0132ed61dec4dd54f34335f5a99e33b9f09b12576fa445da605c39c14802e44a1fb0b683f68
|
7
|
+
data.tar.gz: c2cfafcde7cbe58ffeb9b2c436806bd545b7dc94e4e5ae834b5c1db64d9fe147f7dc84046fe03100d1dd7b929284e109bf290c33d2e0043b6930ec7b82d37c09
|
data/CHANGELOG.md
ADDED
@@ -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
data/lib/opentracing.rb
CHANGED
@@ -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
|
-
#
|
79
|
-
|
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
|
-
|
85
|
-
@context
|
86
|
-
end
|
76
|
+
attr_reader :context
|
87
77
|
end
|
88
78
|
end
|
data/lib/opentracing/version.rb
CHANGED
data/opentracing.gemspec
CHANGED
@@ -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"
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
131
|
+
rubygems_version: 2.4.8
|
131
132
|
signing_key:
|
132
133
|
specification_version: 4
|
133
134
|
summary: OpenTracing Ruby Platform API
|