metanorma-rsd 1.0.10 → 1.0.11

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: 1d283e879af320fbad1196dcbeb2e0ae38e43e8bfeda40e717ee706e299c70b6
4
- data.tar.gz: 5e9262876f2f6cff2d7073328ff53963a15aa1f302968e3084af87d7a0d7ec9a
3
+ metadata.gz: 3c75985bbd80812519a605420d59f996f00bc7087b1faa601d19cd04ed79e920
4
+ data.tar.gz: b14bff4bfa91304dcb9a5310f309857e526b37b0ae4cd6486d1255bb1956f41d
5
5
  SHA512:
6
- metadata.gz: d94b8321b4574dde4deab096345db7b665504ddaa3ed583331510f58f6e9a70067aa97e9ba4f3ca6b05315563cceb91ef5a4b57b20c43684394509761cec4625
7
- data.tar.gz: 257bccd37f3322c2115bb4cef92e1e1e40c74b8255c18ae12ad07fd6cbcab84c734ea6c9cc734dee345153ef0190578ea23479ad213fb1c089c985d1d9961cea
6
+ metadata.gz: ce2e6bd40650ab5e001914fff7dbc63560003d917d696523dd11b8809a49423d857498435ae8598d95a4b9f136a75e5c3b6866fbdd5a6eefd5fe73da3f7cd7be
7
+ data.tar.gz: d75888935fa5b0004e4c132bda759c7b4be64aa7e6237db91fb155b4c832056f15ac5be8ec3a96160d215ea7bc55a4765de40891b40c05fe84d69f1c2902a622
@@ -150,15 +150,6 @@ module Asciidoctor
150
150
  File.join(File.dirname(__FILE__), File.join("html", file))
151
151
  end
152
152
 
153
- def literal(node)
154
- noko do |xml|
155
- xml.figure **id_attr(node) do |f|
156
- figure_title(node, f)
157
- f.pre node.lines.join("\n")
158
- end
159
- end
160
- end
161
-
162
153
  def sections_cleanup(x)
163
154
  super
164
155
  x.xpath("//*[@inline-header]").each do |h|
@@ -177,29 +168,6 @@ module Asciidoctor
177
168
  def word_converter(node)
178
169
  IsoDoc::Rsd::WordConvert.new(doc_extract_attributes(node))
179
170
  end
180
-
181
- def inline_quoted(node)
182
- noko do |xml|
183
- case node.type
184
- when :emphasis then xml.em node.text
185
- when :strong then xml.strong node.text
186
- when :monospaced then xml.tt node.text
187
- when :double then xml << "\"#{node.text}\""
188
- when :single then xml << "'#{node.text}'"
189
- when :superscript then xml.sup node.text
190
- when :subscript then xml.sub node.text
191
- when :asciimath then stem_parse(node.text, xml)
192
- else
193
- case node.role
194
- when "strike" then xml.strike node.text
195
- when "smallcap" then xml.smallcap node.text
196
- when "keyword" then xml.keyword node.text
197
- else
198
- xml << node.text
199
- end
200
- end
201
- end.join
202
- end
203
171
  end
204
172
  end
205
173
  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/>
@@ -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/>
@@ -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
@@ -129,7 +113,6 @@ module IsoDoc
129
113
  @meta.security isoxml, out
130
114
  super
131
115
  end
132
-
133
116
  end
134
117
  end
135
118
  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
@@ -63,10 +63,6 @@ module IsoDoc
63
63
  end
64
64
  end
65
65
 
66
- def pre_parse(node, out)
67
- out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;")
68
- end
69
-
70
66
  def term_defs_boilerplate(div, source, term, preface)
71
67
  if source.empty? && term.nil?
72
68
  div << @no_terms_boilerplate
@@ -80,18 +76,6 @@ module IsoDoc
80
76
  @annex_lbl = "Appendix"
81
77
  end
82
78
 
83
- def error_parse(node, out)
84
- # catch elements not defined in ISO
85
- case node.name
86
- when "pre"
87
- pre_parse(node, out)
88
- when "keyword"
89
- out.span node.text, **{ class: "keyword" }
90
- else
91
- super
92
- end
93
- end
94
-
95
79
  def fileloc(loc)
96
80
  File.join(File.dirname(__FILE__), loc)
97
81
  end
@@ -109,7 +93,6 @@ module IsoDoc
109
93
  end
110
94
  docxml
111
95
  end
112
-
113
96
  end
114
97
  end
115
98
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Rsd
3
- VERSION = "1.0.10"
3
+ VERSION = "1.0.11"
4
4
  end
5
5
  end
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency "guard-rspec", "~> 4.7"
41
41
  spec.add_development_dependency "rake", "~> 12.0"
42
42
  spec.add_development_dependency "rspec", "~> 3.6"
43
- spec.add_development_dependency "rubocop", "~> 0.50"
43
+ spec.add_development_dependency "rubocop", "= 0.54.0"
44
44
  spec.add_development_dependency "simplecov", "~> 0.15"
45
45
  spec.add_development_dependency "timecop", "~> 0.9"
46
46
  spec.add_development_dependency "metanorma", "~> 0.3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-rsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
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