cuke_modeler 1.5.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +60 -1
  3. data/LICENSE.txt +1 -1
  4. data/README.md +13 -15
  5. data/cuke_modeler.gemspec +12 -9
  6. data/lib/cuke_modeler.rb +1 -0
  7. data/lib/cuke_modeler/adapters/gherkin_10_adapter.rb +12 -0
  8. data/lib/cuke_modeler/adapters/gherkin_11_adapter.rb +12 -0
  9. data/lib/cuke_modeler/adapters/gherkin_12_adapter.rb +12 -0
  10. data/lib/cuke_modeler/adapters/gherkin_13_adapter.rb +12 -0
  11. data/lib/cuke_modeler/adapters/gherkin_14_adapter.rb +12 -0
  12. data/lib/cuke_modeler/adapters/{gherkin_6_adapter.rb → gherkin_9_adapter.rb} +105 -69
  13. data/lib/cuke_modeler/containing.rb +16 -5
  14. data/lib/cuke_modeler/described.rb +1 -0
  15. data/lib/cuke_modeler/models/background.rb +1 -1
  16. data/lib/cuke_modeler/models/cell.rb +1 -1
  17. data/lib/cuke_modeler/models/comment.rb +1 -1
  18. data/lib/cuke_modeler/models/directory.rb +2 -2
  19. data/lib/cuke_modeler/models/doc_string.rb +1 -1
  20. data/lib/cuke_modeler/models/example.rb +1 -1
  21. data/lib/cuke_modeler/models/feature.rb +16 -5
  22. data/lib/cuke_modeler/models/feature_file.rb +2 -2
  23. data/lib/cuke_modeler/models/outline.rb +1 -1
  24. data/lib/cuke_modeler/models/row.rb +1 -1
  25. data/lib/cuke_modeler/models/rule.rb +99 -0
  26. data/lib/cuke_modeler/models/scenario.rb +1 -1
  27. data/lib/cuke_modeler/models/step.rb +32 -3
  28. data/lib/cuke_modeler/models/table.rb +1 -1
  29. data/lib/cuke_modeler/models/tag.rb +1 -1
  30. data/lib/cuke_modeler/named.rb +1 -0
  31. data/lib/cuke_modeler/nested.rb +1 -0
  32. data/lib/cuke_modeler/parsed.rb +1 -0
  33. data/lib/cuke_modeler/parsing.rb +89 -102
  34. data/lib/cuke_modeler/sourceable.rb +1 -0
  35. data/lib/cuke_modeler/stepped.rb +1 -0
  36. data/lib/cuke_modeler/taggable.rb +1 -0
  37. data/lib/cuke_modeler/version.rb +1 -1
  38. data/testing/cucumber/features/analysis/step_comparison.feature +25 -0
  39. data/testing/cucumber/features/analysis/test_comparison.feature +1 -1
  40. data/testing/cucumber/features/modeling/feature_modeling.feature +28 -7
  41. data/testing/cucumber/features/modeling/feature_output.feature +45 -23
  42. data/testing/cucumber/features/modeling/rule_modeling.feature +108 -0
  43. data/testing/cucumber/features/modeling/rule_output.feature +111 -0
  44. metadata +39 -140
  45. data/.gitignore +0 -18
  46. data/.simplecov +0 -7
  47. data/.travis.yml +0 -60
  48. data/Gemfile +0 -37
  49. data/Rakefile +0 -73
  50. data/appveyor.yml +0 -61
  51. data/lib/cuke_modeler/adapters/gherkin_2_adapter.rb +0 -273
  52. data/lib/cuke_modeler/adapters/gherkin_3_adapter.rb +0 -296
  53. data/lib/cuke_modeler/adapters/gherkin_4_adapter.rb +0 -308
  54. data/testing/cucumber/step_definitions/action_steps.rb +0 -13
  55. data/testing/cucumber/step_definitions/background_steps.rb +0 -1
  56. data/testing/cucumber/step_definitions/directory_steps.rb +0 -6
  57. data/testing/cucumber/step_definitions/doc_string_steps.rb +0 -1
  58. data/testing/cucumber/step_definitions/feature_file_steps.rb +0 -16
  59. data/testing/cucumber/step_definitions/feature_steps.rb +0 -7
  60. data/testing/cucumber/step_definitions/modeling_steps.rb +0 -44
  61. data/testing/cucumber/step_definitions/setup_steps.rb +0 -32
  62. data/testing/cucumber/step_definitions/step_steps.rb +0 -3
  63. data/testing/cucumber/step_definitions/table_steps.rb +0 -1
  64. data/testing/cucumber/step_definitions/tag_steps.rb +0 -3
  65. data/testing/cucumber/step_definitions/verification_steps.rb +0 -173
  66. data/testing/cucumber/support/env.rb +0 -30
  67. data/testing/dialect_helper.rb +0 -48
  68. data/testing/file_helper.rb +0 -47
  69. data/testing/gemfiles/gherkin2.gemfile +0 -33
  70. data/testing/gemfiles/gherkin3.gemfile +0 -26
  71. data/testing/gemfiles/gherkin4.gemfile +0 -27
  72. data/testing/gemfiles/gherkin5.gemfile +0 -27
  73. data/testing/gemfiles/gherkin6.gemfile +0 -10
  74. data/testing/rspec/spec/integration/adapters/gherkin_2_adapter_spec.rb +0 -166
  75. data/testing/rspec/spec/integration/adapters/gherkin_3_adapter_spec.rb +0 -166
  76. data/testing/rspec/spec/integration/adapters/gherkin_4_adapter_spec.rb +0 -165
  77. data/testing/rspec/spec/integration/adapters/gherkin_6_adapter_spec.rb +0 -166
  78. data/testing/rspec/spec/integration/models/background_integration_spec.rb +0 -442
  79. data/testing/rspec/spec/integration/models/cell_integration_spec.rb +0 -335
  80. data/testing/rspec/spec/integration/models/comment_integration_spec.rb +0 -177
  81. data/testing/rspec/spec/integration/models/directory_integration_spec.rb +0 -218
  82. data/testing/rspec/spec/integration/models/doc_string_integration_spec.rb +0 -402
  83. data/testing/rspec/spec/integration/models/example_integration_spec.rb +0 -741
  84. data/testing/rspec/spec/integration/models/feature_file_integration_spec.rb +0 -272
  85. data/testing/rspec/spec/integration/models/feature_integration_spec.rb +0 -650
  86. data/testing/rspec/spec/integration/models/model_integration_spec.rb +0 -15
  87. data/testing/rspec/spec/integration/models/outline_integration_spec.rb +0 -624
  88. data/testing/rspec/spec/integration/models/row_integration_spec.rb +0 -291
  89. data/testing/rspec/spec/integration/models/scenario_integration_spec.rb +0 -479
  90. data/testing/rspec/spec/integration/models/step_integration_spec.rb +0 -475
  91. data/testing/rspec/spec/integration/models/table_integration_spec.rb +0 -337
  92. data/testing/rspec/spec/integration/models/tag_integration_spec.rb +0 -259
  93. data/testing/rspec/spec/integration/nested_integration_spec.rb +0 -91
  94. data/testing/rspec/spec/integration/parsing_integration_spec.rb +0 -122
  95. data/testing/rspec/spec/integration/shared/models_integration_specs.rb +0 -18
  96. data/testing/rspec/spec/spec_helper.rb +0 -125
  97. data/testing/rspec/spec/unit/cuke_modeler_unit_spec.rb +0 -25
  98. data/testing/rspec/spec/unit/described_unit_spec.rb +0 -23
  99. data/testing/rspec/spec/unit/models/background_unit_spec.rb +0 -83
  100. data/testing/rspec/spec/unit/models/cell_unit_spec.rb +0 -68
  101. data/testing/rspec/spec/unit/models/comment_unit_spec.rb +0 -68
  102. data/testing/rspec/spec/unit/models/directory_unit_spec.rb +0 -127
  103. data/testing/rspec/spec/unit/models/doc_string_unit_spec.rb +0 -100
  104. data/testing/rspec/spec/unit/models/example_unit_spec.rb +0 -133
  105. data/testing/rspec/spec/unit/models/feature_file_unit_spec.rb +0 -125
  106. data/testing/rspec/spec/unit/models/feature_unit_spec.rb +0 -157
  107. data/testing/rspec/spec/unit/models/model_unit_spec.rb +0 -15
  108. data/testing/rspec/spec/unit/models/outline_unit_spec.rb +0 -117
  109. data/testing/rspec/spec/unit/models/row_unit_spec.rb +0 -68
  110. data/testing/rspec/spec/unit/models/scenario_unit_spec.rb +0 -86
  111. data/testing/rspec/spec/unit/models/step_unit_spec.rb +0 -109
  112. data/testing/rspec/spec/unit/models/table_unit_spec.rb +0 -77
  113. data/testing/rspec/spec/unit/models/tag_unit_spec.rb +0 -68
  114. data/testing/rspec/spec/unit/named_unit_spec.rb +0 -23
  115. data/testing/rspec/spec/unit/nested_unit_spec.rb +0 -43
  116. data/testing/rspec/spec/unit/parsed_unit_spec.rb +0 -27
  117. data/testing/rspec/spec/unit/parsing_unit_spec.rb +0 -54
  118. data/testing/rspec/spec/unit/shared/bare_bones_models_unit_specs.rb +0 -14
  119. data/testing/rspec/spec/unit/shared/containing_models_unit_specs.rb +0 -127
  120. data/testing/rspec/spec/unit/shared/described_models_unit_specs.rb +0 -38
  121. data/testing/rspec/spec/unit/shared/keyworded_models_unit_specs.rb +0 -58
  122. data/testing/rspec/spec/unit/shared/models_unit_specs.rb +0 -15
  123. data/testing/rspec/spec/unit/shared/named_models_unit_specs.rb +0 -39
  124. data/testing/rspec/spec/unit/shared/nested_models_unit_specs.rb +0 -51
  125. data/testing/rspec/spec/unit/shared/parsed_models_unit_specs.rb +0 -39
  126. data/testing/rspec/spec/unit/shared/prepopulated_models_unit_specs.rb +0 -18
  127. data/testing/rspec/spec/unit/shared/sourced_models_unit_specs.rb +0 -39
  128. data/testing/rspec/spec/unit/shared/stepped_models_unit_specs.rb +0 -46
  129. data/testing/rspec/spec/unit/shared/stringifiable_models_unit_specs.rb +0 -18
  130. data/testing/rspec/spec/unit/shared/tagged_models_unit_specs.rb +0 -72
  131. data/testing/rspec/spec/unit/sourceable_unit_spec.rb +0 -27
  132. data/testing/rspec/spec/unit/stepped_unit_spec.rb +0 -23
  133. data/testing/rspec/spec/unit/taggable_unit_spec.rb +0 -69
  134. data/testing/test_languages.json +0 -45
  135. data/todo.txt +0 -24
metadata CHANGED
@@ -1,63 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuke_modeler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kessler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-14 00:00:00.000000000 Z
11
+ date: 2020-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: gherkin
14
+ name: cucumber-gherkin
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '7.0'
19
+ version: '15.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '7.0'
27
- - !ruby/object:Gem::Dependency
28
- name: json
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '1.0'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '3.0'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '1.0'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: multi_json
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '1.0'
26
+ version: '15.0'
61
27
  - !ruby/object:Gem::Dependency
62
28
  name: bundler
63
29
  requirement: !ruby/object:Gem::Requirement
@@ -118,16 +84,16 @@ dependencies:
118
84
  name: simplecov
119
85
  requirement: !ruby/object:Gem::Requirement
120
86
  requirements:
121
- - - "<"
87
+ - - "<="
122
88
  - !ruby/object:Gem::Version
123
- version: 1.0.0
89
+ version: 0.16.1
124
90
  type: :development
125
91
  prerelease: false
126
92
  version_requirements: !ruby/object:Gem::Requirement
127
93
  requirements:
128
- - - "<"
94
+ - - "<="
129
95
  - !ruby/object:Gem::Version
130
- version: 1.0.0
96
+ version: 0.16.1
131
97
  - !ruby/object:Gem::Dependency
132
98
  name: racatt
