logtail 0.1.6 → 0.1.7

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: 0af39db5d892f490e82d5c495f4e51b0646f418a13d4b940566c997aff7e5b1a
4
- data.tar.gz: c3e756d0ecc74b2d8128d43914cf677458edce92c8d3bf261047f23a8ae54d65
3
+ metadata.gz: 9bb7693b6aa0c18cdfd743e711bbfb2a07d21e580e3698d9c361a4501aed76a8
4
+ data.tar.gz: 48b28d5a283ce2fb97221dc9d940f4443ece4f576a6bfa8ddceb0fc8321233bb
5
5
  SHA512:
6
- metadata.gz: abd7b6e30cbaa22c698259a59fdaf31a1f46b5c194a14ee9f24b03db08140876c19d25784038235574d9ddbd4b2429ae09f85400291767be88bae60adf023354
7
- data.tar.gz: e99b8366d6dcd585f0472091e48b3e4f17f350a3d7ff3a8d97c05022e821a7ab1c05daf5420a512eec76e18ea7e53c3367429bddd53dfeea6488951c9e844c9c
6
+ metadata.gz: 646bc1896d44fa7704355a9426921a35eda9d34e0f80f8aaa7e35d91adc78fa51ab39fbde249b8835f6045720d6260b08c9687964072c9562dad4053720a9804
7
+ data.tar.gz: a13480d4db23662178079edd858cf0ceb0fe33f90bdfc5acb178aadc2187e5ee5634b58ac7c5cc6a7c14fcbd367b32f58fa187d9687e22a0741a02ff9121791a
data/CHANGELOG.md CHANGED
@@ -18,3 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
18
18
  ## [0.1.3] - 2021-06-11
19
19
 
20
20
  - Fixed detection of the frame that calls the logger.
21
+
22
+ ## [0.1.7] - 2021-08-16
23
+
24
+ - Fixed runtime context's frame label encoding.
@@ -129,7 +129,7 @@ module Logtail
129
129
  {
130
130
  file: path_relative_to_app_root(frame),
131
131
  line: frame.lineno,
132
- frame_label: frame.label,
132
+ frame_label: frame.label.dup.force_encoding('UTF-8'),
133
133
  }
134
134
  end
135
135
 
@@ -1,3 +1,3 @@
1
1
  module Logtail
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -30,6 +30,7 @@ describe Logtail::LogEntry do
30
30
  expect(hash[:context][:runtime][:file]).to end_with('/spec/logtail/log_entry_spec.rb')
31
31
  expect(hash[:context][:runtime][:line]).to be(25)
32
32
  expect(hash[:context][:runtime][:frame_label]).to_not be_nil
33
+ expect(hash[:context][:runtime][:frame_label].encoding.to_s).to eq('UTF-8')
33
34
  end
34
35
  end
35
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logtail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack