metanorma 1.6.9 → 1.7.1

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: 938d6b4607a840c13dd8f5b05450ea4e8efd143688f239f53b16edfbb2bd27fc
4
+ data.tar.gz: 79638777304542242c9984cf27d413b5933456ef3929e102d6e5e21608bbe294
5
5
  SHA512:
6
- metadata.gz: 01d4d3a2840c7c4d2034c189f934dcb888bb602e8b6ee8c2d3e6c158711db7d7fa17b59c01dd634877ee9b0c4f849819c4b69a401f6a95d0818ad41236753e5d
7
- data.tar.gz: 1e05a6d9992739869bdb53ec0ddbc43bab58fb5b08f0eb2730d5317954c7a3970c8992c1443808e3abd5a82908037cebe7f942acc6aae26e6c680e1103caa59d
6
+ metadata.gz: 6e37cd82612055440e758dbdcae0e96271b2adf6ae533e9310e76fe74ea3c31bdc554f23524e8fad5cf2a2e75ac71ee35ee40ef681c00ad7ed4c4aa984b91212
7
+ data.tar.gz: 844e4ceed1de6d70d9f23f225b916a0f75c753c9ec94c0d8135792e8ec1659b47a557e868ec3151038b27683c03ba8a6cebaad3f601998f6c7d2269e7e9cc222
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.1".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
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.1
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-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor