metanorma 1.4.7 → 1.4.9

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: ed20add5b0be427c6da63cb6eb9725e2b8bc630248756a3f5a508546ec39d8c0
4
- data.tar.gz: 7da47c02499a77d1284b3b5f5ea3edc90e7292d36db89181e7e3eff59eaa6346
3
+ metadata.gz: fa8bc65943192736f6bb4e68cc84d227354ff2580ef4da93869d9a94bdb795a6
4
+ data.tar.gz: 7cc4d04b32502c655b856c0214fd6ccd6bad5fadf81a7564598df43cf5afc526
5
5
  SHA512:
6
- metadata.gz: be96d8c7ba4bf588e5f3df380c79234dfde2efd60809d736ace1d9e4fd3f4e30a557d26a6a871c8e60d0b594efac57c1f5ee1e30539cbe74872b09c860deb648
7
- data.tar.gz: 9b5ef259facad85743f855644b703f11cac05123eaa6a94d3a7239bc300cf915eae21971acf79f57e8dbb8ea1594a6ac3c776fd951dfb1531291f2481152e1b6
6
+ metadata.gz: 513e588086bc7a486e5538d0b8d4d9cb212ce0bf7248d5c4f033a92a3ea7bb2804c550bca99b05ed882fc79fdb69ce68878d89ae819ee75facca92f36749780d
7
+ data.tar.gz: 4855c3739529440c2cbc8a3d60330f9723872e7cd8a36ccd925024e4a6bdb7e2a437ba604acbc498603c75fdf5b670db3f691a6305f0d5b20bbb3e815ac8d89c
@@ -45,7 +45,7 @@ module Metanorma
45
45
  bib.replace(newbib)
46
46
  _file, url = targetfile(@files[docid], relative: true, read: false,
47
47
  doc: !@files[docid][:attachment])
48
- uri_node = Nokogiri::XML::Node.new "uri", newbib
48
+ uri_node = Nokogiri::XML::Node.new "uri", newbib.document
49
49
  uri_node[:type] = "citation"
50
50
  uri_node.content = url
51
51
  newbib.at(ns("./docidentifier")).previous = uri_node
@@ -70,7 +70,7 @@ module Metanorma
70
70
  pdf-allow-print pdf-allow-print-hq pdf-allow-fill-in-forms
71
71
  toc-figures toc-tables toc-recommendations fonts
72
72
  font-license-agreement pdf-allow-access-content
73
- pdf-encrypt-metadata).freeze
73
+ pdf-encrypt-metadata iso-word-template).freeze
74
74
 
75
75
  def extract_options(file)
76
76
  header = file.sub(/\n\n.*$/m, "\n")
@@ -154,7 +154,7 @@ module Metanorma
154
154
 
155
155
  def eref_to_internal_eref(section, xml, key)
156
156
  eref_to_internal_eref_select(section, xml).each_with_object([]) do |x, m|
157
- url = xml.at(ns("//bibitem[@id = '#{x}']/url[@type = 'citation']"))
157
+ url = xml.at(ns("//bibitem[@id = '#{x}']/uri[@type = 'citation']"))
158
158
  section.xpath(("//*[@bibitemid = '#{x}']")).each do |e|
159
159
  id = eref_to_internal_eref1(e, key, url)
160
160
  id and m << id
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "1.4.7".freeze
2
+ VERSION = "1.4.9".freeze
3
3
  end
data/metanorma.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = ">= 2.5.0"
24
24
 
25
25
  spec.add_runtime_dependency "asciidoctor"
26
- spec.add_runtime_dependency "fontist"
26
+ spec.add_runtime_dependency "fontist", ">= 1.14"
27
27
  spec.add_runtime_dependency "htmlentities"
28
28
  spec.add_runtime_dependency "metanorma-utils", "~> 1.2.0"
29
29
  spec.add_runtime_dependency "mn2pdf", "~> 1"
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.7
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: htmlentities
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  - !ruby/object:Gem::Version
307
307
  version: '0'
308
308
  requirements: []
309
- rubygems_version: 3.3.9
309
+ rubygems_version: 3.3.16
310
310
  signing_key:
311
311
  specification_version: 4
312
312
  summary: Metanorma is the standard of standards; the metanorma gem allows you to create