metanorma-iso 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +17 -0
- data/lib/asciidoctor/iso/isodoc.rng +26 -3
- data/lib/asciidoctor/iso/isostandard-amd.rng +8 -4
- data/lib/asciidoctor/iso/isostandard.rng +16 -10
- data/lib/asciidoctor/iso/validate.rb +12 -0
- data/lib/asciidoctor/iso/validate_section.rb +12 -9
- data/lib/isodoc/iso/iso.amendment.xsl +18 -2
- data/lib/isodoc/iso/iso.international-standard.xsl +18 -2
- data/lib/isodoc/iso/sections.rb +1 -1
- data/lib/isodoc/iso/xref.rb +28 -12
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- data/spec/asciidoctor-iso/amd_spec.rb +14 -14
- data/spec/asciidoctor-iso/base_spec.rb +16 -16
- data/spec/asciidoctor-iso/blocks_spec.rb +21 -21
- data/spec/asciidoctor-iso/cleanup_spec.rb +25 -25
- data/spec/asciidoctor-iso/inline_spec.rb +7 -7
- data/spec/asciidoctor-iso/lists_spec.rb +3 -3
- data/spec/asciidoctor-iso/refs_spec.rb +4 -4
- data/spec/asciidoctor-iso/section_spec.rb +7 -7
- data/spec/asciidoctor-iso/table_spec.rb +4 -4
- data/spec/asciidoctor-iso/validate_spec.rb +384 -85
- data/spec/isodoc/amd_spec.rb +13 -13
- metadata +4 -4
data/spec/isodoc/amd_spec.rb
CHANGED
@@ -66,9 +66,9 @@ RSpec.describe IsoDoc do
|
|
66
66
|
<preface>
|
67
67
|
<foreword>
|
68
68
|
<p>
|
69
|
-
<xref target='N'>
|
70
|
-
<xref target='note1'>
|
71
|
-
<xref target='note2'>
|
69
|
+
<xref target='N'>Scope, Note</xref>
|
70
|
+
<xref target='note1'>Widgets, 1, Note 1</xref>
|
71
|
+
<xref target='note2'>Widgets, 1, Note 2</xref>
|
72
72
|
<xref target='AN'>A.1, Note</xref>
|
73
73
|
<xref target='Anote1'>A.2, Note 1</xref>
|
74
74
|
<xref target='Anote2'>A.2, Note 2</xref>
|
@@ -231,15 +231,15 @@ RSpec.describe IsoDoc do
|
|
231
231
|
This is a preamble
|
232
232
|
<xref target='C'>0.1</xref>
|
233
233
|
<xref target='C1'>0.2</xref>
|
234
|
-
<xref target='D'>
|
234
|
+
<xref target='D'>Scope</xref>
|
235
235
|
<xref target='H'>[H]</xref>
|
236
236
|
<xref target='I'>[I]</xref>
|
237
237
|
<xref target='J'>[J]</xref>
|
238
238
|
<xref target='K'>[K]</xref>
|
239
239
|
<xref target='L'>[L]</xref>
|
240
|
-
<xref target='M'>
|
241
|
-
<xref target='N'>
|
242
|
-
<xref target='O'>
|
240
|
+
<xref target='M'>Clause 4</xref>
|
241
|
+
<xref target='N'>Introduction</xref>
|
242
|
+
<xref target='O'>Clause 4.2</xref>
|
243
243
|
<xref target='P'>Annex A</xref>
|
244
244
|
<xref target='Q'>A.1</xref>
|
245
245
|
<xref target='Q1'>A.1.1</xref>
|
@@ -263,10 +263,10 @@ RSpec.describe IsoDoc do
|
|
263
263
|
<clause id='M' inline-header='false' obligation='normative'>
|
264
264
|
<title depth="1">Clause 4</title>
|
265
265
|
<clause id='N' inline-header='false' obligation='normative'>
|
266
|
-
<title depth="
|
266
|
+
<title depth="2">Introduction</title>
|
267
267
|
</clause>
|
268
268
|
<clause id='O' inline-header='false' obligation='normative'>
|
269
|
-
<title depth="
|
269
|
+
<title depth="2">Clause 4.2</title>
|
270
270
|
</clause>
|
271
271
|
</clause>
|
272
272
|
</sections>
|
@@ -452,10 +452,10 @@ RSpec.describe IsoDoc do
|
|
452
452
|
<clause id='M' inline-header='false' obligation='normative'>
|
453
453
|
<title depth='1'>Clause 4</title>
|
454
454
|
<clause id='N' inline-header='false' obligation='normative'>
|
455
|
-
<title depth='
|
455
|
+
<title depth='2'>Introduction</title>
|
456
456
|
</clause>
|
457
457
|
<clause id='O' inline-header='false' obligation='normative'>
|
458
|
-
<title depth='
|
458
|
+
<title depth='2'>Clause 4.2</title>
|
459
459
|
</clause>
|
460
460
|
<clause id='O1' inline-header='true' obligation='normative'> </clause>
|
461
461
|
</clause>
|
@@ -570,10 +570,10 @@ RSpec.describe IsoDoc do
|
|
570
570
|
<div id='M'>
|
571
571
|
<h1>Clause 4</h1>
|
572
572
|
<div id='N'>
|
573
|
-
<
|
573
|
+
<h2>Introduction</h2>
|
574
574
|
</div>
|
575
575
|
<div id='O'>
|
576
|
-
<
|
576
|
+
<h2>Clause 4.2</h2>
|
577
577
|
</div>
|
578
578
|
<div id='O1'>
|
579
579
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.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:
|
11
|
+
date: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.
|
33
|
+
version: 1.4.2
|
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: 1.4.
|
40
|
+
version: 1.4.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: metanorma-standoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|