metanorma-core 0.2.5 → 0.2.6

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: ed60afcd91e77723c04cf0d2e00865a035ee33c51e3a35fc7ff83ee12ed74624
4
- data.tar.gz: 6a522123211ec73a787a366e85ec90e111008e105dcb66e7763f468d49a9fe45
3
+ metadata.gz: 3c990f6d36cdef2ab706c4dfe7fec3c9f907f07f3a13a684046dad22bd8963d2
4
+ data.tar.gz: 9f286a92d6cbd320acf0e82a542deee25e0f71785943a9908293247d90f21922
5
5
  SHA512:
6
- metadata.gz: 02f1b53d1566f3414d01b03eac4df7d4cb05f32c2c48aaae6caec8a9a39f1fea948725e4cc042b809591ee07130fafc94e80a07f6e05c2b7ccfcaa00056e1896
7
- data.tar.gz: 6c1ee4778e2d42e8d92c3520ccc9b2810cc9ab2572c0fe77c7927947fa4a1ebe7d3ceea55d881b9c2ca6d740e9c466e472cfaaf4d1cbe04f7184f8ae8f1729ab
6
+ metadata.gz: c4602bee7990f224eafe646f1ee53f54f403d4dfb4e016031135d226fef8b152e8ef713d1810a113b0da4d01c4e99960182c2a649b55d68f2a05a6fcbf8a7f27
7
+ data.tar.gz: a9f8cc76a73eeb02f4a8d78e6b495119a437d43fae6f519fb1cefaeca296670b0c993bba3969ff99ef2f82bbcdef608cccaded6f70614b1bca13dd2126ef6fdb
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Core
3
- VERSION = "0.2.5".freeze
3
+ VERSION = "0.2.6".freeze
4
4
  end
5
5
  end
@@ -23,11 +23,16 @@ module Metanorma
23
23
  # @return [String] Asciidoctor convert output.
24
24
  def process(file, filename, type, options = {})
25
25
  require "asciidoctor"
26
+ attrs = ["nodoc", "stem", "docfile=#{filename}",
27
+ "output_dir=#{options[:output_dir]}"]
28
+ # The converter reads novalid as a document ATTRIBUTE; the bare
29
+ # Asciidoctor option never reaches it, so --no-valid silently
30
+ # failed to skip validation (suma's --no-valid included).
31
+ attrs << "novalid" if options[:novalid]
26
32
  out_opts = { to_file: false, safe: :safe, backend: type,
27
33
  header_footer: true, log: options[:log],
28
34
  novalid: options[:novalid],
29
- attributes: ["nodoc", "stem", "docfile=#{filename}",
30
- "output_dir=#{options[:output_dir]}"] }
35
+ attributes: attrs }
31
36
  ::Asciidoctor.convert(file, out_opts)
32
37
  end
33
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-29 00:00:00.000000000 Z
11
+ date: 2026-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor