kramdown-rfc2629 1.6.14 → 1.6.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/kramdown-rfc2629.erb +16 -7
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc2629.rb +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe0042bc8d08be6e5438fe67d3eb7a1e88b5745b5c3917fadd3d7cc7e468d16
|
4
|
+
data.tar.gz: 006c1631b7f36817aa79a837596627fa26260f7e85c6035a79ec88ea4f3d713d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a568b342b53f0365fb347351657d2cae406d1cb5679d9f958dc625a515638ce7e2eead0e8bebb570229ba4b3f0c1f0ab0bd2f703385adfe36126778531df4bca
|
7
|
+
data.tar.gz: fab486b0f814db7b4ba94190630a01e2f874e2987d74c2a593a78a4ab4e0ebfd3629bb730690c61f30b81ddd3b89b09324230458fda2a0865c2b5a2e1874adce
|
data/data/kramdown-rfc2629.erb
CHANGED
@@ -99,14 +99,23 @@
|
|
99
99
|
mail_local, mail_host = mail.split("@", 2)
|
100
100
|
end
|
101
101
|
if mail_host -%>
|
102
|
-
<%
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
102
|
+
<% default_links = {
|
103
|
+
"iab.org" => true,
|
104
|
+
"ietf.org" => true,
|
105
|
+
"irtf.org" => true,
|
106
|
+
}[mail_host]
|
107
|
+
mail_subdomain, mail_domain = mail_host.split(".", 2)
|
108
|
+
group = venue[:group] || mail_local # XXX
|
109
|
+
arch = venue[:arch] || default_links && "https://mailarchive.ietf.org/arch/browse/#{mail_local}/"
|
110
|
+
subscribe = venue[:subscribe] || default_links && "https://www.ietf.org/mailman/listinfo/#{mail_local}/"
|
111
|
+
GROUPS = {"ietf" => "Working ", "irtf" => "Research "}
|
112
|
+
gtype ||= "#{GROUPS[mail_subdomain]}Group" -%>
|
107
113
|
Discussion of this document takes place on the
|
108
|
-
<%=group%> <%=gtype%> mailing list (<eref target="mailto:<%=mail%>"/>)
|
109
|
-
which is archived at <eref target="<%=arch%>"
|
114
|
+
<%=group%> <%=gtype%> mailing list (<eref target="mailto:<%=mail%>"/>)<% if arch -%>,
|
115
|
+
which is archived at <eref target="<%=arch%>"/><% end -%>.
|
116
|
+
<% if subscribe -%>
|
117
|
+
Subscribe at <eref target="<%=subscribe%>"/>.
|
118
|
+
<% end -%>
|
110
119
|
<% end -%>
|
111
120
|
<% if homepage -%>
|
112
121
|
<%=gtype%> information can be found at <eref target="<%=homepage%>"/>.
|
data/kramdown-rfc2629.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'kramdown-rfc2629'
|
3
|
-
s.version = '1.6.
|
3
|
+
s.version = '1.6.17'
|
4
4
|
s.summary = "Kramdown extension for generating RFCXML (RFC 799x)."
|
5
5
|
s.description = %{An RFCXML (RFC 799x) generating backend for Thomas Leitner's
|
6
6
|
"kramdown" markdown parser. Mostly useful for RFC writers.}
|
data/lib/kramdown-rfc2629.rb
CHANGED
@@ -506,6 +506,7 @@ COLORS
|
|
506
506
|
elsif t == "protocol-aasvg"
|
507
507
|
result1, err, _s = Open3.capture3("#{DEFAULT_AASVG}#{svg_opt}", stdin_data: result);
|
508
508
|
dont_clean = true
|
509
|
+
dont_check = true
|
509
510
|
else
|
510
511
|
result1 = nil
|
511
512
|
end
|
@@ -515,6 +516,7 @@ COLORS
|
|
515
516
|
when "aasvg"
|
516
517
|
result1, err, _s = Open3.capture3("#{DEFAULT_AASVG}#{svg_opt}", stdin_data: result);
|
517
518
|
dont_clean = true
|
519
|
+
dont_check = true
|
518
520
|
when "ditaa" # XXX: This needs some form of option-setting
|
519
521
|
result1, err, _s = Open3.capture3("ditaa #{file.path} --svg -o -#{svg_opt}", stdin_data: result);
|
520
522
|
when "mscgen"
|
@@ -1107,7 +1109,7 @@ COLORS
|
|
1107
1109
|
"NIST" => "bibxml2",
|
1108
1110
|
"OASIS" => "bibxml2",
|
1109
1111
|
"PKCS" => "bibxml2",
|
1110
|
-
"DOI" => ["bibxml7", 86400, true, ->(fn, n){ [fn, [:DOI, n] ] }
|
1112
|
+
"DOI" => ["bibxml7", 86400, true, ->(fn, n){ ["computed-#{fn}", [:DOI, n] ] }, true # always_altproc
|
1111
1113
|
], # emulate old 24 h cache
|
1112
1114
|
"IANA" => ["bibxml8", 86400, true], # ditto
|
1113
1115
|
}
|
@@ -1141,14 +1143,16 @@ COLORS
|
|
1141
1143
|
anchor.gsub!('/', '_') # should take out all illegals
|
1142
1144
|
to_insert = ""
|
1143
1145
|
src.scan(/(W3C|3GPP|[A-Z-]+)[.]?([A-Za-z_0-9.\(\)\/\+-]+)/) do |t, n|
|
1146
|
+
never_altproc = n.sub!(/^[.]/, "")
|
1144
1147
|
fn = "reference.#{t}.#{n}.xml"
|
1145
|
-
sub, ttl, _can_anchor, altproc = XML_RESOURCE_ORG_MAP[t]
|
1148
|
+
sub, ttl, _can_anchor, altproc, always_altproc = XML_RESOURCE_ORG_MAP[t]
|
1146
1149
|
ttl ||= KRAMDOWN_REFCACHETTL # everything but RFCs might change a lot
|
1147
1150
|
puts "*** Huh: #{fn}" unless sub
|
1148
|
-
if altproc && !KRAMDOWN_USE_TOOLS_SERVER
|
1151
|
+
if altproc && !never_altproc && (!KRAMDOWN_USE_TOOLS_SERVER || always_altproc)
|
1149
1152
|
fn, url = altproc.call(fn, n)
|
1150
1153
|
else
|
1151
1154
|
url = "#{XML_RESOURCE_ORG_PREFIX}/#{sub}/#{fn}"
|
1155
|
+
fn = "alt-#{fn}" if never_altproc || KRAMDOWN_USE_TOOLS_SERVER
|
1152
1156
|
end
|
1153
1157
|
# if can_anchor # create anchor server-side for stand_alone: false
|
1154
1158
|
# url << "?anchor=#{anchor}"
|
@@ -1160,6 +1164,7 @@ COLORS
|
|
1160
1164
|
begin
|
1161
1165
|
d = REXML::Document.new(to_insert)
|
1162
1166
|
d.xml_decl.nowrite
|
1167
|
+
d.delete d.doctype
|
1163
1168
|
d.root.attributes["anchor"] = anchor
|
1164
1169
|
if t == "RFC" or t == "I-D"
|
1165
1170
|
if KRAMDOWN_NO_TARGETS
|
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.6.
|
4
|
+
version: 1.6.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|