trailer 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 19aa44602d0f21dcbc370fdd468fb3d4c47c07f51b4f971f52b36f418c615985
4
- data.tar.gz: 7c15e53a79a627c50c6324f535f1280c63afe4d80771fd8b75d3392bbfb33612
3
+ metadata.gz: 4b0ae441aa41c8305d13c0ead5ac8ec7ce96b0381c4814c3409ef0f33a0e1776
4
+ data.tar.gz: a55c47ba75a922636ee8e00ba5ee12decf66d7dfa01c707aa1c010d161d53ed1
5
5
  SHA512:
6
- metadata.gz: 715dfc4116b0b815e171ea17ca8a78c007fd1687e5888b51c8ceb29a737efd0f14c9c0bd940ff9650d837419d2dd77feeb7c403beb9eb4ae1d7af4e3411c8c53
7
- data.tar.gz: 5c25042615eaffc24254784077cd76845db1e7880445a2ae422a19181b4454d9fe37735d3de00f0f36048180c72e878a9bee98abd6e490a38bbeb4777ed2eb5f
6
+ metadata.gz: bec56ba139e3bb691f1f60ffa9ceaa2e4d6b1b00366614734ac1a310c3541872ac418eb904e3674b94ae29c3cd5e49cb08427ae62ef557de558968ddc81f4421
7
+ data.tar.gz: 2e0c54cb831933b7626323989df418072d70fc4bc16efd6091863db642849fc42734f80d85fbb4213b9c3d137c539ac0fadb165e0f8658818dc31d4e3221ffd2
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 - 2020-09-28
4
+
5
+ ### Bug Fixes
6
+
7
+ * Fail gracefully if there's no trace in progress ([#5])
8
+
9
+ [#5]: https://github.com/shuttlerock/trailer/pull/5
10
+
3
11
  ## 0.2.0 - 2020-09-28
4
12
 
5
13
  ### Features
@@ -12,7 +12,7 @@ module Trailer
12
12
  # instance, query, etc (eg. current_user, 'Article#submit', 'http://example.com/articles').
13
13
  # @param tags Hash - Extra tags which should be tracked (eg. { method: 'GET' }).
14
14
  def trace_event(event, resource = nil, **tags, &block) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
15
- unless Trailer.enabled?
15
+ unless Trailer.enabled? && !RequestStore.store[:trailer].nil?
16
16
  return yield block if block_given?
17
17
 
18
18
  return
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trailer
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Perrett
metadata.gz.sig CHANGED
Binary file