metanorma-cli 1.10.5 → 1.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/font-test +58 -0
- data/lib/metanorma/cli/version.rb +1 -1
- data/lib/metanorma/flavor.rb +1 -0
- data/metanorma-cli.gemspec +5 -4
- metadata +25 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57137b8978075b61ae0fa09736671d23112243773cd8c08a13084f389f56aa68
|
4
|
+
data.tar.gz: e196e703ab7187fe208322c1a727e8eeec072682e24e602f952cf095644d3f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8715ede7b9fc9fcca3e1c592529a7fa659c916270e763d1b5ac1278646a81b65862d843a72bb0607bd366c169e9a33757d5a3396e3188a21f8c5551d79cf63
|
7
|
+
data.tar.gz: 47f5d2590d3c54ec9d6f2dc099111ddbb86c2fb7bc51e577ef998631a4cdd8f962115f6e481aadd68968fb01f87d3f77a71fdacf2f2f5c191a9ea7d8d38d8c1e
|
data/bin/font-test
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
require "fontist"
|
4
|
+
require "rubygems"
|
5
|
+
require "yaml"
|
6
|
+
|
7
|
+
flavors = ARGV
|
8
|
+
|
9
|
+
Fontist::Formula.update_formulas_repo
|
10
|
+
|
11
|
+
flavors.each do |flavor|
|
12
|
+
begin
|
13
|
+
gem_name = "metanorma-#{flavor}"
|
14
|
+
require gem_name
|
15
|
+
|
16
|
+
submodule = case flavor
|
17
|
+
when "iso", "iec", "ietf", "ogc", "csa", "ribose"
|
18
|
+
flavor.capitalize
|
19
|
+
when "jcgm"
|
20
|
+
"BIPM"
|
21
|
+
else
|
22
|
+
flavor.upcase
|
23
|
+
end
|
24
|
+
processor_class = "Metanorma::#{submodule}::Processor"
|
25
|
+
|
26
|
+
processor = Object
|
27
|
+
.const_get(processor_class)
|
28
|
+
.new
|
29
|
+
|
30
|
+
unless processor.respond_to?(:fonts_manifest)
|
31
|
+
puts "#{flavor} don't require any fonts"
|
32
|
+
exit(0)
|
33
|
+
end
|
34
|
+
|
35
|
+
manifest = processor.fonts_manifest
|
36
|
+
|
37
|
+
Fontist::Manifest::Install.from_hash(
|
38
|
+
manifest,
|
39
|
+
confirmation: "yes",
|
40
|
+
)
|
41
|
+
|
42
|
+
puts "#{flavor}-related fonts:"
|
43
|
+
puts Fontist::Manifest::Locations.from_hash(manifest).to_yaml
|
44
|
+
rescue LoadError => e
|
45
|
+
STDERR.puts "Could not load gem '#{gem_name}': #{e.message}"
|
46
|
+
exit(1)
|
47
|
+
rescue NameError => e
|
48
|
+
STDERR.puts "Could not find class '#{processor_class}': #{e.message}"
|
49
|
+
exit(1)
|
50
|
+
rescue => e
|
51
|
+
if e.class.to_s.start_with?("Fontist::Errors::")
|
52
|
+
STDERR.puts "Fontist failed with: #{e.message}"
|
53
|
+
else
|
54
|
+
STDERR.puts "Unknown error: #{e.message}"
|
55
|
+
end
|
56
|
+
exit(1)
|
57
|
+
end
|
58
|
+
end
|
data/lib/metanorma/flavor.rb
CHANGED
data/metanorma-cli.gemspec
CHANGED
@@ -41,12 +41,12 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_runtime_dependency "mnconvert"
|
42
42
|
# spec.add_runtime_dependency "thor", "~> 1.0" # inherited from vectory
|
43
43
|
# spec.add_runtime_dependency "metanorma-gb", "~> 1.5.0"
|
44
|
-
spec.add_runtime_dependency "metanorma-cc", "~> 2.
|
45
|
-
spec.add_runtime_dependency "metanorma-csa", "~> 2.
|
44
|
+
spec.add_runtime_dependency "metanorma-cc", "~> 2.5.0"
|
45
|
+
spec.add_runtime_dependency "metanorma-csa", "~> 2.5.0"
|
46
46
|
spec.add_runtime_dependency "metanorma-iec", "~> 2.5.0"
|
47
47
|
# spec.add_runtime_dependency 'metanorma-ribose', "~> 2.3.0"
|
48
|
-
spec.add_runtime_dependency "metanorma-bipm", "~> 2.
|
49
|
-
spec.add_runtime_dependency "metanorma-generic", "~> 2.
|
48
|
+
spec.add_runtime_dependency "metanorma-bipm", "~> 2.5.0"
|
49
|
+
spec.add_runtime_dependency "metanorma-generic", "~> 2.7.0"
|
50
50
|
spec.add_runtime_dependency "metanorma-standoc", "~> 2.9.3"
|
51
51
|
# spec.add_runtime_dependency 'metanorma-mpfa', "~> 0.9.0"
|
52
52
|
spec.add_runtime_dependency "git", "~> 1.5"
|
@@ -57,6 +57,7 @@ Gem::Specification.new do |spec|
|
|
57
57
|
spec.add_runtime_dependency "metanorma-ieee", "~> 1.2.0"
|
58
58
|
spec.add_runtime_dependency "metanorma-jis", "~> 0.3.0"
|
59
59
|
spec.add_runtime_dependency "metanorma-ogc", "~> 2.5.0"
|
60
|
+
spec.add_runtime_dependency "metanorma-plateau", "~> 0.1.0"
|
60
61
|
spec.add_runtime_dependency "metanorma-un", "~> 0.12.0"
|
61
62
|
spec.add_runtime_dependency "relaton-cli", ">= 0.8.2"
|
62
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -212,28 +212,28 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.
|
215
|
+
version: 2.5.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 2.
|
222
|
+
version: 2.5.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: metanorma-csa
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 2.
|
229
|
+
version: 2.5.0
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 2.
|
236
|
+
version: 2.5.0
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: metanorma-iec
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,28 +254,28 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 2.
|
257
|
+
version: 2.5.0
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 2.
|
264
|
+
version: 2.5.0
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: metanorma-generic
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
269
|
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 2.
|
271
|
+
version: 2.7.0
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 2.
|
278
|
+
version: 2.7.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: metanorma-standoc
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -388,6 +388,20 @@ dependencies:
|
|
388
388
|
- - "~>"
|
389
389
|
- !ruby/object:Gem::Version
|
390
390
|
version: 2.5.0
|
391
|
+
- !ruby/object:Gem::Dependency
|
392
|
+
name: metanorma-plateau
|
393
|
+
requirement: !ruby/object:Gem::Requirement
|
394
|
+
requirements:
|
395
|
+
- - "~>"
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: 0.1.0
|
398
|
+
type: :runtime
|
399
|
+
prerelease: false
|
400
|
+
version_requirements: !ruby/object:Gem::Requirement
|
401
|
+
requirements:
|
402
|
+
- - "~>"
|
403
|
+
- !ruby/object:Gem::Version
|
404
|
+
version: 0.1.0
|
391
405
|
- !ruby/object:Gem::Dependency
|
392
406
|
name: metanorma-un
|
393
407
|
requirement: !ruby/object:Gem::Requirement
|
@@ -448,6 +462,7 @@ files:
|
|
448
462
|
- README.adoc
|
449
463
|
- Rakefile
|
450
464
|
- bin/console
|
465
|
+
- bin/font-test
|
451
466
|
- bin/rspec
|
452
467
|
- bin/setup
|
453
468
|
- docs/installation.adoc
|