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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/kdrfc +11 -1
  3. data/kramdown-rfc2629.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14ca4896e8d224d830d24a28077c3fda9862692f9dd3c2b8e8fa97c46da3e9ff
4
- data.tar.gz: 2cc4e6ee1e9103184ea8a36fc0b7402db7fc5b31ca29ae07b2b677371ab01db3
3
+ metadata.gz: e75bef07cedf1af17c6bfc0f6c688171af4a5deeb5f473215597617f7c98888f
4
+ data.tar.gz: a8d16417fe3a37a092375fba5234857e61b15350eee5f99e9efe25aeeaed8165
5
5
  SHA512:
6
- metadata.gz: cdf62e10b98e044a38f99159ee2c0e71432dfb3f2ba3859a232734fba202179e2fe172ad810dcdaf167a670cc181b5a297065443461c6c707b4a6e62722d227a
7
- data.tar.gz: 7aa535e17b40aa52288004e7b4bac74753ace928a2e172e2ff8115348bb4955d4350240a794c3443435d8be507988128edbf9d23633de83bd89f4118c68df15b
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
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.3.26'
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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-rfc2629
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.26
4
+ version: 1.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann