disarm 0.17.2-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: e6b272d5f6d1d04facd6e0799badd0e45611437f933ea0c1c5c3ab15f57a6b9c
4
- data.tar.gz: c55d1928a81a21870b7152cafcbf364ffbf9f80872a100b26cb3dfc3f3a11d45
3
+ metadata.gz: 96d46c601be9b39803a023d808c01f64e03a0c9dee8bcd2c3309e3bbb881e948
4
+ data.tar.gz: 5d6ef358fcd1f027ec4d5d36846d9bd5e586cb037348fa6cf1f3b984da583a62
5
5
  SHA512:
6
- metadata.gz: b785345089c2bcbfb9b83ced9b02108b04dc7911b65e535bb51e73facc133bb252fc69ba602e7cc9356bf5c38e41c07730644e77c4d0d637781ba25a2bc1f08e
7
- data.tar.gz: 67c55f33eff752f93ce65161e77d87a4cf40b3a6df82d3e64ff28e390d6b2b32d3a5816f0454ce54f892231ce980e0a7e13becb3f31f66300e9da1f2a5a15367
6
+ metadata.gz: ef36eb0b173472f7d80f0e3cb358647d599a8dc75a8e4fab69f81ddcad6094884a3619cec26264dae336bfed9ed81bd62822b369fc7d217de4fbc18813faff55
7
+ data.tar.gz: 6d6705d599e3d60d47802534c2d65757380bddb63f136659aaced9309a07ce49d80cc81d4fd9bf80416fa0be71b51266d5ae9193427b966ebdf5d49614723251
data/NOTICE ADDED
@@ -0,0 +1,89 @@
1
+ disarm
2
+ Copyright (c) 2026 Richard Quinn
3
+ Licensed under the MIT License; see LICENSE.
4
+
5
+ disarm includes data adapted from the following works, which remain under
6
+ their own licences.
7
+
8
+ confusable-vision
9
+ (c) 2026 Paul Wood FRSA (@paultendo)
10
+ https://github.com/paultendo/confusable-vision
11
+ Data licensed under the Creative Commons Attribution 4.0 International
12
+ License (CC-BY-4.0): https://creativecommons.org/licenses/by/4.0/
13
+ The data is provided as-is; see the licence for its disclaimer of warranties.
14
+
15
+ Used:
16
+ data/output/confusable-weights-v2.json (v2026-03-02)
17
+ data/output/candidate-discoveries.json (2026-02-27 revision)
18
+ data/output/m2b-verification-report.json (2026-02-27 revision)
19
+
20
+ Changed: disarm selects confusable pairs from those files by the admission
21
+ rules stated in data/confusables_supplement.tsv and
22
+ data/confusables_vision.tsv, and folds the selected pairs into its confusable
23
+ tables (src/tables/data/confusables_to_latin.tsv and
24
+ src/tables/data/confusables_to_cyrillic.tsv). Those tables are compiled into
25
+ every disarm package. The measurements themselves are not redistributed.
26
+ The author does not endorse disarm by this credit.
27
+
28
+ Unicode data
29
+ Copyright © 1991-2025 Unicode, Inc.
30
+ https://www.unicode.org/
31
+ Licensed under the Unicode License v3 (SPDX: Unicode-3.0), reproduced below.
32
+
33
+ Used:
34
+ the Unicode Character Database (UCD): Scripts.txt (vendored as
35
+ data/Scripts.txt), CaseFolding.txt, DerivedCoreProperties.txt and
36
+ emoji/emoji-data.txt, and the character properties (General_Category,
37
+ East_Asian_Width, Bidi_Class, Numeric_Type and others) read through
38
+ Python's unicodedata module
39
+ Unicode Security Mechanisms (UTS #39): confusables.txt (vendored as
40
+ data/confusables.txt)
41
+ The Ideographic Variation Database (IVD): IVD_Sequences.txt
42
+ Unicode CLDR emoji annotations: common/annotations/en.xml and
43
+ common/annotationsDerived/en.xml (vendored as data/cldr/en.xml and
44
+ data/cldr/en_derived.xml)
45
+ The version of each, per table, is listed in docs/provenance.md.
46
+
47
+ Changed: disarm's generators (scripts/gen_*.py) read these files and write
48
+ the lookup tables under src/tables/, folding, filtering and re-keying them;
49
+ the tables are compiled into every disarm package.
50
+
51
+ UNICODE LICENSE V3
52
+
53
+ COPYRIGHT AND PERMISSION NOTICE
54
+
55
+ Copyright © 1991-2025 Unicode, Inc.
56
+
57
+ NOTICE TO USER: Carefully read the following legal agreement. BY
58
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
59
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
60
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
61
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
62
+
63
+ Permission is hereby granted, free of charge, to any person obtaining a
64
+ copy of data files and any associated documentation (the "Data Files") or
65
+ software and any associated documentation (the "Software") to deal in the
66
+ Data Files or Software without restriction, including without limitation
67
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
68
+ copies of the Data Files or Software, and to permit persons to whom the
69
+ Data Files or Software are furnished to do so, provided that either (a)
70
+ this copyright and permission notice appear with all copies of the Data
71
+ Files or Software, or (b) this copyright and permission notice appear in
72
+ associated Documentation.
73
+
74
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
75
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
76
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
77
+ THIRD PARTY RIGHTS.
78
+
79
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
80
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
81
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
82
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
83
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
84
+ FILES OR SOFTWARE.
85
+
86
+ Except as contained in this notice, the name of a copyright holder shall
87
+ not be used in advertising or otherwise to promote the sale, use or other
88
+ dealings in these Data Files or Software without prior written
89
+ authorization of the copyright holder.
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.17.2"
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.17.2
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-09-26 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
@@ -93,6 +93,7 @@ extensions: []
93
93
  extra_rdoc_files: []
94
94
  files:
95
95
  - LICENSE
96
+ - NOTICE
96
97
  - README.md
97
98
  - lib/disarm.rb
98
99
  - lib/disarm/3.3/disarm.so