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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc6ac9b315460a66068ff4ab700fc9859f6c3aa6459e242e1865b3410a7ea2f
|
4
|
+
data.tar.gz: 8a7e6f426be6247914ebd1aedd1abaa5504017b70118aef4462d13665efd534b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-#{
|
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
|
|
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.
|
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-
|
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.
|
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.
|
40
|
+
version: 1.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ostruct
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|