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: 17cbcd20288991b0c1392fb75f7190f0e4b5eaf56f71806f497eec24444caeaa
4
- data.tar.gz: 9a901ccc82d0da5e54888fddb9e2af66fc70ab3ed0a4f6904bd98dfe62d17ab5
3
+ metadata.gz: 1427ccac970f174770fd288a23c0887ecccd0308a19dd7a8274bbfd8d2b3859e
4
+ data.tar.gz: 3d9c8908fc7ced45e3b0848c75facaee7bee75f10723de7b3751a0e3fd9abc52
5
5
  SHA512:
6
- metadata.gz: a896530701e78f713caaa9bfb2408dbc00157dab0aca51ead1c587120aa3c6d1e0fed3a8fa6383b0c9de724cb8a90dc0e7b5f945f051ee66eded449624c5be6d
7
- data.tar.gz: 060601504647de557b1f1fa6bad4d2154c2687331e46463b27f54d6a9883076684397319f722e678fdbed46d6098002abc621bdab86892f3b75d996c0973a0ff
6
+ metadata.gz: 792bfeb043cf2bd580f3c93ea229e82d9f774d8d882e3dae312a2da78566dbdd6480fad5a230f514ff9dee8dd7f1bcf75f6c86da613884317905b4ee821b9ea7
7
+ data.tar.gz: 24351f04f0600c238ff9561df3fbbc38672a8f3b035736b3b021d458de4f015379bbba54ed62a6d6350a90546e03d3c96e41a259bac70c71f7ba67175e0f920e
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  unicode_version: 17.0.0
3
- ucode_version: 0.5.2
3
+ ucode_version: 0.5.3
4
4
  generated_at: '2026-06-28T00:00:00Z'
5
5
  default_sources:
6
6
  - kind: fontist
@@ -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. Public so the
38
- # canonical build + universal set commands can reference it when
39
- # no override is supplied. Keeping it on the class (not an
40
- # instance attr) lets callers use it without constructing a
41
- # SourceConfig first.
42
- DEFAULT_PATH = Pathname.new("config/unicode17_universal_glyph_set.yml")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ucode
4
- VERSION = "0.5.3"
4
+ VERSION = "0.5.4"
5
5
  end
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.3
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-03 00:00:00.000000000 Z
11
+ date: 2026-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64