tracing-matchers 1.0.0 → 1.0.1

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: c418f19d72339b671c55287f1cf6ef9547f2c315
4
- data.tar.gz: 9b0b563857eac434cc06a8ae5f75a7199e4c770d
3
+ metadata.gz: 7b267634453368b953b1c360b97c757a78dea84b
4
+ data.tar.gz: 3ca899031fbfa05514868c595911074e3d9fc556
5
5
  SHA512:
6
- metadata.gz: 5898f4f70c4a1a799666cd56313f504588f9b5b048d056ea92287a87302c02677522186ead46fe07ef4574a808046b6f9d32d008472f9e7810e722b282682cd8
7
- data.tar.gz: b23c7f27093bfa483485fbf2d347e569accd33e425c6a1ddcb8a0edeca8003173401412c59227b1d36708802774d3355821f7d8b18e61dbefc15570e05be91de
6
+ metadata.gz: 8ec28d560afdac35daf3eeabcd2a59410af45d967a88b6d615ec1ee00d7a7b05f98f4a613cc3d3e1c95f9fb7cab676fe5aa869998148a7884fe9759d664c51b8
7
+ data.tar.gz: 45c633fa61aa88201de235a5469384015cd249a51c6b88c4ca8ed967606a68bbcd532a0d0ae7313428acd7c5309797997135212df4058def6ff689471b1d34cd
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.2
4
5
  - 2.3
5
6
  - 2.4
6
7
  before_install: gem install bundler -v 1.15.4
@@ -67,7 +67,9 @@ module Tracing
67
67
  case
68
68
  when @expected.respond_to?(:context) then @expected.context.span_id
69
69
  when @expected.respond_to?(:span_id) then @expected.span_id
70
- when @expected.is_a?(String) then @tracer.spans.find { |span| span.operation_name == @expected }&.context&.span_id
70
+ when @expected.is_a?(String)
71
+ span = @tracer.spans.find { |span| span.operation_name == @expected }
72
+ span.context.span_id if span && span.context && span.context.span_id
71
73
  else @expected
72
74
  end
73
75
  end
@@ -1,5 +1,5 @@
1
1
  module Tracing
2
2
  module Matchers
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracing-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-29 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-tracer