metanorma-iso 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html2doc/lists.rb +7 -4
- data/lib/isodoc/iso/html/isodoc-dis.css +4 -15
- data/lib/isodoc/iso/html/isodoc-dis.scss +4 -17
- data/lib/isodoc/iso/html/isodoc.css +4 -11
- data/lib/isodoc/iso/html/isodoc.scss +5 -15
- data/lib/isodoc/iso/i18n-en.yaml +1 -1
- data/lib/isodoc/iso/iso.amendment.xsl +429 -121
- data/lib/isodoc/iso/iso.international-standard.xsl +429 -121
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/presentation_xml_convert.rb +5 -1
- data/lib/isodoc/iso/word_cleanup.rb +40 -6
- data/lib/isodoc/iso/word_dis_cleanup.rb +10 -14
- data/lib/metanorma/iso/base.rb +0 -6
- data/lib/metanorma/iso/biblio.rng +102 -5
- data/lib/metanorma/iso/cleanup.rb +33 -20
- data/lib/metanorma/iso/front.rb +13 -6
- data/lib/metanorma/iso/isodoc.rng +33 -0
- data/lib/metanorma/iso/isostandard.rng +3 -1
- data/lib/metanorma/iso/validate_section.rb +0 -12
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/blocks_spec.rb +3 -3
- data/spec/isodoc/metadata_spec.rb +1 -2
- data/spec/isodoc/postproc_spec.rb +2 -62
- data/spec/isodoc/section_spec.rb +2 -8
- data/spec/isodoc/terms_spec.rb +62 -0
- data/spec/isodoc/word_dis_spec.rb +185 -3
- data/spec/metanorma/amd_spec.rb +4 -40
- data/spec/metanorma/base_spec.rb +61 -103
- data/spec/metanorma/blocks_spec.rb +0 -33
- data/spec/metanorma/cleanup_spec.rb +201 -201
- data/spec/metanorma/refs_spec.rb +5 -3
- data/spec/metanorma/section_spec.rb +6 -6
- data/spec/metanorma/validate_spec.rb +8 -19
- data/spec/spec_helper.rb +1 -7
- data/spec/vcr_cassettes/withdrawn_iso.yml +28 -28
- metadata +3 -4
- data/lib/metanorma/iso/macros.rb +0 -29
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: 2.1.
|
4
|
+
version: 2.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: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -366,7 +366,6 @@ files:
|
|
366
366
|
- lib/metanorma/iso/isostandard-amd.rng
|
367
367
|
- lib/metanorma/iso/isostandard.rnc
|
368
368
|
- lib/metanorma/iso/isostandard.rng
|
369
|
-
- lib/metanorma/iso/macros.rb
|
370
369
|
- lib/metanorma/iso/processor.rb
|
371
370
|
- lib/metanorma/iso/reqt.rng
|
372
371
|
- lib/metanorma/iso/section.rb
|
@@ -456,7 +455,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
455
|
- !ruby/object:Gem::Version
|
457
456
|
version: '0'
|
458
457
|
requirements: []
|
459
|
-
rubygems_version: 3.3.
|
458
|
+
rubygems_version: 3.3.16
|
460
459
|
signing_key:
|
461
460
|
specification_version: 4
|
462
461
|
summary: metanorma-iso lets you write ISO standards in AsciiDoc.
|
data/lib/metanorma/iso/macros.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
module Metanorma
|
2
|
-
module ISO
|
3
|
-
class EditorAdmonitionBlock < Asciidoctor::Extensions::BlockProcessor
|
4
|
-
use_dsl
|
5
|
-
named :EDITOR
|
6
|
-
on_contexts :example, :paragraph
|
7
|
-
|
8
|
-
def process(parent, reader, attrs)
|
9
|
-
attrs["name"] = "editorial"
|
10
|
-
attrs["caption"] = "EDITOR"
|
11
|
-
create_block(parent, :admonition, reader.lines, attrs,
|
12
|
-
content_model: :compound)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
class EditorInlineAdmonitionBlock < Asciidoctor::Extensions::Treeprocessor
|
17
|
-
def process(document)
|
18
|
-
(document.find_by context: :paragraph).each do |para|
|
19
|
-
next unless /^EDITOR: /.match? para.lines[0]
|
20
|
-
|
21
|
-
para.set_attr("name", "editorial")
|
22
|
-
para.set_attr("caption", "EDITOR")
|
23
|
-
para.lines[0].sub!(/^EDITOR: /, "")
|
24
|
-
para.context = :admonition
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|