defmastership-core 1.4.0 → 1.4.1

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: b6b48fcdac016b1032cf07bb002e0c2672a8849af943e6394d5190bb2a3945e9
4
- data.tar.gz: ac0c88a4f42312c140edd29f0395ea76774921799e2f4915a31c85dc51cd5fdb
3
+ metadata.gz: 07bc53590b73e2833caaecb1bae8cfecd87a1ecef94fbe7ecb9b5eb6ea89d828
4
+ data.tar.gz: adf941d0a7655906428a6b0841780bae626e222284a192cae4e2c7af6dd25dec
5
5
  SHA512:
6
- metadata.gz: 33adb210da4e371ba6b94ff7c5de5980b0d74cb8d31f0939f1adfe41f846970fa042ea08c449de038a21b1eb857f9a5852a278832e0af07c261ff3fd0f1dfcbd
7
- data.tar.gz: 9e67eb21f21bb5d30faf71697f5865bbd5c98ba536e6af9a622f064ba44e274afcf5dfd0a354145e661e645b1ad5f6a86f2e77fae753553beca30a65887867aa
6
+ metadata.gz: 21867b6159f14e934248174adff6d253b36f55d19f50528e3ccd0fda55afa2bb391a27a339d0b3b9d9e92b0c4fe427e512a0cc666e895e1089e289678f8b52cb
7
+ data.tar.gz: a5efb633dd49c4cc0593cb9a1e8e1d2177b45680e78c89f457f55efd62b0156de913db8ff7bd07e710a35dc41226ac9604584008f113224cc68d0051285dee35
@@ -52,7 +52,7 @@ module Defmastership
52
52
  DEF_SUMMARY = <<~'SUM'
53
53
  \s*
54
54
  (,\s*
55
- ((?<summary>[^\s,\[\]][^,\[\]]*?)|("(?<summary>[^""]*)"))
55
+ ((?<summary>[^\s,\[\]][^,\[\]]*?)|("\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.4.0'
8
+ VERSION = '1.4.1'
9
9
  public_constant :VERSION
10
10
  end
11
11
  end
@@ -141,7 +141,7 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
141
141
  it { expect(regexp.match(' ,[ label1 , label2 ] ]')[:summary]).to(be_nil) }
142
142
  it { expect(regexp.match(', a summary ]')[:summary]).to(eq('a summary')) }
143
143
  it { expect(regexp.match(', a summary ]')[:labels]).to(be_nil) }
144
- it { expect(regexp.match(', "a, summary" ]')[:summary]).to(eq('a, summary')) }
144
+ it { expect(regexp.match(', " a, comma " ]')[:summary]).to(eq('a, comma')) }
145
145
  end
146
146
 
147
147
  context 'when invalid definitions end' do
@@ -233,7 +233,7 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
233
233
 
234
234
  it { expect(regexp.match('')[:summary]).to(be_nil) }
235
235
  it { expect(regexp.match(', bla: bla bli ')[:summary]).to(eq('bla: bla bli')) }
236
- it { expect(regexp.match(', " bla bla , bli "')[:summary]).to(eq(' bla bla , bli ')) }
236
+ it { expect(regexp.match(', " bla bla , bli "')[:summary]).to(eq('bla bla , bli')) }
237
237
  end
238
238
 
239
239
  context 'with invalid definition summary' do
@@ -298,7 +298,7 @@ RSpec.describe(Defmastership::Core::DMRegexp) do
298
298
  it { expect(one_match[:summary]).to(eq('a summary')) }
299
299
  it { expect(one_match[:labels]).to(eq('a,b')) }
300
300
 
301
- it { expect(regexp.match('[define,t,R," a , comma "]')[:summary]).to(eq(' a , comma ')) }
301
+ it { expect(regexp.match('[define,t,R," a , comma "]')[:summary]).to(eq('a , comma')) }
302
302
  end
303
303
 
304
304
  context 'with invalid definition lines' 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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre