kramdown-rfc2629 1.7.18 → 1.7.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2293add21de7f2adbd52f281c96186e5f5b5abc6be095cc5416eb2a8edb2a482
4
- data.tar.gz: c4be0e44b23064c5462e7b9fc677472ff7a87be8f797cef028748cafde8f2621
3
+ metadata.gz: f9d9adbae37a16a29017726ef2040d260eb1a2cce9d00ff807828c84275d87eb
4
+ data.tar.gz: 6018923d328495fb77b78886e467d9c24267bc563d37c71dd527c11c7ee1e709
5
5
  SHA512:
6
- metadata.gz: d8acb9cfb46cc5fbfa2413bbd86bcde74998a99f21481cb910173205564d973a0329bd33574508df0e1f6317826c9da76672ae70c8b990525b0bb2186af79338
7
- data.tar.gz: 0ee95eeaf8a6074923e41d47836b702e332f6b6719b78ff4d1cdd348cc1887c2229c93060a4f1456630a0b7960bb330fd0b0d1fb86e89b00045ed34d33f5914f
6
+ metadata.gz: 5f9e4452395530cd215d5fa3f1c701cd393091424e25e42b564f26c55eb2e6d7601e5da7e87dee2cc6587041b960a76c0aa449277b4ac323b4dc4238a595d3af
7
+ data.tar.gz: d7e408eca15365eb9b8c653dcd3f3dc78a040e6dc599a8e959e7e8ac59e0c630b196d716511ed345547aa5cc1707a1bf2af6a972d83dbeae3fa6ebbebc3ab8b1
data/README.md CHANGED
@@ -667,7 +667,7 @@ made it possible to license kramdown-rfc under the same license.
667
667
  [RFC 2629]: https://www.rfc-editor.org/rfc/rfc2629.html
668
668
  [RFC 7749]: https://www.rfc-editor.org/rfc/rfc7749.html
669
669
  [RFC 7991]: https://www.rfc-editor.org/rfc/rfc7991.html
670
- [v3]: https://xml2rfc.tools.ietf.org/xml2rfc-doc.html
670
+ [v3]: https://authors.ietf.org/rfcxml-vocabulary
671
671
  [markdown]: http://en.wikipedia.org/wiki/Markdown
672
672
  [IETF]: http://www.ietf.org
673
673
  [Miek Gieben]: http://www.miek.nl/
@@ -225,6 +225,7 @@
225
225
  <%= sh -%>
226
226
  <% if $options.v3 && consec
227
227
  ps.arr("contributor") do |au|
228
+ if Hash === au
228
229
  aups = KramdownRFC::authorps_from_hash(au)
229
230
  -%>
230
231
  <%= KramdownRFC::person_element_from_aups("contact", aups) -%>
@@ -237,7 +238,17 @@
237
238
  CONTRIBUTION
238
239
  end -%>
239
240
  <% aups.warn_if_leftovers -%>
241
+ <% else -%>
242
+ <%= <<TEXT
243
+ {:/nomarkdown}
244
+
245
+ #{au}
246
+
247
+ {::nomarkdown}
248
+ TEXT
249
+ -%>
240
250
  <% end -%>
251
+ <% end -%>
241
252
  <% end -%>
242
253
  </section>
243
254
  <% end -%>
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.7.18'
3
+ s.version = '1.7.19'
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.}
@@ -621,11 +621,23 @@ COLORS
621
621
  outpath = file.path + ".svg"
622
622
  result1 = File.read(outpath) rescue '' # don't die before providing error message
623
623
  File.unlink(outpath) rescue nil # ditto
624
- when "plantuml", "plantuml-utxt"
624
+ when "plantuml", "plantuml-utxt", "plantuml-ascii-art"
625
+ if t == "plantuml-ascii-art"
626
+ result, ascii_art = result.split(/^~{3,} ascii-art\n/, 2)
627
+ unless ascii_art
628
+ warn "*** Didn't find ascii-art in plantuml-ascii-art #{result.inspect}"
629
+ ascii_art = result.to_s
630
+ end
631
+ end
625
632
  plantuml = "@startuml\n#{result}\n@enduml"
626
633
  result1, err, _s = Open3.capture3("plantuml -pipe -tsvg#{svg_opt}", stdin_data: plantuml);
627
- result, err1, _s = Open3.capture3("plantuml -pipe -tutxt#{txt_opt}", stdin_data: plantuml) if t == "plantuml-utxt"
628
- err << err1.to_s
634
+ case t
635
+ when "plantuml-utxt"
636
+ result, err1, _s = Open3.capture3("plantuml -pipe -tutxt#{txt_opt}", stdin_data: plantuml)
637
+ err << err1.to_s
638
+ when "plantuml-ascii-art"
639
+ result = ascii_art
640
+ end
629
641
  when "railroad", "railroad-utf8"
630
642
  result1, err1, _s = Open3.capture3("kgt -l abnf -e svg#{svg_opt}", stdin_data: result);
631
643
  result1 = svg_clean_kgt(result1); dont_clean = true
@@ -719,7 +731,7 @@ COLORS
719
731
  case t
720
732
  when "aasvg", "ditaa", "goat",
721
733
  "math", "math-asciitex", "mermaid", "mscgen",
722
- "plantuml", "plantuml-utxt",
734
+ "plantuml", "plantuml-utxt", "plantuml-ascii-art",
723
735
  "protocol", "protocol-aasvg", "protocol-goat",
724
736
  "railroad", "railroad-utf8"
725
737
  if gi
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.18
4
+ version: 1.7.19
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-07-16 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.5.11
225
+ rubygems_version: 3.5.14
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: Kramdown extension for generating RFCXML (RFC 799x).