event_tracer 0.6.2 → 0.6.3

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: 77541537838df5e2de191b30cac6096e30ef9afbba5634c99ab7dceca8378f80
4
- data.tar.gz: ce9067501e85318e4b22d731d9e28472e11b4142d70ff4d4e6b3049c5d5daf35
3
+ metadata.gz: 4e70e560e8704ed46e36010878ec3419edbf1b0f6674c82b92a28fbe17ea0caf
4
+ data.tar.gz: 6c2c3fa61d240cd7ea67460042125a030576f44797c002b3359a8fb547cf8af4
5
5
  SHA512:
6
- metadata.gz: 3980aee7c87f0e4b7aaad10def59b2a2d7cf6aa9facad6a34193dd453048c428c0553c735fae7294376ed44e574c3371854e56eb36ec77197094a96a55945354
7
- data.tar.gz: 816e02c8bddc0444fba2f8e189789c887ef2f82fc3a76618af2ed56145b249a64f4f3a5ddbba7d0fc319b8da976a72a1cd897033046849549d775b7d5498ca33
6
+ metadata.gz: cc24ff64d2d48630c583a62fe53e9d1e328ad8fd4eed07a22fd24efda21b8f4478bf9f1f3736c54f50437a088cc0bae374d7f825e237275b06ef3ffd6951e438
7
+ data.tar.gz: 66b76929a73eddc3e136874729c96e8e9b3cda82131b6799d92c4266445ebc3af4fa2c2985c2698d84fe9f541d37ceecf1e9d80ff051bcece76fe93866e84c03
@@ -43,7 +43,10 @@ module EventTracer
43
43
  def flush
44
44
  data = []
45
45
 
46
- data << buffer.shift[:item] until buffer.empty?
46
+ # NOTE: We need to use this to avoid race-condition
47
+ buffer.cycle do
48
+ data << buffer.shift[:item]
49
+ end
47
50
 
48
51
  data
49
52
  end
@@ -1,3 +1,3 @@
1
1
  module EventTracer
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - melvrickgoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-22 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby