metanorma 1.6.9 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -8
- data/lib/metanorma/collection.rb +1 -1
- data/lib/metanorma/collection_fileparse.rb +1 -1
- data/lib/metanorma/collection_render_utils.rb +1 -1
- data/lib/metanorma/version.rb +1 -1
- data/lib/metanorma.rb +1 -0
- 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: 88b9839bd866e7df915ed59896f33b1cb97c55efb3b8a69e1c13b05129050eda
|
4
|
+
data.tar.gz: 25b3738e3d7f6c5b5e65a5490e6d72630c1ba975e9dee528e744701e28ec63a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2be8fedc0f3fe4ca415c4b7bd9026d6dea62f6b53b744c293c1f35017718c25b53fb8e7ae22abda1a75ffb2536ce036072743a6a35a3cba871c7b6b9af429248
|
7
|
+
data.tar.gz: 21eb4cb252fef111c862d19e5dd53d3b48b5f00cbdd0c7b9a1015a217e455a2e089c68eb84abfd60acff4faebe37a1b10f8c70cf007df0da5184e285b26fb5de
|
data/Gemfile
CHANGED
@@ -4,12 +4,6 @@ Encoding.default_internal = Encoding::UTF_8
|
|
4
4
|
source "https://rubygems.org"
|
5
5
|
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
6
6
|
|
7
|
-
group :development, :test do
|
8
|
-
gem "rspec"
|
9
|
-
end
|
10
|
-
|
11
|
-
if File.exist? "Gemfile.devel"
|
12
|
-
eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
|
13
|
-
end
|
14
|
-
|
15
7
|
gemspec
|
8
|
+
|
9
|
+
eval_gemfile("Gemfile.devel") rescue nil
|
data/lib/metanorma/collection.rb
CHANGED
@@ -220,7 +220,7 @@ module Metanorma
|
|
220
220
|
builder.send(:"doc-container", id: id) do |b|
|
221
221
|
if doc.attachment
|
222
222
|
doc.bibitem and b << doc.bibitem.root.to_xml
|
223
|
-
b.attachment
|
223
|
+
b.attachment Vectory::Utils::datauri(doc.file)
|
224
224
|
else doc.to_xml b
|
225
225
|
end
|
226
226
|
end
|
@@ -108,7 +108,7 @@ module Metanorma
|
|
108
108
|
docxml.xpath(ns("//svgmap//eref")).each do |e|
|
109
109
|
svgmap_resolve1(e, isodoc, docxml, ids)
|
110
110
|
end
|
111
|
-
|
111
|
+
Vectory::SvgMapping.new(docxml, "").call
|
112
112
|
docxml.xpath(ns("//svgmap")).each { |s| isodoc.svgmap_extract(s) }
|
113
113
|
end
|
114
114
|
|
data/lib/metanorma/version.rb
CHANGED
data/lib/metanorma.rb
CHANGED
data/metanorma.gemspec
CHANGED
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_runtime_dependency "mn2pdf", "~> 1"
|
31
31
|
spec.add_runtime_dependency "nokogiri"
|
32
32
|
spec.add_runtime_dependency "pry"
|
33
|
+
spec.add_runtime_dependency "vectory", "~> 0.5"
|
33
34
|
|
34
35
|
# get relaton-cli to avoid circular reference with metanorma-standoc
|
35
36
|
# spec.add_dependency "relaton-cli"
|
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: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: vectory
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.5'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.5'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: debug
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|