kramdown-rfc2629 1.2.13 → 1.2.14

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: be35f4afcedf925f59890b0d87a82e1f14a1d05acdeb84cd4e4b342da645f4b8
4
- data.tar.gz: 0f99c7f0ba96bdf069cf9da7cf31f1a07dd23ef74ac514428fdcd504644e047b
3
+ metadata.gz: 9b934f2d9f03ae4a49d7e8418204e7f49ae58823e7d9b8296a96542886d51bf4
4
+ data.tar.gz: ae5b986a513758cfd4e18c8e9db69defac54414a5a463c89fc307dbadb3bc598
5
5
  SHA512:
6
- metadata.gz: 8778930f6d372d528d194d5f08c7b462bebec343bb05dec255e8478e135b85c54ed8a43c0e7778a056e6e920d688b36f58fdbe09f3945d6034b4d19bf9c20491
7
- data.tar.gz: 459f83978d94ddfa5e135abb2b07d507b8ca8d822b45ec6a4b9abf1108d3a3ead4a9e686fda2fe7fffe290be023338672f6c919aaa6d1e7a882c31a373a491c9
6
+ metadata.gz: 5aaa104840d4721edcca4552d554a07475fe2b962de2434c135505e4565d82b5ec15f55f79d7dbf589282400ed907639cc70ed43e9d2444e52221096b4e36993
7
+ data.tar.gz: 266256e390d2b267f8c05317543728fb7f4956a51303b14a4f74d3e08c0dccb508a17f126f218a2bbe2e85f1ad910adbfeafe6158fbd3dd01aac9be8b1161dbf
data/README.md CHANGED
@@ -521,7 +521,16 @@ using that RFC, it is 80 % there. It may be possible to automate the
521
521
  remaining 20 % some more, but that hasn't been done.
522
522
 
523
523
  If you have XML, there is an experimental upconverter that does 99 %
524
- of the work. Please contact the author if you want to try it.
524
+ of the work. Please [contact the
525
+ author](mailto:cabo@tzi.org?subject=Markdown for RFCXML) if you want
526
+ to try it.
527
+
528
+ Actually, if the XML was generated by kramdown-rfc2629, you can simply
529
+ extract the input markdown from that XML file (but will of course lose
530
+ any edits that have been made to the XML file after generation):
531
+
532
+ kramdown-rfc-extract-markdown myfile.xml >myfile.md
533
+
525
534
 
526
535
  # Tools
527
536
 
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.2.13'
3
+ s.version = '1.2.14'
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.}
@@ -425,9 +425,9 @@ module Kramdown
425
425
  fn = "#{REFCACHEDIR}/#{cachefile}"
426
426
  Dir.mkdir(REFCACHEDIR) unless Dir.exists?(REFCACHEDIR)
427
427
  f = File.stat(fn) rescue nil unless KRAMDOWN_REFCACHE_REFETCH
428
- if !KRAMDOWN_OFFLINE && (!f || tn - f.ctime >= tvalid)
428
+ if !KRAMDOWN_OFFLINE && (!f || tn - f.mtime >= tvalid)
429
429
  if f
430
- message = "renewing (stale by #{"%.1f" % ((tn-f.ctime)/86400)} days)"
430
+ message = "renewing (stale by #{"%.1f" % ((tn-f.mtime)/86400)} days)"
431
431
  fetch_timeout = 10 # seconds, give up quickly if just renewing
432
432
  else
433
433
  message = "fetching"
@@ -452,7 +452,8 @@ module Kramdown
452
452
  if ENV["KRAMDOWN_DONT_VERIFY_HTTPS"]
453
453
  options[:ssl_verify_mode] = OpenSSL::SSL::VERIFY_NONE
454
454
  end # workaround for OpenSSL on Windows...
455
- open(url, options) do |uf|
455
+ # URI.open(url, **options) do |uf| # not portable to older versions
456
+ OpenURI.open_uri(url, **options) do |uf|
456
457
  s = uf.read
457
458
  if uf.status[0] != "200"
458
459
  warn "*** Status code #{status} while fetching #{url}"
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.2.13
4
+ version: 1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-01 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.0.6
85
+ rubygems_version: 3.1.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Kramdown extension for generating RFC 7749 XML.