spanmanager 0.1.1 → 0.2.0

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: a7e2a7033fe55e2a528c36af327cd373b29e1299
4
- data.tar.gz: a7a1444f421dac3eb6a10acefdc6640e8fb1c7e7
3
+ metadata.gz: 7cf0fcc2470440c98e69e0e3f28f71c5b98b7195
4
+ data.tar.gz: 3b959222a6122ac50bc9caaf9e8a6da00d68d66d
5
5
  SHA512:
6
- metadata.gz: 66e201082145e040d9ea244276dfded1516068b568a9e7b28594d33627a57348fe94f9ca39107751d05a745ae8f222ca0521fce752c21ee62ecb48d665217849
7
- data.tar.gz: 1b231b61a6a62410e3396f4bbb1c3a4406f2b927ca4a60f404f166ddfc7814995b844cde5769a326a6f9486ffceba20dd4972383f8efaff05520dcd8733ddcbe
6
+ metadata.gz: ad4806d30c452bdf6d1e9464d86b180c11f65590ce7f9ffde68f11504062639878af8b58ba26d1de86796f0c1da5dee4a5fdc4cfdc49d0a135bd57811ed22645
7
+ data.tar.gz: 148a69bcc42b728b2f06d2668c62b87d94ac2aeb64b389695fbde6c445412300da78056cdade039ee53eb4b7207102f778944bd092ffe4676d7e54897dd63af1
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.4
data/README.md CHANGED
@@ -44,6 +44,7 @@ Provides the following additional methods:
44
44
 
45
45
  1. `deactivate` marks the end of active period for the current span.
46
46
  2. `active?` returns whether the span is active or not.
47
+ 3. `wrapped` returns the wrapped span.
47
48
 
48
49
  ## SpanManager::Tracer
49
50
 
@@ -16,6 +16,11 @@ module SpanManager
16
16
  @active = true
17
17
  end
18
18
 
19
+ # @return [OpenTracing::Span] the wrapped span
20
+ def wrapped
21
+ @span
22
+ end
23
+
19
24
  # @return [Boolean] whether the span is active or not
20
25
  def active?
21
26
  @active
@@ -1,3 +1,3 @@
1
1
  module SpanManager
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
data/spanmanager.gemspec CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = %q{}
14
14
  spec.homepage = "https://github.com/iaintshine/ruby-activespan"
15
15
 
16
+ spec.required_ruby_version = ">= 2.2.0"
16
17
 
17
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
19
  f.match(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spanmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-30 00:00:00.000000000 Z
11
+ date: 2017-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing
@@ -103,6 +103,7 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
+ - ".ruby-version"
106
107
  - ".travis.yml"
107
108
  - Gemfile
108
109
  - LICENSE
@@ -128,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - ">="
130
131
  - !ruby/object:Gem::Version
131
- version: '0'
132
+ version: 2.2.0
132
133
  required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  requirements:
134
135
  - - ">="