disarm 0.18.0-aarch64-linux → 0.20.0-aarch64-linux

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: c0a4176b79c811f1461a15a9c62bf6b5b7c581ce4df31013aa09bd1b073e07f1
4
- data.tar.gz: c5bfb8f80e4f565ea331f56fd0a4445aed6b7d01b47e9a236e1b8e21d45cfeb6
3
+ metadata.gz: 20b0827b611d9f1306c0900a7ed7320166ff93f4ccc9b94f118d454412c0aee9
4
+ data.tar.gz: c7c04fc94ff70fa6d8a1152f7eac4e10badfd18e1c65a3bbd016becdb1c910e7
5
5
  SHA512:
6
- metadata.gz: 553cd998b8ac0a94f3bfd69d2328f0b7c4b1bc673f7d142f4861a9f061dd2c90eec5d7d42114a6e8ccdc96d792d646c42706b2fa7c7c9c6a766a3f063a03d398
7
- data.tar.gz: 03ea7a95f0038b2744af63e0b7e03fb03f27f90c68bb3f54cd244ac4468d7086497076560440b69ba772a64023b32f0a151cbf7a86bdeaf65e6c90756296337a
6
+ metadata.gz: 10cbbdb620bb131b8c8eec56056a45bd9c07c3638065e3f4ef87143c299e661e887dfdc07a6ba2a7ad6c9c73bbdb5b53b7bc188f77c165b8356648c7cd277419
7
+ data.tar.gz: 3a025f6f018f514dd85eaaae6d8c55b39e2340565226ce13d74e169e5539aa0e1c443dfb78d0538b418ddbc59402e6553296402958fb62d7fe396003c25698d1
data/NOTICE CHANGED
@@ -38,6 +38,7 @@ Unicode data
38
38
  Python's unicodedata module
39
39
  Unicode Security Mechanisms (UTS #39): confusables.txt (vendored as
40
40
  data/confusables.txt)
41
+ The Ideographic Variation Database (IVD): IVD_Sequences.txt
41
42
  Unicode CLDR emoji annotations: common/annotations/en.xml and
42
43
  common/annotationsDerived/en.xml (vendored as data/cldr/en.xml and
43
44
  data/cldr/en_derived.xml)
Binary file
Binary file
Binary file
@@ -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.18.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
@@ -633,6 +634,14 @@ module Disarm
633
634
  end
634
635
  end
635
636
 
637
+ # The level a finding of this kind carries, by the name a report holds: "error" or
638
+ # "warning", which are SARIF's names. `smuggled` is the one "error", because it fires
639
+ # only on a run that decodes to readable text. Raises Disarm::InvalidArgument on a
640
+ # name that is no kind.
641
+ def anomaly_severity(kind)
642
+ translate_errors { _anomaly_severity(kind.to_s) }
643
+ end
644
+
636
645
  # Full anomaly analysis: a hash with `:anomalous`, `:kinds` (in first-appearance
637
646
  # order), `:findings` (each `{ kind:, token:, start:, end:, detail:, reason: }`,
638
647
  # with byte offsets), and `:reason` (the first finding's reason, or nil).
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.18.0
4
+ version: 0.20.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Richard Quinn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-30 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: rake