metanorma-iso 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
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.3
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-06-21 00:00:00.000000000 Z
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
@@ -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