cuke_modeler 3.22.0 → 3.23.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 +9 -1
- data/cuke_modeler.gemspec +1 -1
- data/lib/cuke_modeler/adapters/gherkin_30_adapter.rb +13 -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: 4e951f57a8dc94e2ff37d7eadb8866e39fdc84629589b24b10e7c8a78a9a3348
|
4
|
+
data.tar.gz: 6d971bb502add53d04e38dd835ad9d021b68fa54f9e9e3179d4d1aaa36f81444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c33597cb563ed2617a8b381ef64cb0bc4b2d5498effe0d613aa9d903f0e9359d222c9147b834db38f851a71cdcfe23f3525c8e1b00b66d3381a516cc7d019603
|
7
|
+
data.tar.gz: 563575b9ba2412d869f224623f9047e86a513ada5d3e30a8e60f4621016bf70678c02cf09bec21e775a4a7e50b062c6f4ecfe20d0849cd741a4168c270f1bf42
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
9
9
|
Nothing yet...
|
10
10
|
|
11
11
|
|
12
|
+
## [3.23.0] - 2024-10-31
|
13
|
+
|
14
|
+
### Added
|
15
|
+
- Support added for more versions of the `cucumber-gherkin` gem
|
16
|
+
- 30.x
|
17
|
+
|
18
|
+
|
12
19
|
## [3.22.0] - 2024-10-01
|
13
20
|
|
14
21
|
### Added
|
@@ -479,7 +486,8 @@ Nothing yet...
|
|
479
486
|
- Initial release
|
480
487
|
|
481
488
|
|
482
|
-
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.
|
489
|
+
[Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.23.0...HEAD
|
490
|
+
[3.23.0]: https://github.com/enkessler/cuke_modeler/compare/v3.22.0...v3.23.0
|
483
491
|
[3.22.0]: https://github.com/enkessler/cuke_modeler/compare/v3.21.1...v3.22.0
|
484
492
|
[3.21.0]: https://github.com/enkessler/cuke_modeler/compare/v3.20.1...v3.21.0
|
485
493
|
[3.20.1]: https://github.com/enkessler/cuke_modeler/compare/v3.20.0...v3.20.1
|
data/cuke_modeler.gemspec
CHANGED
@@ -37,7 +37,7 @@ 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', '< 31.0'
|
41
41
|
|
42
42
|
spec.add_development_dependency 'bundler', '< 3.0'
|
43
43
|
spec.add_development_dependency 'childprocess', '< 5.0'
|
@@ -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 30.x of the *cucumber-gherkin* gem into input that is consumable
|
9
|
+
# by this gem. Internal helper class.
|
10
|
+
class Gherkin30Adapter < Gherkin20Adapter; end
|
11
|
+
|
12
|
+
private_constant :Gherkin30Adapter
|
13
|
+
end
|
data/lib/cuke_modeler/parsing.rb
CHANGED
@@ -9,7 +9,7 @@ require 'gherkin'
|
|
9
9
|
# an 'adapter' appropriate to the version of the *cucumber-gherkin* gem that has been activated.
|
10
10
|
gherkin_version = Gem.loaded_specs['cucumber-gherkin'].version.version
|
11
11
|
gherkin_major_version = gherkin_version.match(/^(\d+)\./)[1].to_i
|
12
|
-
supported_gherkin_versions = (9..
|
12
|
+
supported_gherkin_versions = (9..30)
|
13
13
|
|
14
14
|
raise("Unknown Gherkin version: '#{gherkin_version}'") unless supported_gherkin_versions.include?(gherkin_major_version)
|
15
15
|
|
@@ -86,7 +86,7 @@ module CukeModeler
|
|
86
86
|
# inside of it, so I'm leaving this here in case it changes again
|
87
87
|
# rubocop:disable Lint/DuplicateMethods
|
88
88
|
case gherkin_major_version
|
89
|
-
when 20, 21, 22, 23, 24, 25, 26, 27, 28, 29
|
89
|
+
when 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
|
90
90
|
# The method to use for parsing Gherkin text
|
91
91
|
def parsing_method(source_text, filename)
|
92
92
|
messages = Gherkin.from_source(filename,
|
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.23.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: 2024-10-
|
11
|
+
date: 2024-10-31 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: '31.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: '31.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/cuke_modeler/adapters/gherkin_27_adapter.rb
|
237
237
|
- lib/cuke_modeler/adapters/gherkin_28_adapter.rb
|
238
238
|
- lib/cuke_modeler/adapters/gherkin_29_adapter.rb
|
239
|
+
- lib/cuke_modeler/adapters/gherkin_30_adapter.rb
|
239
240
|
- lib/cuke_modeler/adapters/gherkin_9_adapter.rb
|
240
241
|
- lib/cuke_modeler/adapters/gherkin_base_adapter.rb
|
241
242
|
- lib/cuke_modeler/containing.rb
|