vicary 0.3.0 → 0.3.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -0
  3. data/lib/vicary/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87a7b67331a679a48b8772a1c440cc43e87449fa87a66bbb43c6d8a38508cb22
4
- data.tar.gz: 29072819657cfe53935377afe8b7bf37f739fb60cbd5a5289ce0a994cfa9a966
3
+ metadata.gz: '0900043bf638f35f9c800d4c4965313a7c6ba37b505b030f5f03454d82bc4149'
4
+ data.tar.gz: 348848675fc538266afa648892697d0eae47e5730cd5c850a745f29c629b3a2c
5
5
  SHA512:
6
- metadata.gz: 182d67187a52636a7a92b91e97f3b44d1d321493caf98fee9f27d5573d851d20d05ed081305df0662ad9ec224cfc4757f428c0df98799f622a135b2e4850b77a
7
- data.tar.gz: 688574220e0b77f95c8cdf3ad28a8577d5ebf89d47f12618b355946b179cce539c7e14573ab1bace4d83a8b2f7863c84ffea6a92f7843b5d3fc61ca60c922c76
6
+ metadata.gz: fb086bad7e88f5cdbb48ec7413ddd0ee5a945df0bee7499d15f0a4898c4818f469bc32c14f1357a836dcdff69f8a5390922d5869fcaa57d5f601b747608ac630
7
+ data.tar.gz: eb1513fe04fa484d45504fdb89a75aef040b30a98b5fc647e5880db9e9f26c9b21573afc7442d352218dbcc1a4a4fb5b4ded2108ad9029c8ec988b32506fefc8
data/README.md CHANGED
@@ -40,6 +40,12 @@ masked, n, maps, batched = Vicary.redact_batch_with_report(fields, identity)
40
40
  # passed separately, so cross-field placeholder identity does NOT hold.
41
41
  ```
42
42
 
43
+ Pass `render: "adlib"` (and `adlib_seed:`, or set `VICARY_RENDER` / `VICARY_ADLIB_SEED`)
44
+ to write each redacted span as an invented value of its kind instead of a `{KIND_n}`
45
+ placeholder, so the result reads as prose; `Vicary.restore_adlib(text, restore_map,
46
+ token_map)` puts originals back into a model reply. It renders byte for byte what the
47
+ Python implementation does, checked by `conformance/adlib.json`.
48
+
43
49
  An offset landing inside a placeholder resolves to the start of the span it
44
50
  replaced. A map that is absent, or that covers only some of the placeholders in
45
51
  the text, yields **no** spans and translates as the identity — a caller can
@@ -6,5 +6,5 @@ module Vicary
6
6
  # Shared across all three front doors on purpose: one detector, one number. A
7
7
  # gem 0.3.0 that corresponds to nothing on PyPI cannot be reasoned about, and
8
8
  # the parity claim is between *versions*, not between package names.
9
- VERSION = "0.3.0"
9
+ VERSION = "0.3.1"
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vicary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-04 00:00:00.000000000 Z
11
+ date: 2026-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Finds the names a student writes about — classmates, teachers, relatives — and