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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b54fed936abf086e09bd1f2f52469f1535c79b225437e79ce94fc1028dab9fe
4
- data.tar.gz: 433805c7064ecb566a326c6edc1529a654cf6be35011bf44466057c647fa57b0
3
+ metadata.gz: 45fe287b2daff6cad19485f8c7552117b81bd75ff8c5b93a9e67d504ee541d65
4
+ data.tar.gz: e218e3e7e85fd6ea7d75f13f7418f327181a4efc1ad746b1ed6488b328e284c6
5
5
  SHA512:
6
- metadata.gz: 171a0fa2f6f3588ca8bd236efe030343cc271cb4ab46abc98fbc98f52cd4c5565a4dc456bfe83b730f6a20fd3e41cf19a8cb4783ff1c3a25f837629c9a1d0169
7
- data.tar.gz: a1abfaa355d316df8c972f4083e1e03c51714ede994a9a9b1c1d2a3fac72517d3334f844c74a2afded13d1f877c65eedd13442db660b0055afa0ca6f52ac5ca1
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-standoc", github: "metanorma/metanorma-standoc", branch: "main"
79
- gem "metanorma-iso", github: "metanorma/metanorma-iso", branch: "main" # released 3.5.0 conflicts with metanorma-document main # released 3.4.2 still caps relaton-cli ~> 2.1
80
- gem "metanorma-document", github: "metanorma/metanorma-document", branch: "main" # standoc main references Document::Components constants
81
- gem "metanorma-utils", github: "metanorma/metanorma-utils", branch: "main" # released utils lacks GcBudget/deep_symbolize (main-only)
82
- gem "isodoc", github: "metanorma/isodoc", branch: "main" # released isodoc caps relaton-render ~> 1.3
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 on mains: released flavors reference the retired 1.x render API
85
- gem "metanorma", github: "metanorma/metanorma", branch: "main"
86
- gem "metanorma-bipm", github: "metanorma/metanorma-bipm", branch: "main"
87
- gem "metanorma-cc", github: "metanorma/metanorma-cc", branch: "main"
88
- gem "metanorma-iec", github: "metanorma/metanorma-iec", branch: "main"
89
- gem "metanorma-ieee", github: "metanorma/metanorma-ieee", branch: "main"
90
- gem "metanorma-ietf", github: "metanorma/metanorma-ietf", branch: "main"
91
- gem "metanorma-gb", github: "metanorma/metanorma-gb", branch: "main"
92
- gem "metanorma-generic", github: "metanorma/metanorma-generic", branch: "main"
93
- gem "metanorma-iho", github: "metanorma/metanorma-iho", branch: "main"
94
- gem "metanorma-itu", github: "metanorma/metanorma-itu", branch: "main"
95
- gem "metanorma-jis", github: "metanorma/metanorma-jis", branch: "main"
96
- gem "metanorma-ogc", github: "metanorma/metanorma-ogc", branch: "main"
97
- # 0.1.0 first cut unreleased; gemspec floors >= 0.1.0 — github pin until then
98
- gem "metanorma-oiml", github: "metanorma/metanorma-oiml", branch: "main"
99
- gem "metanorma-plateau", github: "metanorma/metanorma-plateau", branch: "main"
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.18.4".freeze
3
+ VERSION = "1.18.5".freeze
4
4
  end
5
5
  end
@@ -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
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-06 00:00:00.000000000 Z
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