disarm 0.18.0-aarch64-linux → 0.19.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: 96d46c601be9b39803a023d808c01f64e03a0c9dee8bcd2c3309e3bbb881e948
4
+ data.tar.gz: 5d6ef358fcd1f027ec4d5d36846d9bd5e586cb037348fa6cf1f3b984da583a62
5
5
  SHA512:
6
- metadata.gz: 553cd998b8ac0a94f3bfd69d2328f0b7c4b1bc673f7d142f4861a9f061dd2c90eec5d7d42114a6e8ccdc96d792d646c42706b2fa7c7c9c6a766a3f063a03d398
7
- data.tar.gz: 03ea7a95f0038b2744af63e0b7e03fb03f27f90c68bb3f54cd244ac4468d7086497076560440b69ba772a64023b32f0a151cbf7a86bdeaf65e6c90756296337a
6
+ metadata.gz: ef36eb0b173472f7d80f0e3cb358647d599a8dc75a8e4fab69f81ddcad6094884a3619cec26264dae336bfed9ed81bd62822b369fc7d217de4fbc18813faff55
7
+ data.tar.gz: 6d6705d599e3d60d47802534c2d65757380bddb63f136659aaced9309a07ce49d80cc81d4fd9bf80416fa0be71b51266d5ae9193427b966ebdf5d49614723251
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.19.0"
6
6
  end
data/lib/disarm.rb CHANGED
@@ -633,6 +633,14 @@ module Disarm
633
633
  end
634
634
  end
635
635
 
636
+ # The level a finding of this kind carries, by the name a report holds: "error" or
637
+ # "warning", which are SARIF's names. `smuggled` is the one "error", because it fires
638
+ # only on a run that decodes to readable text. Raises Disarm::InvalidArgument on a
639
+ # name that is no kind.
640
+ def anomaly_severity(kind)
641
+ translate_errors { _anomaly_severity(kind.to_s) }
642
+ end
643
+
636
644
  # Full anomaly analysis: a hash with `:anomalous`, `:kinds` (in first-appearance
637
645
  # order), `:findings` (each `{ kind:, token:, start:, end:, detail:, reason: }`,
638
646
  # 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.19.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-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake