cuke_modeler 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +1 -1
- data/cuke_modeler.gemspec +1 -1
- data/lib/cuke_modeler/adapters/gherkin_15_adapter.rb +12 -0
- data/lib/cuke_modeler/parsing.rb +2 -2
- data/lib/cuke_modeler/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c0d1e0901ca4b0af16683c5f92dac6ee799058c6adadf58a9323e4c59e70813
|
4
|
+
data.tar.gz: 8303d94eb1f5d0acc163a08435f9dda0bcda9b07a23375985aedde9fc3fd3138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7948e5a8cf13728afeb2820ff66baefb31d878c96fc41145effc109d1d6fd6adc8e4c288928273e0b04bdd909c85b120e777c11594ce5fd7720e801d5aaae530
|
7
|
+
data.tar.gz: bd9cd348ed6f090f0231de118e5fe9d28ca9da014e0b2c1481deef4d604adbf1050d6350abf708555a6bd2651099d05f8134f1b074a5b02e1ae97fa38ccf872b
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
|
9
9
|
Nothing yet...
|
10
10
|
|
11
|
+
## [3.3.0] - 2020-08-15
|
12
|
+
|
13
|
+
### Added
|
14
|
+
- Support added for more versions of the `cucumber-gherkin` gem
|
15
|
+
- 15.x
|
16
|
+
|
11
17
|
## [3.2.0] - 2020-07-27
|
12
18
|
|
13
19
|
### Added
|
@@ -323,7 +329,8 @@ Nothing yet...
|
|
323
329
|
- Initial release
|
324
330
|
|
325
331
|
|
326
|
-
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.
|
332
|
+
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.3.0...HEAD
|
333
|
+
[3.3.0]: https://github.com/enkessler/cuke_modeler/compare/v3.2.0...v3.3.0
|
327
334
|
[3.2.0]: https://github.com/enkessler/cuke_modeler/compare/v3.1.0...v3.2.0
|
328
335
|
[3.1.0]: https://github.com/enkessler/cuke_modeler/compare/v3.0.0...v3.1.0
|
329
336
|
[3.0.0]: https://github.com/enkessler/cuke_modeler/compare/v2.1.0...v3.0.0
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ to each other as described in the AST [here](https://github.com/cucumber/cucumbe
|
|
89
89
|
## Modeling dialects other than English
|
90
90
|
|
91
91
|
The modeling functionality provided by this gem will work with any dialect that
|
92
|
-
is supported by the **gherkin** gem. For modeling at the feature level or higher,
|
92
|
+
is supported by the **cucumber-gherkin** gem. For modeling at the feature level or higher,
|
93
93
|
no additional effort is needed because the `# language` header at the top of a
|
94
94
|
feature already indicates that a non-default dialect is being used.
|
95
95
|
|
data/cuke_modeler.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = '>= 2.3', '< 3.0'
|
26
26
|
|
27
|
-
spec.add_runtime_dependency 'cucumber-gherkin', '<
|
27
|
+
spec.add_runtime_dependency 'cucumber-gherkin', '< 16.0'
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler', '< 3.0'
|
30
30
|
spec.add_development_dependency "rake", '< 13.0.0'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_relative 'gherkin_9_adapter'
|
2
|
+
|
3
|
+
|
4
|
+
module CukeModeler
|
5
|
+
|
6
|
+
# NOT A PART OF THE PUBLIC API
|
7
|
+
# An adapter that can convert the output of version 15.x of the *cucumber-gherkin* gem into input that is consumable by this gem.
|
8
|
+
|
9
|
+
class Gherkin15Adapter < Gherkin9Adapter
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
data/lib/cuke_modeler/parsing.rb
CHANGED
@@ -17,7 +17,7 @@ gherkin_version = Gem.loaded_specs['cucumber-gherkin'].version.version
|
|
17
17
|
gherkin_major_version = gherkin_version.match(/^(\d+)\./)[1].to_i
|
18
18
|
|
19
19
|
case gherkin_major_version
|
20
|
-
when 9, 10, 11, 12, 13, 14
|
20
|
+
when 9, 10, 11, 12, 13, 14, 15
|
21
21
|
# Currently nothing else to load beyond the entry point to the gem
|
22
22
|
else
|
23
23
|
raise("Unknown Gherkin version: '#{gherkin_version}'")
|
@@ -72,7 +72,7 @@ module CukeModeler
|
|
72
72
|
gherkin_major_version = gherkin_version.match(/^(\d+)\./)[1].to_i
|
73
73
|
|
74
74
|
case gherkin_major_version
|
75
|
-
when 13, 14
|
75
|
+
when 13, 14, 15
|
76
76
|
# todo - make these methods private?
|
77
77
|
# NOT A PART OF THE PUBLIC API
|
78
78
|
# The method to use for parsing Gherkin text
|
data/lib/cuke_modeler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke_modeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.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-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber-gherkin
|
@@ -16,14 +16,14 @@ dependencies:
|
|
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
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- lib/cuke_modeler/adapters/gherkin_12_adapter.rb
|
174
174
|
- lib/cuke_modeler/adapters/gherkin_13_adapter.rb
|
175
175
|
- lib/cuke_modeler/adapters/gherkin_14_adapter.rb
|
176
|
+
- lib/cuke_modeler/adapters/gherkin_15_adapter.rb
|
176
177
|
- lib/cuke_modeler/adapters/gherkin_9_adapter.rb
|
177
178
|
- lib/cuke_modeler/containing.rb
|
178
179
|
- lib/cuke_modeler/described.rb
|