kramdown-rfc2629 1.3.26 → 1.3.27
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 +11 -1
- data/kramdown-rfc2629.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e75bef07cedf1af17c6bfc0f6c688171af4a5deeb5f473215597617f7c98888f
|
|
4
|
+
data.tar.gz: a8d16417fe3a37a092375fba5234857e61b15350eee5f99e9efe25aeeaed8165
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc5c770234e58c35c658de4ca7596d0d8ab0d3ea37bb9569e0689086909ba1c45ac0e4a68f39a0839a85abd1b4e55ef18c0b651f36954276be1686aabc501469
|
|
7
|
+
data.tar.gz: c3e226f620e093229c30549463dfa42eb99aeeb56bcd55022c0b7265a2531b5c469299f94010fbbe5de585787f08328a8c9991c1dcfebaba5c8552c97a192daa
|
data/bin/kdrfc
CHANGED
|
@@ -24,6 +24,12 @@ def process_mkd(input, output)
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
def run_idnits(txt_fn)
|
|
28
|
+
unless system("idnits", txt_fn)
|
|
29
|
+
warn "*** problem #$? running idnits"
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
27
33
|
def process_xml(*args)
|
|
28
34
|
if $options.remote
|
|
29
35
|
process_xml_remotely(*args)
|
|
@@ -124,6 +130,9 @@ BANNER
|
|
|
124
130
|
opts.on("-c", "--[no-]convert", "Convert xml to v3 xml") do |v|
|
|
125
131
|
$options.v2v3 = v
|
|
126
132
|
end
|
|
133
|
+
opts.on("-i", "--[no-]idnits", "Run idnits on the resulting text") do |v|
|
|
134
|
+
$options.idnits = v
|
|
135
|
+
end
|
|
127
136
|
opts.on("-h", "--[no-]html", "Convert to html as well") do |v|
|
|
128
137
|
$options.html = v
|
|
129
138
|
end
|
|
@@ -139,8 +148,9 @@ op.parse!
|
|
|
139
148
|
def process_the_xml(fn, base)
|
|
140
149
|
process_xml(fn, "#{base}.prepped.xml", "--preptool") if $options.prep
|
|
141
150
|
process_xml(fn, "#{base}.v2v3.xml", "--v2v3") if $options.v2v3
|
|
142
|
-
process_xml(fn, "#{base}.txt") if $options.txt
|
|
151
|
+
process_xml(fn, "#{base}.txt") if $options.txt || $options.idnits
|
|
143
152
|
process_xml(fn, "#{base}.html", "--html") if $options.html
|
|
153
|
+
run_idnits("#{base}.txt") if $options.idnits
|
|
144
154
|
end
|
|
145
155
|
|
|
146
156
|
case ARGV.size
|
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.3.
|
|
3
|
+
s.version = '1.3.27'
|
|
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.}
|