kramdown-rfc2629 1.5.17 → 1.5.18

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: 437ec106fe0458259c9f776fb89ed2993ffea7a466a66f087cb2dd4a460616b3
4
- data.tar.gz: 255a5c80a71f8e5447c59a557b58c8ccbb6bc4ad503f838650a6e5c49083b0fb
3
+ metadata.gz: 1899e3dda0205ba1affda979ec1e972a27fc7d13ae721737e14cf4ab737b13ff
4
+ data.tar.gz: 442106a989c71107a357d7c0bfec6ed9cf6b51c23cbfe870c81a26adc4542438
5
5
  SHA512:
6
- metadata.gz: d2a9724e14f28a37f6426b1173b25941a7fe1ed113be1a7c45da2e1bc855ae367723a5bf92c515ad6dd7da95d6616c91c8d16de51f366c0ec4c20417073c0ac8
7
- data.tar.gz: '088030252b477385ecfa4447a4b76a472f8fbe33b0104c680feb8ea6493b4fe72334c087ec2321bfc567901595a3113750757fb35a7d69e794ef25c30071c435'
6
+ metadata.gz: 1072b3d275c6ff6692bdc2cb3e666ac76f3c4838d6978b822c034b6ac4c70bf29a5d0be20aad42881bd9dcdf1ef5b69decb59114ecbfbb4457988ef0b0a2f3aa
7
+ data.tar.gz: 81360978cd5ff6692263c0b0b3aff2780b0b806ed83edd2d96ac40e5f705120ed54a529b874a51b27d25be10b44f14fd4bb84a7d7fe067dd3b2b73e4e1234714
@@ -46,15 +46,24 @@
46
46
  <% venue = ps[:venue] -%>
47
47
  <% if venue -%>
48
48
  <% venue = KramdownRFC::ParameterSet.new(venue) -%>
49
- <note title="Discussion Venues" removeInRFC="true">
49
+ <note title="About This Document" removeInRFC="true">
50
+ <% if (dn = ps.av[:docName]) &&
51
+ (dt = dn.rpartition('-')[0]) != ""
52
+ -%>
53
+ <t>
54
+ <% if latest = venue[:latest] -%>
55
+ The latest revision of this draft can be found at <eref target="<%=latest%>"/>.
56
+ <% end -%>
57
+ Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/<%=dt%>/"/>.
58
+ </t>
59
+ <% end -%>
50
60
  <% mail = venue[:mail] -%>
51
61
  <% homepage = venue[:home] -%>
52
62
  <% gtype = venue[:type] -%>
53
63
  <% if mail || homepage -%>
54
64
  <t>
55
65
  <% end -%>
56
- <% if mail -%>
57
- <% mail_local, mail_host = mail.split("@", 2) -%>
66
+ <% if mail && (mail_local, mail_host = mail.split("@", 2)) && mail_host -%>
58
67
  <% mail_subdomain, mail_domain = mail_host.split(".", 2) -%>
59
68
  <% group = venue[:group] || mail_local # XXX -%>
60
69
  <% arch = venue[:arch] || "https://mailarchive.ietf.org/arch/browse/#{mail_local}/" -%>
@@ -74,6 +83,7 @@
74
83
  <t>Source for this draft and an issue tracker can be found at
75
84
  <eref target="<%=repo%>"/>.</t>
76
85
  <% end -%>
86
+ <%= venue.ele("t=text", nil, nil, true) -%>
77
87
  </note>
78
88
  <% venue.warn_if_leftovers -%>
79
89
  <% end -%>
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.5.17'
3
+ s.version = '1.5.18'
4
4
  s.summary = "Kramdown extension for generating RFC 7749 XML."
5
5
  s.description = %{An RFC7749 (XML2RFC) generating backend for Thomas Leitner's
6
6
  "kramdown" markdown parser. Mostly useful for RFC writers.}
@@ -7,7 +7,9 @@ module KramdownRFC
7
7
  def initialize(y)
8
8
  raise "*** invalid parameter set #{y.inspect}" unless Hash === y
9
9
  @f = y
10
+ @av = {}
10
11
  end
12
+ attr :av
11
13
  def [](pn)
12
14
  @f.delete(pn.to_s)
13
15
  end
@@ -24,6 +26,7 @@ module KramdownRFC
24
26
  end
25
27
  def attr(pn)
26
28
  val, an = van(pn)
29
+ @av[an.intern] = val
27
30
  %{#{an}="#{escattr(val)}"} if val
28
31
  end
29
32
  def attrs(*pns)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-rfc2629
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.17
4
+ version: 1.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown