cucumber 3.0.2 → 3.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -4
- data/CONTRIBUTING.md +2 -4
- data/lib/cucumber/formatter/junit.rb +6 -2
- data/lib/cucumber/glue/step_definition.rb +1 -1
- data/lib/cucumber/hooks.rb +12 -0
- data/lib/cucumber/step_match.rb +4 -1
- data/lib/cucumber/version +1 -1
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f84a6bf158202ae59a9b8db4a2659d3fbb54a8a5
|
4
|
+
data.tar.gz: 5f2c8a03f201b4867664044e46b235c65c384e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c24410fe9970358b71f76e01897bf3762e9a14b4d7424309d4f43fc113703e1f07e659acec28313b7958b2e97da05c4bc896ff9e0cc1cd94069f4c339831dab4
|
7
|
+
data.tar.gz: 03ef3f7b197165f8fe83613be7a05d4aa3990f94968b067e3d15539242cc04e24c5136b21d7985298b7062449b8ade8ac4c0707b73d27b90cf33ab480bc9573e
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
|
|
10
10
|
|
11
11
|
----
|
12
12
|
|
13
|
-
## [In Git](https://github.com/cucumber/cucumber-ruby/compare/v3.0
|
13
|
+
## [In Git](https://github.com/cucumber/cucumber-ruby/compare/v3.1.0...master) (Not released)
|
14
14
|
|
15
15
|
### Added
|
16
16
|
|
@@ -30,11 +30,25 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
|
|
30
30
|
|
31
31
|
### Fixed
|
32
32
|
|
33
|
-
*
|
33
|
+
* N/A
|
34
34
|
|
35
|
-
|
35
|
+
## [3.1.0](https://github.com/cucumber/cucumber-ruby/compare/v3.0.2...3.1.0) (2017-11-28)
|
36
36
|
|
37
|
-
|
37
|
+
### Added
|
38
|
+
|
39
|
+
* ParameterType transformer runs in World
|
40
|
+
([#1213](https://github.com/cucumber/cucumber-ruby/pull/1213)
|
41
|
+
[@aslakhellesoy](https://github.com/aslakhellesoy))
|
42
|
+
|
43
|
+
### Changed
|
44
|
+
|
45
|
+
* Upgraded to `cucumber-expressions` 5.0.4
|
46
|
+
* Upgraded to `cucumber-tag_expressions` 1.1.0
|
47
|
+
* Upgraded to `gherkin` 5.0.0
|
48
|
+
|
49
|
+
### Fixed
|
50
|
+
|
51
|
+
* Fix the handling of failed hooks in the JUnit Formatter ([@brasmusson](https://github.com/brasmusson))
|
38
52
|
|
39
53
|
## [3.0.2](https://github.com/cucumber/cucumber-ruby/compare/v3.0.1...v3.0.2) (2017-11-11)
|
40
54
|
|
data/CONTRIBUTING.md
CHANGED
@@ -59,10 +59,8 @@ help us to correct style violations reported here:
|
|
59
59
|
|
60
60
|
## Release Process
|
61
61
|
|
62
|
-
* Bump the version number in `lib/cucumber/
|
63
|
-
* Make sure `
|
64
|
-
* No need to add a `History.md` header at this point - this should be done when a new change is made, later.
|
65
|
-
* Make sure you have up-to-date and clean copy of cucumber/cucumber.github.com.git at the same level as cucumber repo.
|
62
|
+
* Bump the version number in `lib/cucumber/version`.
|
63
|
+
* Make sure `CHANGELOG.md` is updated with the upcoming version number, and has entries for all fixes.
|
66
64
|
|
67
65
|
Now release it
|
68
66
|
|
@@ -104,8 +104,12 @@ module Cucumber
|
|
104
104
|
output = "#{test_case.keyword}: #{scenario}\n\n"
|
105
105
|
return output if result.ok?(@config.strict)
|
106
106
|
if test_case.keyword == 'Scenario'
|
107
|
-
|
108
|
-
|
107
|
+
if @failing_step_source
|
108
|
+
output += @failing_step_source.keyword.to_s unless hook?(@failing_step_source)
|
109
|
+
output += "#{@failing_step_source}\n"
|
110
|
+
else # An Around hook has failed
|
111
|
+
output += "Around hook\n"
|
112
|
+
end
|
109
113
|
else
|
110
114
|
output += "Example row: #{row_name}\n"
|
111
115
|
end
|
data/lib/cucumber/hooks.rb
CHANGED
@@ -47,6 +47,10 @@ module Cucumber
|
|
47
47
|
'After hook'
|
48
48
|
end
|
49
49
|
|
50
|
+
def to_s
|
51
|
+
"#{text} at #{location}"
|
52
|
+
end
|
53
|
+
|
50
54
|
def match_locations?(queried_locations)
|
51
55
|
queried_locations.any? { |other_location| other_location.match?(location) }
|
52
56
|
end
|
@@ -67,6 +71,10 @@ module Cucumber
|
|
67
71
|
'Before hook'
|
68
72
|
end
|
69
73
|
|
74
|
+
def to_s
|
75
|
+
"#{text} at #{location}"
|
76
|
+
end
|
77
|
+
|
70
78
|
def match_locations?(queried_locations)
|
71
79
|
queried_locations.any? { |other_location| other_location.match?(location) }
|
72
80
|
end
|
@@ -87,6 +95,10 @@ module Cucumber
|
|
87
95
|
'AfterStep hook'
|
88
96
|
end
|
89
97
|
|
98
|
+
def to_s
|
99
|
+
"#{text} at #{location}"
|
100
|
+
end
|
101
|
+
|
90
102
|
def match_locations?(queried_locations)
|
91
103
|
queried_locations.any? { |other_location| other_location.match?(location) }
|
92
104
|
end
|
data/lib/cucumber/step_match.rb
CHANGED
data/lib/cucumber/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0
|
1
|
+
3.1.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-11-
|
13
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cucumber-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 3.
|
28
|
+
version: 3.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: builder
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,14 +60,14 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '5.0'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
70
|
+
version: '5.0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: multi_json
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,14 +122,14 @@ dependencies:
|
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 5.0.4
|
126
126
|
type: :runtime
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 5.0.4
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: bundler
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,14 +262,14 @@ dependencies:
|
|
262
262
|
requirements:
|
263
263
|
- - "~>"
|
264
264
|
- !ruby/object:Gem::Version
|
265
|
-
version: 0.
|
265
|
+
version: 0.49.0
|
266
266
|
type: :development
|
267
267
|
prerelease: false
|
268
268
|
version_requirements: !ruby/object:Gem::Requirement
|
269
269
|
requirements:
|
270
270
|
- - "~>"
|
271
271
|
- !ruby/object:Gem::Version
|
272
|
-
version: 0.
|
272
|
+
version: 0.49.0
|
273
273
|
- !ruby/object:Gem::Dependency
|
274
274
|
name: octokit
|
275
275
|
requirement: !ruby/object:Gem::Requirement
|
@@ -522,9 +522,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
522
522
|
version: '0'
|
523
523
|
requirements: []
|
524
524
|
rubyforge_project:
|
525
|
-
rubygems_version: 2.
|
525
|
+
rubygems_version: 2.6.8
|
526
526
|
signing_key:
|
527
527
|
specification_version: 4
|
528
|
-
summary: cucumber-3.0
|
528
|
+
summary: cucumber-3.1.0
|
529
529
|
test_files: []
|
530
|
-
has_rdoc:
|