metanorma-ietf 2.0.5 → 2.0.6

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: b293e8e7455c93e3822e444fa23cf6c16da643fb5de2221c7c6b6f4f0730c8ec
4
- data.tar.gz: 8292b71e2b5a335ec72e9efb4ae93f758056fc0c35c8ce98ffc5cb74b823184e
3
+ metadata.gz: ea7691960ebd06212c10a16ef04f39a86d44312c496fd190e03ead96dac484c7
4
+ data.tar.gz: 44f0aeaa5ad12410d58660afdcd4b4c17d63b3bc8d26bd420a0adc275c05a648
5
5
  SHA512:
6
- metadata.gz: e3caa1b5b79bd1c775951b96c55c7d66d0ddbb7fbdc9519b5182d29f6584b8271eeca2d2eb108149b378d05b67551ed0448d9f47426bccd361fa5b2fae6ac07d
7
- data.tar.gz: aa5154d96d289822a7b1337122b00e239d459cd258115e3c7c4a5f9d8dbaec87aeb2fcf348b332874b36edf3437036e864069db0bfa447b46da1ac6e7307949a
6
+ metadata.gz: 7e618fbc5f61ddc1419ed6a48c59a9aa03694dcd7e09e77fe79b8f8f08f37bf6c7ffde6656d1b3d6dbcd934aa80c5cf6754df234dd55577ae28ea2eea22c1991
7
+ data.tar.gz: 8fa3bb4b08545037774b2080c541d60df663b79f3c7c58b33fd1df91049f5f11af1732846a1185ce856ee0ef6d2a0888720ca50b84041d865f145a039d98debd
@@ -35,6 +35,7 @@ module Asciidoctor
35
35
  File.open(filename, "w") { |f| f.write(ret) }
36
36
  rfc_converter(node).convert filename unless node.attr("nodoc")
37
37
  end
38
+ @log.write(@filename + ".err") unless @novalid
38
39
  @files_to_delete.each { |f| FileUtils.rm f }
39
40
  ret
40
41
  end
@@ -152,9 +153,9 @@ module Asciidoctor
152
153
  def smartquotes_cleanup(xmldoc)
153
154
  xmldoc.traverse do |n|
154
155
  next unless n.text?
155
- n.replace(HTMLEntities.new.encode(
156
+ n.replace(HTMLEntities.new.encode(
156
157
  n.text.gsub(/\u2019|\u2018|\u201a|\u201b/, "'").
157
- gsub(/\u201c|\u201d|\u201e|\u201f/, '"'), :basic))
158
+ gsub(/\u201c|\u201d|\u201e|\u201f/, '"'), :basic))
158
159
  end
159
160
  xmldoc
160
161
  end
@@ -192,7 +193,7 @@ module Asciidoctor
192
193
  x["uri"] = x["target"]
193
194
  x.delete("target")
194
195
  else
195
- xref_to_eref(x)
196
+ xref_to_eref(x)
196
197
  end
197
198
  end
198
199
  end
@@ -645,6 +645,11 @@
645
645
  <optional>
646
646
  <attribute name="script"/>
647
647
  </optional>
648
+ <optional>
649
+ <attribute name="inline-header">
650
+ <data type="boolean"/>
651
+ </attribute>
652
+ </optional>
648
653
  <optional>
649
654
  <attribute name="obligation">
650
655
  <choice>
@@ -10,7 +10,7 @@ module Asciidoctor
10
10
  def image_validate(doc)
11
11
  doc.xpath("//image").each do |i|
12
12
  next if i["mimetype"] == "image/svg+xml"
13
- warn "image #{i['src'][0, 40]} is not SVG!"
13
+ @log.add("MIME", i, "image #{i['src'][0, 40]} is not SVG!")
14
14
  end
15
15
  end
16
16
 
@@ -19,7 +19,7 @@ module Asciidoctor
19
19
  doc.xpath("//bibdata/ext/editorialgroup/workgroup").each do |wg|
20
20
  wg_norm = wg.text.sub(/ (Working|Research) Group$/, "")
21
21
  next if @workgroups.include?(wg_norm)
22
- warn "IETF: unrecognised working group #{wg.text}"
22
+ @log.add("Document Attributes", nil, "IETF: unrecognised working group #{wg.text}")
23
23
  end
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "2.0.5".freeze
3
+ VERSION = "2.0.6".freeze
4
4
  end
5
5
  end
@@ -48,7 +48,6 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency "rubocop", "~> 0.50"
49
49
  spec.add_development_dependency "simplecov", "~> 0.15"
50
50
  spec.add_development_dependency "timecop", "~> 0.9"
51
- spec.add_development_dependency "metanorma", "~> 0.3.0"
52
51
  spec.add_development_dependency "vcr", "~> 5.0.0"
53
52
  spec.add_development_dependency "webmock"
54
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-25 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -178,20 +178,6 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.9'
181
- - !ruby/object:Gem::Dependency
182
- name: metanorma
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: 0.3.0
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 0.3.0
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: vcr
197
183
  requirement: !ruby/object:Gem::Requirement