kramdown-rfc2629 1.7.15 → 1.7.17

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: 5ece90445d0767338a8196d8168974776adeaa8823c9030c7138e0f3ce96b39b
4
- data.tar.gz: 29ed6223102eb578ce7b156d7e625e4195f08deb6c86275a8f2cac84a54f588e
3
+ metadata.gz: 52b682df54c2649c4ef7f2d2e08652c3709866207eab40c6fd40d667b4a00693
4
+ data.tar.gz: dba5488edbd5881fa69f5bca0b98db2347500fc34aa2fcdb33d71ba881f9596c
5
5
  SHA512:
6
- metadata.gz: 3991c909c6d0d4cb3960a6102102fd729507343f172b4f8d5fe1db366dbd993d6758eeba0c0c8c0136728f78050f8a1ae9a6d92cb0f2f3063454af962b6b8576
7
- data.tar.gz: 7195608a123184256d77af053e1a8c69631c555e6fb4bf1a0eb6c04cb62b6569d6aa17fd6e23b310f29a1e5eee01677d09154b176a82df7d4d0db7100e73864b
6
+ metadata.gz: 9d4215bd5369fa73c6618101ae5c5e242ad3a1c6b6a586a588a81d8a31441efda575b3e1135be88c5204e7f81b744b744346086ea06dfb8b61b9a7eaf193c427
7
+ data.tar.gz: db9621882c176186a9d407c38a0d573e849de7f6eac7483a7a666c788b9a14b3662faedb48a43796caad7a50b9b65c0f48cb4d523dae1e88c1fa940c582fc1d7
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.7.15'
3
+ s.version = '1.7.17'
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.}
@@ -14,7 +14,6 @@ spec = Gem::Specification.new do |s|
14
14
  s.add_dependency('net-http-persistent', '~> 4.0')
15
15
  s.add_dependency('differ', '~> 0.1')
16
16
  s.add_dependency('base64', '>= 0.1')
17
- s.add_dependency('rexml', '<= 3.2.6') # emergency fix; newer REXML is no longer pure ruby (requires strscan)
18
17
  s.files = Dir['lib/**/*.rb'] + %w(README.md LICENSE kramdown-rfc2629.gemspec bin/kdrfc bin/kramdown-rfc bin/kramdown-rfc2629 bin/doilit bin/echars bin/kramdown-rfc-extract-markdown bin/kramdown-rfc-extract-sourcecode bin/kramdown-rfc-lsr data/kramdown-rfc2629.erb data/encoding-fallbacks.txt data/math.json bin/kramdown-rfc-cache-subseries-bibxml bin/kramdown-rfc-autolink-iref-cleanup bin/de-gfm bin/kramdown-rfc-clean-svg-ids)
19
18
  s.require_path = 'lib'
20
19
  s.executables = ['kramdown-rfc', 'kramdown-rfc2629', 'doilit', 'echars',
@@ -459,6 +459,24 @@ def xml_from_sections(input)
459
459
  sechash[sn.to_s] << %{&#{bts};\n} # ???
460
460
  end
461
461
  else
462
+ if v && Integer === v
463
+ case href
464
+ when /\AErr(.*)/
465
+ epno = $1
466
+ rfcno = v.to_s
467
+ v = {
468
+ "target" => "https://www.rfc-editor.org/errata/eid#{epno}",
469
+ "title" => "RFC Errata Report #{epno}",
470
+ "quote-title" => false,
471
+ "seriesinfo" => { "RFC" => rfcno },
472
+ "date" => false
473
+ }
474
+ else
475
+ # superfluous -- would be caught by next "unless"
476
+ warn "*** don't know how to expand numeric ref #{k}"
477
+ next
478
+ end
479
+ end
462
480
  unless v && Hash === v
463
481
  warn "*** don't know how to expand ref #{k}"
464
482
  next
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.15
4
+ version: 1.7.17
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-06-07 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -150,20 +150,6 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.1'
153
- - !ruby/object:Gem::Dependency
154
- name: rexml
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "<="
158
- - !ruby/object:Gem::Version
159
- version: 3.2.6
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "<="
165
- - !ruby/object:Gem::Version
166
- version: 3.2.6
167
153
  description: |-
168
154
  An RFCXML (RFC 799x) generating backend for Thomas Leitner's
169
155
  "kramdown" markdown parser. Mostly useful for RFC writers.