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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34330dc6926ec636e19e95e7afc60e1f0bb502be7acbb661ce5bec23c3361aaa
4
- data.tar.gz: edec8edf7ada939b2d23847a7d0310d411427d46bb35279cba75ca77d065020e
3
+ metadata.gz: 57137b8978075b61ae0fa09736671d23112243773cd8c08a13084f389f56aa68
4
+ data.tar.gz: e196e703ab7187fe208322c1a727e8eeec072682e24e602f952cf095644d3f14
5
5
  SHA512:
6
- metadata.gz: 7a89c3efec0a389a9e21f21c6f880a0db4cf1e212b86a4c03756e17b974e793c01c1ae45b524fed817158de089e30894fe5ae67ccba1659d15472a461e090f7c
7
- data.tar.gz: 27cfe3b7473e29e2b4a99dcb7a154897bb77ba0d8a1b377c81ec89a292fa26c0a14b77a5a645f772a2992d2f6ce621aa662d5407db6131e80efa9c8f9c66b328
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.10.5".freeze
3
+ VERSION = "1.10.6".freeze
4
4
  end
5
5
  end
@@ -20,6 +20,7 @@ module Metanorma
20
20
  "metanorma-un",
21
21
  "metanorma-ogc",
22
22
  "metanorma-itu",
23
+ "metanorma-plateau",
23
24
  ].freeze
24
25
 
25
26
  PRIVATE_SUPPORTED_GEMS = [
@@ -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.4.0"
45
- spec.add_runtime_dependency "metanorma-csa", "~> 2.4.0"
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.4.0"
49
- spec.add_runtime_dependency "metanorma-generic", "~> 2.6.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.5
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-07 00:00:00.000000000 Z
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.6.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.6.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