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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c79c55687d9f7906deff9b1c0e1b0ea0b34bc12bdc457ee50b8f2ae317379d5
4
- data.tar.gz: 9d4cb1f6ebbff8f9fef492db09a08e3b703d6abe370281eac70be19fd0cd0a74
3
+ metadata.gz: 77856427b06326b7de35ad6782ffc5dbfe5331d9596d6df53a6af4c2bb681c81
4
+ data.tar.gz: d63ffb87f0abe973ed040f8567c986d504792433a9b3d46f4618752f9f254f59
5
5
  SHA512:
6
- metadata.gz: 209ad8c6bbf50736898ad555ad681ada496848b0050aec7683ac166b9ae86d403c6454e7ac9bec805a0f90ab3f24e0c35ad59f7af9d0d1156e3f3a6465dad2c2
7
- data.tar.gz: f56c230c821be5f285e5bb8919ea6314664db0ff761bd16b0aaa434725ece3c8738cf7586711481454c031186aa0b548988d687d2d1977d3c8cdd45992db7b4f
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)
@@ -16,8 +16,8 @@ module Metanorma
16
16
  @aliases = { csd: :cc, m3d: :m3aawg, mpfd: :mpfa, csand: :csa }
17
17
  end
18
18
 
19
- def alias(x)
20
- @aliases[x]
19
+ def alias(flavour)
20
+ @aliases[flavour]
21
21
  end
22
22
 
23
23
  def register(processor)
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "2.0.3".freeze
2
+ VERSION = "2.0.4".freeze
3
3
  end
data/metanorma.gemspec CHANGED
@@ -46,4 +46,5 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency "rubocop", "~> 1.5.2"
47
47
  spec.add_development_dependency "sassc", "~> 2.4.0"
48
48
  spec.add_development_dependency "simplecov", "~> 0.15"
49
+ spec.add_development_dependency "xml-c14n"
49
50
  end
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.3
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-07-22 00:00:00.000000000 Z
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