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: fecadf3a9bd4d5b0f6ffafe2b99431061580fa1a195fb0fab111fd0c8a397a60
4
- data.tar.gz: a708c0f6d86f7bc9483a9855a48e396f16bfbd81b49531a8ec2e5f9c864a35a3
3
+ metadata.gz: e01614f789a5daeb57b910a08cca44b515cf6cb2e032799db68f1ec87c40bd52
4
+ data.tar.gz: 484ef9ef4ce695aaa51caf7fe47c980b0fe6c4e0747d96c21eba5e4d26afe50c
5
5
  SHA512:
6
- metadata.gz: f7e03dc2cd076a84e80650b874cb21ee1cd85f3daf04ed03e709b729407d9d01e5f9af484180ed5146c43531146717f47334244c7f36bd73c97fc49529bfbd95
7
- data.tar.gz: d0f51418176da65f28ef46f7385477b93401eeeb25de545cf24cc816199e9e286dafd7cf946baaf404d8c55f86b04aca2bf896a330147248cc02ccc93744580d
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.3')
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.6', '< 2.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
- [line.gsub(IREF_DEF_REGEXP) do
126
- "<<#{Regexp.last_match[:intref]},#{Regexp.last_match[:intref]}>>"
127
- end]
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)
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Asciidoctor
5
5
  module DefMastership
6
- VERSION = '1.0.3'
6
+ VERSION = '1.0.4'
7
7
  public_constant :VERSION
8
8
  end
9
9
  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.0.3
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-02-23 00:00:00.000000000 Z
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.3'
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.3'
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.6
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.6
127
+ version: 1.0.8
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '2.0'