logstruct 0.1.4 → 0.1.6

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: 01556306744df98d8548bd788dbaee74c29c976207289e7da9da69b7d5e443ca
4
- data.tar.gz: 2f8d6b1becb62c66b139ca071871beccafb35d42396e7fc552b8ba4401a93363
3
+ metadata.gz: 39ad690f2ccb74a697feebdd40978e5cc99fd0c78d4ae550611c01d18aeb56fd
4
+ data.tar.gz: 372f2cceb00b8def2054194161f234b8bd193005249c28490442cc0dc59de370
5
5
  SHA512:
6
- metadata.gz: c4f6d5ad7c72bf84e59fcb97ecb70fd3829ff6b681c923104e821e817d085ccad33e7b489232ea86a2e02bfff64ff06be6d314e8dbdf0e01ae82c7c26189c361
7
- data.tar.gz: d69f5b0bb706273f5096503f12b7b05519fae03f4ff8d3664794e89c1a6929f42b82dcf5798e782b317f18985ad85067e1c144f1b3739e54876eca163c2ad9bf
6
+ metadata.gz: a8e626ed0af7de549e6aa9a1904421bad0605613d11810554a0defe015730f6bc6e28e2563b92b6460a33fc9d4203d7041727e2007a76218b844a8fce4724709
7
+ data.tar.gz: 6b624235b3b53017a2721a37871e215e63fd38aa1d71591679e3976fe8fd26279f404cc37552908eaf52a3fb7b20ca4e872bed7f51c44a8dd10cd4cc41c0f806
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ### Changed
9
9
 
10
+ ## [0.1.6] - 2025-11-30
11
+
12
+ - Rename `PROVIDER_PUSH_TOKEN` secret to `TF_PROVIDER_GITHUB_TOKEN`
13
+
14
+ ## [0.1.5] - 2025-11-30
15
+
16
+ - **Fix**: Development logs no longer wrapped in `{message: "..."}` when LogStruct is disabled
17
+ - The TaggedLogging formatter monkey patch now checks `LogStruct.enabled?` before modifying log messages
18
+ - This preserves original Rails logging behavior in development mode
19
+
10
20
  ## [0.1.4] - 2025-10-13
11
21
 
12
22
  - Improve rack spoof handling and split integration setup
@@ -27,8 +27,15 @@ module ActiveSupport
27
27
  # plain strings in a Hash under a `msg` key.
28
28
  # The data is then passed to our custom log formatter that transforms it
29
29
  # into a JSON string before logging.
30
+ #
31
+ # IMPORTANT: This only applies when LogStruct is enabled. When disabled,
32
+ # we preserve the original Rails logging behavior to avoid wrapping
33
+ # messages in hashes (which would break default Rails log formatting).
30
34
  sig { params(severity: T.any(String, Symbol), time: Time, progname: T.untyped, data: T.untyped).returns(String) }
31
35
  def call(severity, time, progname, data)
36
+ # Skip hash wrapping when LogStruct is disabled to preserve default Rails behavior
37
+ return super unless ::LogStruct.enabled?
38
+
32
39
  # Convert data to a hash if it's not already one
33
40
  data = {message: data.to_s} unless data.is_a?(Hash)
34
41
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module LogStruct
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.6"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocSpring