cucumber-compatibility-kit 21.0.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/features/ambiguous/ambiguous.feature +6 -0
  4. data/features/ambiguous/ambiguous.ndjson +13 -0
  5. data/features/backgrounds/backgrounds.feature +17 -0
  6. data/features/backgrounds/backgrounds.ndjson +36 -0
  7. data/features/doc-strings/doc-strings.feature +31 -0
  8. data/features/doc-strings/doc-strings.ndjson +24 -0
  9. data/features/global-hooks-afterall-error/global-hooks-afterall-error.feature +2 -1
  10. data/features/global-hooks-afterall-error/global-hooks-afterall-error.ndjson +5 -3
  11. data/features/global-hooks-attachments/global-hooks-attachments.feature +5 -0
  12. data/features/global-hooks-attachments/global-hooks-attachments.ndjson +20 -0
  13. data/features/global-hooks-beforeall-error/global-hooks-beforeall-error.feature +2 -1
  14. data/features/global-hooks-beforeall-error/global-hooks-beforeall-error.ndjson +9 -3
  15. data/features/multiple-features/multiple-features-1.feature +10 -0
  16. data/features/multiple-features/multiple-features-2.feature +10 -0
  17. data/features/multiple-features/multiple-features-3.feature +10 -0
  18. data/features/multiple-features/multiple-features.ndjson +64 -0
  19. data/features/multiple-features-reversed/multiple-features-reversed-1.feature +10 -0
  20. data/features/multiple-features-reversed/multiple-features-reversed-2.feature +10 -0
  21. data/features/multiple-features-reversed/multiple-features-reversed-3.feature +10 -0
  22. data/features/multiple-features-reversed/multiple-features-reversed.arguments.txt +1 -0
  23. data/features/multiple-features-reversed/multiple-features-reversed.ndjson +64 -0
  24. data/features/regular-expression/regular-expression.ndjson +1 -1
  25. data/features/retry/retry.feature +6 -0
  26. data/features/retry/retry.ndjson +73 -58
  27. data/features/rules-backgrounds/rules-backgrounds.feature +23 -0
  28. data/features/rules-backgrounds/rules-backgrounds.ndjson +44 -0
  29. data/features/unused-steps/unused-steps.feature +6 -0
  30. data/features/unused-steps/unused-steps.ndjson +13 -0
  31. data/lib/cucumber/compatibility_kit.rb +55 -0
  32. metadata +31 -13
  33. data/lib/cck/examples.rb +0 -58
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-compatibility-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.0.0
4
+ version: 22.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Reeves
@@ -9,10 +9,9 @@ authors:
9
9
  - Vincent Prêtre
10
10
  - Luke Hill
11
11
  - Cucumber Ltd
12
- autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2025-09-01 00:00:00.000000000 Z
14
+ date: 1980-01-02 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: rspec
@@ -34,14 +33,14 @@ dependencies:
34
33
  requirements:
35
34
  - - "~>"
36
35
  - !ruby/object:Gem::Version
37
- version: 1.78.0
36
+ version: 1.80.0
38
37
  type: :development
39
38
  prerelease: false
40
39
  version_requirements: !ruby/object:Gem::Requirement
41
40
  requirements:
42
41
  - - "~>"
43
42
  - !ruby/object:Gem::Version
44
- version: 1.78.0
43
+ version: 1.80.0
45
44
  - !ruby/object:Gem::Dependency
46
45
  name: rubocop-performance
47
46
  requirement: !ruby/object:Gem::Requirement
@@ -62,14 +61,14 @@ dependencies:
62
61
  requirements:
63
62
  - - "~>"
64
63
  - !ruby/object:Gem::Version
65
- version: 3.6.0
64
+ version: 3.7.0
66
65
  type: :development
67
66
  prerelease: false
68
67
  version_requirements: !ruby/object:Gem::Requirement
69
68
  requirements:
70
69
  - - "~>"
71
70
  - !ruby/object:Gem::Version
72
- version: 3.6.0
71
+ version: 3.7.0
73
72
  description: Kit to check compatibility with official cucumber ruby implementation
74
73
  email: cukebot@cucumber.io
75
74
  executables: []
@@ -78,15 +77,21 @@ extra_rdoc_files: []
78
77
  files:
79
78
  - LICENSE
80
79
  - README.md
80
+ - features/ambiguous/ambiguous.feature
81
+ - features/ambiguous/ambiguous.ndjson
81
82
  - features/attachments/attachments.feature
82
83
  - features/attachments/attachments.ndjson
83
84
  - features/attachments/cucumber.jpeg
84
85
  - features/attachments/cucumber.png
85
86
  - features/attachments/document.pdf
87
+ - features/backgrounds/backgrounds.feature
88
+ - features/backgrounds/backgrounds.ndjson
86
89
  - features/cdata/cdata.feature
87
90
  - features/cdata/cdata.ndjson
88
91
  - features/data-tables/data-tables.feature
89
92
  - features/data-tables/data-tables.ndjson
93
+ - features/doc-strings/doc-strings.feature
94
+ - features/doc-strings/doc-strings.ndjson
90
95
  - features/empty/empty.feature
91
96
  - features/empty/empty.ndjson
92
97
  - features/examples-tables-attachment/cucumber.jpeg
@@ -97,6 +102,8 @@ files:
97
102
  - features/examples-tables/examples-tables.ndjson
98
103
  - features/global-hooks-afterall-error/global-hooks-afterall-error.feature
99
104
  - features/global-hooks-afterall-error/global-hooks-afterall-error.ndjson
