cuke_modeler 2.1.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -1
- data/README.md +14 -16
- data/cuke_modeler.gemspec +33 -21
- data/lib/cuke_modeler.rb +2 -1
- data/lib/cuke_modeler/adapters/gherkin_10_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_11_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_12_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_13_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_14_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_15_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_9_adapter.rb +356 -4
- data/lib/cuke_modeler/containing.rb +41 -89
- data/lib/cuke_modeler/described.rb +40 -1
- data/lib/cuke_modeler/models/background.rb +12 -12
- data/lib/cuke_modeler/models/cell.rb +14 -8
- data/lib/cuke_modeler/models/comment.rb +6 -6
- data/lib/cuke_modeler/models/directory.rb +14 -18
- data/lib/cuke_modeler/models/doc_string.rb +11 -8
- data/lib/cuke_modeler/models/example.rb +64 -46
- data/lib/cuke_modeler/models/feature.rb +38 -20
- data/lib/cuke_modeler/models/feature_file.rb +6 -8
- data/lib/cuke_modeler/models/model.rb +2 -1
- data/lib/cuke_modeler/models/outline.rb +20 -15
- data/lib/cuke_modeler/models/row.rb +11 -8
- data/lib/cuke_modeler/models/rule.rb +101 -0
- data/lib/cuke_modeler/models/scenario.rb +18 -13
- data/lib/cuke_modeler/models/step.rb +41 -19
- data/lib/cuke_modeler/models/table.rb +10 -7
- data/lib/cuke_modeler/models/tag.rb +10 -6
- data/lib/cuke_modeler/named.rb +5 -1
- data/lib/cuke_modeler/nested.rb +22 -18
- data/lib/cuke_modeler/parsed.rb +8 -0
- data/lib/cuke_modeler/parsing.rb +55 -74
- data/lib/cuke_modeler/sourceable.rb +8 -0
- data/lib/cuke_modeler/stepped.rb +8 -0
- data/lib/cuke_modeler/taggable.rb +9 -1
- data/lib/cuke_modeler/version.rb +1 -1
- data/testing/cucumber/features/modeling/feature_modeling.feature +28 -7
- data/testing/cucumber/features/modeling/feature_output.feature +45 -23
- data/testing/cucumber/features/modeling/rule_modeling.feature +108 -0
- data/testing/cucumber/features/modeling/rule_output.feature +111 -0
- metadata +68 -161
- data/.gitignore +0 -18
- data/.simplecov +0 -7
- data/.travis.yml +0 -81
- data/Gemfile +0 -44
- data/Rakefile +0 -73
- data/appveyor.yml +0 -88
- data/lib/cuke_modeler/adapters/gherkin_2_adapter.rb +0 -274
- data/lib/cuke_modeler/adapters/gherkin_3_adapter.rb +0 -297
- data/lib/cuke_modeler/adapters/gherkin_4_adapter.rb +0 -309
- data/lib/cuke_modeler/adapters/gherkin_5_adapter.rb +0 -12
- data/lib/cuke_modeler/adapters/gherkin_6_adapter.rb +0 -310
- data/lib/cuke_modeler/adapters/gherkin_7_adapter.rb +0 -307
- data/lib/cuke_modeler/adapters/gherkin_8_adapter.rb +0 -12
- data/testing/cucumber/step_definitions/action_steps.rb +0 -13
- data/testing/cucumber/step_definitions/background_steps.rb +0 -1
- data/testing/cucumber/step_definitions/directory_steps.rb +0 -6
- data/testing/cucumber/step_definitions/doc_string_steps.rb +0 -1
- data/testing/cucumber/step_definitions/feature_file_steps.rb +0 -16
- data/testing/cucumber/step_definitions/feature_steps.rb +0 -7
- data/testing/cucumber/step_definitions/modeling_steps.rb +0 -49
- data/testing/cucumber/step_definitions/setup_steps.rb +0 -32
- data/testing/cucumber/step_definitions/step_steps.rb +0 -3
- data/testing/cucumber/step_definitions/table_steps.rb +0 -1
- data/testing/cucumber/step_definitions/tag_steps.rb +0 -3
- data/testing/cucumber/step_definitions/verification_steps.rb +0 -181
- data/testing/cucumber/support/env.rb +0 -30
- data/testing/dialect_helper.rb +0 -48
- data/testing/file_helper.rb +0 -47
- data/testing/gemfiles/gherkin2.gemfile +0 -33
- data/testing/gemfiles/gherkin3.gemfile +0 -26
- data/testing/gemfiles/gherkin4.gemfile +0 -27
- data/testing/gemfiles/gherkin5.gemfile +0 -27
- data/testing/gemfiles/gherkin6.gemfile +0 -10
- data/testing/gemfiles/gherkin7.gemfile +0 -9
- data/testing/gemfiles/gherkin8.gemfile +0 -9
- data/testing/gemfiles/gherkin9.gemfile +0 -9
- data/testing/helper_methods.rb +0 -23
- data/testing/rspec/spec/integration/adapters/gherkin_2_adapter_spec.rb +0 -166
- data/testing/rspec/spec/integration/adapters/gherkin_3_adapter_spec.rb +0 -166
- data/testing/rspec/spec/integration/adapters/gherkin_4_adapter_spec.rb +0 -165
- data/testing/rspec/spec/integration/adapters/gherkin_5_adapter_spec.rb +0 -165
- data/testing/rspec/spec/integration/adapters/gherkin_6_adapter_spec.rb +0 -159
- data/testing/rspec/spec/integration/adapters/gherkin_7_adapter_spec.rb +0 -162
- data/testing/rspec/spec/integration/adapters/gherkin_8_adapter_spec.rb +0 -162
- data/testing/rspec/spec/integration/adapters/gherkin_9_adapter_spec.rb +0 -162
- data/testing/rspec/spec/integration/models/background_integration_spec.rb +0 -438
- data/testing/rspec/spec/integration/models/cell_integration_spec.rb +0 -338
- data/testing/rspec/spec/integration/models/comment_integration_spec.rb +0 -180
- data/testing/rspec/spec/integration/models/directory_integration_spec.rb +0 -218
- data/testing/rspec/spec/integration/models/doc_string_integration_spec.rb +0 -398
- data/testing/rspec/spec/integration/models/example_integration_spec.rb +0 -753
- data/testing/rspec/spec/integration/models/feature_file_integration_spec.rb +0 -276
- data/testing/rspec/spec/integration/models/feature_integration_spec.rb +0 -655
- data/testing/rspec/spec/integration/models/model_integration_spec.rb +0 -15
- data/testing/rspec/spec/integration/models/outline_integration_spec.rb +0 -619
- data/testing/rspec/spec/integration/models/row_integration_spec.rb +0 -303
- data/testing/rspec/spec/integration/models/scenario_integration_spec.rb +0 -475
- data/testing/rspec/spec/integration/models/step_integration_spec.rb +0 -573
- data/testing/rspec/spec/integration/models/table_integration_spec.rb +0 -333
- data/testing/rspec/spec/integration/models/tag_integration_spec.rb +0 -271
- data/testing/rspec/spec/integration/nested_integration_spec.rb +0 -91
- data/testing/rspec/spec/integration/parsing_integration_spec.rb +0 -143
- data/testing/rspec/spec/integration/shared/models_integration_specs.rb +0 -18
- data/testing/rspec/spec/spec_helper.rb +0 -129
- data/testing/rspec/spec/unit/cuke_modeler_unit_spec.rb +0 -25
- data/testing/rspec/spec/unit/described_unit_spec.rb +0 -23
- data/testing/rspec/spec/unit/models/background_unit_spec.rb +0 -83
- data/testing/rspec/spec/unit/models/cell_unit_spec.rb +0 -68
- data/testing/rspec/spec/unit/models/comment_unit_spec.rb +0 -68
- data/testing/rspec/spec/unit/models/directory_unit_spec.rb +0 -127
- data/testing/rspec/spec/unit/models/doc_string_unit_spec.rb +0 -100
- data/testing/rspec/spec/unit/models/example_unit_spec.rb +0 -133
- data/testing/rspec/spec/unit/models/feature_file_unit_spec.rb +0 -125
- data/testing/rspec/spec/unit/models/feature_unit_spec.rb +0 -157
- data/testing/rspec/spec/unit/models/model_unit_spec.rb +0 -15
- data/testing/rspec/spec/unit/models/outline_unit_spec.rb +0 -117
- data/testing/rspec/spec/unit/models/row_unit_spec.rb +0 -68
- data/testing/rspec/spec/unit/models/scenario_unit_spec.rb +0 -86
- data/testing/rspec/spec/unit/models/step_unit_spec.rb +0 -109
- data/testing/rspec/spec/unit/models/table_unit_spec.rb +0 -77
- data/testing/rspec/spec/unit/models/tag_unit_spec.rb +0 -68
- data/testing/rspec/spec/unit/named_unit_spec.rb +0 -23
- data/testing/rspec/spec/unit/nested_unit_spec.rb +0 -43
- data/testing/rspec/spec/unit/parsed_unit_spec.rb +0 -27
- data/testing/rspec/spec/unit/parsing_unit_spec.rb +0 -54
- data/testing/rspec/spec/unit/shared/bare_bones_models_unit_specs.rb +0 -14
- data/testing/rspec/spec/unit/shared/containing_models_unit_specs.rb +0 -127
- data/testing/rspec/spec/unit/shared/described_models_unit_specs.rb +0 -38
- data/testing/rspec/spec/unit/shared/keyworded_models_unit_specs.rb +0 -58
- data/testing/rspec/spec/unit/shared/models_unit_specs.rb +0 -15
- data/testing/rspec/spec/unit/shared/named_models_unit_specs.rb +0 -39
- data/testing/rspec/spec/unit/shared/nested_models_unit_specs.rb +0 -51
- data/testing/rspec/spec/unit/shared/parsed_models_unit_specs.rb +0 -39
- data/testing/rspec/spec/unit/shared/prepopulated_models_unit_specs.rb +0 -18
- data/testing/rspec/spec/unit/shared/sourced_models_unit_specs.rb +0 -39
- data/testing/rspec/spec/unit/shared/stepped_models_unit_specs.rb +0 -46
- data/testing/rspec/spec/unit/shared/stringifiable_models_unit_specs.rb +0 -18
- data/testing/rspec/spec/unit/shared/tagged_models_unit_specs.rb +0 -72
- data/testing/rspec/spec/unit/sourceable_unit_spec.rb +0 -27
- data/testing/rspec/spec/unit/stepped_unit_spec.rb +0 -23
- data/testing/rspec/spec/unit/taggable_unit_spec.rb +0 -69
- data/testing/test_languages.json +0 -45
- data/todo.txt +0 -25
@@ -11,23 +11,28 @@ Feature: Feature output
|
|
11
11
|
Feature: A feature with everything it could have
|
12
12
|
Including a description
|
13
13
|
and then some.
|
14
|
-
Background:
|
14
|
+
Background: non-nested background
|
15
15
|
Background
|
16
16
|
description
|
17
17
|
* a step
|
18
18
|
|value1|
|
19
|
+
|value2|
|
19
20
|
* another step
|
20
21
|
@scenario_tag
|
21
|
-
Scenario:
|
22
|
+
Scenario: non-nested scenario
|
22
23
|
Scenario
|
23
24
|
description
|
24
25
|
* a step
|
25
26
|
* another step
|
26
|
-
\"\"\"
|
27
|
+
\"\"\" with content type
|
27
28
|
some text
|
28
29
|
\"\"\"
|
30
|
+
Rule: a rule
|
31
|
+
Rule description
|
32
|
+
Background: nested background
|
33
|
+
* a step
|
29
34
|
@outline_tag
|
30
|
-
Scenario Outline:
|
35
|
+
Scenario Outline: nested outline
|
31
36
|
Outline
|
32
37
|
description
|
33
38
|
* a step
|
@@ -42,6 +47,9 @@ Feature: Feature output
|
|
42
47
|
description
|
43
48
|
|param|
|
44
49
|
|value|
|
50
|
+
Examples: additional example
|
51
|
+
Rule: another rule
|
52
|
+
Which is empty
|
45
53
|
"""
|
46
54
|
And a feature model based on that gherkin
|
47
55
|
"""
|
@@ -59,48 +67,62 @@ Feature: Feature output
|
|
59
67
|
Including a description
|
60
68
|
and then some.
|
61
69
|
|
62
|
-
Background:
|
70
|
+
Background: non-nested background
|
63
71
|
|
64
72
|
Background
|
65
73
|
description
|
66
74
|
|
67
75
|
* a step
|
68
76
|
| value1 |
|
77
|
+
| value2 |
|
69
78
|
* another step
|
70
79
|
|
71
80
|
@scenario_tag
|
72
|
-
Scenario:
|
81
|
+
Scenario: non-nested scenario
|
73
82
|
|
74
83
|
Scenario
|
75
84
|
description
|
76
85
|
|
77
86
|
* a step
|
78
87
|
* another step
|
79
|
-
\"\"\"
|
88
|
+
\"\"\" with content type
|
80
89
|
some text
|
81
90
|
\"\"\"
|
82
91
|
|
83
|
-
|
84
|
-
Scenario Outline:
|
92
|
+
Rule: a rule
|
85
93
|
|
86
|
-
|
87
|
-
description
|
94
|
+
Rule description
|
88
95
|
|
89
|
-
|
90
|
-
|
91
|
-
* another step
|
92
|
-
\"\"\"
|
93
|
-
some text
|
94
|
-
\"\"\"
|
96
|
+
Background: nested background
|
97
|
+
* a step
|
95
98
|
|
96
|
-
|
97
|
-
|
99
|
+
@outline_tag
|
100
|
+
Scenario Outline: nested outline
|
98
101
|
|
99
|
-
|
100
|
-
|
102
|
+
Outline
|
103
|
+
description
|
104
|
+
|
105
|
+
* a step
|
106
|
+
| value2 |
|
107
|
+
* another step
|
108
|
+
\"\"\"
|
109
|
+
some text
|
110
|
+
\"\"\"
|
111
|
+
|
112
|
+
@example_tag
|
113
|
+
Examples:
|
114
|
+
|
115
|
+
Example
|
116
|
+
description
|
117
|
+
|
118
|
+
| param |
|
119
|
+
| value |
|
120
|
+
|
121
|
+
Examples: additional example
|
122
|
+
|
123
|
+
Rule: another rule
|
101
124
|
|
102
|
-
|
103
|
-
| value |
|
125
|
+
Which is empty
|
104
126
|
"""
|
105
127
|
And the output can be used to make an equivalent model
|
106
128
|
"""
|
@@ -0,0 +1,108 @@
|
|
1
|
+
Feature: Rule modeling
|
2
|
+
|
3
|
+
Rule models Scenario portion of a feature. They expose several attributes of the rule that they represent, as well as
|
4
|
+
containing models for any background, scenarios, or outlines that are present in that rule.
|
5
|
+
|
6
|
+
|
7
|
+
Background:
|
8
|
+
Given the following gherkin:
|
9
|
+
"""
|
10
|
+
Rule: Rule Foo
|
11
|
+
|
12
|
+
Some rule description.
|
13
|
+
|
14
|
+
Some more.
|
15
|
+
And some more.
|
16
|
+
|
17
|
+
Background: The background
|
18
|
+
* some setup step
|
19
|
+
|
20
|
+
Scenario: Scenario 1
|
21
|
+
* a step
|
22
|
+
|
23
|
+
Scenario Outline: Outline 1
|
24
|
+
* a step
|
25
|
+
Examples:
|
26
|
+
| param |
|
27
|
+
| value |
|
28
|
+
|
29
|
+
Scenario: Scenario 2
|
30
|
+
* a step
|
31
|
+
"""
|
32
|
+
And a feature model based on that gherkin
|
33
|
+
"""
|
34
|
+
@model = CukeModeler::Rule.new(<source_text>)
|
35
|
+
"""
|
36
|
+
|
37
|
+
|
38
|
+
Scenario: Modeling a rule's keyword
|
39
|
+
When the rule's keyword is requested
|
40
|
+
"""
|
41
|
+
@model.keyword
|
42
|
+
"""
|
43
|
+
Then the model returns "Rule"
|
44
|
+
|
45
|
+
Scenario: Modeling a rule's name
|
46
|
+
When the rule's name is requested
|
47
|
+
"""
|
48
|
+
@model.name
|
49
|
+
"""
|
50
|
+
Then the model returns "Rule Foo"
|
51
|
+
|
52
|
+
Scenario: Modeling a rule's description
|
53
|
+
When the rule's description is requested
|
54
|
+
"""
|
55
|
+
@model.description
|
56
|
+
"""
|
57
|
+
Then the model returns
|
58
|
+
"""
|
59
|
+
Some rule description.
|
60
|
+
|
61
|
+
Some more.
|
62
|
+
And some more.
|
63
|
+
"""
|
64
|
+
|
65
|
+
Scenario: Modeling a rule's background
|
66
|
+
When the rule's background is requested
|
67
|
+
"""
|
68
|
+
@model.background
|
69
|
+
"""
|
70
|
+
Then the model returns a model for the background "The background"
|
71
|
+
|
72
|
+
Scenario: Modeling a rule's scenarios
|
73
|
+
When the rule's scenarios are requested
|
74
|
+
"""
|
75
|
+
@model.scenarios
|
76
|
+
"""
|
77
|
+
Then the model returns models for the following scenarios:
|
78
|
+
| Scenario 1 |
|
79
|
+
| Scenario 2 |
|
80
|
+
|
81
|
+
Scenario: Modeling a rule's outlines
|
82
|
+
When the rule's outlines are requested
|
83
|
+
"""
|
84
|
+
@model.outlines
|
85
|
+
"""
|
86
|
+
Then the model returns models for the following outlines:
|
87
|
+
| Outline 1 |
|
88
|
+
|
89
|
+
Scenario: Modeling a rule's source line
|
90
|
+
Given the following gherkin:
|
91
|
+
"""
|
92
|
+
Feature:
|
93
|
+
|
94
|
+
Rule:
|
95
|
+
"""
|
96
|
+
And a feature model based on that gherkin
|
97
|
+
"""
|
98
|
+
@model = CukeModeler::Feature.new(<source_text>)
|
99
|
+
"""
|
100
|
+
And the rule model of that feature model
|
101
|
+
"""
|
102
|
+
@model = @model.rules.first
|
103
|
+
"""
|
104
|
+
When the rule's source line is requested
|
105
|
+
"""
|
106
|
+
@model.source_line
|
107
|
+
"""
|
108
|
+
Then the model returns "3"
|
@@ -0,0 +1,111 @@
|
|
1
|
+
Feature: Rule output
|
2
|
+
|
3
|
+
A rule model's string output is a Gherkin representation of itself. As such, output from a rule model can be used as
|
4
|
+
input for the same kind of model.
|
5
|
+
|
6
|
+
|
7
|
+
Scenario: Outputting a rule model
|
8
|
+
Given the following gherkin:
|
9
|
+
"""
|
10
|
+
Rule: A rule with everything it could have
|
11
|
+
Including a description
|
12
|
+
and then some.
|
13
|
+
Background: a background
|
14
|
+
Background
|
15
|
+
description
|
16
|
+
* a step
|
17
|
+
|value1|
|
18
|
+
|value2|
|
19
|
+
* another step
|
20
|
+
@scenario_tag
|
21
|
+
Scenario: a scenario
|
22
|
+
Scenario
|
23
|
+
description
|
24
|
+
* a step
|
25
|
+
* another step
|
26
|
+
\"\"\" with content type
|
27
|
+
some text
|
28
|
+
\"\"\"
|
29
|
+
@outline_tag
|
30
|
+
Scenario Outline: an outline
|
31
|
+
Outline
|
32
|
+
description
|
33
|
+
* a step
|
34
|
+
|value2|
|
35
|
+
* another step
|
36
|
+
\"\"\"
|
37
|
+
some text
|
38
|
+
\"\"\"
|
39
|
+
@example_tag
|
40
|
+
Examples:
|
41
|
+
Example
|
42
|
+
description
|
43
|
+
|param|
|
44
|
+
|value|
|
45
|
+
Examples: additional example
|
46
|
+
"""
|
47
|
+
And a rule model based on that gherkin
|
48
|
+
"""
|
49
|
+
@model = CukeModeler::Rule.new(<source_text>)
|
50
|
+
"""
|
51
|
+
When the model is output as a string
|
52
|
+
"""
|
53
|
+
@model.to_s
|
54
|
+
"""
|
55
|
+
Then the following text is provided:
|
56
|
+
"""
|
57
|
+
Rule: A rule with everything it could have
|
58
|
+
|
59
|
+
Including a description
|
60
|
+
and then some.
|
61
|
+
|
62
|
+
Background: a background
|
63
|
+
|
64
|
+
Background
|
65
|
+
description
|
66
|
+
|
67
|
+
* a step
|
68
|
+
| value1 |
|
69
|
+
| value2 |
|
70
|
+
* another step
|
71
|
+
|
72
|
+
@scenario_tag
|
73
|
+
Scenario: a scenario
|
74
|
+
|
75
|
+
Scenario
|
76
|
+
description
|
77
|
+
|
78
|
+
* a step
|
79
|
+
* another step
|
80
|
+
\"\"\" with content type
|
81
|
+
some text
|
82
|
+
\"\"\"
|
83
|
+
|
84
|
+
@outline_tag
|
85
|
+
Scenario Outline: an outline
|
86
|
+
|
87
|
+
Outline
|
88
|
+
description
|
89
|
+
|
90
|
+
* a step
|
91
|
+
| value2 |
|
92
|
+
* another step
|
93
|
+
\"\"\"
|
94
|
+
some text
|
95
|
+
\"\"\"
|
96
|
+
|
97
|
+
@example_tag
|
98
|
+
Examples:
|
99
|
+
|
100
|
+
Example
|
101
|
+
description
|
102
|
+
|
103
|
+
| param |
|
104
|
+
| value |
|
105
|
+
|
106
|
+
Examples: additional example
|
107
|
+
"""
|
108
|
+
And the output can be used to make an equivalent model
|
109
|
+
"""
|
110
|
+
CukeModeler::Rule.new(@model.to_s)
|
111
|
+
"""
|
metadata
CHANGED
@@ -1,163 +1,163 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke_modeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.4.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: 2020-
|
11
|
+
date: 2020-09-02 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: '
|
19
|
+
version: '16.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: '
|
26
|
+
version: '16.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.0'
|
34
31
|
- - "<"
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '3.0'
|
37
|
-
type: :
|
34
|
+
type: :development
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '1.0'
|
44
38
|
- - "<"
|
45
39
|
- !ruby/object:Gem::Version
|
46
40
|
version: '3.0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: coveralls
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
|
-
- - "
|
45
|
+
- - "<"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
type: :
|
47
|
+
version: 1.0.0
|
48
|
+
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
|
-
- - "
|
52
|
+
- - "<"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: 1.0.0
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
56
|
+
name: cucumber
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.0
|
65
62
|
- - "<"
|
66
63
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
64
|
+
version: 6.0.0
|
68
65
|
type: :development
|
69
66
|
prerelease: false
|
70
67
|
version_requirements: !ruby/object:Gem::Requirement
|
71
68
|
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 4.0.0
|
72
72
|
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 6.0.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: racatt
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: '1.0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: '1.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: rainbow
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "<"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 4.0.0
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 4.0.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: rake
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - "<"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 14.0.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "<"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 14.0.0
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: rspec
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: '3.0'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: '3.0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: rubocop
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- - "
|
135
|
+
- - "<"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: 0.82.0
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- - "
|
142
|
+
- - "<"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: 0.82.0
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
146
|
+
name: simplecov
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - "<="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
151
|
+
version: 0.16.1
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - "<="
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: 0.16.1
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
160
|
+
name: test-unit
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "<"
|
@@ -170,36 +170,30 @@ dependencies:
|
|
170
170
|
- - "<"
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: 4.0.0
|
173
|
-
description: This gem facilitates modeling a test suite that is written in Gherkin
|
174
|
-
(e.g. Cucumber,
|
175
|
-
layer on top of the
|
176
|
-
features,
|
177
|
-
to be able to
|
178
|
-
models can then
|
173
|
+
description: "This gem facilitates modeling a test suite that is written in Gherkin
|
174
|
+
(e.g. Cucumber, \nSpecFlow, Lettuce, etc.). It does this by providing an abstraction
|
175
|
+
layer on top of the \nAbstract Syntax Tree that the 'cucumber-gherkin' gem generates
|
176
|
+
when parsing features, \nas well as providing models for feature files and directories
|
177
|
+
in order to be able to \nhave a fully traversable model tree of a test suite's structure.
|
178
|
+
These models can then \nbe analyzed or manipulated more easily than the underlying
|
179
|
+
AST layer."
|
179
180
|
email:
|
180
181
|
- morrow748@gmail.com
|
181
182
|
executables: []
|
182
183
|
extensions: []
|
183
184
|
extra_rdoc_files: []
|
184
185
|
files:
|
185
|
-
- ".gitignore"
|
186
|
-
- ".simplecov"
|
187
|
-
- ".travis.yml"
|
188
186
|
- CHANGELOG.md
|
189
|
-
- Gemfile
|
190
187
|
- LICENSE.txt
|
191
188
|
- README.md
|
192
|
-
- Rakefile
|
193
|
-
- appveyor.yml
|
194
189
|
- cuke_modeler.gemspec
|
195
190
|
- lib/cuke_modeler.rb
|
196
|
-
- lib/cuke_modeler/adapters/
|
197
|
-
- lib/cuke_modeler/adapters/
|
198
|
-
- lib/cuke_modeler/adapters/
|
199
|
-
- lib/cuke_modeler/adapters/
|
200
|
-
- lib/cuke_modeler/adapters/
|
201
|
-
- lib/cuke_modeler/adapters/
|
202
|
-
- lib/cuke_modeler/adapters/gherkin_8_adapter.rb
|
191
|
+
- lib/cuke_modeler/adapters/gherkin_10_adapter.rb
|
192
|
+
- lib/cuke_modeler/adapters/gherkin_11_adapter.rb
|
193
|
+
- lib/cuke_modeler/adapters/gherkin_12_adapter.rb
|
194
|
+
- lib/cuke_modeler/adapters/gherkin_13_adapter.rb
|
195
|
+
- lib/cuke_modeler/adapters/gherkin_14_adapter.rb
|
196
|
+
- lib/cuke_modeler/adapters/gherkin_15_adapter.rb
|
203
197
|
- lib/cuke_modeler/adapters/gherkin_9_adapter.rb
|
204
198
|
- lib/cuke_modeler/containing.rb
|
205
199
|
- lib/cuke_modeler/described.rb
|
@@ -214,6 +208,7 @@ files:
|
|
214
208
|
- lib/cuke_modeler/models/model.rb
|
215
209
|
- lib/cuke_modeler/models/outline.rb
|
216
210
|
- lib/cuke_modeler/models/row.rb
|
211
|
+
- lib/cuke_modeler/models/rule.rb
|
217
212
|
- lib/cuke_modeler/models/scenario.rb
|
218
213
|
- lib/cuke_modeler/models/step.rb
|
219
214
|
- lib/cuke_modeler/models/table.rb
|
@@ -250,6 +245,8 @@ files:
|
|
250
245
|
- testing/cucumber/features/modeling/outline_output.feature
|
251
246
|
- testing/cucumber/features/modeling/row_modeling.feature
|
252
247
|
- testing/cucumber/features/modeling/row_output.feature
|
248
|
+
- testing/cucumber/features/modeling/rule_modeling.feature
|
249
|
+
- testing/cucumber/features/modeling/rule_output.feature
|
253
250
|
- testing/cucumber/features/modeling/scenario_modeling.feature
|
254
251
|
- testing/cucumber/features/modeling/scenario_output.feature
|
255
252
|
- testing/cucumber/features/modeling/step_modeling.feature
|
@@ -258,96 +255,6 @@ files:
|
|
258
255
|
- testing/cucumber/features/modeling/table_output.feature
|
259
256
|
- testing/cucumber/features/modeling/tag_modeling.feature
|
260
257
|
- testing/cucumber/features/modeling/tag_output.feature
|
261
|
-
- testing/cucumber/step_definitions/action_steps.rb
|
262
|
-
- testing/cucumber/step_definitions/background_steps.rb
|
263
|
-
- testing/cucumber/step_definitions/directory_steps.rb
|
264
|
-
- testing/cucumber/step_definitions/doc_string_steps.rb
|
265
|
-
- testing/cucumber/step_definitions/feature_file_steps.rb
|
266
|
-
- testing/cucumber/step_definitions/feature_steps.rb
|
267
|
-
- testing/cucumber/step_definitions/modeling_steps.rb
|
268
|
-
- testing/cucumber/step_definitions/setup_steps.rb
|
269
|
-
- testing/cucumber/step_definitions/step_steps.rb
|
270
|
-
- testing/cucumber/step_definitions/table_steps.rb
|
271
|
-
- testing/cucumber/step_definitions/tag_steps.rb
|
272
|
-
- testing/cucumber/step_definitions/verification_steps.rb
|
273
|
-
- testing/cucumber/support/env.rb
|
274
|
-
- testing/dialect_helper.rb
|
275
|
-
- testing/file_helper.rb
|
276
|
-
- testing/gemfiles/gherkin2.gemfile
|
277
|
-
- testing/gemfiles/gherkin3.gemfile
|
278
|
-
- testing/gemfiles/gherkin4.gemfile
|
279
|
-
- testing/gemfiles/gherkin5.gemfile
|
280
|
-
- testing/gemfiles/gherkin6.gemfile
|
281
|
-
- testing/gemfiles/gherkin7.gemfile
|
282
|
-
- testing/gemfiles/gherkin8.gemfile
|
283
|
-
- testing/gemfiles/gherkin9.gemfile
|
284
|
-
- testing/helper_methods.rb
|
285
|
-
- testing/rspec/spec/integration/adapters/gherkin_2_adapter_spec.rb
|
286
|
-
- testing/rspec/spec/integration/adapters/gherkin_3_adapter_spec.rb
|
287
|
-
- testing/rspec/spec/integration/adapters/gherkin_4_adapter_spec.rb
|
288
|
-
- testing/rspec/spec/integration/adapters/gherkin_5_adapter_spec.rb
|
289
|
-
- testing/rspec/spec/integration/adapters/gherkin_6_adapter_spec.rb
|
290
|
-
- testing/rspec/spec/integration/adapters/gherkin_7_adapter_spec.rb
|
291
|
-
- testing/rspec/spec/integration/adapters/gherkin_8_adapter_spec.rb
|
292
|
-
- testing/rspec/spec/integration/adapters/gherkin_9_adapter_spec.rb
|
293
|
-
- testing/rspec/spec/integration/models/background_integration_spec.rb
|
294
|
-
- testing/rspec/spec/integration/models/cell_integration_spec.rb
|
295
|
-
- testing/rspec/spec/integration/models/comment_integration_spec.rb
|
296
|
-
- testing/rspec/spec/integration/models/directory_integration_spec.rb
|
297
|
-
- testing/rspec/spec/integration/models/doc_string_integration_spec.rb
|
298
|
-
- testing/rspec/spec/integration/models/example_integration_spec.rb
|
299
|
-
- testing/rspec/spec/integration/models/feature_file_integration_spec.rb
|
300
|
-
- testing/rspec/spec/integration/models/feature_integration_spec.rb
|
301
|
-
- testing/rspec/spec/integration/models/model_integration_spec.rb
|
302
|
-
- testing/rspec/spec/integration/models/outline_integration_spec.rb
|
303
|
-
- testing/rspec/spec/integration/models/row_integration_spec.rb
|
304
|
-
- testing/rspec/spec/integration/models/scenario_integration_spec.rb
|
305
|
-
- testing/rspec/spec/integration/models/step_integration_spec.rb
|
306
|
-
- testing/rspec/spec/integration/models/table_integration_spec.rb
|
307
|
-
- testing/rspec/spec/integration/models/tag_integration_spec.rb
|
308
|
-
- testing/rspec/spec/integration/nested_integration_spec.rb
|
309
|
-
- testing/rspec/spec/integration/parsing_integration_spec.rb
|
310
|
-
- testing/rspec/spec/integration/shared/models_integration_specs.rb
|
311
|
-
- testing/rspec/spec/spec_helper.rb
|
312
|
-
- testing/rspec/spec/unit/cuke_modeler_unit_spec.rb
|
313
|
-
- testing/rspec/spec/unit/described_unit_spec.rb
|
314
|
-
- testing/rspec/spec/unit/models/background_unit_spec.rb
|
315
|
-
- testing/rspec/spec/unit/models/cell_unit_spec.rb
|
316
|
-
- testing/rspec/spec/unit/models/comment_unit_spec.rb
|
317
|
-
- testing/rspec/spec/unit/models/directory_unit_spec.rb
|
318
|
-
- testing/rspec/spec/unit/models/doc_string_unit_spec.rb
|
319
|
-
- testing/rspec/spec/unit/models/example_unit_spec.rb
|
320
|
-
- testing/rspec/spec/unit/models/feature_file_unit_spec.rb
|
321
|
-
- testing/rspec/spec/unit/models/feature_unit_spec.rb
|
322
|
-
- testing/rspec/spec/unit/models/model_unit_spec.rb
|
323
|
-
- testing/rspec/spec/unit/models/outline_unit_spec.rb
|
324
|
-
- testing/rspec/spec/unit/models/row_unit_spec.rb
|
325
|
-
- testing/rspec/spec/unit/models/scenario_unit_spec.rb
|
326
|
-
- testing/rspec/spec/unit/models/step_unit_spec.rb
|
327
|
-
- testing/rspec/spec/unit/models/table_unit_spec.rb
|
328
|
-
- testing/rspec/spec/unit/models/tag_unit_spec.rb
|
329
|
-
- testing/rspec/spec/unit/named_unit_spec.rb
|
330
|
-
- testing/rspec/spec/unit/nested_unit_spec.rb
|
331
|
-
- testing/rspec/spec/unit/parsed_unit_spec.rb
|
332
|
-
- testing/rspec/spec/unit/parsing_unit_spec.rb
|
333
|
-
- testing/rspec/spec/unit/shared/bare_bones_models_unit_specs.rb
|
334
|
-
- testing/rspec/spec/unit/shared/containing_models_unit_specs.rb
|
335
|
-
- testing/rspec/spec/unit/shared/described_models_unit_specs.rb
|
336
|
-
- testing/rspec/spec/unit/shared/keyworded_models_unit_specs.rb
|
337
|
-
- testing/rspec/spec/unit/shared/models_unit_specs.rb
|
338
|
-
- testing/rspec/spec/unit/shared/named_models_unit_specs.rb
|
339
|
-
- testing/rspec/spec/unit/shared/nested_models_unit_specs.rb
|
340
|
-
- testing/rspec/spec/unit/shared/parsed_models_unit_specs.rb
|
341
|
-
- testing/rspec/spec/unit/shared/prepopulated_models_unit_specs.rb
|
342
|
-
- testing/rspec/spec/unit/shared/sourced_models_unit_specs.rb
|
343
|
-
- testing/rspec/spec/unit/shared/stepped_models_unit_specs.rb
|
344
|
-
- testing/rspec/spec/unit/shared/stringifiable_models_unit_specs.rb
|
345
|
-
- testing/rspec/spec/unit/shared/tagged_models_unit_specs.rb
|
346
|
-
- testing/rspec/spec/unit/sourceable_unit_spec.rb
|
347
|
-
- testing/rspec/spec/unit/stepped_unit_spec.rb
|
348
|
-
- testing/rspec/spec/unit/taggable_unit_spec.rb
|
349
|
-
- testing/test_languages.json
|
350
|
-
- todo.txt
|
351
258
|
homepage: https://github.com/enkessler/cuke_modeler
|
352
259
|
licenses:
|
353
260
|
- MIT
|
@@ -360,7 +267,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
360
267
|
requirements:
|
361
268
|
- - ">="
|
362
269
|
- !ruby/object:Gem::Version
|
363
|
-
version:
|
270
|
+
version: '2.3'
|
364
271
|
- - "<"
|
365
272
|
- !ruby/object:Gem::Version
|
366
273
|
version: '3.0'
|