asciidoctor-defmastership 1.1.1 → 1.1.2

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: '0093ece719f43a0ffb350e2b5e76072a2e3d964f176dc94fef8bf4ede6931409'
4
- data.tar.gz: 32c7fef0e23be93c1ee75b3cf0a38ddbb4e1f55750c4bcff51b820a2dbcf1b57
3
+ metadata.gz: 3cc6ac9b315460a66068ff4ab700fc9859f6c3aa6459e242e1865b3410a7ea2f
4
+ data.tar.gz: 8a7e6f426be6247914ebd1aedd1abaa5504017b70118aef4462d13665efd534b
5
5
  SHA512:
6
- metadata.gz: 9fddf00c32b5c86a5b5fc4b38d3d6ad171c44608b526f4b940fba03f627841ecc9a722ca301ce9385da8d21506f8c14ae91d5183cac05dc6beede691613347cb
7
- data.tar.gz: a988eaeac8f79505cd06e6ac5ca7bff4bf1f799d3503c2da9eedc76a4648fb1f3fbba690caa8ffadab100f0c47516fac2a2f7d0157f11bf5d765743d7d1ecf9b
6
+ metadata.gz: 007b489dc6700ca6fbb892dddd43360e7b05a9bb44735adc6d44e34f9311916b9c3a656bc3c51691ecc8fdfe5638ea7075bc81873485c9f1e6e16c733408bc6f
7
+ data.tar.gz: e06a47a0f0ed36601fc01d6b41d16f00ef49a4e2122c2d61abb535ee517390c5ee334efff351d4e9f1d6bf2cba2ac1907c6df8d7e5ff84de09c915fb7d9131b4
@@ -127,9 +127,11 @@ module Asciidoctor
127
127
  # @return [Array<String>] the lines to replace the original line
128
128
  # This method smells of :reek:UtilityFunction
129
129
  def attribute_setting(_line, match)
130
+ attr_name = match[:attr]
130
131
  [
131
132
  '[.attribute]',
132
- "{attr-#{match[:attr]}-prefix} #{match[:value]}."
133
+ "[.attribute_prefix.attribute_#{attr_name}_prefix]\#{attr-#{attr_name}-prefix}# " \
134
+ "[.attribute_value.attribute_#{attr_name}_value]##{match[:value]}#."
133
135
  ]
134
136
  end
135
137
 
@@ -5,7 +5,7 @@ module Asciidoctor
5
5
  # main application module
6
6
  module Defmastership
7
7
  # [String] Gem version
8
- VERSION = '1.1.1'
8
+ VERSION = '1.1.2'
9
9
  public_constant :VERSION
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-defmastership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-16 00:00:00.000000000 Z
11
+ date: 2024-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor