metanorma-iso 2.1.3 → 2.1.4
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.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/iso.amendment.xsl +123 -74
- data/lib/isodoc/iso/iso.international-standard.xsl +123 -74
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/word_dis_cleanup.rb +8 -0
- data/lib/metanorma/iso/base.rb +0 -6
- data/lib/metanorma/iso/cleanup.rb +4 -2
- data/lib/metanorma/iso/isodoc.rng +16 -0
- data/lib/metanorma/iso/isostandard.rng +3 -1
- 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/metanorma/blocks_spec.rb +0 -33
- data/spec/metanorma/cleanup_spec.rb +196 -196
- data/spec/vcr_cassettes/withdrawn_iso.yml +27 -27
- metadata +2 -3
- 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.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: 2022-
|
11
|
+
date: 2022-07-04 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
|
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
|