metanorma-cli 1.0.2 → 1.0.3

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: '091411b942b05ba5583d7613e800312a725fb5956fce0b96dd284759cd3a1fc8'
4
- data.tar.gz: 134548ea436a6b47454312c829c604b7b58e9efe467330aef7d7c9bbc95a8021
3
+ metadata.gz: ec403065d72e41b6af07aad5e992c056e4e8922ae4337a148400149feb929d0e
4
+ data.tar.gz: 2ccdff4e981a5dc7aca8456301573bcb437a7d9a5aa8285f3d703cc7fb43258f
5
5
  SHA512:
6
- metadata.gz: 5b34cd82f00fb76d19ebb57e9eab674fdabbfc1420599994ab22d8b71e9495085bbef0d2022f22e21a9c7db1adc5c292b1f27ffad4234aa811af2e294d4887f0
7
- data.tar.gz: 66b0b5f550508f8e3e6085d7fe7eaadb1bc631d914421e9db26d767c15f109e810036e3b2bc59f09e4fb653aaa1bb5c057826d797118d2704ff5a605a3efa9a6
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)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CLI
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler