metanorma-ietf 3.7.18 → 3.7.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e7a844318fabb97ac4116d637f592ea9511d61130fb19dcaa6b1a16f01b4864
4
- data.tar.gz: 8303922ecb675bd9d652cccad40b5ca10a9f90be517f76a672b60f87ba617bd9
3
+ metadata.gz: bdd11ed364d832b0a1009525118320a18eb30152a72a79e448b718fd9d449f09
4
+ data.tar.gz: 4fb93556348c99b8d7f6684b1846053e54742128606bb94cd37dea88512b90f0
5
5
  SHA512:
6
- metadata.gz: b297a8195b7598a7ff83369a2e13d864110a4793b8e9d7cafc415fac967b107e2e2f9c14f8f6c24c29a61e055faf27fa0afecc116e836479559832c3e035f5db
7
- data.tar.gz: 6760c0279f09ba2f927a128504c73db60eb075134b2d5cdef7dbbfc37300a6db88e1a7b3f3ae67f8552d1ba6fa2665a8183ff5d40a78ded4bf585881f0e1540a
6
+ metadata.gz: ef3c365528390eba625fc132db0469fedf416ca40e08cd7c78509c4941c0864437e9827b19bdbf5addadbff9f045e79ec46f79c6a5d24b972a9827f9ede68200
7
+ data.tar.gz: 3854871f1ee6c3c63ffd391ccb68d62360401e73644632a10b9268c184542b909dec7ab7ffa504c7a43520c37888ea01676a175a7a86ea9f0e240df5f58ee0ae
@@ -6,10 +6,54 @@ module Metanorma
6
6
  end
7
7
 
8
8
  def metadata_author(node, xml)
9
- personal_author(node, xml)
9
+ if node.attr("fullname") || node.attr("surname")
10
+ personal_author(node, xml)
11
+ else
12
+ # the AsciiDoc author line ("= Title" followed by name
13
+ # lines) is the common authoring shape; reading only
14
+ # :fullname:/:surname: produced author-less front matter,
15
+ # which RFC 7991 forbids (author+, metanorma-ietf#360)
16
+ author_line_author(node, xml)
17
+ end
10
18
  committee_contributors(node, xml, default_publisher, {})
11
19
  end
12
20
 
21
+ # Asciidoctor numbers the authors on the title line from 1
22
+ # (attribute set, plus the _1 alias) and then _2, _3...
23
+ def author_line_author(node, xml)
24
+ count = node.attr("authorcount").to_i
25
+ count = 1 if count < 1
26
+ (1..count).each do |i|
27
+ suffix = i == 1 ? "" : "_#{i}"
28
+ author_line_author1(node, xml, suffix)
29
+ end
30
+ end
31
+
32
+ def author_line_author1(node, xml, suffix)
33
+ forename = node.attr("firstname#{suffix}")
34
+ surname = node.attr("lastname#{suffix}")
35
+ full = node.attr("author#{suffix}")
36
+ return unless full || forename || surname
37
+ xml.contributor do |c|
38
+ personal_role(node, c, suffix)
39
+ c.person do |p|
40
+ p.name do |n|
41
+ if forename || surname
42
+ add_noko_elem(n, "forename", forename)
43
+ middlename = node.attr("middlename#{suffix}") and
44
+ add_noko_elem(n, "forename", middlename)
45
+ add_noko_elem(n, "initial",
46
+ node.attr("authorinitials#{suffix}"))
47
+ add_noko_elem(n, "surname", surname)
48
+ else
49
+ add_noko_elem(n, "completename", full)
50
+ end
51
+ end
52
+ add_noko_elem(p, "email", node.attr("email#{suffix}"))
53
+ end
54
+ end
55
+ end
56
+
13
57
  def org_author(node, xml); end
14
58
 
15
59
  def default_publisher
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "3.7.18".freeze
3
+ VERSION = "3.7.19".freeze
4
4
  end
5
5
  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: 3.7.18
4
+ version: 3.7.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-23 00:00:00.000000000 Z
11
+ date: 2026-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64