kramdown-rfc2629 1.6.18 → 1.6.20

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: be0d0c90e5390fe73001e9f827df69ee40a194df93757f8e74dbd8b104ffd600
4
- data.tar.gz: 6c66c04385cf8ade11ba97e9026f75f6ebf76b499f23f52b315544df2c95783e
3
+ metadata.gz: a373ab53f39fd473fa7cb1c367be9ba006d9826f6da9589237d25dacece71abb
4
+ data.tar.gz: 3e3200ab44d58a086ff7548721612deeb8655253a49ff080211631cd5fbfe61e
5
5
  SHA512:
6
- metadata.gz: 52eb346902070069dda10fadd79047960c9da37c879c52087a2942d6d970bf969a6edb62fdb05ee7f22de741a2d3553a06c8f7e3e4b5d4070144a763fb0af2a3
7
- data.tar.gz: c38aa7b8d52bea77e63bea7303d570b395ba7f1a7c1a46812ff504cdaba778230695842e5b8d32fcb7845dda07f11b418e0f0f709bf13ab6334ec1940284abaf
6
+ metadata.gz: f4325baddb160656c921be548f9d594d9c2079bbd03dd06036e31b9f4cf1e7f26df13de7037272fea79f4a9532b3b62cf58fccf85fefb2f5da05942d5ffbaca1
7
+ data.tar.gz: f6454debd2535312ef41d24225f315810f103013b9884cecd53a73d13ae9031d7fe13778e7a34a2963208d9904d4167a86774380e6ba7cd41d8a172275b9265f
@@ -80,9 +80,9 @@ active_names.each do |name|
80
80
  namepart = $1
81
81
  version = $2
82
82
  name0 = "reference.I-D.#{namepart}.xml"
83
- noisy(name0) if File.exists?(name0)
83
+ noisy(name0) if File.exist?(name0)
84
84
  name1 = "reference.I-D.draft-#{namepart}-#{version}.xml"
85
- if File.exists?(name1)
85
+ if File.exist?(name1)
86
86
  noisy(name1)
87
87
  FileUtils.touch(name0) # because name1 already exists, we believe name0 is fresh
88
88
  else
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.6.18'
3
+ s.version = '1.6.20'
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.}
@@ -1124,6 +1124,7 @@ COLORS
1124
1124
  KRAMDOWN_REFCACHETTL = (e = ENV["KRAMDOWN_REFCACHETTL"]) ? e.to_i : 3600
1125
1125
 
1126
1126
  KRAMDOWN_NO_TARGETS = ENV['KRAMDOWN_NO_TARGETS']
1127
+ KRAMDOWN_KEEP_TARGETS = ENV['KRAMDOWN_KEEP_TARGETS']
1127
1128
 
1128
1129
  def convert_img(el, indent, opts) # misuse the tag!
1129
1130
  if a = el.attr
@@ -1167,7 +1168,7 @@ COLORS
1167
1168
  d.delete d.doctype
1168
1169
  d.root.attributes["anchor"] = anchor
1169
1170
  if t == "RFC" or t == "I-D"
1170
- if KRAMDOWN_NO_TARGETS
1171
+ if KRAMDOWN_NO_TARGETS || !KRAMDOWN_KEEP_TARGETS
1171
1172
  d.root.attributes["target"] = nil
1172
1173
  REXML::XPath.each(d.root, "/reference/format") { |x|
1173
1174
  d.root.delete_element(x)
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.6.18
4
+ version: 1.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown