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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf166190b283c36393cece711e1b6d3210d06a12a577c0f64bbfca206131d561
4
- data.tar.gz: e56840a0ca18bf19dd734deeec0b9a0eae1acb167815562f334ccdb413e22400
3
+ metadata.gz: 88b9839bd866e7df915ed59896f33b1cb97c55efb3b8a69e1c13b05129050eda
4
+ data.tar.gz: 25b3738e3d7f6c5b5e65a5490e6d72630c1ba975e9dee528e744701e28ec63a2
5
5
  SHA512:
6
- metadata.gz: 01d4d3a2840c7c4d2034c189f934dcb888bb602e8b6ee8c2d3e6c158711db7d7fa17b59c01dd634877ee9b0c4f849819c4b69a401f6a95d0818ad41236753e5d
7
- data.tar.gz: 1e05a6d9992739869bdb53ec0ddbc43bab58fb5b08f0eb2730d5317954c7a3970c8992c1443808e3abd5a82908037cebe7f942acc6aae26e6c680e1103caa59d
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
@@ -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 Metanorma::Utils::datauri(doc.file)
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
- Metanorma::Utils::svgmap_rewrite(docxml, "")
111
+ Vectory::SvgMapping.new(docxml, "").call
112
112
  docxml.xpath(ns("//svgmap")).each { |s| isodoc.svgmap_extract(s) }
113
113
  end
114
114
 
@@ -102,7 +102,7 @@ module Metanorma
102
102
 
103
103
  def datauri_encode(docxml)
104
104
  docxml.xpath(ns("//image")).each do |i|
105
- i["src"] = Metanorma::Utils::datauri(i["src"])
105
+ i["src"] = Vectory::Utils::datauri(i["src"])
106
106
  end
107
107
  docxml
108
108
  end
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "1.6.9".freeze
2
+ VERSION = "1.7.0".freeze
3
3
  end
data/lib/metanorma.rb CHANGED
@@ -12,6 +12,7 @@ require "metanorma/compile"
12
12
  require "metanorma/collection"
13
13
  require "metanorma/collection_renderer"
14
14
  require "metanorma/document"
15
+ require "vectory"
15
16
 
16
17
  # Metanorma module
17
18
  module Metanorma
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.6.9
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: 2023-12-11 00:00:00.000000000 Z
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