metanorma 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/collection/filelookup/filelookup.rb +1 -1
- data/lib/metanorma/collection/renderer/fileparse.rb +1 -0
- data/lib/metanorma/compile/compile.rb +1 -1
- data/lib/metanorma/registry/registry.rb +2 -2
- data/lib/metanorma/version.rb +1 -1
- data/metanorma.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77856427b06326b7de35ad6782ffc5dbfe5331d9596d6df53a6af4c2bb681c81
|
4
|
+
data.tar.gz: d63ffb87f0abe973ed040f8567c986d504792433a9b3d46f4618752f9f254f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b252f5a1c35eee2d8c6689bd2c7501964e557401cfc3ba129e962faf0f0c5631feacd6f46fcc606ba973a8e8ac43f4078488d4726f81a3dce087e921db5cd28
|
7
|
+
data.tar.gz: 66cece76fb4ac1fca9f5795f002f15d7062e73aac558056a5b02fe98a8de45d4fbd68d3c30ae7883b74f6ef6247d84840db4c1a9bfe64a0dc57e37ab70f7f861
|
@@ -123,7 +123,7 @@ module Metanorma
|
|
123
123
|
def url_in_css_styles(doc, document_suffix)
|
124
124
|
doc.xpath("//*[@style]").each do |s|
|
125
125
|
s["style"] = s["style"]
|
126
|
-
.gsub(%r{url\(#([^)]+)\)}, "url(#\\1_#{document_suffix})")
|
126
|
+
.gsub(%r{url\(#([^()]+)\)}, "url(#\\1_#{document_suffix})")
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
@@ -110,6 +110,7 @@ module Metanorma
|
|
110
110
|
|
111
111
|
def svgmap_resolve_eref(eref, isodoc, _docxml, ids)
|
112
112
|
href = isodoc.eref_target(eref) or return
|
113
|
+
href = href[:link]
|
113
114
|
href == "##{eref['bibitemid']}" ||
|
114
115
|
(href =~ /^#/ && !ids[href.sub(/^#/, "")]) and return
|
115
116
|
eref["target"] = href.strip
|
@@ -28,8 +28,8 @@ module Metanorma
|
|
28
28
|
def compile(filename, options = {})
|
29
29
|
options_process(filename, options)
|
30
30
|
@processor = @registry.find_processor(options[:type].to_sym)
|
31
|
-
extensions = get_extensions(options) or return nil
|
32
31
|
(file, isodoc = process_input(filename, options)) or return nil
|
32
|
+
extensions = get_extensions(options) or return nil
|
33
33
|
relaton_export(isodoc, options)
|
34
34
|
extract(isodoc, options[:extract], options[:extract_type])
|
35
35
|
process_exts(filename, extensions, file, isodoc, options)
|
data/lib/metanorma/version.rb
CHANGED
data/metanorma.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -262,6 +262,20 @@ dependencies:
|
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0.15'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: xml-c14n
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
265
279
|
description: Library to process any Metanorma standard.
|
266
280
|
email:
|
267
281
|
- open.source@ribose.com
|