kramdown-rfc2629 1.5.11 → 1.5.12

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: b7bd20857db1f9901f6d430b02e257edb1190309b715abe1c0e914cac126a06c
4
- data.tar.gz: 57d1fe042574bc981df911c4043a9dbb96c26e970a35693601911f564c974f3f
3
+ metadata.gz: 7bb5b3f39e014d065b0dd2b72bd851804856c97610b1e24f863bd4c7c48a5c71
4
+ data.tar.gz: '09f66a0f2557a18c023d0d991d009a5fe48568a7fd4c20a39540d111d4610c02'
5
5
  SHA512:
6
- metadata.gz: bc64c6f45a3c3a0b30a9514c10f33a383d95f3ef7ac8e640f62bee7b6265fb83a8b76bf87d9dac03e84e2c07305af2f85985069e64db30de68760b41b9dbe459
7
- data.tar.gz: f9fb4f647903103a05d3c0b73592fc73e4eea8e489018a0105e9eb8e4aac332d82a2a9e89df660e7e5fbdf1908d5014dc6f20915668ec103ddb6fdf969a5c9e4
6
+ metadata.gz: 8a18e3db3281a30d45d60cf2f7e82f1addece4ff7867c70db1bfa104cbb015d416475659d677525ac50cc99ee83f46c874fddaba1bc04aa5109752bc7de56a6d
7
+ data.tar.gz: f3f0e0da73244c8c78cdf1148b5036e412dbb95bd0e6d743b0d262bb5d52a2e595ef982433f527dd0ecabba2e75a544da0c17990943382fd67c21fda140adacc
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.5.11'
3
+ s.version = '1.5.12'
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.}
@@ -51,10 +51,6 @@ module KramdownRFC
51
51
  # -- only works for people with exactly one last name and uncomplicated first names
52
52
  if n = aups.rest["name"]
53
53
  n = n.split
54
- if s = aups.rest["surname"]
55
- s = s.split
56
- # XXX remove s from n; use n[0..-2] otherwise.
57
- end
58
54
  aups.rest["initials"] ||= n[0..-2].map(&:chr).join('.') << '.'
59
55
  aups.rest["surname"] ||= n[-1]
60
56
  end
@@ -455,7 +455,7 @@ COLORS
455
455
  dont_clean = false
456
456
  dont_check = false
457
457
  case t
458
- when "protocol", "protocol-goat"
458
+ when "protocol", "protocol-goat", "protocol-aasvg"
459
459
  cmdparm = result.lines.map(&:strip).select {|x| x != ''}.join(',')
460
460
  result, err, _s = Open3.capture3("protocol #{Shellwords.escape(cmdparm)}", stdin_data: '')
461
461
  if t == "protocol-goat"
@@ -465,12 +465,18 @@ COLORS
465
465
  file.close
466
466
  result1, err, _s = Open3.capture3("goat #{file.path}", stdin_data: result);
467
467
  dont_clean = true
468
+ elsif t == "protocol-aasvg"
469
+ result1, err, _s = Open3.capture3("aasvg", stdin_data: result);
470
+ dont_clean = true
468
471
  else
469
472
  result1 = nil
470
473
  end
471
474
  when "goat"
472
475
  result1, err, _s = Open3.capture3("goat #{file.path}", stdin_data: result);
473
476
  dont_clean = true
477
+ when "aasvg"
478
+ result1, err, _s = Open3.capture3("aasvg", stdin_data: result);
479
+ dont_clean = true
474
480
  when "ditaa" # XXX: This needs some form of option-setting
475
481
  result1, err, _s = Open3.capture3("ditaa #{file.path} --svg -o -", stdin_data: result);
476
482
  when "mscgen"
@@ -562,9 +568,11 @@ COLORS
562
568
  end
563
569
  end
564
570
  case t
565
- when "goat", "ditaa", "mscgen", "plantuml", "plantuml-utxt",
566
- "railroad", "railroad-utf8", "mermaid", "protocol", "protocol-goat",
567
- "math"
571
+ when "aasvg", "ditaa", "goat",
572
+ "math", "mermaid", "mscgen",
573
+ "plantuml", "plantuml-utxt",
574
+ "protocol", "protocol-aasvg", "protocol-goat",
575
+ "railroad", "railroad-utf8"
568
576
  if gi
569
577
  warn "*** Can't set GI #{gi} for composite SVG artset"
570
578
  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.5.11
4
+ version: 1.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown