defmastership-core 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +0 -11
- data/Gemfile +23 -43
- data/config/rubocop.yml +1 -1
- data/defmastership-core.gemspec +1 -1
- data/lib/defmastership/core/constants.rb +13 -13
- data/lib/defmastership/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cf64cc0680411a81afd61f49488ffd98981f02f69b9b5298c3bbe4f96ee3cd2
|
4
|
+
data.tar.gz: 63662e69ecacc62a93d13b0a78e2bd92711f585d7e5a6f8d911feac3a32d02e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7320f2beec55cdab8dc55db5f57c3ce8be1fed5f6826cfe43fe2b81bda905057812256ed8a011f69ffccd32f78e652620dadb3beeb8982a43f182fde3eca65e2
|
7
|
+
data.tar.gz: 5cf045b72a06d4a9b4fe996e79a9aa3dc70d3a1e75d6021e5db253b98f2a3f5a330de324229a276b4ea473bc3043b3d87c2fb72136dae8bc004a260e2d112ea4
|
data/.gitlab-ci.yml
CHANGED
@@ -28,17 +28,6 @@ yard documentation:
|
|
28
28
|
paths:
|
29
29
|
- doc
|
30
30
|
|
31
|
-
unit tests ruby2.7:
|
32
|
-
image: ruby:2.7
|
33
|
-
before_script:
|
34
|
-
- apt-get update
|
35
|
-
- ruby -v
|
36
|
-
- which ruby
|
37
|
-
- gem install bundler -v 2.4.22 --no-document
|
38
|
-
- bundle install --jobs $(nproc) "${FLAGS[@]}"
|
39
|
-
script:
|
40
|
-
- bundle exec rake test:spec
|
41
|
-
|
42
31
|
unit tests ruby3.0:
|
43
32
|
image: ruby:3.0
|
44
33
|
script:
|
data/Gemfile
CHANGED
@@ -7,80 +7,60 @@ gemspec
|
|
7
7
|
|
8
8
|
ruby RUBY_VERSION
|
9
9
|
|
10
|
-
# rubocop:disable Metrics/BlockLength
|
11
10
|
group :development do
|
12
11
|
# needed by yard to render documentation
|
13
12
|
gem 'asciidoctor', '~> 2.0'
|
14
13
|
# cucumber steps for command line tests
|
15
|
-
gem 'aruba', '~> 2.
|
14
|
+
gem 'aruba', '~> 2.3'
|
16
15
|
# bdd
|
17
16
|
gem 'cucumber', '~> 9.2'
|
18
|
-
|
19
17
|
# code duplication
|
20
18
|
gem 'flay', '~> 2.13'
|
21
|
-
|
22
19
|
# automatic test run
|
23
20
|
gem 'guard', '~> 2.19'
|
24
21
|
# automatic update invocation
|
25
22
|
gem 'guard-bundler', '~> 3.0'
|
26
|
-
|
27
|
-
|
28
|
-
gem 'guard-reek', '~> 1.2'
|
29
|
-
end
|
23
|
+
# automatic style check
|
24
|
+
gem 'guard-reek', '~> 1.2'
|
30
25
|
# automatic tdd
|
31
26
|
gem 'guard-rspec', '~> 4.7'
|
32
27
|
# automatic style check
|
33
28
|
gem 'guard-rubocop', '~> 1.5'
|
34
29
|
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# gem 'mutant-license', '~> 0'
|
42
|
-
# end
|
43
|
-
# # mutation testing
|
44
|
-
# gem 'mutant-rspec', '~> 0'
|
30
|
+
# # mutation testing
|
31
|
+
# plan = 'oss'
|
32
|
+
# key = '7oac4dMz95cTUuFPtGDfTDSQep6ZhdGW'
|
33
|
+
# source "https://#{plan}:#{key}@gem.mutant.dev" do
|
34
|
+
# # license needed
|
35
|
+
# gem 'mutant-license', '~> 0'
|
45
36
|
# end
|
37
|
+
# # mutation testing
|
38
|
+
# gem 'mutant-rspec', '~> 0'
|
46
39
|
# to parse and execute Rakefile
|
47
40
|
gem 'rake', '~> 13.2'
|
48
|
-
|
49
|
-
|
50
|
-
# needed by yard to render documentation
|
51
|
-
gem 'rdoc', '~> 6.1O'
|
52
|
-
end
|
41
|
+
# needed by yard to render documentation
|
42
|
+
gem 'rdoc', '~> 6.12'
|
53
43
|
# tdd
|
54
44
|
gem 'rspec', '~> 3.13'
|
55
|
-
# # to test performances
|
56
|
-
# gem 'rspec-benchmark', '~> 0'
|
57
45
|
# code needs to be clean
|
58
|
-
gem 'rubocop', '1.
|
46
|
+
gem 'rubocop', '1.72'
|
59
47
|
# code needs to be clean
|
60
48
|
gem 'rubocop-performance', '~> 1.23'
|
61
49
|
# test code needs to be clean
|
62
|
-
gem 'rubocop-rspec', '~> 3.
|
50
|
+
gem 'rubocop-rspec', '~> 3.4'
|
63
51
|
# Rakefiles need to be clean
|
64
52
|
gem 'rubocop-rake', '~> 0.6'
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
# Doc need to be clean
|
72
|
-
gem 'rubocop-yard', '~> 0.10'
|
73
|
-
end
|
74
|
-
|
53
|
+
# detect selling code
|
54
|
+
gem 'reek', '~> 6.4'
|
55
|
+
# my code needs to be critiqued
|
56
|
+
gem 'rubycritic', '~> 4.9'
|
57
|
+
# Doc need to be clean
|
58
|
+
gem 'rubocop-yard', '~> 0.10'
|
75
59
|
# What is tdd without code coverage ?
|
76
60
|
gem 'simplecov', '~> 0.22'
|
77
|
-
|
78
|
-
|
79
|
-
# to document code
|
80
|
-
gem 'yard', '~> 0.9'
|
81
|
-
end
|
61
|
+
# to document code
|
62
|
+
gem 'yard', '~> 0.9'
|
82
63
|
end
|
83
|
-
# rubocop:enable Metrics/BlockLength
|
84
64
|
|
85
65
|
group :debugging do
|
86
66
|
# Sometimes, we need to debug
|
data/config/rubocop.yml
CHANGED
data/defmastership-core.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.metadata = {
|
20
20
|
'rubygems_mfa_required' => 'true'
|
21
21
|
}
|
22
|
-
spec.required_ruby_version = '>=
|
22
|
+
spec.required_ruby_version = '>= 3.0'
|
23
23
|
spec.name = 'defmastership-core'
|
24
24
|
spec.version = Defmastership::Core::VERSION
|
25
25
|
spec.author = 'Jérôme Arbez-Gindre'
|
@@ -15,7 +15,7 @@ module Defmastership
|
|
15
15
|
end
|
16
16
|
|
17
17
|
# [Regexp] to match a single line comment
|
18
|
-
SINGLE_LINE_COMMENT = %r{^//[^/]}
|
18
|
+
SINGLE_LINE_COMMENT = %r{^//[^/]}
|
19
19
|
public_constant :SINGLE_LINE_COMMENT
|
20
20
|
|
21
21
|
# [Regexp] match the definition keyword
|
@@ -23,11 +23,11 @@ module Defmastership
|
|
23
23
|
public_constant :DEF_KEYWORD
|
24
24
|
|
25
25
|
# [Regexp] match a definition type
|
26
|
-
DEF_TYPE = ",\\s*#{an_id('type')}\\s*"
|
26
|
+
DEF_TYPE = ",\\s*#{an_id('type')}\\s*".freeze
|
27
27
|
public_constant :DEF_TYPE
|
28
28
|
|
29
29
|
# [Regexp] match all text before the definition's reference
|
30
|
-
DEF_BEFORE_REF = <<~"BEF"
|
30
|
+
DEF_BEFORE_REF = <<~"BEF".freeze
|
31
31
|
^
|
32
32
|
\\s*
|
33
33
|
\\[
|
@@ -62,7 +62,7 @@ module Defmastership
|
|
62
62
|
public_constant :DEF_LABELS
|
63
63
|
|
64
64
|
# [Regexp] match all text after the definition's reference
|
65
|
-
DEF_AFTER_REF = <<~"AFT"
|
65
|
+
DEF_AFTER_REF = <<~"AFT".freeze
|
66
66
|
\\s*
|
67
67
|
#{DEF_SUMMARY}
|
68
68
|
#{DEF_LABELS}
|
@@ -94,26 +94,26 @@ module Defmastership
|
|
94
94
|
|
95
95
|
# [Regexp] match a asciidcotor attribute definition
|
96
96
|
VARIABLE_DEF = /^\s*:#{an_id('varname')}:\s+
|
97
|
-
(?<value>\S.*\S)\s*$/x
|
97
|
+
(?<value>\S.*\S)\s*$/x
|
98
98
|
public_constant :VARIABLE_DEF
|
99
99
|
|
100
100
|
# [Regexp] match a asciidcotor attribute use
|
101
|
-
VARIABLE_USE = /{#{an_id('varname')}}/x
|
101
|
+
VARIABLE_USE = /{#{an_id('varname')}}/x
|
102
102
|
public_constant :VARIABLE_USE
|
103
103
|
|
104
104
|
# [Regexp] match an external cross reference type configuration
|
105
105
|
EREF_CONFIG = /^\s*:eref-#{an_id('reference')}-(?<symb>prefix|url):\s*
|
106
|
-
\s*(?<value>\S.*\S)\s*/x
|
106
|
+
\s*(?<value>\S.*\S)\s*/x
|
107
107
|
public_constant :EREF_CONFIG
|
108
108
|
# [Regexp] match an external cross reference use
|
109
109
|
EREF_DEF = /^\s*
|
110
110
|
defs:eref\[
|
111
111
|
\s*#{an_id('reference')}\s*,
|
112
|
-
\s*\[\s*(?<extrefs>[^\]]+?)\s*\]\s*\]/x
|
112
|
+
\s*\[\s*(?<extrefs>[^\]]+?)\s*\]\s*\]/x
|
113
113
|
public_constant :EREF_DEF
|
114
114
|
|
115
115
|
# [Regexp] match an asciidoc block delimiter
|
116
|
-
BLOCK = /^--\s
|
116
|
+
BLOCK = /^--\s*$/
|
117
117
|
public_constant :BLOCK
|
118
118
|
|
119
119
|
# [Regexp] match the begining of an internal cross reference
|
@@ -131,21 +131,21 @@ module Defmastership
|
|
131
131
|
|
132
132
|
# [Regexp] match an attribute configuration
|
133
133
|
ATTR_CONFIG = /\s*:attr-#{an_id('attr')}-prefix:
|
134
|
-
\s+(?<prefix>.+?)\s*$/x
|
134
|
+
\s+(?<prefix>.+?)\s*$/x
|
135
135
|
public_constant :ATTR_CONFIG
|
136
136
|
# [Regexp] match an attribute use
|
137
137
|
ATTR_SET = /\s*
|
138
138
|
defs:attribute\[
|
139
139
|
\s*#{an_id('attr')}\s*,
|
140
|
-
\s*(?<value>.+?)\s*\]/x
|
140
|
+
\s*(?<value>.+?)\s*\]/x
|
141
141
|
public_constant :ATTR_SET
|
142
142
|
|
143
143
|
# [Regexp] match an empty line
|
144
|
-
EMPTY_LINE = /^\s
|
144
|
+
EMPTY_LINE = /^\s*$/
|
145
145
|
public_constant :EMPTY_LINE
|
146
146
|
|
147
147
|
# [Regexp] match everything
|
148
|
-
WHATEVER =
|
148
|
+
WHATEVER = //
|
149
149
|
public_constant :WHATEVER
|
150
150
|
|
151
151
|
# [Regexp] match asciidoc include statement keyword
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defmastership-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
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: 2025-
|
11
|
+
date: 2025-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: jeromearbezgindre@gmail.com
|
@@ -54,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
57
|
+
version: '3.0'
|
58
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|