disarm 0.19.0 → 0.20.0

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: 1fe7093d6eacd02aaefd2c58728e86cf7722c11eace2868138bc7c8389998469
4
- data.tar.gz: 42ae4ab7b64ce29af6fa9026076694bf2a4527f660da846a7931a9fb05ee4cb3
3
+ metadata.gz: fd2bf766d67e42d36d2a5acdd1ecb30b56bbf8c4abe0bf220af2b1fa44d929a1
4
+ data.tar.gz: 4b6d357373193fdee8ffb21237844210eb4bb26bdbbf880098a8a55fceeb87cc
5
5
  SHA512:
6
- metadata.gz: b2a1582a1a35164a6de6b17b03b89fac792d66c8e9a8097555fb08508bd845525cb015175effc8f84c9dbcad826491da007c0afd23c03d661ad9923bd2029a2d
7
- data.tar.gz: 1463ecfca3ce4e3c3a0faec46ed0f4d3ea465cd22a00a262b8eba016c44ad9583821ff031ed906cf2a550d22d213ecc71c1abc6ece33e73e21f85d94e864bcc1
6
+ metadata.gz: 5dc46f5e05e55fbd8c05b467a8c1c7af76e5408c4275435342bdebc7d17150f1d0b68f5669306029ad04e73c18f23e8eb7d5a65fecd4a630812b1c50a273cd30
7
+ data.tar.gz: 9038c9dd1c0e160970a841e7e2d6c3b7e61114f64f8679214ae3ff47c28ec16b585b9c9b959e1a857d139e41c322c72966b0a25be70012678d4df1eeb38bf1df
@@ -30,7 +30,7 @@ crate-type = ["cdylib"]
30
30
  # dep — not a path — so the gem is self-contained and the rb-sys-dock cross-gem
31
31
  # build (which mounts only this gem dir) can fetch it. Imported as `disarm_core`
32
32
  # because the package name `disarm` would otherwise clash with this crate.
33
- disarm_core = { package = "disarm", version = "0.19", default-features = false }
33
+ disarm_core = { package = "disarm", version = "0.20", default-features = false }
34
34
  # magnus: ergonomic, safe Ruby<->Rust bindings over rb-sys. 0.8 supports Ruby >= 3.0
35
35
  # (the gem's required_ruby_version); rb-sys handles the platform glue.
36
36
  magnus = "0.9"
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Disarm
4
4
  # Kept in lockstep with the Rust crate / Python package version.
5
- VERSION = "0.19.0"
5
+ VERSION = "0.20.0"
6
6
  end
data/lib/disarm.rb CHANGED
@@ -482,9 +482,10 @@ module Disarm
482
482
  # `list_scripts` and avoiding a `require "set"` in the gem entrypoint.
483
483
  #
484
484
  # Read as exposure, not as a score — this is where an adaptive attacker goes once
485
- # the mapped sources stop working. It includes five ASCII characters ("%", "0",
486
- # "1", "I", "m"): TR39 is a skeleton transform, and disarm deliberately does not
487
- # apply those rows because folding a legitimate "m" to "rn" corrupts prose.
485
+ # the mapped sources stop working. It includes eight ASCII characters ('"', "%",
486
+ # "0", "1", "I", "`", "m", "|"): TR39 is a skeleton transform, and disarm's table
487
+ # deliberately does not apply those rows because folding a legitimate "m" to "rn"
488
+ # corrupts prose and folding '"' to "''" breaks every JSON document (#1236).
488
489
  def unmapped_confusables(target: :latin)
489
490
  translate_errors { _unmapped_confusables(target.to_s) }
490
491
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Quinn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-01 00:00:00.000000000 Z
11
+ date: 2026-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys