ucode 0.3.1 → 0.3.3

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: 39b510b33a2215d748cbf04e9794149209ae500fae5e9fdce455703c08b3bc7c
4
- data.tar.gz: 7a4c6ac03258db64ac786c5fd324d5232205ca8cda18865fbc083e55eb091709
3
+ metadata.gz: 9d21572adc317e05b3a29573cf799cc8cedd61c56949339d844022c9ccf92b0e
4
+ data.tar.gz: 41ff686beb95370ff0927002fc0cc9350aa448221b8dbf12c87712d005059e98
5
5
  SHA512:
6
- metadata.gz: 7a03ec1efe4bb8396e3b7405cafacbc674fdb6efe4cfa01c9b41e621a30a823893af287eb73c6d7b1fce450d302700b5a7147824116ecd4c8b2f5544ad30fa3f
7
- data.tar.gz: e68b9a8a08ad174b4b38f8ab03c73a32e1fb16a37caff25164a8ea91f160c25a8e1272e288c00993396b3db5d24b4d8551dd5ef0ea3526e8c878dbc98550a5f0
6
+ metadata.gz: 2de58e0bab78c0be15ef4e99ab699333198702012832985958eb86910c0151f47b4147b07f958c2ba881d9f9750d7336586151a264ad835339a54064412907e6
7
+ data.tar.gz: f3a90c63779e0eec7d93fd221063f80cf8d64df16707185a3f9c201abf8d2e1376ece32a0da2af1b5513d0190fdb0a785b5dbcccf65fbb427ff31ae745c22ca7
data/Gemfile CHANGED
@@ -23,8 +23,8 @@ end
23
23
  # Default to the published fontisan from rubygems. To develop against a
24
24
  # local sibling checkout, set FONTISAN_PATH before running bundle.
25
25
  # FONTISAN_PATH=../fontisan bundle install
26
+ # fontist itself constrains fontisan to ~> 0.2, so we must stay in the
27
+ # 0.2.x series. 0.2.23+ removed AuditCommand — CoverageAuditor guards
28
+ # its absence with const_defined?.
26
29
  gem "fontisan", path: ENV["FONTISAN_PATH"] if ENV["FONTISAN_PATH"]
27
- # Pin fontisan to 0.2.22 0.2.23+ removed
28
- # `Fontisan::Commands::AuditCommand` and 0.4.x removed the Audit
29
- # subsystem entirely. See ucode.gemspec for the rationale.
30
- gem "fontisan", "= 0.2.22" unless ENV["FONTISAN_PATH"]
30
+ gem "fontisan", "~> 0.4", ">= 0.4.9" unless ENV["FONTISAN_PATH"]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  unicode_version: 17.0.0
3
- ucode_version: 0.3.0
3
+ ucode_version: 0.3.2
4
4
  generated_at: '2026-06-28T00:00:00Z'
5
5
  default_sources:
6
6
  - kind: fontist
@@ -53,6 +53,13 @@ module Ucode
53
53
  # Unicode17Blocks table) and brief mode skips the UCD database
54
54
  # dependency that full mode requires.
55
55
  def run_fontisan_audit(font_path)
56
+ unless Fontisan::Commands.const_defined?(:AuditCommand)
57
+ raise Ucode::Error,
58
+ "Fontisan::Commands::AuditCommand is not available in this " \
59
+ "fontisan version. The coverage auditor requires fontisan < 0.2.23 " \
60
+ "or a version that re-adds AuditCommand."
61
+ end
62
+
56
63
  Fontisan::Commands::AuditCommand.new(
57
64
  font_path.to_s,
58
65
  ucd_version: UCD_VERSION,
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # AUTO-GENERATED from UCD 15.0.0. Do not edit by hand.
4
+ # Regenerate via: bin/ucode emit-metadata --version 15.0.0
4
5
  # rubocop:disable all
5
6
 
6
7
  module Ucode
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # AUTO-GENERATED from UCD 15.1.0. Do not edit by hand.
4
+ # Regenerate via: bin/ucode emit-metadata --version 15.1.0
4
5
  # rubocop:disable all
5
6
 
6
7
  module Ucode
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # AUTO-GENERATED from UCD 16.0.0. Do not edit by hand.
4
+ # Regenerate via: bin/ucode emit-metadata --version 16.0.0
4
5
  # rubocop:disable all
5
6
 
6
7
  module Ucode
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.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
data/ucode.gemspec CHANGED
@@ -45,12 +45,7 @@ Gem::Specification.new do |spec|
45
45
  spec.require_paths = ["lib"]
46
46
 
47
47
  spec.add_dependency "base64"
48
- # Pin fontisan to 0.2.22 0.2.23+ removed
49
- # `Fontisan::Commands::AuditCommand` (used by RealFonts::CoverageAuditor)
50
- # and 0.4.x removed the entire Audit subsystem. Until
51
- # CoverageAuditor is rewritten against the new fontisan API, this
52
- # pin keeps the existing audit path working.
53
- spec.add_dependency "fontisan", "= 0.2.22"
48
+ spec.add_dependency "fontisan", "~> 0.4", ">= 0.4.9"
54
49
  spec.add_dependency "fontist", "~> 3.0"
55
50
  spec.add_dependency "logger"
56
51
  spec.add_dependency "lutaml-model", "~> 0.8"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: fontisan
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.4'
34
+ - - ">="
32
35
  - !ruby/object:Gem::Version
33
- version: 0.2.22
36
+ version: 0.4.9
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - '='
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.4'
44
+ - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: 0.2.22
46
+ version: 0.4.9
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: fontist
43
49
  requirement: !ruby/object:Gem::Requirement