cucumber-core 13.0.0 → 13.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad4f7b28922147c39edbb73ea0cc78a2498357ddfee82b7a19dad2653d0d5efc
|
4
|
+
data.tar.gz: 1d86bebdb84c5439d1603328ec9e354e48e0d35b83b58141fe06e57ca861c700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6eba48583279d8df9c67d996f6b9fecd2573e9d1b82a9524bb4b70902b9203368e34c2bf0094a8d3656672362099c07da5d40156e2cb70145fff2f0803599a4
|
7
|
+
data.tar.gz: f01ca79cc71953bb8fb97f4f02bb2f609835a0194ed7f35cd3fe96fc8133dd4187af2d0f04225e05977762374a4b51863471c20c4216725f92392aebad073a62
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,13 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
|
|
10
10
|
|
11
11
|
## [Unreleased]
|
12
12
|
|
13
|
+
## [13.0.1] - 2024-01-31
|
14
|
+
### Changed
|
15
|
+
- Fixed up a few styling / layout cops in the tests
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
- The `Passed` `Result` class was missing the strict keyword argument handling
|
19
|
+
|
13
20
|
## [13.0.0] - 2023-12-05
|
14
21
|
### Changed
|
15
22
|
- Now using a 2-tiered changelog to avoid any bugs when using polyglot-release
|
@@ -48,7 +55,8 @@ See upgrading notes for [13.0.0.md](upgrading_notes/13.0.0.md#upgrading-to-1300)
|
|
48
55
|
### Changed
|
49
56
|
- Updated `cucumber-gherkin` and `cucumber-messages`
|
50
57
|
|
51
|
-
[Unreleased]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.
|
58
|
+
[Unreleased]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.1...HEAD
|
59
|
+
[13.0.1]: https://github.com/cucumber/cucumber-ruby-core/compare/v13.0.0...v13.0.1
|
52
60
|
[13.0.0]: https://github.com/cucumber/cucumber-ruby-core/compare/v12.0.0...v13.0.0
|
53
61
|
[12.0.0]: https://github.com/cucumber/cucumber-ruby-core/compare/v11.1.0...v12.0.0
|
54
62
|
[11.1.0]: https://github.com/cucumber/cucumber-ruby-core/compare/v11.0.0...v11.1.0
|
data/lib/cucumber/core/filter.rb
CHANGED
@@ -63,9 +63,7 @@ module Cucumber
|
|
63
63
|
end
|
64
64
|
|
65
65
|
define_method(:with_receiver) do |new_receiver|
|
66
|
-
args = attributes.map { |name|
|
67
|
-
instance_variable_get("@#{name}".to_sym)
|
68
|
-
}
|
66
|
+
args = attributes.map { |name| instance_variable_get("@#{name}".to_sym) }
|
69
67
|
args[-1] = new_receiver
|
70
68
|
self.class.new(*args)
|
71
69
|
end
|
@@ -92,7 +92,7 @@ module Cucumber
|
|
92
92
|
private
|
93
93
|
|
94
94
|
def element(name)
|
95
|
-
define_method
|
95
|
+
define_method(name) do |*args, &source|
|
96
96
|
factory_name = String(name).split('_').map(&:capitalize).join
|
97
97
|
factory = Writer.const_get(factory_name)
|
98
98
|
factory.new(slurp_comments, *args).tap do |builder|
|
@@ -108,17 +108,18 @@ module Cucumber
|
|
108
108
|
module Indentation
|
109
109
|
def self.level(number)
|
110
110
|
Module.new do
|
111
|
-
define_method
|
112
|
-
amount ||= number
|
111
|
+
define_method(:indent) do |string, amount = nil|
|
113
112
|
return string if string.nil? || string.empty?
|
114
|
-
|
113
|
+
|
114
|
+
amount ||= number
|
115
|
+
"#{' ' * amount}#{string}"
|
115
116
|
end
|
116
117
|
|
117
|
-
define_method
|
118
|
+
define_method(:indent_level) do
|
118
119
|
number
|
119
120
|
end
|
120
121
|
|
121
|
-
define_method
|
122
|
+
define_method(:prepare_statements) do |*statements|
|
122
123
|
statements.flatten.compact.map { |s| indent(s) }
|
123
124
|
end
|
124
125
|
end
|
@@ -13,20 +13,20 @@ module Cucumber
|
|
13
13
|
Failure = Class.new(StandardError)
|
14
14
|
|
15
15
|
def test_case(test_case)
|
16
|
-
|
16
|
+
test_case.with_steps(test_steps(test_case)).describe_to(receiver)
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def test_steps(test_case)
|
22
|
+
test_case.test_steps.map do |step|
|
17
23
|
case step.text
|
18
|
-
when /fail/
|
19
|
-
|
20
|
-
when /
|
21
|
-
|
22
|
-
when /pass/
|
23
|
-
step.with_action { :no_op }
|
24
|
-
else
|
25
|
-
step
|
24
|
+
when /fail/ then step.with_action { raise Failure }
|
25
|
+
when /pending/ then step.with_action { raise Test::Result::Pending }
|
26
|
+
when /pass/ then step.with_action { :no_op }
|
27
|
+
else; step
|
26
28
|
end
|
27
29
|
end
|
28
|
-
|
29
|
-
test_case.with_steps(test_steps).describe_to(receiver)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
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: 13.0.
|
4
|
+
version: 13.0.1
|
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:
|
15
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cucumber-gherkin
|
@@ -237,5 +237,5 @@ requirements: []
|
|
237
237
|
rubygems_version: 3.3.5
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
|
-
summary: cucumber-core-13.0.
|
240
|
+
summary: cucumber-core-13.0.1
|
241
241
|
test_files: []
|