kramdown-rfc2629 1.7.5 → 1.7.6
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 +4 -4
- data/bin/kdrfc +7 -1
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc/command.rb +7 -0
- 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: fa027b12b5ef1dc11718e82a28bc2a126208b7480048a41a03eebfd75fd5f2d7
|
|
4
|
+
data.tar.gz: fa96be9f490186b8634c52abfcf613e1b5f4b30e329b398879a93394bf0b92f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2880e284c22e96e281498028f3e2339ff1f91e7326791c547851022505df9a169dbe47a76604b5fd67de5c3a3cfe180153c93f8b9798bae16764314301ec0ddf
|
|
7
|
+
data.tar.gz: 65d2639fe7c971cf67ab27bd115b18c794a78f7021febd46527b6f61fd8c748f3c515cbd913c14565b650c7bf4c53b699405142a9b6fd04de2c7fd8e3a222c6a
|
data/bin/kdrfc
CHANGED
|
@@ -45,15 +45,21 @@ BANNER
|
|
|
45
45
|
opts.on("-h", "--[no-]html", "Convert to html as well") do |v|
|
|
46
46
|
kdrfc.options.html = v
|
|
47
47
|
end
|
|
48
|
-
opts.on("-t", "--[no-]txt", "Convert to txt as well") do |v|
|
|
48
|
+
opts.on("-t", "--[no-]txt", "Convert to txt as well (default)") do |v|
|
|
49
49
|
kdrfc.options.txt = v
|
|
50
50
|
end
|
|
51
|
+
opts.on("-n", "Do not convert to txt (--no-txt)") do |v|
|
|
52
|
+
kdrfc.options.txt = !v
|
|
53
|
+
end
|
|
51
54
|
opts.on("-3", "--[no-]v3", "Use RFCXML v3 processing rules") do |v|
|
|
52
55
|
kdrfc.options.v3 = v
|
|
53
56
|
end
|
|
54
57
|
opts.on("-2", "--[no-]v2", "Use RFCXML v2 processing rules") do |v|
|
|
55
58
|
kdrfc.options.v2 = v
|
|
56
59
|
end
|
|
60
|
+
opts.on("-dNN", "--docrev=NN", /[0-9][0-9]/, "Replace -latest by -NN in docname") do |v|
|
|
61
|
+
ENV["KRAMDOWN_RFC_DOCREV"] = v
|
|
62
|
+
end
|
|
57
63
|
end
|
|
58
64
|
op.parse!
|
|
59
65
|
|
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.7.
|
|
3
|
+
s.version = '1.7.6'
|
|
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-rfc/command.rb
CHANGED
|
@@ -288,6 +288,13 @@ def xml_from_sections(input)
|
|
|
288
288
|
end
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
+
if r = ENV["KRAMDOWN_RFC_DOCREV"]
|
|
292
|
+
warn "** building document revision -#{r}"
|
|
293
|
+
unless n = ps.has(:docname) and n.sub!(/-latest\z/, "-#{r}")
|
|
294
|
+
warn "** -d#{r}: docname #{n.inspect} doesn't have a '-latest' suffix"
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
291
298
|
if o = ps[:'autolink-iref-cleanup']
|
|
292
299
|
$options.autolink_iref_cleanup = o
|
|
293
300
|
end
|
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.7.
|
|
4
|
+
version: 1.7.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carsten Bormann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: kramdown
|