defmastership 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +34 -3
  4. data/.rubocop.yml +14 -6
  5. data/Rakefile +29 -15
  6. data/bin/defmastership +4 -4
  7. data/defmastership.gemspec +32 -27
  8. data/features/export.feature +70 -1
  9. data/lib/defmastership/batch_modifier.rb +1 -1
  10. data/lib/defmastership/change_ref_line_modifier.rb +3 -0
  11. data/lib/defmastership/change_ref_modifier.rb +2 -0
  12. data/lib/defmastership/csv_formatter.rb +4 -4
  13. data/lib/defmastership/document.rb +15 -9
  14. data/lib/defmastership/modifier_base.rb +10 -3
  15. data/lib/defmastership/parsing_state.rb +3 -1
  16. data/lib/defmastership/version.rb +1 -1
  17. data/lib/defmastership.rb +11 -16
  18. data/spec/spec_helper.rb +2 -2
  19. data/spec/unit/{defmastership → def_mastership}/batch_modifier_spec.rb +5 -4
  20. data/spec/unit/{defmastership → def_mastership}/change_ref_line_modifier_spec.rb +11 -4
  21. data/spec/unit/{defmastership → def_mastership}/change_ref_modifier_spec.rb +1 -1
  22. data/spec/unit/{defmastership → def_mastership}/csv_formatter_body_spec.rb +1 -1
  23. data/spec/unit/{defmastership → def_mastership}/csv_formatter_header_spec.rb +1 -1
  24. data/spec/unit/{defmastership → def_mastership}/csv_formatter_spec.rb +11 -8
  25. data/spec/unit/{defmastership → def_mastership}/definition_parser_spec.rb +1 -1
  26. data/spec/unit/{defmastership → def_mastership}/definition_spec.rb +1 -1
  27. data/spec/unit/{defmastership → def_mastership}/document_spec.rb +99 -44
  28. data/spec/unit/def_mastership/parsing_state_spec.rb +62 -0
  29. data/spec/unit/{defmastership → def_mastership}/rename_included_files_line_modifier_spec.rb +7 -3
  30. data/spec/unit/{defmastership → def_mastership}/rename_included_files_modifier_spec.rb +1 -1
  31. data/spec/unit/{defmastership → def_mastership}/update_def_checksum_line_modifier_spec.rb +7 -3
  32. data/spec/unit/{defmastership → def_mastership}/update_def_checksum_modifier_spec.rb +1 -1
  33. data/spec/unit/{defmastership → def_mastership}/update_def_version_line_modifier_spec.rb +7 -3
  34. data/spec/unit/{defmastership → def_mastership}/update_def_version_modifier_spec.rb +3 -3
  35. data/spec/unit/{defmastership_spec.rb → def_mastership_spec.rb} +1 -1
  36. metadata +64 -35
  37. data/spec/unit/defmastership/parsing_state_spec.rb +0 -48
  38. /data/spec/unit/{defmastership/comment_filter_spec.rb → def_mastership/string_spec.rb} +0 -0
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.0.15
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cucumber
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '8'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '1'
40
+ version: '8'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,42 +86,56 @@ dependencies:
72
86
  requirements:
73
87
  - - '='
74
88
  - !ruby/object:Gem::Version
75
- version: '1.13'
89
+ version: '1.50'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - '='
81
95
  - !ruby/object:Gem::Version
82
- version: '1.13'
96
+ version: '1.50'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-performance
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.17'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.17'
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: rubocop-rake
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '0.5'
117
+ version: '0.6'
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '0.5'
124
+ version: '0.6'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rubocop-rspec
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: '2.0'
131
+ version: '2.22'
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: '2.0'
138
+ version: '2.22'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: simplecov
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +192,7 @@ dependencies:
164
192
  - - "~>"
165
193
  - !ruby/object:Gem::Version
166
194
  version: '2'
167
- description:
195
+ description:
168
196
  email: jeromearbezgindre@gmail.com
169
197
  executables:
170
198
  - defmastership
@@ -225,29 +253,30 @@ files:
225
253
  - lib/defmastership/update_def_version_modifier.rb
226
254
  - lib/defmastership/version.rb
227
255
  - spec/spec_helper.rb
