Repository navigation
Commit 5c6db99
Release 0.5.2
Documentation and reporting only. Neither capture layer changes, and an
application that upgrades sees no behaviour difference outside `rake
audit_log:coverage`'s output.
`audit_log:coverage` now leads its finding with a count and sorts the table list
alphabetically -- `23 untracked tables: ...` rather than `Untracked tables: ...`,
in name order rather than catalog order. Both are for the reader of a CI log,
where that list is the part that scrolls: shown from the tail a forty-table wall
reads as a handful of findings, and creation order is not what somebody scanning
for the table they just added is using. The sort lives in `Coverage#missing`
rather than at the point of display, and the count is spelled in the shared
example in `audit_log/rspec` as well, because that message is a second rendering
of the same finding and this class exists so the two cannot disagree about it.
The install template's `unaudited_tables` block gains commented examples for
Active Storage, Ahoy, PaperTrail's `versions` and the PostGIS reference tables.
They stay commented and they stay in the HOST's initializer rather than becoming
gem defaults, because the four defaults are tables no application could want
audited and these are not: `active_storage_attachments` records who attached
which file to which record, which is a real auditor question in a document-heavy
app, and a default exemption there means coverage never asks it again, silently,
in every adopting app. Hence the note beside that group -- three adjacent
commented lines invite uncommenting all three, and that one is a decision rather
than tidying up a red build.
`--exclude` is now documented as space-separated in the `audit_log:trigger`
options table. It is a Thor `type: :array`, so `--exclude=a,b` arrives as a
single column name `a,b`, matches nothing, and leaves both columns in the diff
while the generator reports success.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 111b98a commit 5c6db99
3 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
8 | 44 | | |
9 | 45 | | |
10 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
0 commit comments