metanorma-plugin-lutaml 0.7.22 → 0.7.23

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: 2141a34ad005450e66a18defc983c59a7178b83260713cd2565dcb4ed1e8cc2a
4
- data.tar.gz: 004eecc5e8640fe07f06344a7a60163d875e6da502dffdf8824f478c1a57780f
3
+ metadata.gz: 86941bc530959fd2a6023671bfac6d46e18ac1095db5903b67b3be22f411372d
4
+ data.tar.gz: f4cbcf8affd7ffffb7773ad3a9e7c6d008d176dfe3a507a2ba146cd38ba57e88
5
5
  SHA512:
6
- metadata.gz: d1fedd8cf68d1bdbbbdee4ad12e892d8986f8f9d12f9135651e65460b6c7101a59ed76c70cef55ec28293a61445375381813b28d11ad7cd68dc735bdb63a68d7
7
- data.tar.gz: '092a888203f0e03f77fa73dbd33fdd20e411a77d110cf1cae99e9bf89df3b16fca27c6070c014a1918a5b4cdac2079dea15be706e98a38f573e0d527da2f2cac'
6
+ metadata.gz: 3a2dc0a28276e48230002049ba5946821c81d231be38494f978e5ad7298836b3ea1852be10314a8cfe7a86f775a097407c67a541f6f3c633e4a1dc32d6206702
7
+ data.tar.gz: 0eda7cedc08c10bb6b0da49cfabb0f72e6a3a22355b784d9f633217be0f7bdec1946fe269deeb7d460a468f91d7004cc08df747018217239580e2d8566337791
@@ -42,7 +42,7 @@ module Metanorma
42
42
 
43
43
  private
44
44
 
45
- def lutaml_document_from_file_or_cache(document, file_path, yaml_config) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
45
+ def lutaml_document_from_file_or_cache(document, file_path, yaml_config, yaml_config_path = nil) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Layout/LineLength
46
46
  full_path = Utils.relative_file_path(document, file_path)
47
47
  if document.attributes["lutaml_xmi_cache"] &&
48
48
  document.attributes["lutaml_xmi_cache"][full_path]
@@ -50,8 +50,10 @@ module Metanorma
50
50
  end
51
51
 
52
52
  yaml_config["ea_extension"]&.each do |ea_extension_path|
53
+ # resolve paths of ea extensions based on the location of
54
+ # config yaml file
53
55
  ea_extension_full_path = File.expand_path(
54
- ea_extension_path, File.dirname(file_path)
56
+ ea_extension_path, File.dirname(yaml_config_path)
55
57
  )
56
58
  Xmi::EaRoot.load_extension(ea_extension_full_path)
57
59
  end
@@ -156,9 +158,12 @@ module Metanorma
156
158
  end
157
159
 
158
160
  yaml_config = parse_yaml_config_file(document, config_yaml_path)
159
- lutaml_document = lutaml_document_from_file_or_cache(document,
160
- xmi_or_index,
161
- yaml_config)
161
+ lutaml_document = lutaml_document_from_file_or_cache(
162
+ document,
163
+ xmi_or_index,
164
+ yaml_config,
165
+ Utils.relative_file_path(document, config_yaml_path),
166
+ )
162
167
  [lutaml_document, yaml_config]
163
168
  end
164
169
 
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.22".freeze
4
+ VERSION = "0.7.23".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.22
4
+ version: 0.7.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-24 00:00:00.000000000 Z
11
+ date: 2025-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -366,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  - !ruby/object:Gem::Version
367
367
  version: '0'
368
368
  requirements: []
369
- rubygems_version: 3.3.27
369
+ rubygems_version: 3.5.22
370
370
  signing_key:
371
371
  specification_version: 4
372
372
  summary: Metanorma plugin for LutaML