asciidoctor-defmastership 1.0.3 → 1.0.4
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: e01614f789a5daeb57b910a08cca44b515cf6cb2e032799db68f1ec87c40bd52
|
4
|
+
data.tar.gz: 484ef9ef4ce695aaa51caf7fe47c980b0fe6c4e0747d96c21eba5e4d26afe50c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d55e4a8498e5489b1c4054393b47a7f95497c651e192d117e086470e65c967bbc16ebabdf263c946e1a17b19aa7ac8874c196bfe67cd713d2ff043694af501
|
7
|
+
data.tar.gz: 78ecf304e7e675b0c0801f6cb9cb1d51b5915fc3a15e0bdfa24a0f916f1c219977504e1ebb1c0be5a2b919da487b655051857008c74b655e94ae3c5651495c93
|
@@ -36,10 +36,10 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency('aruba')
|
37
37
|
spec.add_development_dependency('rake')
|
38
38
|
spec.add_development_dependency('rspec')
|
39
|
-
spec.add_development_dependency('rubocop', '1.
|
39
|
+
spec.add_development_dependency('rubocop', '1.11')
|
40
40
|
spec.add_development_dependency('rubocop-rake', '~> 0.5')
|
41
41
|
spec.add_development_dependency('rubocop-rspec', '~> 2.0')
|
42
42
|
|
43
43
|
spec.add_dependency('asciidoctor', '~> 2.0')
|
44
|
-
spec.add_dependency('defmastership', '>= 1.0.
|
44
|
+
spec.add_dependency('defmastership', '>= 1.0.8', '< 2.0')
|
45
45
|
end
|
@@ -91,8 +91,9 @@ module Asciidoctor
|
|
91
91
|
def build_definition(_line, matches)
|
92
92
|
definition_lines = []
|
93
93
|
explicit_checksum_str = " [.checksum]\#(#{matches[:explicit_checksum]})\#" if matches[:explicit_checksum]
|
94
|
+
explicit_version_str = " [.version]\#(#{matches[:explicit_version]})\#" if matches[:explicit_version]
|
94
95
|
labels_str = " #{labels_strings(matches[:labels]).join(' ')}" if matches[:labels]
|
95
|
-
definition_lines << ".#{matches[:reference]}#{explicit_checksum_str}#{labels_str}"
|
96
|
+
definition_lines << ".#{matches[:reference]}#{explicit_version_str}#{explicit_checksum_str}#{labels_str}"
|
96
97
|
definition_lines <<
|
97
98
|
"[\##{matches[:reference]}.define.#{matches[:type]}]"
|
98
99
|
end
|
@@ -122,9 +123,11 @@ module Asciidoctor
|
|
122
123
|
end
|
123
124
|
|
124
125
|
def build_internal_ref(line, _matches)
|
125
|
-
[
|
126
|
-
|
127
|
-
|
126
|
+
[
|
127
|
+
line.gsub(IREF_DEF_REGEXP) do
|
128
|
+
"<<#{Regexp.last_match[:intref]},#{Regexp.last_match[:intref]}>>"
|
129
|
+
end
|
130
|
+
]
|
128
131
|
end
|
129
132
|
|
130
133
|
def attribute_setting(_line, matches)
|
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.0.
|
4
|
+
version: 1.0.4
|
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: 2021-
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.11'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.11'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.0.
|
117
|
+
version: 1.0.8
|
118
118
|
- - "<"
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '2.0'
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
requirements:
|
125
125
|
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: 1.0.
|
127
|
+
version: 1.0.8
|
128
128
|
- - "<"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '2.0'
|