libhoney 1.14.1 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2373830c8e1db77f91d3246c8e0f70f014d18f3ddf385f7a47eaff425e5750df
4
- data.tar.gz: a40a3eef2910a08fad7c23302ad15ed42764e9dea1dce589a4f75473ed7a4adb
3
+ metadata.gz: 3f927781fd9eabe1295401e3c82ff1bac4397fc268161a0f50bbde9265e36043
4
+ data.tar.gz: 5de25f0498bdceedaf1d0f70d152d1f636cec859826bfa8415e1bdbfdb8cda7a
5
5
  SHA512:
6
- metadata.gz: 47d18ab9a49b10f8277508048eaf0736ca36547918181c02b94d8ea7a5c6c2e9c068b63972446cc90a0e1adc4c6a4f900671e6644d869798f687b019356233f3
7
- data.tar.gz: f356d9b7428041fa5e6fbfaafded29b4c84aa78eaecbc61f04a9472162a796d9934d3c1912d60182cbb8696dc4d77e3c2d4fc1642f5d7c11017802625ea4f4d3
6
+ metadata.gz: 431121e46ae89a3362ede8612f56cf4c6bcbf034389e78751e5a24e39c95bcb2ea364a240c2251f0583363913403d94bc87738ace08c92e28de1f1e11861cdcb
7
+ data.tar.gz: d9d64648f34037c8904ae001c2967b6c7a81dad0c46fd7aef0ba95501cf284010b2a5ba2d88ce0dacf020b05929247927eea89c7e45ece216598758e142aaa97
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- libhoney (1.14.1)
4
+ libhoney (1.14.2)
5
5
  addressable (~> 2.0)
6
6
  http (>= 2.0, < 5.0)
7
7
 
@@ -17,7 +17,7 @@ GEM
17
17
  safe_yaml (~> 1.0.0)
18
18
  domain_name (0.5.20190701)
19
19
  unf (>= 0.0.5, < 1.0.0)
20
- ffi (1.11.2)
20
+ ffi (1.11.3)
21
21
  ffi-compiler (1.0.1)
22
22
  ffi (>= 1.0.0)
23
23
  rake
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'libhoney/cleaner'
2
3
 
3
4
  module Libhoney
4
5
  # For debugging use: a mock version of TransmissionClient that simply prints
@@ -9,6 +10,8 @@ module Libhoney
9
10
  # to verify what events your instrumented code is sending. Use in
10
11
  # production is not recommended.
11
12
  class LogTransmissionClient
13
+ include Cleaner
14
+
12
15
  def initialize(output:, verbose: false)
13
16
  @output = output
14
17
  @verbose = verbose
@@ -21,7 +24,9 @@ module Libhoney
21
24
  metadata << " (sample rate: #{event.sample_rate})" if event.sample_rate != 1
22
25
  @output.print("#{metadata} | ")
23
26
  end
24
- @output.puts(event.data.to_json)
27
+ clean_data(event.data).tap do |data|
28
+ @output.puts(data.to_json)
29
+ end
25
30
  end
26
31
 
27
32
  # Flushes the output (but does not close it)
@@ -1,3 +1,3 @@
1
1
  module Libhoney
2
- VERSION = '1.14.1'.freeze
2
+ VERSION = '1.14.2'.freeze
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.14.1
4
+ version: 1.14.2
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: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump