standard_audit 0.13.1 → 0.13.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: 7ca3b859a3eb6993caa5c57a9a43621f67a44871c5ee3f05b2ea5d5ca79860b4
4
- data.tar.gz: 7a85141df78963fa16c7b223da7a7d48270c368538815f26d8e097a09487c0ff
3
+ metadata.gz: 5904e6e332f04e94ece55c2be87dc02fd2e243d846b5a7ded70e40af18831996
4
+ data.tar.gz: eca2147536455ac8dec6b640c272b701468946568c9dde1173cd373cdac2572d
5
5
  SHA512:
6
- metadata.gz: b74d1bbbd38c3580fb36f4db24f40f7fd01c9f6f807035e3aee8e0a3979692f0c4dc8175cdb53799291d578fdf0e8ca80add04e6df1b09b819425717088abea1
7
- data.tar.gz: 32dd1f53798d592fe517966dd4677abf42ce5ab7dd650176f56dfcd873025a43a3a81a048e276da37fdf90954cc68d3746fb9355e9c1e40559d123c87ab605af
6
+ metadata.gz: 62aaf894a1583cbee375ea6184fee0a66bdaf9823d2ccae9212fcb0339ad992741e0b00d0f9a88a83c6fc9325c9beb25c1e8a400df806a1ff9ed9447504814d2
7
+ data.tar.gz: aac06818dd7aac827e96d4e6c82a03d26d7ddc7897d51313770d13297296f7e855268d8eac062cef12fcb7c693bc636f2a8e342f13df690313f846d9c8536fce
data/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.13.2] - 2026-10-02
11
+
12
+ ### Fixed
13
+
14
+ - The canonical checksum works on json 3. `Checksum.json_round_trip` passed
15
+ `create_additions: false` to `JSON.parse`; json 3 removed that keyword, so
16
+ from the canonical cutover (2026-10-01T00:00:00Z) every audit row with a
17
+ Hash or Array field raised `ArgumentError: unknown keyword:
18
+ create_additions` before it was saved. Hosts on json 3 lost those rows
19
+ (luminality-web, LUMINALITY-WEB-1N). Hosts on json 2.x were unaffected,
20
+ and the digest is unchanged: JSON.parse never creates additions by default.
21
+
10
22
  ## [0.13.1] - 2026-09-25
11
23
 
12
24
  Fixes the checksum so it survives PostgreSQL `jsonb`
@@ -141,8 +141,11 @@ module StandardAudit
141
141
  # What a JSON column hands back for `value`: encoded exactly as
142
142
  # ActiveRecord's JSON type encodes on write, then parsed. Key ORDER is
143
143
  # the one thing this does not settle — canonical_json does.
144
+ #
145
+ # No `create_additions:` option: JSON.parse never creates additions by
146
+ # default, and json 3 removed the keyword (passing it raises).
144
147
  def json_round_trip(value)
145
- JSON.parse(ActiveSupport::JSON.encode(value), max_nesting: false, create_additions: false)
148
+ JSON.parse(ActiveSupport::JSON.encode(value), max_nesting: false)
146
149
  end
147
150
 
148
151
  # Deterministic JSON: object keys sorted bytewise at every depth, no
@@ -1,3 +1,3 @@
1
1
  module StandardAudit
2
- VERSION = "0.13.1"
2
+ VERSION = "0.13.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryl Sim