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 +4 -4
- data/defmastership.gemspec +1 -1
- data/features/export.feature +18 -0
- data/lib/defmastership/version.rb +1 -1
- data/spec/unit/defmastership/document_spec.rb +17 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3101cc665380665519681d6644d3ba5bd818772542e2877305f94fabcc3b0d5b
|
4
|
+
data.tar.gz: 32a279c031db21c8bc9e58175c0842de490c922f8eb0538032bb8509ae39a3dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4029e2b886ba957c645381e00bd61007871075795a86c802bf618e0ca8f67609b62f16085e43ab7fcd54180d16474acfa72a1fc7effcf3c469995e9a7ed02be
|
7
|
+
data.tar.gz: fcd4f16c6fdcd001b02dc5378bce594a3df0be78a0fda6560c628be35a10d9ddccddea213152ceb0d514bc92eaf74cf90a836c6293e92b128f7f0d29175136f1
|
data/defmastership.gemspec
CHANGED
@@ -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.
|
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')
|
data/features/export.feature
CHANGED
@@ -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
|
"""
|
@@ -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.
|
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:
|
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.
|
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.
|
68
|
+
version: '1.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: git
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|