metanorma-acme 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbac64a224ed9b71d32900fbbad69d7d4b8b2fd62cecd0415c3f7fdd4390dff5
4
- data.tar.gz: 46e0fa032335f5b72b226a852664230ca17ae91bc72901bab36cc1dfb9311d32
3
+ metadata.gz: eee387ac9a7224a9173458e3449d3f42dbbeffde70b4d1eea7d7478bfdd62131
4
+ data.tar.gz: 7a87ebbfd9b2fb0e0747c1e0dd29862c888a6eaf37d3ab1154cdcf8c26023808
5
5
  SHA512:
6
- metadata.gz: '039a1899119e0fe18e72c41b74de185299df2650190832f0a093f4aafb2cf32b08c3ccc5d8370bc419d860f1d79fd05d6ea42cd0ead658019b182b40ccfd6eb2'
7
- data.tar.gz: a0c67c605103c0d07f02093583781efad988c3213a2b4ca62011b2d0707e627f25125ecc83ea6b61a32b80171941457bbb4b269f0d820a715cb192e31c81d368
6
+ metadata.gz: b57c312dbdfe73ce3599376941db5c7e9d00206a57299d0e72109604519200a6955790b60cf44297df989e4bcf4d30ad122e49df37fc81cbeb36c21374ccd7c9
7
+ data.tar.gz: 38546e1f4f4ccaf31d3bdb5ca2ed27873213373d3e23fe550279a795ed1badc68a24998c3c73f06a5bda0646dc4eab57b0032228c3236a89ab116adbc20d98d6
@@ -81,28 +81,6 @@
81
81
  </choice>
82
82
  </element>
83
83
  </define>
84
- <!-- TextElement |= keyword -->
85
- <define name="TextElement">
86
- <choice>
87
- <text/>
88
- <ref name="em"/>
89
- <ref name="eref"/>
90
- <ref name="strong"/>
91
- <ref name="stem"/>
92
- <ref name="sub"/>
93
- <ref name="sup"/>
94
- <ref name="tt"/>
95
- <ref name="strike"/>
96
- <ref name="smallcap"/>
97
- <ref name="xref"/>
98
- <ref name="br"/>
99
- <ref name="hyperlink"/>
100
- <ref name="hr"/>
101
- <ref name="pagebreak"/>
102
- <ref name="bookmark"/>
103
- <ref name="keyword"/>
104
- </choice>
105
- </define>
106
84
  <define name="BibItemType" combine="choice">
107
85
  <choice>
108
86
  <value>policy-and-procedures</value>
@@ -191,16 +169,6 @@
191
169
  <text/>
192
170
  </element>
193
171
  </define>
194
- <define name="pre">
195
- <element name="pre">
196
- <text/>
197
- </element>
198
- </define>
199
- <define name="keyword">
200
- <element name="keyword">
201
- <text/>
202
- </element>
203
- </define>
204
172
  <define name="security">
205
173
  <element name="security">
206
174
  <text/>
@@ -130,15 +130,6 @@ module Asciidoctor
130
130
  File.join(File.dirname(__FILE__), File.join("html", file))
131
131
  end
132
132
 
133
- def literal(node)
134
- noko do |xml|
135
- xml.figure **id_attr(node) do |f|
136
- figure_title(node, f)
137
- f.pre node.lines.join("\n")
138
- end
139
- end
140
- end
141
-
142
133
  def sections_cleanup(x)
143
134
  super
144
135
  x.xpath("//*[@inline-header]").each do |h|
@@ -161,29 +152,6 @@ module Asciidoctor
161
152
  def word_converter(node)
162
153
  IsoDoc::Acme::WordConvert.new(doc_extract_attributes(node))
163
154
  end
164
-
165
- def inline_quoted(node)
166
- noko do |xml|
167
- case node.type
168
- when :emphasis then xml.em node.text
169
- when :strong then xml.strong node.text
170
- when :monospaced then xml.tt node.text
171
- when :double then xml << "\"#{node.text}\""
172
- when :single then xml << "'#{node.text}'"
173
- when :superscript then xml.sup node.text
174
- when :subscript then xml.sub node.text
175
- when :asciimath then stem_parse(node.text, xml)
176
- else
177
- case node.role
178
- when "strike" then xml.strike node.text
179
- when "smallcap" then xml.smallcap node.text
180
- when "keyword" then xml.keyword node.text
181
- else
182
- xml << node.text
183
- end
184
- end
185
- end.join
186
- end
187
155
  end
188
156
  end
189
157
  end
@@ -384,6 +384,7 @@
384
384
  <ref name="sourcecode"/>
385
385
  <ref name="example"/>
386
386
  <ref name="review"/>
387
+ <ref name="pre"/>
387
388
  </choice>
388
389
  </define>
389
390
  <define name="paragraph">
@@ -540,6 +541,20 @@
540
541
  </zeroOrMore>
541
542
  </element>
542
543
  </define>
