defmastership-core 1.5.2 → 1.5.3

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: 6b95f1ad54d625a1441f1ca0220e944559232bf9f477b56e9a14c32469622928
4
- data.tar.gz: 060d870d464c07cc9ae12702136d66292e39006af3c617c7bb8f42b4c7e1dc5c
3
+ metadata.gz: 87ef2f8df723ddacc30b17efb600a7cfacde2566599dce03becfe3fe2cbe2b9a
4
+ data.tar.gz: 2d646e28f1792c32040dd005e16587bf4cfdd06e41fcc71eeca405a7912e592b
5
5
  SHA512:
6
- metadata.gz: 84bfd7c8d7b5ce2e15640fd450e0b8375d73608fc8b09e0b0e7cd989d1f4f10eb4d2d20cdefe9d93b1822cd3b71fc1fe63f123e489d65e3d4e281a1dc2bfeecf
7
- data.tar.gz: 3fadd0ba25f82931f55198c2c0d9c1821e156352e0597ce3e3ca19857bc1ca61bbca7e119f95ea4b95574a485b7b1b455c8f7227731aada5816e068f8152423b
6
+ metadata.gz: 9d937b2b863453035dc44671a218f35ebcd0fb7a835475ad33adf408c8a199a34ab57c5343d8381965c26965c11eb7c45be66a634a3013687bdcd1bedeac0304
7
+ data.tar.gz: a683dee22f180c43bc611be760b25e17980286fe6009e6fbeb29006b1bda495bfa86d152c2b0a06eaaa5f3420a8e89a2b8e7a4bb320bd42d60fa5992234d7cad
data/config/rubocop.yml CHANGED
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
11
11
 
12
- require:
12
+ plugins:
13
13
  - rubocop-performance
14
14
  - rubocop-rspec
15
15
  - rubocop-rake
@@ -40,7 +40,7 @@ module Defmastership
40
40
 
41
41
  # [Regexp] match optional explicit version and explicit checksum
42
42
  DEF_VERSION_AND_CHECKSUM = '(?<version_and_checksum>' \
43
- '\((?<explicit_version>[^~]+)?(?<explicit_checksum>~\h+)?\)' \
43
+ '\((?<explicit_version>[^~]+?)?(?<explicit_checksum>~\h+?)?\)' \
44
44
  ')?'
45
45
  public_constant :DEF_VERSION_AND_CHECKSUM
46
46
 
@@ -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.2'
8
+ VERSION = '1.5.3'
9
9
  public_constant :VERSION
10
10
  end
11
11
  end
@@ -551,6 +551,8 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
551
551
  it { expect(regexp.match('defs:iref[bla(c~abcd1234)]')[:version_and_checksum]).to(eq('(c~abcd1234)')) }
552
552
  it { expect(regexp.match('defs:iref[bla(c~abcd1234)]')[:explicit_version]).to(eq('c')) }
553
553
  it { expect(regexp.match('defs:iref[bla(c~abcd1234)]')[:explicit_checksum]).to(eq('~abcd1234')) }
554
+ it { expect(regexp.match('defs:iref[bla(c)] defs:iref[bla(c~abcd1234)]')[:explicit_version]).to(eq('c')) }
555
+ it { expect(regexp.match('defs:iref[bla(~abcd1234)] defs:iref[bla(c)')[:explicit_checksum]).to(eq('~abcd1234')) }
554
556
  end
555
557
 
556
558
  context 'with invalid IREF_DEF' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defmastership-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
- rubygems_version: 3.7.1
61
+ rubygems_version: 3.6.9
62
62
  specification_version: 4
63
63
  summary: Handling of references and definitions with asciidoctor - common code
64
64
  test_files: []