metanorma-iec 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +5 -1
- data/.github/workflows/ubuntu.yml +5 -1
- data/.github/workflows/windows.yml +5 -1
- data/lib/asciidoctor/iec/basicdoc.rng +20 -6
- data/lib/asciidoctor/iec/isodoc.rng +532 -18
- data/lib/asciidoctor/iec/isostandard.rng +63 -490
- data/lib/asciidoctor/iec/reqt.rng +2 -2
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/asciidoctor-iec/cleanup_spec.rb +0 -52
- metadata +2 -2
@@ -428,58 +428,6 @@ RSpec.describe Asciidoctor::Iec do
|
|
428
428
|
OUTPUT
|
429
429
|
end
|
430
430
|
|
431
|
-
it "numbers bibliographic notes and footnotes sequentially" do
|
432
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
433
|
-
#{ASCIIDOC_BLANK_HDR}
|
434
|
-
footnote:[Footnote]
|
435
|
-
|
436
|
-
[bibliography]
|
437
|
-
== Normative References
|
438
|
-
|
439
|
-
* [[[iso123,ISO 123:--]]] footnote:[The standard is in press] _Standard_
|
440
|
-
|
441
|
-
== Clause
|
442
|
-
footnote:[Footnote2]
|
443
|
-
INPUT
|
444
|
-
#{BLANK_HDR}
|
445
|
-
<preface><foreword obligation="informative">
|
446
|
-
<title>Foreword</title>
|
447
|
-
<p id="_"><fn reference="1">
|
448
|
-
<p id="_">Footnote</p>
|
449
|
-
</fn>
|
450
|
-
</p>
|
451
|
-
</foreword></preface><sections>
|
452
|
-
|
453
|
-
<clause id="_" inline-header="false" obligation="normative">
|
454
|
-
<title>Clause</title>
|
455
|
-
<p id="_"><fn reference="2">
|
456
|
-
<p id="_">Footnote2</p>
|
457
|
-
</fn>
|
458
|
-
</p>
|
459
|
-
</clause></sections><bibliography><references id="_" obligation="informative">
|
460
|
-
<title>Normative References</title>
|
461
|
-
<p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
462
|
-
<bibitem id="iso123" type="standard">
|
463
|
-
<title format="text/plain">Standard</title>
|
464
|
-
<docidentifier>ISO 123:–</docidentifier>
|
465
|
-
<date type="published">
|
466
|
-
<on>--</on>
|
467
|
-
</date>
|
468
|
-
<contributor>
|
469
|
-
<role type="publisher"/>
|
470
|
-
<organization>
|
471
|
-
<name>International Organization for Standardization</name>
|
472
|
-
<abbreviation>ISO</abbreviation>
|
473
|
-
</organization>
|
474
|
-
</contributor>
|
475
|
-
<note format="text/plain">ISO DATE: The standard is in press</note>
|
476
|
-
</bibitem>
|
477
|
-
</references>
|
478
|
-
</bibliography>
|
479
|
-
</iec-standard>
|
480
|
-
OUTPUT
|
481
|
-
end
|
482
|
-
|
483
431
|
it "defaults section obligations" do
|
484
432
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
485
433
|
#{ASCIIDOC_BLANK_HDR}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|