kramdown-rfc2629 1.7.7 → 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: d6a85efbf1f07ea2b7ea1bd765cf6e1b81ab1dfd3615b725ebc657593568fd35
4
- data.tar.gz: 27439b1db2adb2395561a41b6a34e1607f71d21c10968b5e52b2483b1b3d9cab
3
+ metadata.gz: c99a7ec32844a2fced30e2bfe3e2298e8aeedd25ee6a2121dbe9a78192c5ec20
4
+ data.tar.gz: 93120c8aea044967c819a98b25b653996bfc6e2336b5e5e7a8ec22a97912c55f
5
5
  SHA512:
6
- metadata.gz: 173a34ae9dcf04c4b64e5c7c2145bf9f5ac96e45fe305dff11762355f39e1d92cb2ab1101437e78b1333918454f056080900a0c30497565f8195621d3b31ce5d
7
- data.tar.gz: 804071697144e02f000bc9dfa74fc8492b9a41f4d42466d9b8b38ce613a8089f36f4edd09a391065382fa7f02e579eaec7db4812fe2df21800972c2228b7b07f
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.7'
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.}
@@ -579,6 +579,10 @@ end
579
579
  warn "*** v2 #{$options.v2.inspect} v3 #{$options.v3.inspect}" if $options.verbose
580
580
 
581
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
582
586
  if input[0] == "\uFEFF"
583
587
  warn "*** There is a leading byte order mark. Ignored."
584
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.7
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-03-02 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