defmastership 1.2.0 → 1.3.0

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: a0108caf9fe5e03e882cd80fda5c2221698cc468ffb1153f4a1dbbfcfb0d3ca7
4
- data.tar.gz: b8fe780478f0b8a060beddb40e9fb1eb105e634f60d92467845fc1d122d8bd62
3
+ metadata.gz: 3101cc665380665519681d6644d3ba5bd818772542e2877305f94fabcc3b0d5b
4
+ data.tar.gz: 32a279c031db21c8bc9e58175c0842de490c922f8eb0538032bb8509ae39a3dc
5
5
  SHA512:
6
- metadata.gz: 6a4c2cf44ad08ddb72a5f83b58ca19de4049970b81fae449870cc376ab294887dd239a82f190a67821b7ecd493195a5287931024f1e85d0ea2cd61d4e5e20b45
7
- data.tar.gz: 51a482a53c38481d2c494842962675948477ea245f7bc1a4d2c9c4d45c4bef38185670caad69d7ebc88d61ab44af2647bab396ddd6df817ea8d6ee0190dc9fc5
6
+ metadata.gz: a4029e2b886ba957c645381e00bd61007871075795a86c802bf618e0ca8f67609b62f16085e43ab7fcd54180d16474acfa72a1fc7effcf3c469995e9a7ed02be
7
+ data.tar.gz: fcd4f16c6fdcd001b02dc5378bce594a3df0be78a0fda6560c628be35a10d9ddccddea213152ceb0d514bc92eaf74cf90a836c6293e92b128f7f0d29175136f1
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency('aasm', '~> 5')
35
35
  spec.add_dependency('asciidoctor', '~> 2')
36
36
  spec.add_dependency('csv', '~> 3')
37
- spec.add_dependency('defmastership-core', '~> 1.3.0')
37
+ spec.add_dependency('defmastership-core', '~> 1.4')
38
38
  spec.add_dependency('git', '~> 1')
39
39
  spec.add_dependency('gli', '~> 2')
40
40
  spec.add_dependency('ostruct', '~> 0')
@@ -211,6 +211,24 @@ Feature: The extract command
211
211
  """
212
212
  And the stdout should not contain anything
213
213
 
214
+ Scenario: Extract definition with summary including comma
215
+ Given a file named "toto.adoc" with:
216
+ """
217
+ [define, requirement, TOTO-0001, " A nice, summary " ]
218
+ --
219
+ Exemple of multiline requirement.
220
+ Second line.
221
+ --
222
+ """
223
+ When I successfully run `defmastership export toto.adoc`
224
+ Then the file "toto.csv" should contain:
225
+ """
226
+ Type,Reference,Summary,Value,Checksum
227
+ requirement,TOTO-0001,"A nice, summary","Exemple of multiline requirement.
228
+ Second line.",~77a203d4
229
+ """
230
+ And the stdout should not contain anything
231
+
214
232
  Scenario: Extract definition with labels
215
233
  Given a file named "toto.adoc" with:
216
234
  """
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Defmastership
5
5
  # [String] Gem version
6
- VERSION = '1.2.0'
6
+ VERSION = '1.3.0'
7
7
  public_constant :VERSION
8
8
  end
@@ -492,6 +492,23 @@ RSpec.describe(Defmastership::Document) do
492
492
  )
493
493
  end
494
494
  end
495
+
496
+ context 'when comma in definition summary' do
497
+ let(:input_lines) do
498
+ [
499
+ ':one_variable: the substituted variable',
500
+ '[define, requirement, TOTO-0001, " a summary with a, comma "]'
501
+ ]
502
+ end
503
+
504
+ it do
505
+ expect(Defmastership::Definition).to(
506
+ have_received(:new).with(
507
+ matchdata_including(summary: 'a summary with a, comma')
508
+ )
509
+ )
510
+ end
511
+ end
495
512
  end
496
513
 
497
514
  context 'with invalid definitions' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defmastership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.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: 2024-12-25 00:00:00.000000000 Z
11
+ date: 2025-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.3.0
61
+ version: '1.4'
62
62
  type: :runtime
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.0
68
+ version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: git
71
71
  requirement: !ruby/object:Gem::Requirement