asciidoctor-defmastership 1.1.0 → 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: 5a574088c4efd73e56f84596649ce647b0f38c3d64f36542329fbd0168871de2
4
- data.tar.gz: a8e5efb88da6f4207c49530a795f49bdbdeada308080b6b43c3e4ebcaf5637b1
3
+ metadata.gz: 3cc6ac9b315460a66068ff4ab700fc9859f6c3aa6459e242e1865b3410a7ea2f
4
+ data.tar.gz: 8a7e6f426be6247914ebd1aedd1abaa5504017b70118aef4462d13665efd534b
5
5
  SHA512:
6
- metadata.gz: 7831b216a022ae43ed67df33b279dc771a821137ce4a5cd51f3b6dc443be6fc07f0836b55f2f619445ae43530dde58637fb143e9ed7d4ae6e8b64b1b81f415ab
7
- data.tar.gz: 0f9ceb5bc4a32f406e427221f4b48a4835215b1d4986d19883d95281ba1b8577eae995222957377d81a0a44347d487725df38249815dddcc7cf848e92cfa50f5
6
+ metadata.gz: 007b489dc6700ca6fbb892dddd43360e7b05a9bb44735adc6d44e34f9311916b9c3a656bc3c51691ecc8fdfe5638ea7075bc81873485c9f1e6e16c733408bc6f
7
+ data.tar.gz: e06a47a0f0ed36601fc01d6b41d16f00ef49a4e2122c2d61abb535ee517390c5ee334efff351d4e9f1d6bf2cba2ac1907c6df8d7e5ff84de09c915fb7d9131b4
@@ -38,6 +38,6 @@ Gem::Specification.new do |spec|
38
38
  spec.require_paths = ['lib']
39
39
 
40
40
  spec.add_dependency('asciidoctor', '~> 2.0')
41
- spec.add_dependency('defmastership-core', '>= 1.1.0')
41
+ spec.add_dependency('defmastership-core', '>= 1.2.0')
42
42
  spec.add_dependency('ostruct', '~> 0.6')
43
43
  end
@@ -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.0'
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.0
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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.0
33
+ version: 1.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.0
40
+ version: 1.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ostruct
43
43
  requirement: !ruby/object:Gem::Requirement