105
+ - features/global-hooks-attachments/global-hooks-attachments.feature
106
+ - features/global-hooks-attachments/global-hooks-attachments.ndjson
100
107
  - features/global-hooks-beforeall-error/global-hooks-beforeall-error.feature
101
108
  - features/global-hooks-beforeall-error/global-hooks-beforeall-error.ndjson
102
109
  - features/global-hooks/global-hooks.feature
@@ -114,6 +121,15 @@ files:
114
121
  - features/markdown/markdown.ndjson
115
122
  - features/minimal/minimal.feature
116
123
  - features/minimal/minimal.ndjson
124
+ - features/multiple-features-reversed/multiple-features-reversed-1.feature
125
+ - features/multiple-features-reversed/multiple-features-reversed-2.feature
126
+ - features/multiple-features-reversed/multiple-features-reversed-3.feature
127
+ - features/multiple-features-reversed/multiple-features-reversed.arguments.txt
128
+ - features/multiple-features-reversed/multiple-features-reversed.ndjson
129
+ - features/multiple-features/multiple-features-1.feature
130
+ - features/multiple-features/multiple-features-2.feature
131
+ - features/multiple-features/multiple-features-3.feature
132
+ - features/multiple-features/multiple-features.ndjson
117
133
  - features/parameter-types/parameter-types.feature
118
134
  - features/parameter-types/parameter-types.ndjson
119
135
  - features/pending/pending.feature
@@ -123,6 +139,8 @@ files:
123
139
  - features/retry/retry.arguments.txt
124
140
  - features/retry/retry.feature
125
141
  - features/retry/retry.ndjson
142
+ - features/rules-backgrounds/rules-backgrounds.feature
143
+ - features/rules-backgrounds/rules-backgrounds.ndjson
126
144
  - features/rules/rules.feature
127
145
  - features/rules/rules.ndjson
128
146
  - features/skipped/skipped.feature
@@ -133,7 +151,9 @@ files:
133
151
  - features/undefined/undefined.ndjson
134
152
  - features/unknown-parameter-type/unknown-parameter-type.feature
135
153
  - features/unknown-parameter-type/unknown-parameter-type.ndjson
136
- - lib/cck/examples.rb
154
+ - features/unused-steps/unused-steps.feature
155
+ - features/unused-steps/unused-steps.ndjson
156
+ - lib/cucumber/compatibility_kit.rb
137
157
  homepage: https://github.com/cucumber/compatibility-kit
138
158
  licenses:
139
159
  - MIT
@@ -143,7 +163,6 @@ metadata:
143
163
  documentation_uri: https://github.com/cucumber/compatibility-kit/blob/main/CONTRIBUTING.md
144
164
  mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
145
165
  source_code_uri: https://github.com/cucumber/compatibility-kit/blob/main/ruby
146
- post_install_message:
147
166
  rdoc_options:
148
167
  - "--charset=UTF-8"
149
168
  require_paths:
@@ -152,15 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
171
  requirements:
153
172
  - - ">="
154
173
  - !ruby/object:Gem::Version
155
- version: '3.0'
174
+ version: '3.1'
156
175
  required_rubygems_version: !ruby/object:Gem::Requirement
157
176
  requirements:
158
177
  - - ">="
159
178
  - !ruby/object:Gem::Version
160
179
  version: 3.2.8
161
180
  requirements: []
162
- rubygems_version: 3.5.22
163
- signing_key:
181
+ rubygems_version: 3.6.9
164
182
  specification_version: 4
165
- summary: cucumber-compatibility-kit-21.0.0
183
+ summary: cucumber-compatibility-kit-22.0.0
166
184
  test_files: []
data/lib/cck/examples.rb DELETED
@@ -1,58 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module CCK
4
- # CCK::Examples
5
- # The helper methods to determine the paths for each relevant item
6
- module Examples
7
- class << self
8
- # Return the paths for each example that is of 'gherkin' type
9
- def gherkin
10
- Dir.entries(cck_features_folder_location).select do |file_or_folder|
11
- next if file_or_folder.start_with?('.')
12
-
13
- gherkin_example?(File.join(cck_features_folder_location, file_or_folder))
14
- end
15
- end
16
-
17
- # Return the paths for each example that is of 'markdown' type
18
- # NB: At the moment this (1 example - 'markdown'), isn't compatible with cucumber-ruby
19
- def markdown
20
- Dir.entries(cck_features_folder_location).select do |file_or_folder|
21
- next if file_or_folder.start_with?('.')
22
-
23
- markdown_example?(File.join(cck_features_folder_location, file_or_folder))
24
- end
25
- end
26
-
27
- # Return the path for a specific example scenario based on its name
28
- #
29
- # i.e. 'attachments' would return the fully qualified path to the attachments folder
30
- # which contains the feature, the ndjson file and any applicable assets to run the example
31
- def feature_code_for(example_name)
32
- path = File.join(cck_features_folder_location, example_name)
33
-
34
- return path if File.directory?(path)
35
-
36
- raise ArgumentError, "No feature code directory found in gem for CCK example: #{example_name}"
37
- end
38
-
39
- private
40
-
41
- def cck_features_folder_location
42
- File.expand_path("#{File.dirname(__FILE__)}/../../features/")
43
- end
44
-
45
- def gherkin_example?(example_folder)
46
- file_type_in_folder?('.feature', example_folder)
47
- end
48
-
49
- def markdown_example?(example_folder)
50
- file_type_in_folder?('.md', example_folder)
51
- end
52
-
53
- def file_type_in_folder?(extension, folder)
54
- Dir.entries(folder).any? { |file| File.extname(file) == extension }
55
- end
56
- end
57
- end
58
- end