fontisan 0.4.55-aarch64-linux → 0.4.56-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 +4 -4
- data/lib/fontisan/version.rb +1 -1
- data/lib/fontisan.rb +30 -15
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfd817039a05c0827df68eb127e5cee420e182632fb6423e3827efcc797f8fa4
|
|
4
|
+
data.tar.gz: a52ee6cd19095020ea17506f5191f6efa3b4c3092d167998a7dc65710ac119d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ea24f935ff092179246bdc668d1bb67344934a9fe244458369531e5b06ede2379161d82f5661712365ddb6f9621ffed4440e171a964fdab4ee330ff11c1d059
|
|
7
|
+
data.tar.gz: eaa628425e761e897bd061f3953dce88e9cd238e7b8ee9e546f48419896de483601476eb6a3c1f096e2cbb48c7d920cd50bcd7f8f8f074cd698d204e6a6d39a8
|
data/lib/fontisan/version.rb
CHANGED
data/lib/fontisan.rb
CHANGED
|
@@ -35,25 +35,40 @@ require "stringio"
|
|
|
35
35
|
require "tmpdir"
|
|
36
36
|
require "lutaml/model"
|
|
37
37
|
|
|
38
|
-
# The XML engine behind lutaml-model
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
38
|
+
# The XML engine behind lutaml-model: leptris (pure-C99, precompiled
|
|
39
|
+
# everywhere) when its library loads AND the bundled lutaml-model knows it,
|
|
40
|
+
# then nokogiri if present, then REXML (stdlib). Both probes are
|
|
41
|
+
# load-bearing. The library probe: leptris's precompiled linux builds need
|
|
42
42
|
# glibc >= 2.34, and forcing the adapter on an older glibc would crash
|
|
43
|
-
# every boot — e.g. inside the rake-compiler-dock cross builds.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
# every boot — e.g. inside the rake-compiler-dock cross builds. The
|
|
44
|
+
# acceptance probe: the leptris adapter exists in lutaml-model only since
|
|
45
|
+
# 0.8.158, and a bundle may legally hold an older one (any 0.8.x satisfies
|
|
46
|
+
# fontisan; a rubyzip 2.3 pin elsewhere resolves lutaml-model to 0.8.14),
|
|
47
|
+
# where lutaml-model raises at configure time and took every boot down.
|
|
48
|
+
loadable = lambda do |library|
|
|
49
|
+
require library
|
|
50
|
+
true
|
|
47
51
|
rescue LoadError
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
false
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
accepted = lambda do |adapter|
|
|
56
|
+
Lutaml::Model::Config.configure do |config|
|
|
57
|
+
config.xml_adapter_type = adapter
|
|
53
58
|
end
|
|
59
|
+
true
|
|
60
|
+
rescue ArgumentError
|
|
61
|
+
false
|
|
54
62
|
end
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
|
|
64
|
+
# [adapter, library to probe]; rexml is stdlib, so there is nothing to probe.
|
|
65
|
+
xml_adapter = [[:leptris, "leptris"], [:nokogiri, "nokogiri"], [:rexml, nil]].find do |adapter, library|
|
|
66
|
+
(library.nil? || loadable.call(library)) && accepted.call(adapter)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
unless xml_adapter
|
|
70
|
+
# Nothing was accepted: let lutaml-model's own error surface.
|
|
71
|
+
Lutaml::Model::Config.configure { |config| config.xml_adapter_type = :rexml }
|
|
57
72
|
end
|
|
58
73
|
|
|
59
74
|
module Fontisan
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fontisan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.56
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|