metanorma-iso 1.9.6 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,13 +23,16 @@ RSpec.describe Metanorma::Iso::Processor do
23
23
  end
24
24
 
25
25
  it "generates IsoDoc XML from a blank document" do
26
- expect(xmlpp(processor.input_to_isodoc(<<~"INPUT", nil))).to be_equivalent_to xmlpp(<<~"OUTPUT")
26
+ input = <<~INPUT
27
27
  #{ASCIIDOC_BLANK_HDR}
28
28
  INPUT
29
+ output = <<~OUTPUT
29
30
  #{BLANK_HDR}
30
31
  <sections/>
31
32
  </iso-standard>
32
33
  OUTPUT
34
+ expect(xmlpp(processor.input_to_isodoc(input, nil)))
35
+ .to be_equivalent_to xmlpp(output)
33
36
  end
34
37
 
35
38
  it "generates HTML from IsoDoc XML" do
data/spec/spec_helper.rb CHANGED
@@ -58,7 +58,8 @@ def xmlpp(xml)
58
58
  s = ""
59
59
  f = REXML::Formatters::Pretty.new(2)
60
60
  f.compact = true
61
- f.write(REXML::Document.new(xml), s)
61
+ f.write(REXML::Document.new(xml
62
+ .gsub(%r{<fetched>20[0-9-]+</fetched>}, "<fetched/>")), s)
62
63
  s
63
64
  end
64
65
 
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.10.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: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: isodoc
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 1.7.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 1.7.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: metanorma-standoc
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 1.10.0
19
+ version: 1.11.0
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 1.10.0
26
+ version: 1.11.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: mnconvert
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -419,7 +405,6 @@ files:
419
405
  - spec/isodoc/xref_spec.rb
420
406
  - spec/metanorma/processor_spec.rb
421
407
  - spec/spec_helper.rb
422
- - spec/vcr_cassettes/docrels.yml
423
408
  homepage: https://github.com/metanorma/metanorma-iso
424
409
  licenses:
425
410
  - BSD-2-Clause
@@ -439,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
439
424
  - !ruby/object:Gem::Version
440
425
  version: '0'
441
426
  requirements: []
442
- rubygems_version: 3.1.4
427
+ rubygems_version: 3.2.22
443
428
  signing_key:
444
429
  specification_version: 4
445
430
  summary: metanorma-iso lets you write ISO standards in AsciiDoc.