cucumber-rails 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +185 -164
- data/CONTRIBUTING.md +3 -17
- data/lib/cucumber/rails/capybara/select_dates_and_times.rb +26 -12
- data/lib/cucumber/rails/world.rb +2 -2
- data/lib/cucumber/rails.rb +1 -1
- metadata +30 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 332bd151e0f5e7e898dd3e81ef62ef150e566896138302ddeeb87ff7c2b3ebd4
|
4
|
+
data.tar.gz: 839e6ccf17dbb5e73f8d57368cdadc63fae3ca95f25d48f45cdb6ecc84535417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b80d1788e98abc663928fe507015632b8ed59babf1fe3d7037b15b883aeac8bba67c00db9583201b48410361be808cc60ac52595eabcd0c743ee9849033a3a64
|
7
|
+
data.tar.gz: 811bf5ad1014181d8c4521ff8c2d81d81dba7e5d9d8405536607b987e7b9c8eb099624cf1aeb2f5978cbbfd2bfd7a5ab57c63f10a0384b81082447d284a8e741
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,36 @@
|
|
1
1
|
Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CONTRIBUTING.md)
|
2
2
|
on how to contribute to Cucumber.
|
3
3
|
|
4
|
-
## [main](https://github.com/cucumber/cucumber-rails/compare/v2.5.
|
4
|
+
## [main](https://github.com/cucumber/cucumber-rails/compare/v2.5.1...main) (Not yet released)
|
5
5
|
|
6
6
|
### New Features
|
7
7
|
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
## [v2.6.0](https://github.com/cucumber/cucumber-rails/compare/v2.5.1...v2.6.0) (2022-10-07)
|
8
13
|
|
14
|
+
### New Features
|
15
|
+
* Dependabot has now been added to the repo (Alongside this a bunch of gem updates have been done)
|
16
|
+
([#540](https://github.com/cucumber/cucumber-rails/pull/540) [mattwynne])
|
9
17
|
|
10
18
|
### Changed
|
19
|
+
* Gem update: allowed cucumber 8 ([#538](https://github.com/cucumber/cucumber-rails/pull/538) /
|
20
|
+
[#541](https://github.com/cucumber/cucumber-rails/pull/541) [mattwynne])
|
21
|
+
|
22
|
+
### Fixed
|
23
|
+
* Some bugs with dev dependencies have now been fixed externally, so these have been unrestricted
|
24
|
+
([#552](https://github.com/cucumber/cucumber-rails/pull/552) [BrianHawley])
|
11
25
|
|
26
|
+
* Fixed up some rubocop offenses from updated `rubocop-performance`
|
27
|
+
([#550](https://github.com/cucumber/cucumber-rails/pull/550) [olleolleolle])
|
12
28
|
|
29
|
+
## [v2.5.1](https://github.com/cucumber/cucumber-rails/compare/v2.5.0...v2.5.1) (2022-04-01)
|
13
30
|
|
14
31
|
### Fixed
|
15
32
|
|
16
|
-
*
|
33
|
+
* Date input support in Rails 7 ([#535](https://github.com/cucumber/cucumber-rails/pull/535) [mgrunberg])
|
17
34
|
|
18
35
|
## [v2.5.0](https://github.com/cucumber/cucumber-rails/compare/v2.4.0...v2.5.0) (2022-03-07)
|
19
36
|
|
@@ -33,293 +50,294 @@ on how to contribute to Cucumber.
|
|
33
50
|
|
34
51
|
* Added new docker / Makefile script to permit releasing from repo ([#502](https://github.com/cucumber/cucumber-rails/pull/502) [luke-hill])
|
35
52
|
* Gem update: allowed cucumber 6/7 ([#515](https://github.com/cucumber/cucumber-rails/pull/515) /
|
36
|
-
|
53
|
+
[#519](https://github.com/cucumber/cucumber-rails/pull/519))
|
37
54
|
* Add support for Ruby 3 ([#517](https://github.com/cucumber/cucumber-rails/pull/517/))
|
38
55
|
|
39
56
|
### Changed
|
40
57
|
|
41
58
|
* Updated rubocop to use new major versions ([#504](https://github.com/cucumber/cucumber-rails/pull/504) /
|
42
|
-
|
59
|
+
[#519](https://github.com/cucumber/cucumber-rails/pull/519) [luke-hill])
|
43
60
|
|
44
61
|
### Removed
|
45
62
|
|
46
|
-
* Removed traces of legacy spork setup / help (No longer used)
|
63
|
+
* Removed traces of legacy spork setup / help (No longer used)
|
64
|
+
([#518](https://github.com/cucumber/cucumber-rails/pull/518) [luke-hill])
|
47
65
|
|
48
66
|
## [v2.3.0](https://github.com/cucumber/cucumber-rails/compare/v2.2.0...v2.3.0) (2021-03-30)
|
49
67
|
|
50
68
|
### Changed
|
51
69
|
|
52
|
-
|
70
|
+
* Changed dependency from rails to railties to avoid pulling in optional Rails gems like actioncable
|
71
|
+
([#486](https://github.com/cucumber/cucumber-rails/pull/486) [langalex])
|
53
72
|
|
54
|
-
|
73
|
+
* Lightened gem binary by removing un-needed files ([#496](https://github.com/cucumber/cucumber-rails/pull/496) [orien])
|
55
74
|
|
56
75
|
### Fixed
|
57
76
|
|
58
|
-
|
77
|
+
* Fixed up a couple of legacy capybara specs to use a better format
|
78
|
+
([#498](https://github.com/cucumber/cucumber-rails/pull/498) [luke-hill])
|
59
79
|
|
60
80
|
## [v2.2.0](https://github.com/cucumber/cucumber-rails/compare/v2.1.0...v2.2.0) (2020-08-10)
|
61
81
|
|
62
82
|
### New Features
|
63
83
|
|
64
|
-
|
65
|
-
|
84
|
+
* Added more documentation and tests around Javascript tagged scenarios
|
85
|
+
([#480](https://github.com/cucumber/cucumber-rails/pull/480) [luke-hill])
|
66
86
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
87
|
+
* Gem Updates
|
88
|
+
* Allowed cucumber5, updated other gem dependencies
|
89
|
+
* Updated travis runs and gem builds tested against
|
90
|
+
([#482](https://github.com/cucumber/cucumber-rails/pull/482) [luke-hill])
|
71
91
|
|
72
92
|
### Changed
|
73
93
|
|
74
|
-
|
94
|
+
* Dropped Rails 4.2 support ([#392](https://github.com/cucumber/cucumber-rails/pull/392) [deivid-rodriguez])
|
75
95
|
|
76
96
|
### Fixed
|
77
97
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
* Restored compatibility with `database_cleaner` versions earlier than 1.8.0.beta
|
82
|
-
([#473](https://github.com/cucumber/cucumber-rails/pull/473) [cgriego])
|
98
|
+
* Database cleaning no longer silently fails when using database_cleaner v2 adapter gems
|
99
|
+
([#467](https://github.com/cucumber/cucumber-rails/pull/467) [botandrose])
|
83
100
|
|
84
|
-
|
85
|
-
|
101
|
+
* Restored compatibility with `database_cleaner` versions earlier than 1.8.0.beta
|
102
|
+
([#473](https://github.com/cucumber/cucumber-rails/pull/473) [cgriego])
|
86
103
|
|
87
|
-
|
88
|
-
|
104
|
+
* Restored previous `database_cleaner` behavior for apps that do not use/load ActiveRecord
|
105
|
+
([#474](https://github.com/cucumber/cucumber-rails/pull/474) [cgriego]* Restored previous compatibility around standard Rails Modules not being loaded
|
106
|
+
([#484](https://github.com/cucumber/cucumber-rails/pull/484) [Draiken])
|
89
107
|
|
90
108
|
## [v2.1.0](https://github.com/cucumber/cucumber-rails/compare/v2.0.0...v2.1.0) (2020-06-15)
|
91
109
|
|
92
110
|
### New Features
|
93
111
|
|
94
|
-
|
95
|
-
|
112
|
+
* Added metadata to allow gem to be searched / indexed by rubygems
|
113
|
+
([#447](https://github.com/cucumber/cucumber-rails/pull/447) [orien])
|
96
114
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
115
|
+
* Allow Cucumber 4 to be used as an option for cucumber-rails
|
116
|
+
* NB: Cucumber4 changes quite a lot of logic with auto-loaders. This means that any previous
|
117
|
+
logic that relied implicitly on load-order "may" be affected
|
118
|
+
([#453](https://github.com/cucumber/cucumber-rails/pull/453) [luke-hill] / [deivid-rodriguez])
|
101
119
|
|
102
120
|
### Changed
|
103
121
|
|
104
|
-
|
122
|
+
* Dropped Ruby 2.3 support (target 2.4 - 2.7) ([#466](https://github.com/cucumber/cucumber-rails/pull/466) [mvz])
|
105
123
|
|
106
|
-
|
107
|
-
|
108
|
-
|
124
|
+
* Refactored suite to remove a lot of old Rails3/4.0 "ism's"
|
125
|
+
* Also migrated a lot of old cucumber styles to cucumber4
|
126
|
+
([#441](https://github.com/cucumber/cucumber-rails/pull/441) [luke-hill])
|
109
127
|
|
110
|
-
|
111
|
-
|
128
|
+
* Refactored alias logic for overriding Rails methods to use `Module#prepend`
|
129
|
+
([#457](https://github.com/cucumber/cucumber-rails/pull/457) [wagenet])
|
112
130
|
|
113
|
-
|
114
|
-
|
115
|
-
|
131
|
+
* `database_cleaner` (when used), at a version `>= 1.8` will now silence all warnings
|
132
|
+
* The suite internally will only test a version `>= 1.8`, so other versions will work but are un-maintained
|
133
|
+
([#463](https://github.com/cucumber/cucumber-rails/pull/463) [deivid-rodriguez])
|
116
134
|
|
117
135
|
### Fixed
|
118
136
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
137
|
+
* Various rubocop / rspec styling fixes
|
138
|
+
([#445](https://github.com/cucumber/cucumber-rails/pull/445) /
|
139
|
+
[#449](https://github.com/cucumber/cucumber-rails/pull/449) /
|
140
|
+
[#450](https://github.com/cucumber/cucumber-rails/pull/450) /
|
141
|
+
[#451](https://github.com/cucumber/cucumber-rails/pull/451) /
|
142
|
+
[#452](https://github.com/cucumber/cucumber-rails/pull/452) /
|
143
|
+
[#465](https://github.com/cucumber/cucumber-rails/pull/465)
|
144
|
+
[mvz] / [luke-hill])
|
127
145
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
146
|
+
* Various CI fixes
|
147
|
+
([#444](https://github.com/cucumber/cucumber-rails/pull/444) /
|
148
|
+
[#460](https://github.com/cucumber/cucumber-rails/pull/460) /
|
149
|
+
[#464](https://github.com/cucumber/cucumber-rails/pull/464)
|
150
|
+
[mvz] / [damonjmurray] / [deivid-rodriguez])
|
133
151
|
|
134
|
-
|
135
|
-
|
152
|
+
* Avoid printing a warning about `config.cache_classes` being set to `false` when
|
153
|
+
Spring is used ([#462](https://github.com/cucumber/cucumber-rails/pull/462) [janko])
|
136
154
|
|
137
155
|
## [v2.0.0](https://github.com/cucumber/cucumber-rails/compare/v1.8.0...v2.0.0) (2019-09-13)
|
138
156
|
|
139
157
|
### New Features
|
140
158
|
|
141
|
-
|
142
|
-
|
143
|
-
|
159
|
+
* New functionality allows users to Configure whether `Rack::Test` methods get auto-mixed in
|
160
|
+
* Setting `ENV['CR_REMOVE_RACK_TEST_HELPERS] = "true"` will remove these methods from the `World`
|
161
|
+
([#440](https://github.com/cucumber/cucumber-rails/pull/440) [luke-hill])
|
144
162
|
|
145
163
|
### Changed
|
146
164
|
|
147
|
-
|
148
|
-
|
165
|
+
* **Breaking change:** `web_steps` have been completely removed from cucumber-rails
|
166
|
+
([#437](https://github.com/cucumber/cucumber-rails/pull/437) [luke-hill])
|
149
167
|
|
150
|
-
|
151
|
-
|
168
|
+
* Altered some branching logic in tests designed to cater for old ruby/rails versions
|
169
|
+
([#433](https://github.com/cucumber/cucumber-rails/pull/433) [luke-hill])
|
152
170
|
|
153
171
|
## [v1.8.0](https://github.com/cucumber/cucumber-rails/compare/v1.7.0..v1.8.0) (2019-08-06)
|
154
172
|
|
155
173
|
### Changed
|
156
174
|
|
157
|
-
|
175
|
+
* Dropped Ruby 2.2 support (target 2.3 and up) ([#424](https://github.com/cucumber/cucumber-rails/pull/424) [mvz])
|
158
176
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
177
|
+
* Begin to update the core runtime / development dependencies to something a little more recent
|
178
|
+
([#413](https://github.com/cucumber/cucumber-rails/pull/413) /
|
179
|
+
[#431](https://github.com/cucumber/cucumber-rails/pull/431) /
|
180
|
+
[#432](https://github.com/cucumber/cucumber-rails/pull/432)
|
181
|
+
[mvz] /
|
182
|
+
[luke-hill])
|
165
183
|
|
166
184
|
### Fixed
|
167
185
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
* Generic Travis Healthcheck (Fixed up polluted logs and use newer Ubuntu OS)
|
179
|
-
([#415](https://github.com/cucumber/cucumber-rails/pull/415) /
|
180
|
-
[#417](https://github.com/cucumber/cucumber-rails/pull/417)
|
181
|
-
[luke-hill])
|
186
|
+
* Various rubocop / styling issues that had built up over time
|
187
|
+
([#414](https://github.com/cucumber/cucumber-rails/pull/414) /
|
188
|
+
[#416](https://github.com/cucumber/cucumber-rails/pull/416) /
|
189
|
+
[#419](https://github.com/cucumber/cucumber-rails/pull/419) /
|
190
|
+
[#420](https://github.com/cucumber/cucumber-rails/pull/420) /
|
191
|
+
[#421](https://github.com/cucumber/cucumber-rails/pull/421) /
|
192
|
+
[#421](https://github.com/cucumber/cucumber-rails/pull/434)
|
193
|
+
[luke-hill] /
|
194
|
+
[mvz])
|
182
195
|
|
183
|
-
|
184
|
-
|
185
|
-
|
196
|
+
* Generic Travis Healthcheck (Fixed up polluted logs and use newer Ubuntu OS)
|
197
|
+
([#415](https://github.com/cucumber/cucumber-rails/pull/415) /
|
198
|
+
[#417](https://github.com/cucumber/cucumber-rails/pull/417)
|
199
|
+
[luke-hill])
|
186
200
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
201
|
+
* Rails6 not building correctly
|
202
|
+
([#418](https://github.com/cucumber/cucumber-rails/pull/418)
|
203
|
+
[luke-hill])
|
204
|
+
|
205
|
+
* Provisional Ruby 2.7 builds not working
|
206
|
+
([#427](https://github.com/cucumber/cucumber-rails/pull/427)
|
207
|
+
[amatsuda] /
|
208
|
+
[luke-hill])
|
191
209
|
|
192
210
|
## [v1.7.0](https://github.com/cucumber/cucumber-rails/compare/v1.6.0...v1.7.0) (2019-04-17)
|
193
211
|
|
194
212
|
### Changed
|
195
213
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
214
|
+
* Drop rails `4.0` / `4.1` support ([#392](https://github.com/cucumber/cucumber-rails/pull/392) [deivid-rodriguez])
|
215
|
+
* Allow Ruby `2.6` users to `ERB.new` ([#399](https://github.com/cucumber/cucumber-rails/pull/399) [koic])
|
216
|
+
* Allow Rails to be used in the `6.x` series (Currently as of release only beta1 is supported) ([#405](https://github.com/cucumber/cucumber-rails/pull/405) [kotovalexarian])
|
217
|
+
* Update CI to test most relevant Rubies ([#411](https://github.com/cucumber/cucumber-rails/pull/411) [olleolleolle])
|
200
218
|
|
201
219
|
### Fixed
|
202
220
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
221
|
+
* Appraisals fixes (Up-to-date `geckodriver`, standardised the various `.gemfile`s)
|
222
|
+
([#389](https://github.com/cucumber/cucumber-rails/pull/389) /
|
223
|
+
[#394](https://github.com/cucumber/cucumber-rails/pull/394) /
|
224
|
+
[#395](https://github.com/cucumber/cucumber-rails/pull/395) /
|
225
|
+
[#408](https://github.com/cucumber/cucumber-rails/pull/408)
|
226
|
+
[xtrasimplicity] /
|
227
|
+
[deivid-rodriguez] /
|
228
|
+
[mvz])
|
229
|
+
|
230
|
+
* Various build issues that had built up over the previous year
|
231
|
+
([#403](https://github.com/cucumber/cucumber-rails/pull/403) /
|
232
|
+
[#404](https://github.com/cucumber/cucumber-rails/pull/404) /
|
233
|
+
[#410](https://github.com/cucumber/cucumber-rails/pull/410)
|
234
|
+
[koic] /
|
210
235
|
[mvz])
|
211
236
|
|
212
|
-
* Various build issues that had built up over the previous year
|
213
|
-
([#403](https://github.com/cucumber/cucumber-rails/pull/403) /
|
214
|
-
[#404](https://github.com/cucumber/cucumber-rails/pull/404) /
|
215
|
-
[#410](https://github.com/cucumber/cucumber-rails/pull/410)
|
216
|
-
[koic] /
|
217
|
-
[mvz])
|
218
|
-
|
219
237
|
## [v1.6.0](https://github.com/cucumber/cucumber-rails/compare/v1.5.0...v1.6.0) (2018-04-23)
|
220
238
|
|
221
239
|
### Changed
|
222
240
|
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
241
|
+
* Renamed History.md to CHANGELOG.md, added contributing note, and this line in accordance with [cucumber/cucumber #251](https://github.com/cucumber/cucumber/issues/251) ([#345](https://github.com/cucumber/cucumber-rails/pull/345) [jaysonesmith](https://github.com/jaysonesmith))
|
242
|
+
* Update .travis.yml with ruby versions ([#341](https://github.com/cucumber/cucumber-rails/pull/341) Jun Aruga)
|
243
|
+
* Removed support for Ruby <= 2.1, to keep in line with [cucumber-ruby](https://github.com/cucumber/cucumber-ruby/blob/master/CHANGELOG.md#302-2017-11-11) ([#360](https://github.com/cucumber/cucumber-rails/pull/360) [xtrasimplicity](https://github.com/xtrasimplicity)).
|
244
|
+
* Updated syntax to support both new and deprecated forms of tag negation. ([#348](https://github.com/cucumber/cucumber-rails/pull/348) [mirelon](https://github.com/mirelon), [#359](https://github.com/cucumber/cucumber-rails/pull/359) [xtrasimplicity](https://github.com/xtrasimplicity))
|
245
|
+
* Dependencies: Allowed `Ammeter` versions greater than 1.1.3. ([#368](https://github.com/cucumber/cucumber-rails/pull/368) [mvz](https://github.com/mvz))
|
246
|
+
* Switched to Ruby 1.9 hash syntax. ([#371](https://github.com/cucumber/cucumber-rails/pull/371) [mvz](https://github.com/mvz))
|
247
|
+
* Added support to handle rerun files with multiple lines. ([#373]((https://github.com/cucumber/cucumber-rails/pull/345)) [mvz](https://github.com/mvz))
|
248
|
+
* Added support for Rails 5.2 and Capybara 3. ([#378](https://github.com/cucumber/cucumber-rails/pull/378/) [gobijan](https://github.com/gobijan), [radar](https://github.com/radar), [xtrasimplicity](https://github.com/xtrasimplicity))
|
231
249
|
|
232
250
|
### Fixed
|
233
251
|
|
234
|
-
|
235
|
-
|
236
|
-
|
252
|
+
* Fix typo ([#343](https://github.com/cucumber/cucumber-rails/pull/343) Olle Jonsson)
|
253
|
+
* History.md: Fixed markdown formatting ([#344](https://github.com/cucumber/cucumber-rails/pull/344) [Kosmas](https://github.com/Kosmas))
|
254
|
+
* Fixed tag deprecation warnings. ([#373](https://github.com/cucumber/cucumber-rails/pull/373) [mvz](https://github.com/mvz))
|
237
255
|
|
238
256
|
## [v1.5.0](https://github.com/cucumber/cucumber-rails/compare/1.4.5...1.5.0) (2017-05-12)
|
239
257
|
|
240
|
-
|
241
|
-
|
258
|
+
* Drop rails 3 support ([#334](https://github.com/cucumber/cucumber-rails/pull/334) Matijs van Zuijlen)
|
259
|
+
* Add rails 5.1 support ([#337](https://github.com/cucumber/cucumber-rails/pull/337) Matijs van Zuijlen - Rafael Reggiani Manzo)
|
242
260
|
|
243
261
|
## [v1.4.5](https://github.com/cucumber/cucumber-rails/compare/1.4.4...1.4.5) (2016-09-27)
|
244
262
|
|
245
|
-
|
263
|
+
* Add support for Cucumber 3+ (Steve Tooke)
|
246
264
|
|
247
265
|
## [v1.4.4](https://github.com/cucumber/cucumber-rails/compare/1.4.3...1.4.4) (2016-08-05)
|
248
266
|
|
249
|
-
|
267
|
+
* Ensure support for Rails 5
|
250
268
|
|
251
269
|
## [v1.4.3](https://github.com/cucumber/cucumber-rails/compare/1.4.2...1.4.3) (2016-01-21)
|
252
270
|
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
271
|
+
* Added gem version badge (Kosmas Chatzimichalis)
|
272
|
+
* Fix a failing test due to rails date selectors only showing 5 years into the past by default ([#293](https://github.com/cucumber/cucumber-rails/pull/293) Thomas Walpole)
|
273
|
+
* Allow cucumber 2 ([#293](https://github.com/cucumber/cucumber-rails/pull/293) Thomas Walpole)
|
274
|
+
* Add rails 4.2 to test matrix ([#293](https://github.com/cucumber/cucumber-rails/pull/293) Thomas Walpole)
|
275
|
+
* Depend on railties instead of rails ([#294](https://github.com/cucumber/cucumber-rails/pull/294) Alexander Lang)
|
276
|
+
* Fix failing Travis CI tests ([#305](https://github.com/cucumber/cucumber-rails/pull/305) Matijs van Zuijlen)
|
277
|
+
* Allow any cucumber < 3 ([#306](https://github.com/cucumber/cucumber-rails/pull/306) Matijs van Zuijlen)
|
278
|
+
* Add annotations configuration in generator ([#292](https://github.com/cucumber/cucumber-rails/pull/292) Bob Showalter)
|
279
|
+
* Expand support to include mime-types 3 ([#304](https://github.com/cucumber/cucumber-rails/pull/304) Austin Ziegler)
|
280
|
+
* Replace badges with SVG versions ([#307](https://github.com/cucumber/cucumber-rails/pull/307) Kevin Goslar)
|
281
|
+
* Add new line to end of generated database.yml ([#302](https://github.com/cucumber/cucumber-rails/pull/302) Kevin Carmody)
|
264
282
|
|
265
283
|
## [v1.4.2](https://github.com/cucumber/cucumber-rails/compare/1.4.1...v1.4.2) (2014-10-09)
|
266
284
|
|
267
|
-
|
268
|
-
|
269
|
-
|
285
|
+
* Updated appraisal dependencies to rspec-rails 3.1.0, gemspec dependency to rspec <= 3.1, and removed turn from rails_4_1 appraisal (Kosmas Chatzimichalis)
|
286
|
+
* Update mime-types dependency to >= 1.16, < 3 ([#289](https://github.com/cucumber/cucumber-rails/pull/289) Erik Michaels-Ober)
|
287
|
+
* Upgrade to RSpec 3 ([#290](https://github.com/cucumber/cucumber-rails/pull/290) Tamir Duberstein)
|
270
288
|
|
271
289
|
## [v1.4.1](https://github.com/cucumber/cucumber-rails/compare/v1.4.0...v1.4.1) (2014-05-10)
|
272
290
|
|
273
291
|
### New Features
|
274
292
|
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
293
|
+
* Added MIT licence in gemspec ([#261](https://github.com/cucumber/cucumber-rails/issues/261#issuecomment-23260956) Benjamin Fleischer)
|
294
|
+
* Ensure dependency on DatabaseCleaner is not required ([#276](https://github.com/cucumber/cucumber-rails/pull/276) Matthew O'Riordan)
|
295
|
+
* Added Rails 4.1 support ([#287](https://github.com/cucumber/cucumber-rails/pull/287) Felix Bünemann)
|
296
|
+
* Modified appraisal instructions in README.md (Kosmas Chatzimichalis)
|
297
|
+
* Added Gemnasium support (Kosmas Chatzimichalis)
|
298
|
+
* Various code enhancements based on PullReview suggestions (Kosmas Chatzimichalis)
|
281
299
|
|
282
300
|
### Removed Features
|
283
301
|
|
284
|
-
|
302
|
+
* Mongo step definition ([#263](https://github.com/cucumber/cucumber-rails/issues/263) Aslak Hellesøy)
|
285
303
|
|
286
304
|
### Bugfixes
|
287
305
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
306
|
+
* Prevent MiniTest running `at_exit` when running cucumber ([#253](https://github.com/cucumber/cucumber-rails/issues/253) Steve Tooke)
|
307
|
+
* `bundle exec rake` runs minitest with cucumber options and raises exception ([#252](https://github.com/cucumber/cucumber-rails/issues/252) Peter Bollenbeck)
|
308
|
+
* Various bundler related fixes ([#264](https://github.com/cucumber/cucumber-rails/pull/264) Erik Michaels-Ober)
|
309
|
+
* Additional gemspec cleanup ([#265](https://github.com/cucumber/cucumber-rails/pull/265) Erik Michaels-Ober)
|
310
|
+
* Added mime-types runtime dependency to fix bundle install issue ([#273](https://github.com/cucumber/cucumber-rails/pull/273) Kosmas Chatzimichalis)
|
311
|
+
* Removed mongoid gem from Appraisal ([#274](https://github.com/cucumber/cucumber-rails/pull/274) Kosmas Chatzimichalis)
|
312
|
+
* Amend typo in select_dates_and_times.rb comments ([#268](https://github.com/cucumber/cucumber-rails/pull/268) Erik Eide)
|
313
|
+
* Keep empty step_definitions directories ([#249](https://github.com/cucumber/cucumber-rails/pull/249) Iain D Broadfoot)
|
314
|
+
* Remove obsolete link for config.cache_classes to false ([#271](https://github.com/cucumber/cucumber-rails/issues/271) Andrew Premdas)
|
297
315
|
|
298
316
|
## [v1.4.0](https://github.com/cucumber/cucumber-rails/compare/v1.3.1...v1.4.0) (2013-08-23)
|
299
317
|
|
300
318
|
### New Features
|
301
319
|
|
302
|
-
|
303
|
-
|
304
|
-
|
320
|
+
* New test raising_errors.feature to test raising routing errors that replaced the earlier routing.feature
|
321
|
+
* Added recommendation in README.md for running install scripts after upgrading (Joost Baaij)
|
322
|
+
* Describe configuration option 'autorun_database_cleaner' in README ([#255](https://github.com/cucumber/cucumber-rails/pull/255) Martin Eismann)
|
305
323
|
|
306
324
|
### Changed Features
|
307
325
|
|
308
|
-
|
326
|
+
* Gemspec in 1.3.1 doesn't allow usage with rails 4 ([#244](https://github.com/cucumber/cucumber-rails/issues/244) Fabian Schwahn)
|
309
327
|
|
310
328
|
### Removed Features
|
311
329
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
330
|
+
* routing.feature code was actually testing the raising of errors so it was renamed to raising_errors.feature and slightly changed to deal with rails 4 changes in public folder
|
331
|
+
* multiple_databases.feature was removed as it was actually testing DatabaseCleaner behaviour
|
332
|
+
* pre_bundler.feature was removed as it is no longer relevant
|
333
|
+
* mongodb feature was removed as is there is no mongodb code in cucumber-rails codebase
|
316
334
|
|
317
335
|
### Bugfixes
|
318
336
|
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
337
|
+
* Fixed tests so they pass in Rails 4 and updated gemspec ([#247](https://github.com/cucumber/cucumber-rails/pull/247) Dave Brace)
|
338
|
+
* Allow use with Rails 4 ([#254](https://github.com/cucumber/cucumber-rails/pull/254) Marnen Laibow-Koser)
|
339
|
+
* Fix for Rails4 ([#256](https://github.com/cucumber/cucumber-rails/pull/256) Jon Rowe)
|
340
|
+
* Revert "Merge pull request #256 from JonRowe/dumb_fix_for_rails4_test_he... ([#258](https://github.com/cucumber/cucumber-rails/pull/258) Kosmas Chatzimichalis)
|
323
341
|
|
324
342
|
## [v1.3.1](https://github.com/cucumber/cucumber-rails/compare/v1.3.0...v1.3.1) (2013-03-15)
|
325
343
|
|
@@ -696,3 +714,6 @@ and to celebrate that cucumber-rails now supports Capybara as an alternative to
|
|
696
714
|
[Draiken]: https://github.com/Draiken
|
697
715
|
[langalex]: https://github.com/langalex
|
698
716
|
[orien]: https://github.com/orien
|
717
|
+
[mgrunberg]: https://github.com/mgrunberg
|
718
|
+
[BrianHawley]: https://github.com/BrianHawley
|
719
|
+
[mattwynne]: https://github.com/mattwynne
|
data/CONTRIBUTING.md
CHANGED
@@ -6,9 +6,10 @@ We appreciate that. But before you do, please learn our basic rules:
|
|
6
6
|
* Do you have an idea for a new feature? Then don't expect it to be implemented unless you or someone else sends a [pull request](https://help.github.com/articles/using-pull-requests). You might be better to start a discussion on [the google group](http://groups.google.com/group/cukes).
|
7
7
|
* Reporting a bug? Please tell us:
|
8
8
|
* which version of Cucumber you're using
|
9
|
-
* which version of Ruby you're using
|
9
|
+
* which version of Ruby you're using
|
10
|
+
* which version of Rails you're using (include all associated gems)
|
10
11
|
* How to reproduce it. Bugs with a failing test in a [pull request](https://help.github.com/articles/using-pull-requests) get fixed much quicker. Some bugs may never be fixed.
|
11
|
-
* Want to paste some code or output? Put
|
12
|
+
* Want to paste some code or output? Put ``` on a line above and below your code/output. See [GFM](https://help.github.com/articles/github-flavored-markdown)'s *Fenced Code Blocks* for details.
|
12
13
|
* We love [pull requests](https://help.github.com/articles/using-pull-requests). But if you don't have a test to go with it we probably won't merge it.
|
13
14
|
|
14
15
|
# Contributing to cucumber-rails
|
@@ -58,18 +59,3 @@ Now release it
|
|
58
59
|
bundle exec rake
|
59
60
|
git commit -m "Release X.Y.Z"
|
60
61
|
rake release
|
61
|
-
|
62
|
-
## Gaining Release Karma
|
63
|
-
|
64
|
-
To become a release manager, create a pull request adding your name to the list below, including
|
65
|
-
your Rubygems email address in the ticket. One of the existing Release managers will then add you.
|
66
|
-
|
67
|
-
Current release managers:
|
68
|
-
* Kosmas Chatzimichalis
|
69
|
-
* Matt Wynne
|
70
|
-
* Mathieu Jobin
|
71
|
-
* Andrew Walter
|
72
|
-
|
73
|
-
To grant release karma, issue the following command:
|
74
|
-
|
75
|
-
gem owner cucumber-rails --add <NEW OWNER RUBYGEMS EMAIL>
|
@@ -8,12 +8,13 @@ module Cucumber
|
|
8
8
|
# Select a Rails date. Options hash must include from: +label+
|
9
9
|
def select_date(date, options)
|
10
10
|
date = Date.parse(date)
|
11
|
-
|
12
|
-
|
11
|
+
base_dom_id = get_base_dom_from_options(options)
|
12
|
+
|
13
|
+
# Rails 7 use HTML5 input type="date" by default. If input is not present fallback to plain select boxes alternative.
|
14
|
+
# It's safe to use has_css? without waiting/retry. We already know field's label is visible
|
15
|
+
if html5_input_field_present?(base_dom_id)
|
13
16
|
fill_in options[:from], with: date
|
14
17
|
else
|
15
|
-
base_dom_id = get_base_dom_id_from_label_tag(options[:from])
|
16
|
-
|
17
18
|
find(:xpath, ".//select[@id='#{base_dom_id}_1i']").select(date.year.to_s)
|
18
19
|
find(:xpath, ".//select[@id='#{base_dom_id}_2i']").select(I18n.l(date, format: '%B'))
|
19
20
|
find(:xpath, ".//select[@id='#{base_dom_id}_3i']").select(date.day.to_s)
|
@@ -23,12 +24,13 @@ module Cucumber
|
|
23
24
|
# Select a Rails time. Options hash must include from: +label+
|
24
25
|
def select_time(time, options)
|
25
26
|
time = Time.zone.parse(time)
|
26
|
-
|
27
|
-
|
27
|
+
base_dom_id = get_base_dom_from_options(options)
|
28
|
+
|
29
|
+
# Rails 7 use HTML5 input type="time" by default. If input is not present fallback to plain select boxes alternative.
|
30
|
+
# It's safe to use has_css? without waiting/retry. We already know field's label is visible
|
31
|
+
if html5_input_field_present?(base_dom_id)
|
28
32
|
fill_in options[:from], with: time
|
29
33
|
else
|
30
|
-
base_dom_id = get_base_dom_id_from_label_tag(options[:from])
|
31
|
-
|
32
34
|
find(:xpath, ".//select[@id='#{base_dom_id}_4i']").select(time.hour.to_s.rjust(2, '0'))
|
33
35
|
find(:xpath, ".//select[@id='#{base_dom_id}_5i']").select(time.min.to_s.rjust(2, '0'))
|
34
36
|
end
|
@@ -36,17 +38,29 @@ module Cucumber
|
|
36
38
|
|
37
39
|
# Select a Rails datetime. Options hash must include from: +label+
|
38
40
|
def select_datetime(datetime, options)
|
39
|
-
|
40
|
-
|
41
|
+
base_dom_id = get_base_dom_id_from_label_tag(options[:from])
|
42
|
+
|
43
|
+
# Rails 7 use HTML5 input type="datetime-local" by default. If input is not present fallback to plain select boxes alternative.
|
44
|
+
# It's safe to use has_css? without waiting/retry. We already know field's label is visible
|
45
|
+
if html5_input_field_present?(base_dom_id)
|
41
46
|
fill_in options[:from], with: DateTime.parse(datetime)
|
42
47
|
else
|
43
|
-
|
44
|
-
|
48
|
+
extended_options = options.merge(base_dom_id: base_dom_id)
|
49
|
+
select_date(datetime, extended_options)
|
50
|
+
select_time(datetime, extended_options)
|
45
51
|
end
|
46
52
|
end
|
47
53
|
|
48
54
|
private
|
49
55
|
|
56
|
+
def html5_input_field_present?(base_dom_id)
|
57
|
+
::Rails::VERSION::MAJOR >= 7 && page.has_css?("##{base_dom_id}", wait: 0)
|
58
|
+
end
|
59
|
+
|
60
|
+
def get_base_dom_from_options(options)
|
61
|
+
options[:base_dom_id] || get_base_dom_id_from_label_tag(options[:from])
|
62
|
+
end
|
63
|
+
|
50
64
|
# @example "event_starts_at_"
|
51
65
|
def get_base_dom_id_from_label_tag(field)
|
52
66
|
find(:xpath, ".//label[contains(., '#{field}')]")['for'].gsub(/(_[1-5]i)$/, '')
|
data/lib/cucumber/rails/world.rb
CHANGED
@@ -12,7 +12,7 @@ module Cucumber
|
|
12
12
|
class << self
|
13
13
|
def include_rack_test_helpers?
|
14
14
|
# Using ActiveModel Boolean casting here will give false positives more often than not!
|
15
|
-
!ENV
|
15
|
+
!ENV.fetch('CR_REMOVE_RACK_TEST_HELPERS', '').casecmp('true').zero?
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -22,7 +22,7 @@ module Cucumber
|
|
22
22
|
module Rails
|
23
23
|
class World < ::ActionDispatch::IntegrationTest
|
24
24
|
include Rack::Test::Methods if Cucumber::Rails.include_rack_test_helpers?
|
25
|
-
include ActiveSupport::Testing::SetupAndTeardown if ActiveSupport::Testing.const_defined?(
|
25
|
+
include ActiveSupport::Testing::SetupAndTeardown if ActiveSupport::Testing.const_defined?(:SetupAndTeardown)
|
26
26
|
|
27
27
|
def initialize
|
28
28
|
@_result = Test::Unit::TestResult.new if defined?(Test::Unit::TestResult)
|
data/lib/cucumber/rails.rb
CHANGED
@@ -9,7 +9,7 @@ if called_from_env_rb
|
|
9
9
|
require 'cucumber/rails/application'
|
10
10
|
ENV['RAILS_ENV'] ||= 'test'
|
11
11
|
ENV['RAILS_ROOT'] ||= File.expand_path("#{env_caller}/../..")
|
12
|
-
require File.expand_path("#{ENV
|
12
|
+
require File.expand_path("#{ENV.fetch('RAILS_ROOT')}/config/environment")
|
13
13
|
require 'cucumber/rails/action_dispatch'
|
14
14
|
require 'rails/test_help'
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.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: 2022-
|
13
|
+
date: 2022-10-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: '3.2'
|
42
42
|
- - "<"
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
44
|
+
version: '9'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
version: '3.2'
|
52
52
|
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mime-types
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,30 +146,42 @@ dependencies:
|
|
146
146
|
name: appraisal
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 2.4.1
|
149
152
|
- - "<"
|
150
153
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
154
|
+
version: '3'
|
152
155
|
type: :development
|
153
156
|
prerelease: false
|
154
157
|
version_requirements: !ruby/object:Gem::Requirement
|
155
158
|
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 2.4.1
|
156
162
|
- - "<"
|
157
163
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
164
|
+
version: '3'
|
159
165
|
- !ruby/object:Gem::Dependency
|
160
166
|
name: aruba
|
161
167
|
requirement: !ruby/object:Gem::Requirement
|
162
168
|
requirements:
|
163
|
-
- - "
|
169
|
+
- - ">="
|
164
170
|
- !ruby/object:Gem::Version
|
165
171
|
version: '1.0'
|
172
|
+
- - "<"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '3'
|
166
175
|
type: :development
|
167
176
|
prerelease: false
|
168
177
|
version_requirements: !ruby/object:Gem::Requirement
|
169
178
|
requirements:
|
170
|
-
- - "
|
179
|
+
- - ">="
|
171
180
|
- !ruby/object:Gem::Version
|
172
181
|
version: '1.0'
|
182
|
+
- - "<"
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '3'
|
173
185
|
- !ruby/object:Gem::Dependency
|
174
186
|
name: bundler
|
175
187
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,14 +250,14 @@ dependencies:
|
|
238
250
|
requirements:
|
239
251
|
- - "~>"
|
240
252
|
- !ruby/object:Gem::Version
|
241
|
-
version: 1.
|
253
|
+
version: 1.28.2
|
242
254
|
type: :development
|
243
255
|
prerelease: false
|
244
256
|
version_requirements: !ruby/object:Gem::Requirement
|
245
257
|
requirements:
|
246
258
|
- - "~>"
|
247
259
|
- !ruby/object:Gem::Version
|
248
|
-
version: 1.
|
260
|
+
version: 1.28.2
|
249
261
|
- !ruby/object:Gem::Dependency
|
250
262
|
name: rubocop-packaging
|
251
263
|
requirement: !ruby/object:Gem::Requirement
|
@@ -266,28 +278,28 @@ dependencies:
|
|
266
278
|
requirements:
|
267
279
|
- - "~>"
|
268
280
|
- !ruby/object:Gem::Version
|
269
|
-
version: 1.
|
281
|
+
version: 1.13.3
|
270
282
|
type: :development
|
271
283
|
prerelease: false
|
272
284
|
version_requirements: !ruby/object:Gem::Requirement
|
273
285
|
requirements:
|
274
286
|
- - "~>"
|
275
287
|
- !ruby/object:Gem::Version
|
276
|
-
version: 1.
|
288
|
+
version: 1.13.3
|
277
289
|
- !ruby/object:Gem::Dependency
|
278
290
|
name: rubocop-rspec
|
279
291
|
requirement: !ruby/object:Gem::Requirement
|
280
292
|
requirements:
|
281
293
|
- - "~>"
|
282
294
|
- !ruby/object:Gem::Version
|
283
|
-
version: 2.
|
295
|
+
version: 2.10.0
|
284
296
|
type: :development
|
285
297
|
prerelease: false
|
286
298
|
version_requirements: !ruby/object:Gem::Requirement
|
287
299
|
requirements:
|
288
300
|
- - "~>"
|
289
301
|
- !ruby/object:Gem::Version
|
290
|
-
version: 2.
|
302
|
+
version: 2.10.0
|
291
303
|
- !ruby/object:Gem::Dependency
|
292
304
|
name: sqlite3
|
293
305
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,10 +386,10 @@ licenses:
|
|
374
386
|
- MIT
|
375
387
|
metadata:
|
376
388
|
bug_tracker_uri: https://github.com/cucumber/cucumber-rails/issues
|
377
|
-
changelog_uri: https://github.com/cucumber/cucumber-rails/blob/v2.
|
389
|
+
changelog_uri: https://github.com/cucumber/cucumber-rails/blob/v2.6.0/CHANGELOG.md
|
378
390
|
documentation_uri: https://cucumber.io/docs
|
379
391
|
mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
|
380
|
-
source_code_uri: https://github.com/cucumber/cucumber-rails/tree/v2.
|
392
|
+
source_code_uri: https://github.com/cucumber/cucumber-rails/tree/v2.6.0
|
381
393
|
post_install_message:
|
382
394
|
rdoc_options: []
|
383
395
|
require_paths:
|
@@ -391,10 +403,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
403
|
requirements:
|
392
404
|
- - ">="
|
393
405
|
- !ruby/object:Gem::Version
|
394
|
-
version:
|
406
|
+
version: 1.6.1
|
395
407
|
requirements: []
|
396
408
|
rubygems_version: 3.1.2
|
397
409
|
signing_key:
|
398
410
|
specification_version: 4
|
399
|
-
summary: cucumber-rails-2.
|
411
|
+
summary: cucumber-rails-2.6.0
|
400
412
|
test_files: []
|