cuke_modeler 3.11.0 → 3.12.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: 3c9ac27087020268412ee7784a9116dfe565cfb3d116db74e944e943045500c1
4
- data.tar.gz: be5f5b5800ec74dbdebb4a03f3855dbfa0729ea3bd16f9f58696e922f0373fbd
3
+ metadata.gz: 35f7177528b87ec447574a0549a13bf63515e9f99a2782fd8f9e784e83fd76e3
4
+ data.tar.gz: ed28248635db6207feeb4e290604832eabef6dde42ba30726c1b125dce64017d
5
5
  SHA512:
6
- metadata.gz: 45b9e36b3cdf1277deeadc492ad092bcd941785a1953edaae9f3d0a6851daba9dbf2948f0889849b38c4d9d1ac8a3dba950e12f15a9d87fe7cdc20c49dad260c
7
- data.tar.gz: a83024fbd6e3750dd06896475194fc2db3b102abeb2ea10946ef3d7150b60882e1e20ceec845f2b37d3faf54d578c17c9b3c7abaeb580968d0bd9100846c4186
6
+ metadata.gz: fbc9729e61a869d98331f7046208aad43d9377079e1411abcaf02561fa03dde35286887ac90edd41e6c9b801e56ece769bb9041b4d28c356581ccd71da5298ea
7
+ data.tar.gz: e13737018ae92f43e9474b5c1612beb95a3939008aa30f41e1b3563f6f8a7e39af10446f5913314e53d944650f7443279f0e952d568e15d13b9b2d352a59042b
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.12.0] - 2021-09-09
12
+
13
+ ### Added
14
+ - Support added for more versions of the `cucumber-gherkin` gem
15
+ - 21.x
16
+
11
17
  ## [3.11.0] - 2021-07-31
12
18
 
13
19
  ### Added
@@ -396,7 +402,8 @@ Nothing yet...
396
402
  - Initial release
397
403
 
398
404
 
399
- [Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.11.0...HEAD
405
+ [Unreleased]: https://github.com/enkessler/cuke_modeler/compare/v3.12.0...HEAD
406
+ [3.12.0]: https://github.com/enkessler/cuke_modeler/compare/v3.11.0...v3.12.0
400
407
  [3.11.0]: https://github.com/enkessler/cuke_modeler/compare/v3.10.0...v3.11.0
401
408
  [3.10.0]: https://github.com/enkessler/cuke_modeler/compare/v3.9.0...v3.10.0
402
409
  [3.9.0]: https://github.com/enkessler/cuke_modeler/compare/v3.8.0...v3.9.0
data/cuke_modeler.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = '>= 2.3', '< 4.0'
38
38
 
39
- spec.add_runtime_dependency 'cucumber-gherkin', '< 21.0'
39
+ spec.add_runtime_dependency 'cucumber-gherkin', '< 22.0'
40
40
 
41
41
  spec.add_development_dependency 'bundler', '< 3.0'
42
42
  spec.add_development_dependency 'childprocess', '< 5.0'
@@ -0,0 +1,13 @@
1
+ require_relative 'gherkin_20_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 21.x of the *cucumber-gherkin* gem into input that is consumable
8
+ # by this gem.
9
+
10
+ class Gherkin21Adapter < Gherkin20Adapter
11
+
12
+ end
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..20)
12
+ supported_gherkin_versions = (9..21)
13
13
 
14
14
  raise("Unknown Gherkin version: '#{gherkin_version}'") unless supported_gherkin_versions.include?(gherkin_major_version)
15
15
 
@@ -63,7 +63,7 @@ module CukeModeler
63
63
  # inside of it, so I'm leaving this here in case it changes again
64
64
  # rubocop:disable Lint/DuplicateMethods
65
65
  case gherkin_major_version
66
- when 20
66
+ when 20, 21
67
67
  # TODO: make these methods private?
68
68
  # NOT A PART OF THE PUBLIC API
69
69
  # The method to use for parsing Gherkin text
@@ -1,4 +1,4 @@
1
1
  module CukeModeler
2
2
  # The gem version
3
- VERSION = '3.11.0'.freeze
3
+ VERSION = '3.12.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.11.0
4
+ version: 3.12.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: 2021-07-31 00:00:00.000000000 Z
11
+ date: 2021-09-09 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: '21.0'
19
+ version: '22.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: '21.0'
26
+ version: '22.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -227,6 +227,7 @@ files:
227
227
  - lib/cuke_modeler/adapters/gherkin_18_adapter.rb
228
228
  - lib/cuke_modeler/adapters/gherkin_19_adapter.rb
229
229
  - lib/cuke_modeler/adapters/gherkin_20_adapter.rb
230
+ - lib/cuke_modeler/adapters/gherkin_21_adapter.rb
230
231
  - lib/cuke_modeler/adapters/gherkin_9_adapter.rb
231
232
  - lib/cuke_modeler/adapters/gherkin_base_adapter.rb
232
233
  - lib/cuke_modeler/containing.rb