544
+ <define name="pre">
545
+ <element name="pre">
546
+ <attribute name="id">
547
+ <data type="ID"/>
548
+ </attribute>
549
+ <optional>
550
+ <ref name="tname"/>
551
+ </optional>
552
+ <text/>
553
+ <zeroOrMore>
554
+ <ref name="note"/>
555
+ </zeroOrMore>
556
+ </element>
557
+ </define>
543
558
  <define name="table">
544
559
  <element name="table">
545
560
  <attribute name="id">
@@ -710,6 +725,7 @@
710
725
  </optional>
711
726
  <choice>
712
727
  <ref name="image"/>
728
+ <ref name="pre"/>
713
729
  <zeroOrMore>
714
730
  <ref name="figure"/>
715
731
  </zeroOrMore>
@@ -735,6 +751,7 @@
735
751
  <ref name="sub"/>
736
752
  <ref name="sup"/>
737
753
  <ref name="tt"/>
754
+ <ref name="keyword"/>
738
755
  <ref name="strike"/>
739
756
  <ref name="smallcap"/>
740
757
  <ref name="xref"/>
@@ -765,6 +782,11 @@
765
782
  <text/>
766
783
  </element>
767
784
  </define>
785
+ <define name="keyword">
786
+ <element name="keyword">
787
+ <text/>
788
+ </element>
789
+ </define>
768
790
  <define name="sub">
769
791
  <element name="sub">
770
792
  <text/>
@@ -78,10 +78,6 @@ module IsoDoc
78
78
  end
79
79
  end
80
80
 
81
- def pre_parse(node, out)
82
- out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;")
83
- end
84
-
85
81
  def term_defs_boilerplate(div, source, term, preface)
86
82
  if source.empty? && term.nil?
87
83
  div << @no_terms_boilerplate
@@ -95,18 +91,6 @@ module IsoDoc
95
91
  @annex_lbl = "Appendix"
96
92
  end
97
93
 
98
- def error_parse(node, out)
99
- # catch elements not defined in ISO
100
- case node.name
101
- when "pre"
102
- pre_parse(node, out)
103
- when "keyword"
104
- out.span node.text, **{ class: "keyword" }
105
- else
106
- super
107
- end
108
- end
109
-
110
94
  def fileloc(loc)
111
95
  File.join(File.dirname(__FILE__), loc)
112
96
  end
@@ -76,10 +76,6 @@ module IsoDoc
76
76
  end
77
77
  end
78
78
 
79
- def pre_parse(node, out)
80
- out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;")
81
- end
82
-
83
79
  def term_defs_boilerplate(div, source, term, preface)
84
80
  if source.empty? && term.nil?
85
81
  div << @no_terms_boilerplate
@@ -93,18 +89,6 @@ module IsoDoc
93
89
  @annex_lbl = "Appendix"
94
90
  end
95
91
 
96
- def error_parse(node, out)
97
- # catch elements not defined in ISO
98
- case node.name
99
- when "pre"
100
- pre_parse(node, out)
101
- when "keyword"
102
- out.span node.text, **{ class: "keyword" }
103
- else
104
- super
105
- end
106
- end
107
-
108
92
  def fileloc(loc)
109
93
  File.join(File.dirname(__FILE__), loc)
110
94
  end
@@ -73,10 +73,6 @@ module IsoDoc
73
73
  end
74
74
  end
75
75
 
76
- def pre_parse(node, out)
77
- out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;")
78
- end
79
-
80
76
  def term_defs_boilerplate(div, source, term, preface)
81
77
  if source.empty? && term.nil?
82
78
  div << @no_terms_boilerplate
@@ -90,18 +86,6 @@ module IsoDoc
90
86
  @annex_lbl = "Appendix"
91
87
  end
92
88
 
93
- def error_parse(node, out)
94
- # catch elements not defined in ISO
95
- case node.name
96
- when "pre"
97
- pre_parse(node, out)
98
- when "keyword"
99
- out.span node.text, **{ class: "keyword" }
100
- else
101
- super
102
- end
103
- end
104
-
105
89
  def fileloc(loc)
106
90
  File.join(File.dirname(__FILE__), loc)
107
91
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Acme
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency "guard-rspec", "~> 4.7"
39
39
  spec.add_development_dependency "rake", "~> 12.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.6"
41
- spec.add_development_dependency "rubocop", "~> 0.50"
41
+ spec.add_development_dependency "rubocop", "= 0.54.0"
42
42
  spec.add_development_dependency "simplecov", "~> 0.15"
43
43
  spec.add_development_dependency "timecop", "~> 0.9"
44
44
  spec.add_development_dependency "metanorma", "~> 0.3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-acme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -182,16 +182,16 @@ dependencies:
182
182
  name: rubocop
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - '='
186
186
  - !ruby/object:Gem::Version
187
- version: '0.50'
187
+ version: 0.54.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: '0.50'
194
+ version: 0.54.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement