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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf4f1d5138416caa14ba5bf9f9e646c9fad013008ea24796dc08fc40aacac026
4
- data.tar.gz: 4db652f4b23cd03e227fe5f97149075d9ac609bed930e512b0a6f13b04cabb5f
3
+ metadata.gz: 4e951f57a8dc94e2ff37d7eadb8866e39fdc84629589b24b10e7c8a78a9a3348
4
+ data.tar.gz: 6d971bb502add53d04e38dd835ad9d021b68fa54f9e9e3179d4d1aaa36f81444
5
5
  SHA512:
6
- metadata.gz: daba53277c9bd55e344d4c11ef75af4543399040559042fd7ce5c0af25743e8cc56b0796239886425d3be7a61d2b3d2d99b86ad59c00fc39b10ef2a33383829c
7
- data.tar.gz: 9b28d7021eb73a6b3a788cfa456e42d2a75b9c0bf84f3083fe84de2ef64cf784eb6de55b0c90d481a634edfd0a1b58690f2ce9835dfbc551084e88d4845abcca
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.22.0...HEAD
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', '< 30.0'
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
@@ -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..29)
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,
@@ -1,4 +1,4 @@
1
1
  module CukeModeler
2
2
  # The gem version
3
- VERSION = '3.22.0'.freeze
3
+ VERSION = '3.23.0'.freeze
4
4
  end
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.22.0
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-01 00:00:00.000000000 Z
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: '30.0'
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: '30.0'
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