ucode 0.5.3 → 0.5.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1427ccac970f174770fd288a23c0887ecccd0308a19dd7a8274bbfd8d2b3859e
|
|
4
|
+
data.tar.gz: 3d9c8908fc7ced45e3b0848c75facaee7bee75f10723de7b3751a0e3fd9abc52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 792bfeb043cf2bd580f3c93ea229e82d9f774d8d882e3dae312a2da78566dbdd6480fad5a230f514ff9dee8dd7f1bcf75f6c86da613884317905b4ee821b9ea7
|
|
7
|
+
data.tar.gz: 24351f04f0600c238ff9561df3fbbc38672a8f3b035736b3b021d458de4f015379bbba54ed62a6d6350a90546e03d3c96e41a259bac70c71f7ba67175e0f920e
|
data/lib/ucode/commands/fetch.rb
CHANGED
|
@@ -70,6 +70,9 @@ module Ucode
|
|
|
70
70
|
manifest_path: path,
|
|
71
71
|
allow_proprietary: allow_proprietary,
|
|
72
72
|
dry_run: dry_run,
|
|
73
|
+
# The gem's own manifest is read-only input; hashes computed from
|
|
74
|
+
# it are recorded only when the caller names its own manifest.
|
|
75
|
+
persist_hashes: !manifest_path.nil?,
|
|
73
76
|
).call(only_label: only_label)
|
|
74
77
|
|
|
75
78
|
{ manifest: path.to_s,
|
|
@@ -51,12 +51,16 @@ module Ucode
|
|
|
51
51
|
# `.get(url, dest:)`. Defaults to {Fetch::Http}. Real-in-class
|
|
52
52
|
# test stubs can substitute a module that writes local fixture
|
|
53
53
|
# bytes; never use a double.
|
|
54
|
+
# @param persist_hashes [Boolean] write the computed sha256 values
|
|
55
|
+
# back into the manifest. False when the manifest is the gem's own
|
|
56
|
+
# copy, which belongs to the package rather than to the run.
|
|
54
57
|
def initialize(manifest_path:, fonts_root: ".", allow_proprietary: false,
|
|
55
|
-
dry_run: false, http: Fetch::Http)
|
|
58
|
+
dry_run: false, persist_hashes: true, http: Fetch::Http)
|
|
56
59
|
@manifest_path = Pathname.new(manifest_path)
|
|
57
60
|
@fonts_root = Pathname.new(fonts_root)
|
|
58
61
|
@allow_proprietary = allow_proprietary
|
|
59
62
|
@dry_run = dry_run
|
|
63
|
+
@persist_hashes = persist_hashes
|
|
60
64
|
@http = http
|
|
61
65
|
@computed_hashes = {}
|
|
62
66
|
end
|
|
@@ -71,7 +75,7 @@ module Ucode
|
|
|
71
75
|
|
|
72
76
|
entries = only_label ? [manifest.find_by_label(only_label)] : manifest.fonts
|
|
73
77
|
results = entries.map { |font| fetch_one(font) }
|
|
74
|
-
persist_computed_hashes(manifest) unless @dry_run
|
|
78
|
+
persist_computed_hashes(manifest) unless @dry_run || !@persist_hashes
|
|
75
79
|
results
|
|
76
80
|
end
|
|
77
81
|
|
|
@@ -34,12 +34,15 @@ module Ucode
|
|
|
34
34
|
"ucode/glyphs/source_config/coverage_assertion"
|
|
35
35
|
autoload :GapReport, "ucode/glyphs/source_config/gap_report"
|
|
36
36
|
|
|
37
|
-
# Default location of the curated Tier 1 font map
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
|
|
37
|
+
# Default location of the curated Tier 1 font map, resolved against
|
|
38
|
+
# this gem so that commands find it from any working directory
|
|
39
|
+
# (fontist/ucode#96). Public so the canonical build + universal set
|
|
40
|
+
# commands can reference it when no override is supplied. Keeping it
|
|
41
|
+
# on the class (not an instance attr) lets callers use it without
|
|
42
|
+
# constructing a SourceConfig first.
|
|
43
|
+
DEFAULT_PATH = Pathname.new(
|
|
44
|
+
File.expand_path("../../../config/unicode17_universal_glyph_set.yml", __dir__),
|
|
45
|
+
)
|
|
43
46
|
|
|
44
47
|
# @param path [String, Pathname] path to the YAML config file.
|
|
45
48
|
def initialize(path: DEFAULT_PATH)
|
data/lib/ucode/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ucode
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-12-
|
|
11
|
+
date: 2026-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|