metanorma-cli 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/metanorma +3 -3
- data/lib/metanorma-cli/version.rb +1 -1
- 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: ec403065d72e41b6af07aad5e992c056e4e8922ae4337a148400149feb929d0e
|
4
|
+
data.tar.gz: 2ccdff4e981a5dc7aca8456301573bcb437a7d9a5aa8285f3d703cc7fb43258f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fc770f619cb442fd5e06740309878e7c236abb28bd2c5020e56bda8aef32979011043a17d9d2e4549a48e12398326feabef5dc904adea9d270c1aa9d0b2d3c7
|
7
|
+
data.tar.gz: 1fcb36607441944687584154209af3aada4e9fe235bde5c69bfaceb7129407a6f07a8c3f888043ae7af6911759fb6203603b53d4384e14571498374fe51b54f6
|
data/exe/metanorma
CHANGED
@@ -167,7 +167,7 @@ when :asciidoc
|
|
167
167
|
exit 0 if extensions.empty?
|
168
168
|
|
169
169
|
file = File.read(options[:filename], encoding: "utf-8")
|
170
|
-
isodoc = processor.input_to_isodoc(file)
|
170
|
+
isodoc = processor.input_to_isodoc(file, options[:filename])
|
171
171
|
|
172
172
|
if options[:relaton]
|
173
173
|
xml = Nokogiri::XML(isodoc)
|
@@ -178,9 +178,9 @@ when :asciidoc
|
|
178
178
|
File.open(options[:relaton], "w:UTF-8") { |f| f.write bibdata.to_xml }
|
179
179
|
end
|
180
180
|
|
181
|
-
isodoc_options = processor.extract_options(file)
|
182
|
-
isodoc_options[:datauriimage] = true if options[:datauriimage]
|
183
181
|
extensions.each do |ext|
|
182
|
+
isodoc_options = processor.extract_options(file)
|
183
|
+
isodoc_options[:datauriimage] = true if options[:datauriimage]
|
184
184
|
file_extension = processor.output_formats[ext]
|
185
185
|
outfilename = options[:filename].sub(/\.[^.]+$/, ".#{file_extension}")
|
186
186
|
processor.output(isodoc, outfilename, ext, isodoc_options)
|
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.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|