cucumber-core 14.0.0 → 15.0.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: 570471feb1c7ceb0d00c12ffda878f8520993ec3a8cf31059f38f4eb4e045923
4
- data.tar.gz: 5e303f42a9aecf8290351f657f9aa763d0a046623e6479083c466cd040cfa8c6
3
+ metadata.gz: b2a0d09660feb648bb04bbfe40f621212726b3093fa6a3fb5669b839bba45ed4
4
+ data.tar.gz: 58c8e92f97c0e7b059fe3f55cad411bf6978d74ba2479ae67d6c9ad6fd05f22c
5
5
  SHA512:
6
- metadata.gz: def6d99174f68b29d3daa43256175014306168b77f484341d5fb78b3e2446cf539dff514a9fb85eabb65ec9c342507855121bfa87135b848ea16d29ddcc19a4f
7
- data.tar.gz: 8873beb624b2cbc3144e8b46cb3d03709855491cfbeba79b796e5f15bdc6540eaa1ec3c59cc67dd43be4b20815ac4ecfc55885ea1cb8034212f924f06197110c
6
+ metadata.gz: 6c87da17fef928935be14327463f1bc34f94a48f8ffd6c8146013f0c1692ee4a67bbe225906ac55d3ed568242bbd77bef667dc332e20b08b16a875c4f524b15e
7
+ data.tar.gz: b98f8b937b408e2698dc10cb442e70aa7f47d827c6ecb33173e03fb1c536c9492982318c774a436b457057dfaa548b8f8c115548e6a34aeffd1f100593f7b495
data/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [15.0.0] - 2024-12-23
14
+ ### Changed
15
+ - Permit usage of gherkin up to v29 and messages up to v28
16
+
17
+ ### Fixed
18
+ - References to the Time Conversion and UUID helpers needed altering to use the `Helpers` namespace
19
+
20
+ ### Removed
21
+ - Remove support for ruby 2.7 and below. 3.0 or higher is required now (Owing to messages bump)
22
+
13
23
  ## [14.0.0] - 2024-08-08
14
24
  ### Changed
15
25
  - Permit usage of gherkin up to v29 and messages up to v26