133
99
  requirement: !ruby/object:Gem::Requirement
@@ -170,33 +136,44 @@ dependencies:
170
136
  - - "<"
171
137
  - !ruby/object:Gem::Version
172
138
  version: 4.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: test-unit
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "<"
144
+ - !ruby/object:Gem::Version
145
+ version: 4.0.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "<"
151
+ - !ruby/object:Gem::Version
152
+ version: 4.0.0
173
153
  description: This gem facilitates modeling a test suite that is written in Gherkin
174
154
  (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by providing an abstraction
175
- layer on top of the Abstract Syntax Tree that the 'gherkin' gem generates when parsing
176
- features, as well as providing models for feature files and directories in order
177
- to be able to have a fully traversable model tree of a test suite's structure. These
178
- models can then be analyzed or manipulated more easily than the underlying AST layer.
155
+ layer on top of the Abstract Syntax Tree that the 'cucumber-gherkin' gem generates
156
+ when parsing features, as well as providing models for feature files and directories
157
+ in order to be able to have a fully traversable model tree of a test suite's structure.
158
+ These models can then be analyzed or manipulated more easily than the underlying
159
+ AST layer.
179
160
  email:
180
161
  - morrow748@gmail.com
181
162
  executables: []
182
163
  extensions: []
183
164
  extra_rdoc_files: []
184
165
  files:
185
- - ".gitignore"
186
- - ".simplecov"
187
- - ".travis.yml"
188
166
  - CHANGELOG.md
189
- - Gemfile
190
167
  - LICENSE.txt
191
168
  - README.md
192
- - Rakefile
193
- - appveyor.yml
194
169
  - cuke_modeler.gemspec
195
170
  - lib/cuke_modeler.rb
196
- - lib/cuke_modeler/adapters/gherkin_2_adapter.rb
197
- - lib/cuke_modeler/adapters/gherkin_3_adapter.rb
198
- - lib/cuke_modeler/adapters/gherkin_4_adapter.rb
199
- - lib/cuke_modeler/adapters/gherkin_6_adapter.rb
171
+ - lib/cuke_modeler/adapters/gherkin_10_adapter.rb
172
+ - lib/cuke_modeler/adapters/gherkin_11_adapter.rb
173
+ - lib/cuke_modeler/adapters/gherkin_12_adapter.rb
174
+ - lib/cuke_modeler/adapters/gherkin_13_adapter.rb
175
+ - lib/cuke_modeler/adapters/gherkin_14_adapter.rb
176
+ - lib/cuke_modeler/adapters/gherkin_9_adapter.rb
200
177
  - lib/cuke_modeler/containing.rb
201
178
  - lib/cuke_modeler/described.rb
202
179
  - lib/cuke_modeler/models/background.rb
@@ -210,6 +187,7 @@ files:
210
187
  - lib/cuke_modeler/models/model.rb
211
188
  - lib/cuke_modeler/models/outline.rb
212
189
  - lib/cuke_modeler/models/row.rb
190
+ - lib/cuke_modeler/models/rule.rb
213
191
  - lib/cuke_modeler/models/scenario.rb
214
192
  - lib/cuke_modeler/models/step.rb
215
193
  - lib/cuke_modeler/models/table.rb
@@ -222,6 +200,7 @@ files:
222
200
  - lib/cuke_modeler/stepped.rb
223
201
  - lib/cuke_modeler/taggable.rb
224
202
  - lib/cuke_modeler/version.rb
203
+ - testing/cucumber/features/analysis/step_comparison.feature
225
204
  - testing/cucumber/features/analysis/test_comparison.feature
226
205
  - testing/cucumber/features/modeling/background_modeling.feature
227
206
  - testing/cucumber/features/modeling/background_output.feature
@@ -245,6 +224,8 @@ files:
245
224
  - testing/cucumber/features/modeling/outline_output.feature
246
225
  - testing/cucumber/features/modeling/row_modeling.feature
247
226
  - testing/cucumber/features/modeling/row_output.feature
227
+ - testing/cucumber/features/modeling/rule_modeling.feature
228
+ - testing/cucumber/features/modeling/rule_output.feature
248
229
  - testing/cucumber/features/modeling/scenario_modeling.feature
249
230
  - testing/cucumber/features/modeling/scenario_output.feature
250
231
  - testing/cucumber/features/modeling/step_modeling.feature
@@ -253,88 +234,6 @@ files:
253
234
  - testing/cucumber/features/modeling/table_output.feature
254
235
  - testing/cucumber/features/modeling/tag_modeling.feature
255
236
  - testing/cucumber/features/modeling/tag_output.feature
256
- - testing/cucumber/step_definitions/action_steps.rb
257
- - testing/cucumber/step_definitions/background_steps.rb
258
- - testing/cucumber/step_definitions/directory_steps.rb
259
- - testing/cucumber/step_definitions/doc_string_steps.rb
260
- - testing/cucumber/step_definitions/feature_file_steps.rb
261
- - testing/cucumber/step_definitions/feature_steps.rb
262
- - testing/cucumber/step_definitions/modeling_steps.rb
263
- - testing/cucumber/step_definitions/setup_steps.rb
264
- - testing/cucumber/step_definitions/step_steps.rb
265
- - testing/cucumber/step_definitions/table_steps.rb
266
- - testing/cucumber/step_definitions/tag_steps.rb
267
- - testing/cucumber/step_definitions/verification_steps.rb
268
- - testing/cucumber/support/env.rb
269
- - testing/dialect_helper.rb
270
- - testing/file_helper.rb
271
- - testing/gemfiles/gherkin2.gemfile
272
- - testing/gemfiles/gherkin3.gemfile
273
- - testing/gemfiles/gherkin4.gemfile
274
- - testing/gemfiles/gherkin5.gemfile
275
- - testing/gemfiles/gherkin6.gemfile
276
- - testing/rspec/spec/integration/adapters/gherkin_2_adapter_spec.rb
277
- - testing/rspec/spec/integration/adapters/gherkin_3_adapter_spec.rb
278
- - testing/rspec/spec/integration/adapters/gherkin_4_adapter_spec.rb
279
- - testing/rspec/spec/integration/adapters/gherkin_6_adapter_spec.rb
280
- - testing/rspec/spec/integration/models/background_integration_spec.rb
281
- - testing/rspec/spec/integration/models/cell_integration_spec.rb
282
- - testing/rspec/spec/integration/models/comment_integration_spec.rb
283
- - testing/rspec/spec/integration/models/directory_integration_spec.rb
284
- - testing/rspec/spec/integration/models/doc_string_integration_spec.rb
285
- - testing/rspec/spec/integration/models/example_integration_spec.rb
286
- - testing/rspec/spec/integration/models/feature_file_integration_spec.rb
287
- - testing/rspec/spec/integration/models/feature_integration_spec.rb
288
- - testing/rspec/spec/integration/models/model_integration_spec.rb
289
- - testing/rspec/spec/integration/models/outline_integration_spec.rb
290
- - testing/rspec/spec/integration/models/row_integration_spec.rb
291
- - testing/rspec/spec/integration/models/scenario_integration_spec.rb
292
- - testing/rspec/spec/integration/models/step_integration_spec.rb
293
- - testing/rspec/spec/integration/models/table_integration_spec.rb
294
- - testing/rspec/spec/integration/models/tag_integration_spec.rb
295
- - testing/rspec/spec/integration/nested_integration_spec.rb
296
- - testing/rspec/spec/integration/parsing_integration_spec.rb
297
- - testing/rspec/spec/integration/shared/models_integration_specs.rb
298
- - testing/rspec/spec/spec_helper.rb
299
- - testing/rspec/spec/unit/cuke_modeler_unit_spec.rb
300
- - testing/rspec/spec/unit/described_unit_spec.rb
301
- - testing/rspec/spec/unit/models/background_unit_spec.rb
302
- - testing/rspec/spec/unit/models/cell_unit_spec.rb
303
- - testing/rspec/spec/unit/models/comment_unit_spec.rb
304
- - testing/rspec/spec/unit/models/directory_unit_spec.rb
305
- - testing/rspec/spec/unit/models/doc_string_unit_spec.rb
306
- - testing/rspec/spec/unit/models/example_unit_spec.rb
307
- - testing/rspec/spec/unit/models/feature_file_unit_spec.rb
308
- - testing/rspec/spec/unit/models/feature_unit_spec.rb
309
- - testing/rspec/spec/unit/models/model_unit_spec.rb
310
- - testing/rspec/spec/unit/models/outline_unit_spec.rb
311
- - testing/rspec/spec/unit/models/row_unit_spec.rb
312
- - testing/rspec/spec/unit/models/scenario_unit_spec.rb
313
- - testing/rspec/spec/unit/models/step_unit_spec.rb
314
- - testing/rspec/spec/unit/models/table_unit_spec.rb
315
- - testing/rspec/spec/unit/models/tag_unit_spec.rb
316
- - testing/rspec/spec/unit/named_unit_spec.rb
317
- - testing/rspec/spec/unit/nested_unit_spec.rb
318
- - testing/rspec/spec/unit/parsed_unit_spec.rb
319
- - testing/rspec/spec/unit/parsing_unit_spec.rb
320
- - testing/rspec/spec/unit/shared/bare_bones_models_unit_specs.rb
321
- - testing/rspec/spec/unit/shared/containing_models_unit_specs.rb
322
- - testing/rspec/spec/unit/shared/described_models_unit_specs.rb
323
- - testing/rspec/spec/unit/shared/keyworded_models_unit_specs.rb
324
- - testing/rspec/spec/unit/shared/models_unit_specs.rb
325
- - testing/rspec/spec/unit/shared/named_models_unit_specs.rb
326
- - testing/rspec/spec/unit/shared/nested_models_unit_specs.rb
327
- - testing/rspec/spec/unit/shared/parsed_models_unit_specs.rb
328
- - testing/rspec/spec/unit/shared/prepopulated_models_unit_specs.rb
329
- - testing/rspec/spec/unit/shared/sourced_models_unit_specs.rb
330
- - testing/rspec/spec/unit/shared/stepped_models_unit_specs.rb
331
- - testing/rspec/spec/unit/shared/stringifiable_models_unit_specs.rb
332
- - testing/rspec/spec/unit/shared/tagged_models_unit_specs.rb
333
- - testing/rspec/spec/unit/sourceable_unit_spec.rb
334
- - testing/rspec/spec/unit/stepped_unit_spec.rb
335
- - testing/rspec/spec/unit/taggable_unit_spec.rb
336
- - testing/test_languages.json
337
- - todo.txt
338
237
  homepage: https://github.com/enkessler/cuke_modeler
339
238
  licenses:
340
239
  - MIT
@@ -347,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
347
246
  requirements:
348
247
  - - ">="
349
248
  - !ruby/object:Gem::Version
350
- version: 1.8.7
249
+ version: '2.3'
351
250
  - - "<"
352
251
  - !ruby/object:Gem::Version
353
252
  version: '3.0'
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- .idea/*
data/.simplecov DELETED
@@ -1,7 +0,0 @@
1
- SimpleCov.start do
2
- root File.dirname(__FILE__)
3
-
4
- add_filter '/testing/'
5
-
6
- merge_timeout 300
7
- end
@@ -1,60 +0,0 @@
1
- os:
2
- - linux
3
- - osx
4
-
5
- language: ruby
6
- rvm:
7
- - 1.8.7
8
- - 1.9.3
9
- - 2.3.8
10
- - 2.4.5
11
- - 2.5.3
12
- - 2.6.0
13
- - jruby-9.1.7.0
14
-
15
- gemfile:
16
- - testing/gemfiles/gherkin2.gemfile
17
- - testing/gemfiles/gherkin3.gemfile
18
- - testing/gemfiles/gherkin4.gemfile
19
- - testing/gemfiles/gherkin5.gemfile
20
- - testing/gemfiles/gherkin6.gemfile
21
-
22
- matrix:
23
- exclude:
24
- # gherkin 3.x does not work with Ruby 1.8.x
25
- - rvm: 1.8.7
26
- gemfile: testing/gemfiles/gherkin3.gemfile
27
- # gherkin 4.x does not work with Ruby 1.8.x
28
- - rvm: 1.8.7
29
- gemfile: testing/gemfiles/gherkin4.gemfile
30
- # gherkin 5.x does not work with Ruby 1.8.x
31
- - rvm: 1.8.7
32
- gemfile: testing/gemfiles/gherkin5.gemfile
33
- # gherkin 6.x does not work with Ruby 1.8.x
34
- - rvm: 1.8.7
35
- gemfile: testing/gemfiles/gherkin6.gemfile
36
- # gherkin 6.x does not work with Ruby 1.9.x
37
- - rvm: 1.9.3
38
- gemfile: testing/gemfiles/gherkin6.gemfile
39
-
40
- # TODO: use once protobuf is updated
41
- # gherkin 6.x uses protobuf, which does not work with Ruby 2.6.x
42
- - rvm: 2.6.0
43
- gemfile: testing/gemfiles/gherkin6.gemfile
44
-
45
- # TODO: turn this back on
46
- # gherkin 6.x relies on 'google-protobuf', which does not currently work on JRuby (https://github.com/protocolbuffers/protobuf/issues/1594)
47
- - rvm: jruby-9.1.7.0
48
- gemfile: testing/gemfiles/gherkin6.gemfile
49
-
50
- # Travis does not provide 1.8.7 on OSX
51
- - rvm: 1.8.7
52
- os: osx
53
- # Travis does not provide 1.9.3 on OSX
54
- - rvm: 1.9.3
55
- os: osx
56
-
57
- before_install:
58
- - gem install bundler -v '< 2'
59
-
60
- script: bundle exec rake cuke_modeler:ci_build
data/Gemfile DELETED
@@ -1,37 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- # Specify your gem's dependencies in cuke_modeler.gemspec
4
- gemspec
5
-
6
- # cuke_modeler can play with pretty much any version of these but they all play differently with Ruby
7
-
8
- if RUBY_VERSION =~ /^1\./
9
-
10
- if RbConfig::CONFIG['host_os'].downcase =~ /mswin|msys|mingw32/
11
- gem 'ffi', '< 1.9.15' # The 'ffi' gem, for Windows, requires Ruby 2.x on/after this version
12
- end
13
-
14
- gem 'unf_ext', '< 0.0.7.3' # Requires Ruby 2.x on/after this version
15
- gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
16
- gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
17
- gem 'term-ansicolor', '< 1.4' # The 'term-ansicolor' gem requires Ruby 2.x on/after this version
18
-
19
- if RUBY_VERSION =~ /^1\.8/
20
- gem 'cucumber', '~> 1.0' # Ruby 1.8.x support dropped after this version
21
- gem 'gherkin', '< 2.12.1' # Ruby 1.8.x support dropped after this version
22
- gem 'rainbow', '< 2.0' # Ruby 1.8.x support dropped after this version
23
- gem 'rake', '< 11.0' # Ruby 1.8.x support dropped after this version
24
- else
25
- gem 'rake', '< 12.3.0' # Ruby 1.9.x support dropped after this version
26
- gem 'cucumber', '< 3.0.0' # Ruby 1.9.x support dropped after this version
27
- end
28
-
29
- elsif RUBY_VERSION =~ /^2\./
30
-
31
- if RUBY_VERSION =~ /^2\.[23456789]/
32
- gem 'test-unit'
33
- end
34
-
35
- gem 'gherkin', '~> 6.0'
36
- gem 'cucumber', '~>4.0.rc'
37
- end
data/Rakefile DELETED
@@ -1,73 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require 'rake'
3
- require 'racatt'
4
- require 'coveralls/rake/task'
5
- require 'rainbow'
6
-
7
-
8
- Rainbow.enabled = true
9
-
10
- namespace 'racatt' do
11
- Racatt.create_tasks
12
- end
13
-
14
-
15
- namespace 'cuke_modeler' do
16
-
17
- desc 'Removes the current code coverage data'
18
- task :clear_coverage do
19
- code_coverage_directory = "#{File.dirname(__FILE__)}/coverage"
20
-
21
- FileUtils.remove_dir(code_coverage_directory, true)
22
- end
23
-
24
- desc 'Check documentation with RDoc'
25
- task :check_documentation do
26
- output = `rdoc lib -C`
27
- puts output
28
-
29
- if output =~ /100.00% documented/
30
- puts Rainbow('All code documented').green
31
- else
32
- raise Rainbow('Parts of the gem are undocumented').red
33
- end
34
- end
35
-
36
- desc 'Run all of the tests'
37
- task :test_everything => [:clear_coverage] do
38
- rspec_args = '--tag ~@wip --pattern "testing/rspec/spec/**/*_spec.rb" --force-color'
39
-
40
- cucumber_version = Gem.loaded_specs['cucumber'].version.version
41
-
42
- if cucumber_version =~ /^[123]\./
43
- cucumber_args = 'testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t ~@wip --color'
44
- else
45
- cucumber_args = "testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t 'not @wip' --color"
46
- end
47
-
48
- Rake::Task['racatt:test_everything'].invoke(rspec_args, cucumber_args)
49
- end
50
-
51
- # creates coveralls:push task
52
- Coveralls::RakeTask.new
53
-
54
- desc 'The task that CI will run. Do not run locally.'
55
- task :ci_build => ['cuke_modeler:test_everything', 'coveralls:push']
56
-
57
- desc 'Check that things look good before trying to release'
58
- task :prerelease_check do
59
- begin
60
- Rake::Task['cuke_modeler:test_everything'].invoke
61
- Rake::Task['cuke_modeler:check_documentation'].invoke
62
- rescue => e
63
- puts Rainbow("Something isn't right!").red
64
- raise e
65
- end
66
-
67
- puts Rainbow('All is well. :)').green
68
- end
69
-
70
- end
71
-
72
-
73
- task :default => 'cuke_modeler:test_everything'