228
- - spec/unit/defmastership/batch_modifier_spec.rb
229
- - spec/unit/defmastership/change_ref_line_modifier_spec.rb
230
- - spec/unit/defmastership/change_ref_modifier_spec.rb
231
- - spec/unit/defmastership/comment_filter_spec.rb
232
- - spec/unit/defmastership/csv_formatter_body_spec.rb
233
- - spec/unit/defmastership/csv_formatter_header_spec.rb
234
- - spec/unit/defmastership/csv_formatter_spec.rb
235
- - spec/unit/defmastership/definition_parser_spec.rb
236
- - spec/unit/defmastership/definition_spec.rb
237
- - spec/unit/defmastership/document_spec.rb
238
- - spec/unit/defmastership/parsing_state_spec.rb
239
- - spec/unit/defmastership/rename_included_files_line_modifier_spec.rb
240
- - spec/unit/defmastership/rename_included_files_modifier_spec.rb
241
- - spec/unit/defmastership/update_def_checksum_line_modifier_spec.rb
242
- - spec/unit/defmastership/update_def_checksum_modifier_spec.rb
243
- - spec/unit/defmastership/update_def_version_line_modifier_spec.rb
244
- - spec/unit/defmastership/update_def_version_modifier_spec.rb
245
- - spec/unit/defmastership_spec.rb
256
+ - spec/unit/def_mastership/batch_modifier_spec.rb
257
+ - spec/unit/def_mastership/change_ref_line_modifier_spec.rb
258
+ - spec/unit/def_mastership/change_ref_modifier_spec.rb
259
+ - spec/unit/def_mastership/csv_formatter_body_spec.rb
260
+ - spec/unit/def_mastership/csv_formatter_header_spec.rb
261
+ - spec/unit/def_mastership/csv_formatter_spec.rb
262
+ - spec/unit/def_mastership/definition_parser_spec.rb
263
+ - spec/unit/def_mastership/definition_spec.rb
264
+ - spec/unit/def_mastership/document_spec.rb
265
+ - spec/unit/def_mastership/parsing_state_spec.rb
266
+ - spec/unit/def_mastership/rename_included_files_line_modifier_spec.rb
267
+ - spec/unit/def_mastership/rename_included_files_modifier_spec.rb
268
+ - spec/unit/def_mastership/string_spec.rb
269
+ - spec/unit/def_mastership/update_def_checksum_line_modifier_spec.rb
270
+ - spec/unit/def_mastership/update_def_checksum_modifier_spec.rb
271
+ - spec/unit/def_mastership/update_def_version_line_modifier_spec.rb
272
+ - spec/unit/def_mastership/update_def_version_modifier_spec.rb
273
+ - spec/unit/def_mastership_spec.rb
246
274
  homepage: https://gitlab.com/jjag/defmastership/
247
275
  licenses:
248
276
  - MIT
249
- metadata: {}
250
- post_install_message:
277
+ metadata:
278
+ rubygems_mfa_required: 'true'
279
+ post_install_message:
251
280
  rdoc_options:
252
281
  - "--title defmastership"
253
282
  - "--main README.rdoc"
@@ -259,15 +288,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
288
  requirements:
260
289
  - - ">="
261
290
  - !ruby/object:Gem::Version
262
- version: '2.5'
291
+ version: '2.7'
263
292
  required_rubygems_version: !ruby/object:Gem::Requirement
264
293
  requirements:
265
294
  - - ">="
266
295
  - !ruby/object:Gem::Version
267
296
  version: '0'
268
297
  requirements: []
269
- rubygems_version: 3.2.5
270
- signing_key:
298
+ rubygems_version: 3.4.5
299
+ signing_key:
271
300
  specification_version: 4
272
301
  summary: Handling of references and definitions with asciidoctor
273
302
  test_files: []
@@ -1,48 +0,0 @@
1
- # Copyright (c) 2020 Jerome Arbez-Gindre
2
- # frozen_string_literal: true
3
-
4
- require('defmastership')
5
-
6
- RSpec.describe(DefMastership::ParsingState) do
7
- subject(:parsing_state) do
8
- described_class.new
9
- end
10
-
11
- describe '.new' do
12
- it { is_expected.not_to(be(nil)) }
13
- end
14
-
15
- describe '#enabled_with?' do
16
- context 'when starting' do
17
- it { expect(parsing_state.enabled?("whatever\n")).to(eq(true)) }
18
- it { expect(parsing_state.enabled?("....\n")).to(eq(false)) }
19
- it { expect(parsing_state.enabled?("////\n")).to(eq(false)) }
20
- it { expect(parsing_state.enabled?('....')).to(eq(false)) }
21
- end
22
-
23
- context 'when disabled' do
24
- before { parsing_state.enabled?("....\n") }
25
-
26
- it { expect(parsing_state.enabled?("whatever\n")).to(eq(false)) }
27
- it { expect(parsing_state.enabled?("////\n")).to(eq(false)) }
28
- it { expect(parsing_state.enabled?("....\n")).to(eq(true)) }
29
- end
30
-
31
- context 'with intricated disables starting with "...."' do
32
- before do
33
- ["....\n", "////\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
34
- end
35
-
36
- it { expect(parsing_state.enabled?("----\n")).to(eq(false)) }
37
- it { expect(parsing_state.enabled?("....\n")).to(eq(true)) }
38
- end
39
-
40
- context 'with intricated disables starting with "////"' do
41
- before do
42
- ["////\n", "....\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
43
- end
44
-
45
- it { expect(parsing_state.enabled?("////\n")).to(eq(true)) }
46
- end
47
- end
48
- end