metanorma-plugin-datastruct 0.3.3 → 0.3.4

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: 377c84586ab7ba3f6e2d7aa8cefe16644b0c82eb3f532575a9bda64f980a726c
4
- data.tar.gz: a80140c43bb27d736abdde3365604522ac31b0eecd3bc5c3e607a998bbc11fa1
3
+ metadata.gz: ed19e5b25fb509b816c567e7e274739ce9dd2e734814ccf77c3e68f1e45775ad
4
+ data.tar.gz: b57e630d156f1f604d370842cd26431e63ed68a27ec58f4cd89ca78409110372
5
5
  SHA512:
6
- metadata.gz: c7a3346b329e039bf2fbedb7f9811c282964c6cfd7f22ceb505540bf69377dd377140f64c76baa7491e8ec956e1a6d0267c1268d07fb326ffff384da001b63e8
7
- data.tar.gz: 32dea1679a43aa30337aaf77ae79d32a265d7403ea27309a7ecf4d4a6b7743cd397d7a5406dc7d38ade2f682ec02b1ae3dc23bd40b973d1c958b9e815a08eafa
6
+ metadata.gz: 4212768404a5a67011682cce9aadac40453dadfc34d63cf69c07fd888789a817793c1c9e0a2b16c582f6a7015f7cd58046e3a5583d992b4072912c452bd5a4e0
7
+ data.tar.gz: feb6aa83d2fca789fa7044dea3579f80d2c9b8e16b989fd4c3369764c048eea1d7427b36fdb622eeadc657e45aaf6e6931e065582805101735134259aa04db59
@@ -163,10 +163,13 @@ module Metanorma
163
163
  transformed_liquid_lines)
164
164
  contexts = {}
165
165
  (1..block_match.size - 1).each do |i|
166
- context_and_path = block_match[i].strip
167
- context_name, path = context_and_path.split("=")
168
- context_items = content_from_file(document, path)
169
- contexts[context_name] = context_items
166
+ context_and_paths = block_match[i].strip
167
+ context_and_paths.split(",").each do |context_and_path|
168
+ context_and_path.strip!
169
+ context_name, path = context_and_path.split("=")
170
+ context_items = content_from_file(document, path)
171
+ contexts[context_name] = context_items
172
+ end
170
173
  end
171
174
 
172
175
  parse_context_block(document: document,
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Datastruct
4
- VERSION = "0.3.3".freeze
4
+ VERSION = "0.3.4".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-datastruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-04-25 00:00:00.000000000 Z
11
+ date: 2025-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor