lorekeeper 2.6.3 → 2.6.4

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: d211dae4a4b4384c1088e25ca7f3153be286c4dafa9a5e6b00f2d1f5de1f24ce
4
- data.tar.gz: e352f7504c9ab8425340aac4903edb445fcee8ddb4480d38929570552aa22fc2
3
+ metadata.gz: e282bfe416e749c799f15f0536b549564a754c772046e31ac718eb765c9883df
4
+ data.tar.gz: 002bee464879dc13c440b5fa835e844352f4f19bbf137926328e1f410e635dc8
5
5
  SHA512:
6
- metadata.gz: a88a2169e5d597f72ae6f882e2395825c21a18e561700e8b29108f16922e822bbf5c9ca9050953c6feb58725ebffb40215293f58fc2ffdee8488b46e9a63c265
7
- data.tar.gz: 4793d8b3ade333e955b79c38940289a42e3ca103b5200277aa8997ec12be3548c86eaf82e1b7197009bae467fbaf76a833631f20d543f05a90c81c8fe978dd14
6
+ metadata.gz: babd0aa08447fc53c1430c588439bb5743dbee7e0dbdfb8fc4d2f70e1a9fa231cf46e74e05e1b905515239f06573a33e59ecfacc7c8138c152de24bc234647b2
7
+ data.tar.gz: 2951023ec3da1084c90b0c2ac156ba98617c9b28cdded020dc179cd63c9345215b22fdfe732dbcc16c9d4e7c8d7e4eff39fe2089ebff6c756c6e9dc0120683ec
@@ -15,18 +15,23 @@ jobs:
15
15
  strategy:
16
16
  matrix:
17
17
  ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
18
- rails: ['5.2.7', '6.0.4', '6.1.7', '7.0.8', '7.1.1']
18
+ rails: ['5.2.8', '6.0.6', '6.1.7', '7.0.8', '7.1.4', '7.2.1']
19
19
  include:
20
- - rails: '4.0.1'
20
+ - rails: '4.0.13'
21
21
  ruby: '2.7'
22
- - rails: '4.1.1'
22
+ - rails: '4.1.16'
23
23
  ruby: '2.7'
24
- - rails: '4.2.1'
24
+ - rails: '4.2.11'
25
25
  ruby: '2.7'
26
- - rails: '5.0.1'
26
+ - rails: '5.0.7'
27
27
  ruby: '2.7'
28
- - rails: '5.1.1'
28
+ - rails: '5.1.7'
29
29
  ruby: '2.7'
30
+ exclude:
31
+ - rails: '7.2.1'
32
+ ruby: '2.7'
33
+ - rails: '7.2.1'
34
+ ruby: '3.0'
30
35
 
31
36
  steps:
32
37
  - uses: actions/checkout@v4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 2.6.4
2
+ * Reorder the exception fields to have the `data` field before the `exception` field
3
+
1
4
  # 2.6.3
2
5
  * Fix Lorekeeper::BacktraceCleaner to support BacktraceLocation
3
6
 
@@ -10,7 +10,7 @@ module Lorekeeper
10
10
  reset_state
11
11
  @base_fields = { TIMESTAMP => '', MESSAGE => '', LEVEL => '' }
12
12
 
13
- super(file)
13
+ super
14
14
  end
15
15
 
16
16
  def current_fields
@@ -77,10 +77,11 @@ module Lorekeeper
77
77
  if exception.is_a?(Exception)
78
78
  backtrace = clean_backtrace(exception.backtrace || [])
79
79
  exception_fields = {
80
+ DATA => param_data,
80
81
  EXCEPTION => "#{exception.class}: #{exception.message}",
81
82
  STACK => backtrace
82
83
  }
83
- exception_fields[DATA] = param_data if param_data
84
+ exception_fields.compact!
84
85
 
85
86
  message = param_message || exception.message
86
87
  with_extra_fields(exception_fields) { log_data(log_level, message) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lorekeeper
4
- VERSION = '2.6.3'
4
+ VERSION = '2.6.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lorekeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Polo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-17 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -235,7 +235,7 @@ homepage: https://github.com/JordiPolo/lorekeeper
235
235
  licenses:
236
236
  - MIT
237
237
  metadata: {}
238
- post_install_message:
238
+ post_install_message:
239
239
  rdoc_options: []
240
240
  require_paths:
241
241
  - lib
@@ -250,8 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
252
  requirements: []
253
- rubygems_version: 3.0.3.1
254
- signing_key:
253
+ rubygems_version: 3.5.3
254
+ signing_key:
255
255
  specification_version: 4
256
256
  summary: Very fast JSON logger
257
257
  test_files: []