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 +4 -4
- data/lib/metanorma/core/version.rb +1 -1
- data/lib/metanorma/input/asciidoc.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c990f6d36cdef2ab706c4dfe7fec3c9f907f07f3a13a684046dad22bd8963d2
|
|
4
|
+
data.tar.gz: 9f286a92d6cbd320acf0e82a542deee25e0f71785943a9908293247d90f21922
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4602bee7990f224eafe646f1ee53f54f403d4dfb4e016031135d226fef8b152e8ef713d1810a113b0da4d01c4e99960182c2a649b55d68f2a05a6fcbf8a7f27
|
|
7
|
+
data.tar.gz: a9f8cc76a73eeb02f4a8d78e6b495119a437d43fae6f519fb1cefaeca296670b0c993bba3969ff99ef2f82bbcdef608cccaded6f70614b1bca13dd2126ef6fdb
|
|
@@ -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:
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|