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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/standard_audit/checksum.rb +4 -1
- data/lib/standard_audit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5904e6e332f04e94ece55c2be87dc02fd2e243d846b5a7ded70e40af18831996
|
|
4
|
+
data.tar.gz: eca2147536455ac8dec6b640c272b701468946568c9dde1173cd373cdac2572d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|