@@ -74,7 +84,8 @@ See upgrading notes for [13.0.0.md](upgrading_notes/13.0.0.md#upgrading-to-cucum
74
84
  ### Changed
75
85
  - Updated `cucumber-gherkin` and `cucumber-messages`
76
86
 
77
- [Unreleased]: https://github.com/cucumber/cucumber-ruby-core/compare/v14.0.0...HEAD
87
+ [Unreleased]: https://github.com/cucumber/cucumber-ruby-core/compare/v15.0.0...HEAD
88
+ [15.0.0]: https://github.com/cucumber/cucumber-ruby-core/compare/v14.0.0...v15.0.0
78
89
  [14.0.0]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.3...v14.0.0
79
90
  [13.0.3]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.2...v13.0.3
80
91
  [13.0.2]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.1...v13.0.2
data/README.md CHANGED
@@ -119,7 +119,7 @@ processing: it should pass ✓
119
119
  ## Documentation and support
120
120
 
121
121
  - Getting started with Cucumber, writing features, step definitions, and more: https://cucumber.io/docs
122
- - Slack: [register for an account](https://cucumberbdd-slack-invite.herokuapp.com/) then head over to [#intro](https://cucumberbdd.slack.com/messages/C5WD8SA21/)
122
+ - Discord ([invite link here](https://cucumber.io/docs/community/get-in-touch/#discord))
123
123
  - `cucumber-core` overview: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)
124
124
  - How to work with local repositories for `cucumber-gherkin`, `cucumber-messages` or `cucumber-ruby`: [CONTRIBUTING.md#working-with-local-cucumber-dependencies](./CONTRIBUTING.md#working-with-local-cucumber-dependencies)
125
125
 
@@ -18,7 +18,7 @@ module Cucumber
18
18
 
19
19
  def initialize(receiver, gherkin_query, event_bus = nil)
20
20
  @receiver = receiver
21
- @id_generator = Cucumber::Messages::IdGenerator::UUID.new
21
+ @id_generator = Cucumber::Messages::Helpers::IdGenerator::UUID.new
22
22
  @gherkin_query = gherkin_query
23
23
  @event_bus = event_bus
24
24
  end
@@ -19,7 +19,7 @@ module Cucumber
19
19
 
20
20
  define_method(:initialize) do |*attributes|
21
21
  events.zip(attributes) do |name, value|
22
- instance_variable_set("@#{name}".to_sym, value)
22
+ instance_variable_set(:"@#{name}", value)
23
23
  end
24
24
  end
25
25
 
@@ -48,7 +48,7 @@ module Cucumber
48
48
 
49
49
  define_method(:initialize) do |*args|
50
50
  attributes.zip(args) do |name, value|
51
- instance_variable_set("@#{name}".to_sym, value)
51
+ instance_variable_set(:"@#{name}", value)
52
52
  end
53
53
  end
54
54
 
@@ -63,7 +63,7 @@ module Cucumber
63
63
  end
64
64
 
65
65
  define_method(:with_receiver) do |new_receiver|
66
- args = attributes.map { |name| instance_variable_get("@#{name}".to_sym) }
66
+ args = attributes.map { |name| instance_variable_get(:"@#{name}") }
67
67
  args[-1] = new_receiver
68
68
  self.class.new(*args)
69
69
  end
@@ -19,10 +19,6 @@ module Cucumber
19
19
  @timer = Timer.new
20
20
  end
21
21
 
22
- def skip(*)
23
- skipped
24
- end
25
-
26
22
  def execute(*args)
27
23
  @timer.start
28
24
  @block.call(*args)
@@ -37,6 +33,10 @@ module Cucumber
37
33
  "#<#{self.class}: #{location}>"
38
34
  end
39
35
 
36
+ def skip(*)
37
+ skipped
38
+ end
39
+
40
40
  private
41
41
 
42
42
  def passed
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'cucumber/messages'
4
- require 'cucumber/messages/time_conversion'
4
+ require 'cucumber/messages/helpers/time_conversion'
5
5
 
6
6
  module Cucumber
7
7
  module Core
@@ -17,8 +17,7 @@ module Cucumber
17
17
 
18
18
  # Defines to_sym on a result class for the given result type
19
19
  #
20
- # Defines predicate methods on a result class with only the given one
21
- # returning true
20
+ # Defines predicate methods on a result class with only the given one returning true
22
21
  def self.query_methods(result_type)
23
22
  Module.new do
24
23
  define_method :to_sym do
@@ -166,8 +165,7 @@ module Cucumber
166
165
  end
167
166
  end
168
167
 
169
- # Base class for exceptions that can be raised in a step definition causing
170
- # the step to have that result.
168
+ # Base class for exceptions that can be raised in a step definition causing the step to have that result.
171
169
  class Raisable < StandardError
172
170
  attr_reader :message, :duration
173
171
 
@@ -295,7 +293,7 @@ module Cucumber
295
293
 
296
294
  def strict?(type = nil)
297
295
  if type.nil?
298
- settings.each do |_key, value|
296
+ settings.each_value do |value|
299
297
  return true if value == true
300
298
  end
301
299
  false
@@ -309,9 +307,7 @@ module Cucumber
309
307
 
310
308
  def set_strict(setting, type = nil)
311
309
  if type.nil?
312
- STRICT_AFFECTED_TYPES.each do |t|
313
- set_strict(setting, t)
314
- end
310
+ STRICT_AFFECTED_TYPES.each { |type| set_strict(setting, type) }
315
311
  else
316
312
  settings[type] = setting
317
313
  end
@@ -404,7 +400,7 @@ module Cucumber
404
400
  end
405
401
 
406
402
  class Duration
407
- include Cucumber::Messages::TimeConversion
403
+ include Cucumber::Messages::Helpers::TimeConversion
408
404
 
409
405
  attr_reader :nanoseconds
410
406
 
@@ -425,7 +421,7 @@ module Cucumber
425
421
  end
426
422
 
427
423
  class UnknownDuration
428
- include Cucumber::Messages::TimeConversion
424
+ include Cucumber::Messages::Helpers::TimeConversion
429
425
 
430
426
  def tap
431
427
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.0
4
+ version: 15.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2024-08-08 00:00:00.000000000 Z
15
+ date: 2024-12-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: cucumber-gherkin
@@ -40,20 +40,20 @@ dependencies:
40
40
  requirements:
41
41
  - - ">"
42
42
  - !ruby/object:Gem::Version
43
- version: '22'
43
+ version: '25'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '27'
46
+ version: '28'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">"
52
52
  - !ruby/object:Gem::Version
53
- version: '22'
53
+ version: '25'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '27'
56
+ version: '28'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: cucumber-tag-expressions
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -108,14 +108,14 @@ dependencies:
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 1.61.0
111
+ version: 1.69.0
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 1.61.0
118
+ version: 1.69.0
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: rubocop-packaging
121
121
  requirement: !ruby/object:Gem::Requirement
@@ -150,14 +150,14 @@ dependencies:
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 3.0.1
153
+ version: 3.0.5
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: 3.0.1
160
+ version: 3.0.5
161
161
  description: Core library for the Cucumber BDD app
162
162
  email: cukes@googlegroups.com
163
163
  executables: []
@@ -208,6 +208,7 @@ metadata:
208
208
  documentation_uri: https://www.rubydoc.info/github/cucumber/cucumber-ruby-core
209
209
  mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
210
210
  source_code_uri: https://github.com/cucumber/cucumber-ruby-core
211
+ funding_uri: https://opencollective.com/cucumber
211
212
  post_install_message:
212
213
  rdoc_options:
213
214
  - "--charset=UTF-8"
@@ -217,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
218
  requirements:
218
219
  - - ">="
219
220
  - !ruby/object:Gem::Version
220
- version: '2.7'
221
+ version: '3.0'
221
222
  required_rubygems_version: !ruby/object:Gem::Requirement
222
223
  requirements:
223
224
  - - ">="
@@ -227,5 +228,5 @@ requirements: []
227
228
  rubygems_version: 3.3.5
228
229
  signing_key:
229
230
  specification_version: 4
230
- summary: cucumber-core-14.0.0
231
+ summary: cucumber-core-15.0.0
231
232
  test_files: []