kramdown-rfc2629 1.7.6 → 1.7.8

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: fa027b12b5ef1dc11718e82a28bc2a126208b7480048a41a03eebfd75fd5f2d7
4
- data.tar.gz: fa96be9f490186b8634c52abfcf613e1b5f4b30e329b398879a93394bf0b92f7
3
+ metadata.gz: c99a7ec32844a2fced30e2bfe3e2298e8aeedd25ee6a2121dbe9a78192c5ec20
4
+ data.tar.gz: 93120c8aea044967c819a98b25b653996bfc6e2336b5e5e7a8ec22a97912c55f
5
5
  SHA512:
6
- metadata.gz: 2880e284c22e96e281498028f3e2339ff1f91e7326791c547851022505df9a169dbe47a76604b5fd67de5c3a3cfe180153c93f8b9798bae16764314301ec0ddf
7
- data.tar.gz: 65d2639fe7c971cf67ab27bd115b18c794a78f7021febd46527b6f61fd8c748f3c515cbd913c14565b650c7bf4c53b699405142a9b6fd04de2c7fd8e3a222c6a
6
+ metadata.gz: c665a92ccd06bfd50109368d23f403afbb520fe1bad419907cef87be7a035de77616a423ddcee8fadea525cb182cb05797f06cb50a78677c72039dc12074d24d
7
+ data.tar.gz: f6b7fbd510a50e88b48bae36be9447755ff970b04876e8ebfe0bdfbcdcb8a292abe24745f900f4c9445d8988e10af6585b8ca1dd6cdfc9701eeaafb3fc33fbb5
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.7.6'
3
+ s.version = '1.7.8'
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.}
@@ -70,7 +70,8 @@ end
70
70
  def boilerplate(key)
71
71
  ret = ''
72
72
  case key.downcase
73
- when /\Abcp14(info)?(\+)?(-tagged)?\z/i
73
+ when /\Abcp14(info)?(\+)?(-tagged)?(-bcp)?\z/i
74
+ # $1 $2 $3 $4
74
75
  if $1
75
76
  ret << <<RFC8174ise
76
77
  Although this document is not an IETF Standards Track publication, it
@@ -108,6 +109,13 @@ PLUS
108
109
  *[OPTIONAL]: <bcp14>
109
110
  TAGGED
110
111
  end
112
+ if $4 # experimental; idnits complains:
113
+ # ** The document seems to lack a both a reference to RFC 2119 and the
114
+ # recommended RFC 2119 boilerplate, even if it appears to use RFC 2119
115
+ # keywords -- however, there's a paragraph with a matching beginning.
116
+ # Boilerplate error?
117
+ ret.sub!("{{!RFC2119}} {{!RFC8174}}", "{{!BCP14}}")
118
+ end
111
119
  ret
112
120
  when /\Arfc\s*7942(info)?\z/i
113
121
  if $1
@@ -571,6 +579,10 @@ end
571
579
  warn "*** v2 #{$options.v2.inspect} v3 #{$options.v3.inspect}" if $options.verbose
572
580
 
573
581
  input = ARGF.read
582
+ input.scrub! do |c|
583
+ warn "*** replaced invalid UTF-8 byte sequence #{c.inspect} by U+FFFD REPLACEMENT CHARACTER"
584
+ 0xFFFD.chr(Encoding::UTF_8)
585
+ end
574
586
  if input[0] == "\uFEFF"
575
587
  warn "*** There is a leading byte order mark. Ignored."
576
588
  input[0..0] = ''
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.6
4
+ version: 1.7.8
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-02-23 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown