cucumber-rails 2.3.0 → 2.4.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: a39afb58224bd44c7d0c5585749b47030995e18f24788bded736cd64f349e89a
4
- data.tar.gz: 9f661d7af61c748f6e6435178c48ef18cc4d274e3a9c2ea900faacbd953e57fe
3
+ metadata.gz: d764b02e53187004f18c9fdc74de22286dde7a2844bb453c5dc807faaaa20b0b
4
+ data.tar.gz: 24b459b96e9f4c904c7c4b075bff63cf360e65b26b0c90b78d611bd5edab9af8
5
5
  SHA512:
6
- metadata.gz: 543e907c2756ceb148f313adcf0a381fd7de5bd23eed17abda861be526dec27fdea5b96bc84c46dd0ce52b0d70fe9088e5e62695ec844ee12fdd08e074228b8f
7
- data.tar.gz: e05864510bce02b11bb508f89c5a31ed4d8a88e90424e2f9c463513187b598d2d78f8255e8316b7fba9637680acf01637eaccf9c2578722551aed740694dfca3
6
+ metadata.gz: 14035d2a0e522ae20fc396e8b3eea3f3f0dc78631bfb7d15ff6d3fe77763463aa0ccfc088296952bbfd3cfcefff6b0a0a64bf4bdc7eb4b6b38e44a822bb9eb97
7
+ data.tar.gz: a3d599cc9cdb5de6f2db472bbbacfafeddbf11699eb6bf05103c3b6b3f8d31f7a620bbb97786a2c74e09ecce3712e4942828e2c8e1a8f01efbfe2db1d054280b
data/CHANGELOG.md CHANGED
@@ -1,25 +1,39 @@
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
- ## [master](https://github.com/cucumber/cucumber-rails/compare/v2.3.0...master) (Not yet released)
4
+ ## [main](https://github.com/cucumber/cucumber-rails/compare/v2.4.0...main) (Not yet released)
5
5
 
6
6
  ### New Features
7
7
 
8
- *
8
+ *
9
9
 
10
10
  ### Changed
11
11
 
12
- *
12
+ *
13
13
 
14
14
  ### Fixed
15
15
 
16
- *
16
+ *
17
17
 
18
- ## [v2.3.0](https://github.com/cucumber/cucumber-rails/compare/v2.2.0...v2.3.0) (2021-03-30)
18
+ ## [v2.4.0](https://github.com/cucumber/cucumber-rails/compare/v2.3.0...v2.4.0) (2021-07-21)
19
19
 
20
20
  ### New Features
21
21
 
22
- *
22
+ * Added new docker / Makefile script to permit releasing from repo ([#502](https://github.com/cucumber/cucumber-rails/pull/502) [luke-hill])
23
+ * Gem update: allowed cucumber 6/7 ([#515](https://github.com/cucumber/cucumber-rails/pull/515) /
24
+ [#519](https://github.com/cucumber/cucumber-rails/pull/519))
25
+ * Add support for Ruby 3 ([#517](https://github.com/cucumber/cucumber-rails/pull/517/))
26
+
27
+ ### Changed
28
+
29
+ * Updated rubocop to use new major versions ([#504](https://github.com/cucumber/cucumber-rails/pull/504) /
30
+ [#519](https://github.com/cucumber/cucumber-rails/pull/519) [luke-hill])
31
+
32
+ ### Removed
33
+
34
+ * Removed traces of legacy spork setup / help (No longer used) ([#518](https://github.com/cucumber/cucumber-rails/pull/518))
35
+
36
+ ## [v2.3.0](https://github.com/cucumber/cucumber-rails/compare/v2.2.0...v2.3.0) (2021-03-30)
23
37
 
24
38
  ### Changed
25
39
 
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Cucumber-Rails
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/cucumber-rails.svg)](http://badge.fury.io/rb/cucumber-rails)
4
- [![Build Status](https://secure.travis-ci.org/cucumber/cucumber-rails.svg?branch=master)](http://travis-ci.org/cucumber/cucumber-rails)
4
+ [![Build Status](https://github.com/cucumber/cucumber-rails/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/cucumber/cucumber-rails/actions/workflows/build.yml)
5
5
  [![Code Climate](https://codeclimate.com/github/cucumber/cucumber-rails.svg)](https://codeclimate.com/github/cucumber/cucumber-rails)
6
6
  [![Open Source Helpers](https://www.codetriage.com/cucumber/cucumber-rails/badges/users.svg)](https://www.codetriage.com/cucumber/cucumber-rails)
7
+ [![pull requests](https://oselvar.com/api/badge?label=pull%20requests&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fcucumber-rails%2FpullRequests.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/cucumber-rails)
8
+ [![issues](https://oselvar.com/api/badge?label=issues&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fcucumber-rails%2Fissues.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/cucumber-rails)
7
9
 
8
10
  Cucumber-Rails brings Cucumber to Rails 5.x and 6.x.
9
11
 
@@ -123,14 +125,3 @@ For example, rspec is a primary development dependency, so it lives in the gemsp
123
125
 
124
126
  [the helper]: https://github.com/cucumber/cucumber-rails/blob/5e37c530560ae1c1a79521c38a54bae0be94242b/features/step_definitions/cucumber_rails_steps.rb#L15
125
127
 
126
- ### NOTE
127
-
128
- If you get an error while trying to run the tests locally, similar to the one below:
129
-
130
- Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
131
-
132
- You need to install a javascript runtime.
133
-
134
- You can do that in ubuntu by using:
135
-
136
- sudo apt-get install nodejs
@@ -10,6 +10,8 @@ module Cucumber
10
10
 
11
11
  def before_js(strategy)
12
12
  @original_strategy = if defined?(DatabaseCleaner::VERSION) && Gem::Version.new(DatabaseCleaner::VERSION) >= Gem::Version.new('1.8.0.beta')
13
+ raise "No DatabaseCleaner strategies found. Make sure you have required one of DatabaseCleaner's adapters" if DatabaseCleaner.cleaners.empty?
14
+
13
15
  DatabaseCleaner.cleaners.values.first.strategy # that feels like a nasty hack
14
16
  else
15
17
  DatabaseCleaner.connections.first.strategy # that feels like a nasty hack
@@ -8,10 +8,6 @@ module Cucumber
8
8
 
9
9
  DEFAULT_SHEBANG = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
10
10
 
11
- class_option :spork,
12
- type: :boolean,
13
- desc: 'Use Spork'
14
-
15
11
  class_option :skip_database,
16
12
  type: :boolean,
17
13
  desc: 'Skip modification of database.yml',
@@ -34,11 +30,16 @@ module Cucumber
34
30
 
35
31
  def create_feature_support
36
32
  empty_directory 'features/support'
37
- if spork?
38
- template 'support/rails_spork.rb.erb', 'features/support/env.rb'
39
- else
40
- template 'support/rails.rb.erb', 'features/support/env.rb'
41
- end
33
+ template 'support/rails.rb.erb', 'features/support/env.rb'
34
+ end
35
+
36
+ def configure_environment
37
+ environment(<<~CONFIG, env: %w[development test]) if ::Rails::VERSION::MAJOR >= 6
38
+ # Configure 'rails notes' to inspect Cucumber files
39
+ config.annotations.register_directories('features')
40
+ config.annotations.register_extensions('feature') { |tag| /#\\s*(\#{tag}):?\\s*(.*)$/ }
41
+
42
+ CONFIG
42
43
  end
43
44
 
44
45
  def create_tasks
@@ -59,10 +60,6 @@ module Cucumber
59
60
 
60
61
  protected
61
62
 
62
- def spork?
63
- options[:spork]
64
- end
65
-
66
63
  def embed_file(source, indent = '')
67
64
  IO.read(File.join(self.class.source_root, source)).gsub(/^/, indent)
68
65
  end
@@ -4,6 +4,6 @@ rerun = rerun.strip.gsub /\s/, ' '
4
4
  rerun_opts = rerun.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
5
5
  std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags 'not @wip'"
6
6
  %>
7
- default: <%= spork? ? '--drb ' : '' %><%%= std_opts %> features
8
- wip: <%= spork? ? '--drb ' : '' %>--tags @wip:3 --wip features
9
- rerun: <%= spork? ? '--drb ' : '' %><%%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip'
7
+ default: <%%= std_opts %> features
8
+ wip: --tags @wip:3 --wip features
9
+ rerun: <%%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip'
@@ -35,6 +35,7 @@ begin
35
35
  ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
36
36
  ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
37
37
  end
38
+ <% if ::Rails::VERSION::MAJOR < 6 %>
38
39
 
39
40
  task :annotations_setup do
40
41
  Rails.application.configure do
@@ -44,7 +45,9 @@ begin
44
45
  end
45
46
  end
46
47
  end
48
+ <% end %>
47
49
  end
50
+
48
51
  desc 'Alias for cucumber:ok'
49
52
  task cucumber: 'cucumber:ok'
50
53
 
@@ -60,7 +63,9 @@ begin
60
63
 
61
64
  task stats: 'cucumber:statsetup'
62
65
 
66
+ <% if ::Rails::VERSION::MAJOR < 6 %>
63
67
  task notes: 'cucumber:annotations_setup'
68
+ <% end %>
64
69
  rescue LoadError
65
70
  desc 'cucumber rake task not available (cucumber not installed)'
66
71
  task :cucumber do
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.3.0
4
+ version: 2.4.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: 2021-03-30 00:00:00.000000000 Z
13
+ date: 2021-07-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -38,48 +38,48 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 3.0.2
41
+ version: '3.2'
42
42
  - - "<"
43
43
  - !ruby/object:Gem::Version
44
- version: '6'
44
+ version: '8'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 3.0.2
51
+ version: '3.2'
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '6'
54
+ version: '8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mime-types
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.2'
61
+ version: '3.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.2'
68
+ version: '3.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.8'
75
+ version: '1.10'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.8'
82
+ version: '1.10'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: railties
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +100,34 @@ dependencies:
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '7'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rexml
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '3.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: webrick
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.7'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.7'
103
131
  - !ruby/object:Gem::Dependency
104
132
  name: ammeter
105
133
  requirement: !ruby/object:Gem::Requirement
@@ -118,16 +146,16 @@ dependencies:
118
146
  name: appraisal
119
147
  requirement: !ruby/object:Gem::Requirement
120
148
  requirements:
121
- - - "~>"
149
+ - - "<"
122
150
  - !ruby/object:Gem::Version
123
- version: '2.2'
151
+ version: '2.4'
124
152
  type: :development
125
153
  prerelease: false
126
154
  version_requirements: !ruby/object:Gem::Requirement
127
155
  requirements:
128
- - - "~>"
156
+ - - "<"
129
157
  - !ruby/object:Gem::Version
130
- version: '2.2'
158
+ version: '2.4'
131
159
  - !ruby/object:Gem::Dependency
132
160
  name: aruba
133
161
  requirement: !ruby/object:Gem::Requirement
@@ -156,6 +184,26 @@ dependencies:
156
184
  - - ">="
157
185
  - !ruby/object:Gem::Version
158
186
  version: '1.17'
187
+ - !ruby/object:Gem::Dependency
188
+ name: database_cleaner
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '1.8'
194
+ - - "<"
195
+ - !ruby/object:Gem::Version
196
+ version: '3.0'
197
+ type: :development
198
+ prerelease: false
199
+ version_requirements: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '1.8'
204
+ - - "<"
205
+ - !ruby/object:Gem::Version
206
+ version: '3.0'
159
207
  - !ruby/object:Gem::Dependency
160
208
  name: rake
161
209
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +238,14 @@ dependencies:
190
238
  requirements:
191
239
  - - "~>"
192
240
  - !ruby/object:Gem::Version
193
- version: 0.93.0
241
+ version: 1.7.0
194
242
  type: :development
195
243
  prerelease: false
196
244
  version_requirements: !ruby/object:Gem::Requirement
197
245
  requirements:
198
246
  - - "~>"
199
247
  - !ruby/object:Gem::Version
200
- version: 0.93.0
248
+ version: 1.7.0
201
249
  - !ruby/object:Gem::Dependency
202
250
  name: rubocop-packaging
203
251
  requirement: !ruby/object:Gem::Requirement
@@ -218,28 +266,28 @@ dependencies:
218
266
  requirements:
219
267
  - - "~>"
220
268
  - !ruby/object:Gem::Version
221
- version: 1.7.1
269
+ version: 1.10.2
222
270
  type: :development
223
271
  prerelease: false
224
272
  version_requirements: !ruby/object:Gem::Requirement
225
273
  requirements:
226
274
  - - "~>"
227
275
  - !ruby/object:Gem::Version
228
- version: 1.7.1
276
+ version: 1.10.2
229
277
  - !ruby/object:Gem::Dependency
230
278
  name: rubocop-rspec
231
279
  requirement: !ruby/object:Gem::Requirement
232
280
  requirements:
233
281
  - - "~>"
234
282
  - !ruby/object:Gem::Version
235
- version: 1.44.0
283
+ version: 2.2.0
236
284
  type: :development
237
285
  prerelease: false
238
286
  version_requirements: !ruby/object:Gem::Requirement
239
287
  requirements:
240
288
  - - "~>"
241
289
  - !ruby/object:Gem::Version
242
- version: 1.44.0
290
+ version: 2.2.0
243
291
  - !ruby/object:Gem::Dependency
244
292
  name: sqlite3
245
293
  requirement: !ruby/object:Gem::Requirement
@@ -319,17 +367,16 @@ files:
319
367
  - lib/generators/cucumber/templates/support/capybara.rb
320
368
  - lib/generators/cucumber/templates/support/edit_warning.txt
321
369
  - lib/generators/cucumber/templates/support/rails.rb.erb
322
- - lib/generators/cucumber/templates/support/rails_spork.rb.erb
323
370
  - lib/generators/cucumber/templates/tasks/cucumber.rake.erb
324
371
  homepage: https://cucumber.io
325
372
  licenses:
326
373
  - MIT
327
374
  metadata:
328
375
  bug_tracker_uri: https://github.com/cucumber/cucumber-rails/issues
329
- changelog_uri: https://github.com/cucumber/cucumber-rails/blob/v2.3.0/CHANGELOG.md
376
+ changelog_uri: https://github.com/cucumber/cucumber-rails/blob/v2.4.0/CHANGELOG.md
330
377
  documentation_uri: https://cucumber.io/docs
331
378
  mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
332
- source_code_uri: https://github.com/cucumber/cucumber-rails/tree/v2.3.0
379
+ source_code_uri: https://github.com/cucumber/cucumber-rails/tree/v2.4.0
333
380
  post_install_message:
334
381
  rdoc_options: []
335
382
  require_paths:
@@ -348,5 +395,5 @@ requirements: []
348
395
  rubygems_version: 3.1.2
349
396
  signing_key:
350
397
  specification_version: 4
351
- summary: cucumber-rails-2.3.0
398
+ summary: cucumber-rails-2.4.0
352
399
  test_files: []
@@ -1,13 +0,0 @@
1
- <%= embed_file('support/edit_warning.txt') %>
2
- require 'rubygems'
3
- require 'spork'
4
-
5
- Spork.prefork do
6
- <%= embed_template('support/_rails_prefork.rb.erb', ' ') %>
7
-
8
- <%= embed_file("support/capybara.rb", ' ') %>
9
- end
10
-
11
- Spork.each_run do
12
- <%= embed_template('support/_rails_each_run.rb.erb', ' ') %>
13
- end