asciidoctor-defmastership 1.0.6 → 1.0.7

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: f825b6fb724d99888fe587ad2dbe429a7f97c2290326290dcbaabaadff69e3f9
4
- data.tar.gz: 4e8f7f867972f71d64a2c9136c7ec8089dbf285136450b05bceb748c252495a4
3
+ metadata.gz: 32c34eada26d2c22399f1418c4eef3753832cff1363ff0d82ab1f2308af83ca4
4
+ data.tar.gz: 95e344b6e198af8ce03fa005a9545a8d256183966547cd5dacd3f2a4fef802ba
5
5
  SHA512:
6
- metadata.gz: 79733c6918d4388c0b29e04cdecbe86bb997feb247542a912da88cef9b7cf11bf6a617b140ad8f7ba55291e33eda64589c7f252f91f3c0e9aec1dccf8f67ca5d
7
- data.tar.gz: f427abf34766580362e79846e152a96365b44eb2de3ba2712d66fc80e3dff1c991a5c42268613d9e7cb3c9841b541dbb4d253769f5bc986af98f6efb881ad38a
6
+ metadata.gz: f860c3c2c9dcc1743495c8f806a9085a5be1ab836bd87f4282902423420157b96e3d0f2b5e61e3d70a95055a955c00e7ff619e1b95462d293f412d4701002d95
7
+ data.tar.gz: 9918bb1738b73827e6c5071effd3f44b91cc3ddaa607ad06ca2cdea3b25e42f9cd75d4300018f3e9dd1bf28362e3aacbd3251666cfe2a3d9b723f82b83c0e83b
@@ -110,7 +110,14 @@ module Asciidoctor
110
110
  end
111
111
  end
112
112
 
113
+ def show_ext_ref(matches)
114
+ @variables['show-ext-ref'] != 'disable' &&
115
+ @variables["show-#{matches[:refname]}-ext-ref"] != 'disable'
116
+ end
117
+
113
118
  def build_external_ref(_line, matches)
119
+ return [] unless show_ext_ref(matches)
120
+
114
121
  extrefs = matches[:extrefs].split(/\s*,\s*/)
115
122
  new_line = "[.external_reference]\#{eref-#{matches[:refname]}-prefix} "
116
123
  extref_line = extrefs.map { |ref| build_link(ref, matches) }
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Asciidoctor
5
5
  module DefMastership
6
- VERSION = '1.0.6'
6
+ VERSION = '1.0.7'
7
7
  public_constant :VERSION
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-defmastership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre