defmastership-core 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cf64cc0680411a81afd61f49488ffd98981f02f69b9b5298c3bbe4f96ee3cd2
4
- data.tar.gz: 63662e69ecacc62a93d13b0a78e2bd92711f585d7e5a6f8d911feac3a32d02e2
3
+ metadata.gz: e305c214cf30723ae670f46f1bf3ffbe4d00b1867581e1db5be79f2ab8155a35
4
+ data.tar.gz: b00c8a4e447f269176696da0b743d184e594ffd5a8fb0a0b83787343917a4846
5
5
  SHA512:
6
- metadata.gz: 7320f2beec55cdab8dc55db5f57c3ce8be1fed5f6826cfe43fe2b81bda905057812256ed8a011f69ffccd32f78e652620dadb3beeb8982a43f182fde3eca65e2
7
- data.tar.gz: 5cf045b72a06d4a9b4fe996e79a9aa3dc70d3a1e75d6021e5db253b98f2a3f5a330de324229a276b4ea473bc3043b3d87c2fb72136dae8bc004a260e2d112ea4
6
+ metadata.gz: 847be19dfe955889f38c8e07c23c5fe297d84aec7d0cd3b81a2a6d2188ab3f8cfc5c6d4330a17969b14068baa73524b85a37fe469136b720c6d2f7bd71e99be0
7
+ data.tar.gz: 4645b59b7d0ed3b7497b5e38dc9a29c7fcb32c54a622bdc7cba22dede1be05719b818c991727aae4ff229ec2e46ab58834c74b5b449eea4ed4f30bf48cdab957
data/Gemfile CHANGED
@@ -10,10 +10,6 @@ ruby RUBY_VERSION
10
10
  group :development do
11
11
  # needed by yard to render documentation
12
12
  gem 'asciidoctor', '~> 2.0'
13
- # cucumber steps for command line tests
14
- gem 'aruba', '~> 2.3'
15
- # bdd
16
- gem 'cucumber', '~> 9.2'
17
13
  # code duplication
18
14
  gem 'flay', '~> 2.13'
19
15
  # automatic test run
@@ -21,45 +17,37 @@ group :development do
21
17
  # automatic update invocation
22
18
  gem 'guard-bundler', '~> 3.0'
23
19
  # automatic style check
24
- gem 'guard-reek', '~> 1.2'
20
+ gem 'guard-reek', '~> 1.2'
25
21
  # automatic tdd
26
22
  gem 'guard-rspec', '~> 4.7'
27
23
  # automatic style check
28
24
  gem 'guard-rubocop', '~> 1.5'
29
-
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'
36
- # end
37
- # # mutation testing
38
- # gem 'mutant-rspec', '~> 0'
25
+ # mutation testing
26
+ gem 'mutant-rspec', '~> 0.13'
39
27
  # to parse and execute Rakefile
40
- gem 'rake', '~> 13.2'
28
+ gem 'rake', '~> 13.3'
41
29
  # needed by yard to render documentation
42
- gem 'rdoc', '~> 6.12'
30
+ gem 'rdoc', '~> 6.14'
43
31
  # tdd
44
32
  gem 'rspec', '~> 3.13'
45
33
  # code needs to be clean
46
- gem 'rubocop', '1.72'
34
+ gem 'rubocop', '1.80'
47
35
  # code needs to be clean
48
- gem 'rubocop-performance', '~> 1.23'
36
+ gem 'rubocop-performance', '~> 1.25'
49
37
  # test code needs to be clean
50
- gem 'rubocop-rspec', '~> 3.4'
38
+ gem 'rubocop-rspec', '~> 3.6'
51
39
  # Rakefiles need to be clean
52
- gem 'rubocop-rake', '~> 0.6'
53
- # detect selling code
54
- gem 'reek', '~> 6.4'
40
+ gem 'rubocop-rake', '~> 0.7'
41
+ # detect smelling code
42
+ gem 'reek', '~> 6.5'
55
43
  # my code needs to be critiqued
56
- gem 'rubycritic', '~> 4.9'
44
+ gem 'rubycritic', '~> 4.10'
57
45
  # Doc need to be clean
58
- gem 'rubocop-yard', '~> 0.10'
46
+ gem 'rubocop-yard', '~> 1.0'
59
47
  # What is tdd without code coverage ?
60
- gem 'simplecov', '~> 0.22'
48
+ gem 'simplecov', '~> 0.22'
61
49
  # to document code
62
- gem 'yard', '~> 0.9'
50
+ gem 'yard', '~> 0.9'
63
51
  end
64
52
 
65
53
  group :debugging do
data/config/mutant.yml CHANGED
@@ -8,7 +8,8 @@ integration:
8
8
  - --options=config/rspec
9
9
  - spec
10
10
  requires:
11
- - defmastership
11
+ - defmastership/core/constants
12
+ - defmastership/core/parsing_state
12
13
  matcher:
13
14
  subjects:
14
15
  - 'Defmastership::Core*'
@@ -52,7 +52,7 @@ module Defmastership
52
52
  DEF_SUMMARY = <<~'SUM'
53
53
  \s*
54
54
  (,\s*
55
- ((?<summary>[^\s,\[\]][^,\[\]]*?)|("\s*(?<summary>[^""]*?)\s*"))
55
+ (("\s*(?<summary>[^""]*?)\s*")|(?<summary>[^\s,\[\]][^,\[\]]*?))
56
56
  \s*)?
57
57
  SUM
58
58
  public_constant :DEF_SUMMARY
@@ -5,7 +5,7 @@ module Defmastership
5
5
  # Common to defmastership and asciidoctor-defmastership
6
6
  module Core
7
7
  # [String] Gem version
8
- VERSION = '1.5.0'
8
+ VERSION = '1.5.1'
9
9
  public_constant :VERSION
10
10
  end
11
11
  end
@@ -132,7 +132,8 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
132
132
  ',[label1]]',
133
133
  ', a nice summary,[label1]]',
134
134
  ', a nice summary]',
135
- ', "a nice summary, with comma"]'
135
+ ', "a nice summary, with comma"]',
136
+ ', "a nice summary with quotation mark"]'
136
137
  ].each do |def_end|
137
138
  it { is_expected.to(match(def_end)) }
138
139
  end
@@ -142,6 +143,7 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
142
143
  it { expect(regexp.match(', a summary ]')[:summary]).to(eq('a summary')) }
143
144
  it { expect(regexp.match(', a summary ]')[:labels]).to(be_nil) }
144
145
  it { expect(regexp.match(', " a, comma " ]')[:summary]).to(eq('a, comma')) }
146
+ it { expect(regexp.match(', " no comma " ]')[:summary]).to(eq('no comma')) }
145
147
  end
146
148
 
147
149
  context 'when invalid definitions end' do
@@ -418,7 +420,7 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
418
420
  describe 'EREF_DEF' do
419
421
  subject(:regexp) { described_class::EREF_DEF }
420
422
 
421
- let(:one_match) { regexp.match('defs:eref[abcdef, [ABC, EDF]]') }
423
+ let(:one_match) { regexp.match('defs:eref[abcdef, [ABC, EDF(a~1234abcd)]]') }
422
424
 
423
425
  context 'with valid external ref' do
424
426
  [
@@ -428,13 +430,14 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
428
430
  'defs:eref[abcdef,[ABC,EDF]]',
429
431
  'defs:eref[abcdef, [ABC, EDF] ]',
430
432
  'defs:eref[abcdef, [ABC, EDF ]]',
431
- 'defs:eref[abcdef, [ABC]]'
433
+ 'defs:eref[abcdef, [ABC]]',
434
+ 'defs:eref[abcdef, [ABC(a~1234abcd)]]'
432
435
  ].each do |line|
433
436
  it { is_expected.to(match(line)) }
434
437
  end
435
438
 
436
439
  it { expect(one_match[:reference]).to(eq('abcdef')) }
437
- it { expect(one_match[:extrefs]).to(eq('ABC, EDF')) }
440
+ it { expect(one_match[:extrefs]).to(eq('ABC, EDF(a~1234abcd)')) }
438
441
  end
439
442
 
440
443
  context 'with invalid external ref' do
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defmastership-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email: jeromearbezgindre@gmail.com
15
13
  executables: []
16
14
  extensions: []
@@ -45,7 +43,6 @@ licenses:
45
43
  - MIT
46
44
  metadata:
47
45
  rubygems_mfa_required: 'true'
48
- post_install_message:
49
46
  rdoc_options: []
50
47
  require_paths:
51
48
  - lib
@@ -61,8 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
58
  - !ruby/object:Gem::Version
62
59
  version: '0'
63
60
  requirements: []
64
- rubygems_version: 3.5.22
65
- signing_key:
61
+ rubygems_version: 3.7.1
66
62
  specification_version: 4
67
63
  summary: Handling of references and definitions with asciidoctor - common code
68
64
  test_files: []