cuke_modeler 3.19.0 → 3.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -1
- data/README.md +5 -6
- data/cuke_modeler.gemspec +5 -3
- data/lib/cuke_modeler/adapters/gherkin_10_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_11_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_12_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_13_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_14_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_15_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_16_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_17_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_18_adapter.rb +5 -2
- data/lib/cuke_modeler/adapters/gherkin_19_adapter.rb +5 -2
- data/lib/cuke_modeler/adapters/gherkin_20_adapter.rb +5 -2
- data/lib/cuke_modeler/adapters/gherkin_21_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_22_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_23_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_24_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_25_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_26_adapter.rb +5 -5
- data/lib/cuke_modeler/adapters/gherkin_27_adapter.rb +13 -0
- data/lib/cuke_modeler/adapters/gherkin_9_adapter.rb +5 -2
- data/lib/cuke_modeler/adapters/gherkin_base_adapter.rb +5 -2
- data/lib/cuke_modeler/containing.rb +43 -210
- data/lib/cuke_modeler/described.rb +8 -4
- data/lib/cuke_modeler/models/background.rb +61 -9
- data/lib/cuke_modeler/models/cell.rb +44 -7
- data/lib/cuke_modeler/models/comment.rb +43 -7
- data/lib/cuke_modeler/models/directory.rb +66 -8
- data/lib/cuke_modeler/models/doc_string.rb +49 -7
- data/lib/cuke_modeler/models/example.rb +103 -17
- data/lib/cuke_modeler/models/feature.rb +81 -10
- data/lib/cuke_modeler/models/feature_file.rb +64 -10
- data/lib/cuke_modeler/models/model.rb +57 -6
- data/lib/cuke_modeler/models/outline.rb +67 -9
- data/lib/cuke_modeler/models/row.rb +55 -8
- data/lib/cuke_modeler/models/rule.rb +67 -8
- data/lib/cuke_modeler/models/scenario.rb +59 -9
- data/lib/cuke_modeler/models/step.rb +69 -10
- data/lib/cuke_modeler/models/table.rb +55 -8
- data/lib/cuke_modeler/models/tag.rb +38 -13
- data/lib/cuke_modeler/named.rb +7 -4
- data/lib/cuke_modeler/nested.rb +19 -4
- data/lib/cuke_modeler/parsed.rb +10 -5
- data/lib/cuke_modeler/parsing.rb +28 -16
- data/lib/cuke_modeler/sourceable.rb +11 -5
- data/lib/cuke_modeler/stepped.rb +7 -5
- data/lib/cuke_modeler/taggable.rb +22 -4
- data/lib/cuke_modeler/version.rb +1 -1
- data/testing/cucumber/features/modeling/background_output.feature +19 -5
- data/testing/cucumber/features/modeling/base_model.feature +3 -0
- data/testing/cucumber/features/modeling/cell_output.feature +18 -4
- data/testing/cucumber/features/modeling/comment_output.feature +19 -5
- data/testing/cucumber/features/modeling/directory_output.feature +21 -4
- data/testing/cucumber/features/modeling/doc_string_output.feature +19 -5
- data/testing/cucumber/features/modeling/example_output.feature +21 -7
- data/testing/cucumber/features/modeling/feature_file_output.feature +21 -4
- data/testing/cucumber/features/modeling/feature_output.feature +20 -6
- data/testing/cucumber/features/modeling/model_output.feature +53 -5
- data/testing/cucumber/features/modeling/outline_output.feature +19 -5
- data/testing/cucumber/features/modeling/row_output.feature +19 -5
- data/testing/cucumber/features/modeling/rule_output.feature +27 -6
- data/testing/cucumber/features/modeling/scenario_output.feature +19 -5
- data/testing/cucumber/features/modeling/step_output.feature +19 -5
- data/testing/cucumber/features/modeling/table_output.feature +18 -4
- data/testing/cucumber/features/modeling/tag_output.feature +19 -5
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cfecfdb9d15e82e2c516e0fdd8787391258b0b7b17278fb06832a3caaf1ade2
|
4
|
+
data.tar.gz: 055c7e2c74c325fedc1b4b5a89594733276b44b1585ff1bf98eec0da5715b48d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a21c007aeff0f702eaed164c2e9d27beed205532c2a0855aef90816ad61da1bc6658ee42df01319bea8d058ff49dab8872f74a6e35849601f2f68b1d2d40a67d
|
7
|
+
data.tar.gz: 36b498a0d7e1bb9bbf004a0b906ba4adc23f7cc1b895c7ecaba1dd76c5f575d351042c307d8f1807454faf0747495c32b3fea4d20633e74eb75f497702ec0e13
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
|
9
9
|
Nothing yet...
|
10
10
|
|
11
|
+
|
12
|
+
## [3.20.1] - 2023-10-16
|
13
|
+
|
14
|
+
### Changed
|
15
|
+
- Finally made various parts of the codebase private in the Ruby sense of the word instead of only
|
16
|
+
being marked as private by comments. Not a breaking change because the stuff was already declared to
|
17
|
+
be not part of the public API.
|
18
|
+
|
19
|
+
- Improved code documentation by making more use of YARD tags.
|
20
|
+
|
21
|
+
|
22
|
+
## [3.20.0] - 2023-9-21
|
23
|
+
|
24
|
+
### Added
|
25
|
+
- Support added for more versions of the `cucumber-gherkin` gem
|
26
|
+
- 27.x
|
27
|
+
|
28
|
+
### Changed
|
29
|
+
- `#inspect` for models now returns a reasonably small set of details for the model instead of the potentially
|
30
|
+
huge screen dump of information. Not considered a breaking change because the API never specified the behavior
|
31
|
+
of `#inspect` (it was just using the default Ruby implementation). Default Ruby inspection can still be triggered,
|
32
|
+
if desired (see documentation).
|
33
|
+
|
11
34
|
## [3.19.0] - 2023-1-22
|
12
35
|
|
13
36
|
### Added
|
@@ -442,7 +465,9 @@ Nothing yet...
|
|
442
465
|
- Initial release
|
443
466
|
|
444
467
|
|
445
|
-
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.
|
468
|
+
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.20.1...HEAD
|
469
|
+
[3.20.1]: https://github.com/enkessler/cuke_modeler/compare/v3.20.0...v3.20.1
|
470
|
+
[3.20.0]: https://github.com/enkessler/cuke_modeler/compare/v3.19.0...v3.20.0
|
446
471
|
[3.19.0]: https://github.com/enkessler/cuke_modeler/compare/v3.18.0...v3.19.0
|
447
472
|
[3.18.0]: https://github.com/enkessler/cuke_modeler/compare/v3.17.0...v3.18.0
|
448
473
|
[3.17.0]: https://github.com/enkessler/cuke_modeler/compare/v3.16.0...v3.17.0
|
data/README.md
CHANGED
@@ -11,7 +11,6 @@ Developer stuff:
|
|
11
11
|
[![Build Status](https://github.com/enkessler/cuke_modeler/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/enkessler/cuke_modeler/actions/workflows/ci.yml?query=branch%3Amaster)
|
12
12
|
[![Coverage Status](https://coveralls.io/repos/github/enkessler/cuke_modeler/badge.svg?branch=master)](https://coveralls.io/github/enkessler/cuke_modeler?branch=master)
|
13
13
|
[![Maintainability](https://api.codeclimate.com/v1/badges/83986d8f7a918fed9707/maintainability)](https://codeclimate.com/github/enkessler/cuke_modeler/maintainability)
|
14
|
-
[![Inline docs](http://inch-ci.org/github/enkessler/cuke_modeler.svg?branch=master)](https://inch-ci.org/github/enkessler/cuke_modeler)
|
15
14
|
|
16
15
|
---
|
17
16
|
|
@@ -119,11 +118,11 @@ that feature is ultimately run with SpecFlow (Cucumber for C#), Lettuce
|
|
119
118
|
|
120
119
|
### <a id="projects"></a>Other gems that are powered by **cuke_modeler**
|
121
120
|
|
122
|
-
* [cql](https://github.com/enkessler/cql)
|
123
|
-
* [cuketagger](https://github.com/enkessler/cuketagger)
|
124
|
-
* [cuke_cataloger](https://github.com/enkessler/cuke_cataloger)
|
125
|
-
* [cuke_slicer](https://github.com/
|
126
|
-
* [cuke_linter](https://github.com/enkessler/cuke_linter)
|
121
|
+
* [cql](https://github.com/enkessler/cql) - A convenient DSL for querying modeled Gherkin documents
|
122
|
+
* [cuketagger](https://github.com/enkessler/cuketagger) - A tool for adding tags to feature files
|
123
|
+
* [cuke_cataloger](https://github.com/enkessler/cuke_cataloger) - Easily add uniques IDs to every test case in a suite
|
124
|
+
* [cuke_slicer](https://github.com/enkessler/cuke_slicer) - Break a test suite down into discrete test cases for easy parallel distribution
|
125
|
+
* [cuke_linter](https://github.com/enkessler/cuke_linter) - Identify common code smells in your Gherkin
|
127
126
|
|
128
127
|
|
129
128
|
## Development and Contributing
|
data/cuke_modeler.gemspec
CHANGED
@@ -37,17 +37,19 @@ Gem::Specification.new do |spec|
|
|
37
37
|
|
38
38
|
spec.required_ruby_version = '>= 2.3', '< 4.0'
|
39
39
|
|
40
|
-
spec.add_runtime_dependency 'cucumber-gherkin', '<
|
40
|
+
spec.add_runtime_dependency 'cucumber-gherkin', '< 28.0'
|
41
41
|
|
42
42
|
spec.add_development_dependency 'bundler', '< 3.0'
|
43
43
|
spec.add_development_dependency 'childprocess', '< 5.0'
|
44
44
|
spec.add_development_dependency 'ffi', '< 2.0' # This is an invisible dependency for the `childprocess` gem on Windows
|
45
45
|
# Cucumber 4.x is the earliest version to use cucumber-gherkin
|
46
|
-
spec.add_development_dependency 'cucumber', '>= 4.0.0', '<
|
46
|
+
spec.add_development_dependency 'cucumber', '>= 4.0.0', '< 10.0.0'
|
47
47
|
spec.add_development_dependency 'rainbow', '< 4.0.0'
|
48
48
|
spec.add_development_dependency 'rake', '< 14.0.0'
|
49
49
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
50
|
-
# Running recent RuboCop versions requires a recent version of Ruby but it can still lint against Ruby 2.3 styles
|
50
|
+
# Running recent RuboCop versions requires a recent version of Ruby but it can still lint against Ruby 2.3 styles.
|
51
|
+
# Can't set a lower bound because RuboCop will still get installed in the testing environments for earlier Rubies,
|
52
|
+
# even if it never actually gets run. Current "minimum" version is 1.44.0.
|
51
53
|
spec.add_development_dependency 'rubocop', '< 2.0'
|
52
54
|
spec.add_development_dependency 'simplecov', '< 1.0'
|
53
55
|
spec.add_development_dependency 'simplecov-lcov', '< 1.0'
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 10.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin10Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin10Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 11.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin11Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin11Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 12.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin12Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin12Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 13.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin13Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin13Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 14.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin14Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin14Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 15.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin15Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin15Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 16.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin16Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin16Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 17.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin17Adapter < Gherkin9Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin17Adapter
|
13
13
|
end
|
@@ -3,9 +3,10 @@ require_relative 'gherkin_9_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 18.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
9
10
|
class Gherkin18Adapter < Gherkin9Adapter
|
10
11
|
|
11
12
|
# Adapts the AST sub-tree that is rooted at the given rule node.
|
@@ -21,4 +22,6 @@ module CukeModeler
|
|
21
22
|
end
|
22
23
|
|
23
24
|
end
|
25
|
+
|
26
|
+
private_constant :Gherkin18Adapter
|
24
27
|
end
|
@@ -3,9 +3,10 @@ require_relative 'gherkin_18_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 19.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
9
10
|
class Gherkin19Adapter < Gherkin18Adapter
|
10
11
|
|
11
12
|
# Adapts the AST sub-tree that is rooted at the given step node.
|
@@ -58,4 +59,6 @@ module CukeModeler
|
|
58
59
|
end
|
59
60
|
|
60
61
|
end
|
62
|
+
|
63
|
+
private_constant :Gherkin19Adapter
|
61
64
|
end
|
@@ -5,9 +5,10 @@ require_relative 'gherkin_base_adapter'
|
|
5
5
|
|
6
6
|
module CukeModeler
|
7
7
|
|
8
|
-
#
|
8
|
+
# @api private
|
9
|
+
#
|
9
10
|
# An adapter that can convert the output of version 20.x of the *cucumber-gherkin* gem into input that is consumable
|
10
|
-
# by this gem.
|
11
|
+
# by this gem. Internal helper class.
|
11
12
|
class Gherkin20Adapter < GherkinBaseAdapter
|
12
13
|
|
13
14
|
# Adapts the given AST into the shape that this gem expects
|
@@ -355,6 +356,8 @@ module CukeModeler
|
|
355
356
|
end
|
356
357
|
|
357
358
|
end
|
359
|
+
|
360
|
+
private_constant :Gherkin20Adapter
|
358
361
|
end
|
359
362
|
|
360
363
|
# rubocop:enable Metrics/ClassLength, Metrics/AbcSize, Metrics/MethodLength
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 21.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin21Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin21Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 22.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin22Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin22Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 23.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin23Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin23Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 24.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin24Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin24Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 25.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin25Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin25Adapter
|
13
13
|
end
|
@@ -3,11 +3,11 @@ require_relative 'gherkin_20_adapter'
|
|
3
3
|
|
4
4
|
module CukeModeler
|
5
5
|
|
6
|
-
#
|
6
|
+
# @api private
|
7
|
+
#
|
7
8
|
# An adapter that can convert the output of version 26.x of the *cucumber-gherkin* gem into input that is consumable
|
8
|
-
# by this gem.
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin26Adapter < Gherkin20Adapter; end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
12
|
+
private_constant :Gherkin26Adapter
|
13
13
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative 'gherkin_20_adapter'
|
2
|
+
|
3
|
+
|
4
|
+
module CukeModeler
|
5
|
+
|
6
|
+
# @api private
|
7
|
+
#
|
8
|
+
# An adapter that can convert the output of version 27.x of the *cucumber-gherkin* gem into input that is consumable
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin27Adapter < Gherkin20Adapter; end
|
11
|
+
|
12
|
+
private_constant :Gherkin27Adapter
|
13
|
+
end
|
@@ -5,9 +5,10 @@ require_relative 'gherkin_base_adapter'
|
|
5
5
|
|
6
6
|
module CukeModeler
|
7
7
|
|
8
|
-
#
|
8
|
+
# @api private
|
9
|
+
#
|
9
10
|
# An adapter that can convert the output of version 9.x of the *cucumber-gherkin* gem into input that is consumable
|
10
|
-
# by this gem.
|
11
|
+
# by this gem. Internal helper class.
|
11
12
|
class Gherkin9Adapter < GherkinBaseAdapter
|
12
13
|
|
13
14
|
# Adapts the given AST into the shape that this gem expects
|
@@ -371,6 +372,8 @@ module CukeModeler
|
|
371
372
|
end
|
372
373
|
|
373
374
|
end
|
375
|
+
|
376
|
+
private_constant :Gherkin9Adapter
|
374
377
|
end
|
375
378
|
|
376
379
|
# rubocop:enable Metrics/ClassLength, Metrics/AbcSize, Metrics/MethodLength
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module CukeModeler
|
2
2
|
|
3
|
-
#
|
4
|
-
#
|
3
|
+
# @api private
|
4
|
+
#
|
5
|
+
# A class providing some basic and common adapter functionality. Internal helper class.
|
5
6
|
class GherkinBaseAdapter
|
6
7
|
|
7
8
|
private
|
@@ -11,4 +12,6 @@ module CukeModeler
|
|
11
12
|
end
|
12
13
|
|
13
14
|
end
|
15
|
+
|
16
|
+
private_constant :GherkinBaseAdapter
|
14
17
|
end
|