metanorma-cli 1.18.4 → 1.18.5
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/Gemfile +23 -34
- data/lib/metanorma/cli/command.rb +5 -0
- data/lib/metanorma/cli/compiler.rb +11 -1
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45fe287b2daff6cad19485f8c7552117b81bd75ff8c5b93a9e67d504ee541d65
|
|
4
|
+
data.tar.gz: e218e3e7e85fd6ea7d75f13f7418f327181a4efc1ad746b1ed6488b328e284c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 975560e7282f5bc2fa2c7340dd2992c5fc00adc61ace8fe3c0c98ce3338309b2ab89d89e0059aca5ce77b379b1626b53a913a5d448938d63a37acdf28fbe4be8
|
|
7
|
+
data.tar.gz: e27188fc927d67120303c7ceb933cbb505a01eb880520984a89b52ef5e892761dccd0479ce3ab1f2d0c8d56039d890b487d33dadb9a6663b237b8f3d5714469e
|
data/Gemfile
CHANGED
|
@@ -2,22 +2,10 @@ Encoding.default_external = Encoding::UTF_8
|
|
|
2
2
|
Encoding.default_internal = Encoding::UTF_8
|
|
3
3
|
|
|
4
4
|
source "https://rubygems.org"
|
|
5
|
-
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
gemspec
|
|
9
8
|
|
|
10
|
-
# Remaining cross-PR pins for the flavor-table restructure wave.
|
|
11
|
-
# document#45 metanorma#591 iso#1618 standoc#1232 itu/iec/ogc migration
|
|
12
|
-
# PRs and isodoc#825 all merged: those pins below are carried by the
|
|
13
|
-
# canonical zoo at the foot of this file.
|
|
14
|
-
gem "metanorma-core",
|
|
15
|
-
github: "metanorma/metanorma-core",
|
|
16
|
-
branch: "main"
|
|
17
|
-
gem "metanorma-taste",
|
|
18
|
-
github: "metanorma/metanorma-taste",
|
|
19
|
-
branch: "main"
|
|
20
|
-
|
|
21
9
|
# Private flavors (nist, bsi) are intentionally absent: their sources are
|
|
22
10
|
# not readable without credentials, so any unauthenticated fresh resolve
|
|
23
11
|
# fails. The flavor loader is still tested against them via stubbed
|
|
@@ -75,26 +63,27 @@ begin
|
|
|
75
63
|
rescue StandardError
|
|
76
64
|
nil
|
|
77
65
|
end
|
|
78
|
-
gem "metanorma-
|
|
79
|
-
gem "metanorma-
|
|
80
|
-
gem "metanorma-
|
|
81
|
-
gem "metanorma-
|
|
82
|
-
gem "
|
|
66
|
+
gem "metanorma-core", "~> 0.2.7"
|
|
67
|
+
gem "metanorma-taste", "~> 1.1"
|
|
68
|
+
gem "metanorma-standoc", "~> 3.5"
|
|
69
|
+
gem "metanorma-iso", "~> 3.5"
|
|
70
|
+
gem "metanorma-document", "~> 0.5.4"
|
|
71
|
+
gem "metanorma-utils", "~> 2.0"
|
|
72
|
+
gem "isodoc", "~> 3.7"
|
|
83
73
|
|
|
84
|
-
# the metagem's flavor zoo
|
|
85
|
-
gem "metanorma",
|
|
86
|
-
gem "metanorma-bipm",
|
|
87
|
-
gem "metanorma-cc",
|
|
88
|
-
gem "metanorma-iec",
|
|
89
|
-
gem "metanorma-ieee",
|
|
90
|
-
gem "metanorma-ietf",
|
|
91
|
-
gem "metanorma-gb",
|
|
92
|
-
gem "metanorma-generic",
|
|
93
|
-
gem "metanorma-iho",
|
|
94
|
-
gem "metanorma-itu",
|
|
95
|
-
gem "metanorma-jis",
|
|
96
|
-
gem "metanorma-ogc",
|
|
97
|
-
|
|
98
|
-
gem "metanorma-
|
|
99
|
-
gem "metanorma-
|
|
100
|
-
gem "metanorma-ribose", github: "metanorma/metanorma-ribose", branch: "main"
|
|
74
|
+
# the metagem's flavor zoo
|
|
75
|
+
gem "metanorma", "~> 2.5"
|
|
76
|
+
gem "metanorma-bipm", "~> 2.9"
|
|
77
|
+
gem "metanorma-cc", "~> 2.9"
|
|
78
|
+
gem "metanorma-iec", "~> 2.9"
|
|
79
|
+
gem "metanorma-ieee", "~> 1.7"
|
|
80
|
+
gem "metanorma-ietf", "~> 3.7"
|
|
81
|
+
gem "metanorma-gb", "~> 1.5"
|
|
82
|
+
gem "metanorma-generic", "~> 3.5"
|
|
83
|
+
gem "metanorma-iho", "~> 1.4"
|
|
84
|
+
gem "metanorma-itu", "~> 2.9"
|
|
85
|
+
gem "metanorma-jis", "~> 1.2"
|
|
86
|
+
gem "metanorma-ogc", "~> 2.10"
|
|
87
|
+
gem "metanorma-oiml", "~> 0.1"
|
|
88
|
+
gem "metanorma-plateau", "~> 1.3"
|
|
89
|
+
gem "metanorma-ribose", "~> 2.9"
|
|
@@ -70,6 +70,11 @@ module Metanorma
|
|
|
70
70
|
option :continue_without_fonts,
|
|
71
71
|
type: :boolean,
|
|
72
72
|
desc: "Continue processing even when fonts are missing"
|
|
73
|
+
option :base_dir,
|
|
74
|
+
desc: "Anchor AsciiDoc asset resolution and the include " \
|
|
75
|
+
"jail at this directory (default: the docfile's " \
|
|
76
|
+
"directory; widen it for documents reaching outside " \
|
|
77
|
+
"their own directory)"
|
|
73
78
|
|
|
74
79
|
# rubocop:disable Metrics/PerceivedComplexity
|
|
75
80
|
# rubocop:disable Metrics/AbcSize
|
|
@@ -50,7 +50,17 @@ module Metanorma
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def serialize_options
|
|
53
|
-
serialize(options.merge(customize_options))
|
|
53
|
+
serialize(options.merge(customize_options).merge(base_dir_option))
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Anchor AsciiDoc asset resolution and the include jail at the
|
|
57
|
+
# docfile's directory, so the compile output does not depend on the
|
|
58
|
+
# working directory it was invoked from (metanorma#627). An explicit
|
|
59
|
+
# --base-dir widens the anchor - and with it the include jail - for
|
|
60
|
+
# documents reaching outside their own directory.
|
|
61
|
+
def base_dir_option
|
|
62
|
+
{ base_dir: options[:base_dir] ||
|
|
63
|
+
File.dirname(File.expand_path(file)) }
|
|
54
64
|
end
|
|
55
65
|
|
|
56
66
|
def customize_options
|
data/metanorma-cli.gemspec
CHANGED
|
@@ -67,6 +67,8 @@ Gem::Specification.new do |spec|
|
|
|
67
67
|
spec.add_dependency "isodoc", "~> 3.7.9"
|
|
68
68
|
spec.add_dependency "socksify"
|
|
69
69
|
spec.add_dependency "suma", "~> 0.5"
|
|
70
|
+
# Bundled gem required directly by lib code: uri in cli/generator.rb (metanorma/metanorma#669)
|
|
71
|
+
spec.add_dependency "uri"
|
|
70
72
|
# spec.metadata["rubygems_mfa_required"] = "true"
|
|
71
73
|
# NOBODY UNCOMMENTS THIS WITHOUT EXPLAINING TO ME HOW TO USE MFA
|
|
72
74
|
end
|
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.18.
|
|
4
|
+
version: 1.18.5
|
|
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-11-
|
|
11
|
+
date: 2026-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-ietf
|
|
@@ -444,6 +444,20 @@ dependencies:
|
|
|
444
444
|
- - "~>"
|
|
445
445
|
- !ruby/object:Gem::Version
|
|
446
446
|
version: '0.5'
|
|
447
|
+
- !ruby/object:Gem::Dependency
|
|
448
|
+
name: uri
|
|
449
|
+
requirement: !ruby/object:Gem::Requirement
|
|
450
|
+
requirements:
|
|
451
|
+
- - ">="
|
|
452
|
+
- !ruby/object:Gem::Version
|
|
453
|
+
version: '0'
|
|
454
|
+
type: :runtime
|
|
455
|
+
prerelease: false
|
|
456
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
457
|
+
requirements:
|
|
458
|
+
- - ">="
|
|
459
|
+
- !ruby/object:Gem::Version
|
|
460
|
+
version: '0'
|
|
447
461
|
description: Executable to process any Metanorma standard.
|
|
448
462
|
email:
|
|
449
463
|
- open.source@ribose.com
|