libhoney 1.5.0 → 1.5.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: 29ad40e8dcbca0f6fecd415db07673c112775cf9c8e5c57c4c8d483110bab179
4
- data.tar.gz: e2d40016c340a2220d83ae5f7de8971b637153d2dd5b1b687cd656adb19651e7
3
+ metadata.gz: c575f9d827828690057f38e40e8777affa2d47377311b479f1864da2c4ea2744
4
+ data.tar.gz: af4ab490ed04e715bb7969ec0c21658c90232eefa1e34924e83ea6595d4195aa
5
5
  SHA512:
6
- metadata.gz: 1ed70a0475fb88e90441f4e3626c12705f3f5a9cf8252f8046b0f2be3acac8806349311af87f43f423f7a41e60af4f14e1c662b0d8654f5c74adade31baca3a4
7
- data.tar.gz: 86ee5a883863ec5ca594df1e3057c83bba3416340f979e54df5ccbeb98f978862ca00408cc16a5352b8a9394206ed260a5f66546fe5e7345a3cf149b29fc0fe5
6
+ metadata.gz: ccd03a2f723ef5975a806b6240c05c62a3f8b992ee4589388a99def923e3bf7fb26783748b845301e7fc27f163857ad75ef6d9da1c963e9df0fb871191cf778e
7
+ data.tar.gz: 10209e518c521f9a72c71b704ac0be6ec0700da31d382873932c39242ac8acdf0cdfd0afad1c3c85d0c9ffff514abd8896f0437aaaff048ed99343c52d55a092
@@ -227,5 +227,10 @@ module Libhoney
227
227
  def events
228
228
  @tx.events
229
229
  end
230
+
231
+ # Discards the recorded events
232
+ def reset
233
+ @tx.reset
234
+ end
230
235
  end
231
236
  end
@@ -8,7 +8,7 @@ module Libhoney
8
8
  # production is not recommended.
9
9
  class MockTransmissionClient
10
10
  def initialize
11
- @events = []
11
+ reset
12
12
  end
13
13
 
14
14
  # @return [Array<Event>] the recorded events
@@ -22,5 +22,10 @@ module Libhoney
22
22
  # Does nothing.
23
23
  def close(drain)
24
24
  end
25
+
26
+ # Discards the recorded events
27
+ def reset
28
+ @events = []
29
+ end
25
30
  end
26
31
  end
@@ -1,3 +1,3 @@
1
1
  module Libhoney
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libhoney
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Honeycomb.io Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler