ndr_dev_support 6.1.9 → 7.0.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 +7 -1
- data/LICENSE.txt +1 -1
- data/README.md +6 -6
- data/code_safety.yml +32 -32
- data/lib/ndr_dev_support/integration_testing/drivers/switchable.rb +1 -8
- data/lib/ndr_dev_support/integration_testing.rb +0 -1
- data/lib/ndr_dev_support/version.rb +1 -1
- data/ndr_dev_support.gemspec +4 -4
- metadata +27 -23
- data/gemfiles/Gemfile.rails52 +0 -4
- data/lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf318e0af2171891382e2be7341affae46ff022b723e7777d0c505173d6b8d6
|
4
|
+
data.tar.gz: b9d3a7d0be0253ae46a864344db8745832efa5939e98689cf70bb465bd051ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11369ab5ca8d77ee56a2ec2151b3716263233a6b02c11f1522dcfecce2adeb58cd1b762dac984ef00c2460994952b8aeba61d4129260c9dd3362aaf7c9b95ca2
|
7
|
+
data.tar.gz: 64f3522b75f8d5a64ddd539e136d34e3094431f8b2dde7266002a2c9e0281d652f3d269ac52701ed70e33e6d1183eccace674afbf9d9a48af84c91b4b66dfebf
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
|
-
## [Unreleased]
|
3
2
|
* No unreleased changes
|
4
3
|
|
4
|
+
## 7.0.0 / 2022-10-05
|
5
|
+
## Changed
|
6
|
+
* Change default browser for integration tests to headless Chrome
|
7
|
+
* Drop support for Poltergeist and PhantomJS
|
8
|
+
* Replace Public Health England naming with NHS Digital
|
9
|
+
* Drop support for Rails 5.2
|
10
|
+
|
5
11
|
## 6.1.9 / 2022-10-04
|
6
12
|
### Fixed
|
7
13
|
* CD: don't post empty messages to Slack
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2011-
|
3
|
+
Copyright (c) 2011-2022 NHS Digital
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
## NdrDevSupport [![Maintainability](https://api.codeclimate.com/v1/badges/2b2a644964f2aa930f81/maintainability)](https://codeclimate.com/github/PublicHealthEngland/ndr_dev_support/maintainability) [![Build Status](https://github.com/
|
1
|
+
## NdrDevSupport [![Maintainability](https://api.codeclimate.com/v1/badges/2b2a644964f2aa930f81/maintainability)](https://codeclimate.com/github/PublicHealthEngland/ndr_dev_support/maintainability) [![Build Status](https://github.com/NHSDigital/ndr_dev_support/workflows/Test/badge.svg)](https://github.com/NHSDigital/ndr_dev_support/actions?query=workflow%3Atest) [![Gem Version](https://badge.fury.io/rb/ndr_dev_support.svg)](https://badge.fury.io/rb/ndr_dev_support)
|
2
2
|
|
3
|
-
This is the
|
4
|
-
providing:
|
3
|
+
This is the NHS Digital (NHS-D) National Disease Registration Service (NDRS) Developer Support ruby
|
4
|
+
gem, providing:
|
5
5
|
|
6
6
|
1. rake tasks to manage code auditing of ruby based projects
|
7
7
|
2. rake tasks to limit Rubocop's output to changed (and related) code
|
@@ -95,7 +95,7 @@ $ find . -iregex .*\.rake$ | xargs rake rubocop:diff:file
|
|
95
95
|
|
96
96
|
ndr_dev_support bundles a configured Rails integration testing environment.
|
97
97
|
|
98
|
-
By default, it uses `capybara` and `
|
98
|
+
By default, it uses `capybara` and `selenium` to drive a headless Chrome browser, and includes some sensible configuration.
|
99
99
|
|
100
100
|
To use, simply add the following to your application's `test_helper.rb`
|
101
101
|
|
@@ -257,9 +257,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
257
257
|
|
258
258
|
## Contributing
|
259
259
|
|
260
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
260
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/NHSDigital/ndr_dev_support. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
261
261
|
|
262
|
-
1. Fork it ( https://github.com/
|
262
|
+
1. Fork it ( https://github.com/NHSDigital/ndr_dev_support/fork )
|
263
263
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
264
264
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
265
265
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/code_safety.yml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
file safety:
|
3
3
|
".github/CODEOWNERS":
|
4
4
|
comments:
|
5
|
-
reviewed_by:
|
6
|
-
safe_revision:
|
5
|
+
reviewed_by: brian.shand
|
6
|
+
safe_revision: '058996443438979550013c0c983c63b68d3fc58b'
|
7
7
|
".github/workflows/lint.yml":
|
8
8
|
comments:
|
9
9
|
reviewed_by: josh.pencheon
|
@@ -11,7 +11,7 @@ file safety:
|
|
11
11
|
".github/workflows/test.yml":
|
12
12
|
comments:
|
13
13
|
reviewed_by: brian.shand
|
14
|
-
safe_revision:
|
14
|
+
safe_revision: 7ce59c6d85cf81eb4791deb94e066dc91704713c
|
15
15
|
".gitignore":
|
16
16
|
comments:
|
17
17
|
reviewed_by: josh.pencheon
|
@@ -27,7 +27,7 @@ file safety:
|
|
27
27
|
CHANGELOG.md:
|
28
28
|
comments:
|
29
29
|
reviewed_by: brian.shand
|
30
|
-
safe_revision:
|
30
|
+
safe_revision: dbfd8e8448033324dbde951950e0c73925dbeb6c
|
31
31
|
CODE_OF_CONDUCT.md:
|
32
32
|
comments:
|
33
33
|
reviewed_by: timgentry
|
@@ -38,12 +38,12 @@ file safety:
|
|
38
38
|
safe_revision: c59a45986f8b6d087c8c21b1e889f31f7346da17
|
39
39
|
LICENSE.txt:
|
40
40
|
comments:
|
41
|
-
reviewed_by:
|
42
|
-
safe_revision:
|
41
|
+
reviewed_by: brian.shand
|
42
|
+
safe_revision: f50cf0b5a10fd0aa6499e101fc70a142bc6e9171
|
43
43
|
README.md:
|
44
44
|
comments:
|
45
|
-
reviewed_by:
|
46
|
-
safe_revision:
|
45
|
+
reviewed_by: brian.shand
|
46
|
+
safe_revision: f50cf0b5a10fd0aa6499e101fc70a142bc6e9171
|
47
47
|
Rakefile:
|
48
48
|
comments:
|
49
49
|
reviewed_by: josh.pencheon
|
@@ -60,10 +60,6 @@ file safety:
|
|
60
60
|
comments:
|
61
61
|
reviewed_by: josh.pencheon
|
62
62
|
safe_revision: 05476acacadfa0ad7404f3c37cf3c17c4e0ba11b
|
63
|
-
gemfiles/Gemfile.rails52:
|
64
|
-
comments:
|
65
|
-
reviewed_by: joshpencheon
|
66
|
-
safe_revision: f25001ef74c44ab727eef5cb29cef9a54525d36f
|
67
63
|
gemfiles/Gemfile.rails60:
|
68
64
|
comments:
|
69
65
|
reviewed_by: joshpencheon
|
@@ -94,8 +90,8 @@ file safety:
|
|
94
90
|
safe_revision: 74a4cd909afaf2ee8bcabdd252b2383b1474b6d4
|
95
91
|
lib/ndr_dev_support/capistrano/ndr_model.rb:
|
96
92
|
comments:
|
97
|
-
reviewed_by:
|
98
|
-
safe_revision:
|
93
|
+
reviewed_by: brian.shand
|
94
|
+
safe_revision: 7daa8f47557444038fdf25beb2e56435d90e3339
|
99
95
|
lib/ndr_dev_support/capistrano/restart.rb:
|
100
96
|
comments:
|
101
97
|
reviewed_by: josh.pencheon
|
@@ -120,6 +116,10 @@ file safety:
|
|
120
116
|
comments:
|
121
117
|
reviewed_by: josh.pencheon
|
122
118
|
safe_revision: a2b7c20eb58572c213f77677b36aa2f7e6db747e
|
119
|
+
lib/ndr_dev_support/daemon/cd_credentials.rb:
|
120
|
+
comments:
|
121
|
+
reviewed_by: brian.shand
|
122
|
+
safe_revision: c0909dd931655db714019a57005747259dc6abc2
|
123
123
|
lib/ndr_dev_support/daemon/ci_server.rb:
|
124
124
|
comments:
|
125
125
|
reviewed_by: josh.pencheon
|
@@ -127,11 +127,11 @@ file safety:
|
|
127
127
|
lib/ndr_dev_support/daemon/stoppable.rb:
|
128
128
|
comments:
|
129
129
|
reviewed_by: brian.shand
|
130
|
-
safe_revision:
|
130
|
+
safe_revision: e3d98ef2b728519d26efd8a5ab73cdb97f2a25f4
|
131
131
|
lib/ndr_dev_support/integration_testing.rb:
|
132
132
|
comments:
|
133
|
-
reviewed_by:
|
134
|
-
safe_revision:
|
133
|
+
reviewed_by: brian.shand
|
134
|
+
safe_revision: 55bf622a37081fc3afd8db9daba1b2f9840c7807
|
135
135
|
lib/ndr_dev_support/integration_testing/drivers/chrome.rb:
|
136
136
|
comments:
|
137
137
|
reviewed_by: josh.pencheon
|
@@ -144,14 +144,10 @@ file safety:
|
|
144
144
|
comments:
|
145
145
|
reviewed_by: josh.pencheon
|
146
146
|
safe_revision: f1a32b1f2d1851b87a883dbf8620aa0e921e436c
|
147
|
-
lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb:
|
148
|
-
comments:
|
149
|
-
reviewed_by: josh.pencheon
|
150
|
-
safe_revision: f1a32b1f2d1851b87a883dbf8620aa0e921e436c
|
151
147
|
lib/ndr_dev_support/integration_testing/drivers/switchable.rb:
|
152
148
|
comments:
|
153
|
-
reviewed_by:
|
154
|
-
safe_revision:
|
149
|
+
reviewed_by: brian.shand
|
150
|
+
safe_revision: 55bf622a37081fc3afd8db9daba1b2f9840c7807
|
155
151
|
lib/ndr_dev_support/integration_testing/dsl.rb:
|
156
152
|
comments:
|
157
153
|
reviewed_by: josh.pencheon
|
@@ -222,29 +218,33 @@ file safety:
|
|
222
218
|
safe_revision: 0c1489e51848d8e7a0903128ea934064c0ab254e
|
223
219
|
lib/ndr_dev_support/slack_message_publisher.rb:
|
224
220
|
comments:
|
225
|
-
reviewed_by:
|
226
|
-
safe_revision:
|
221
|
+
reviewed_by: brian.shand
|
222
|
+
safe_revision: e3d98ef2b728519d26efd8a5ab73cdb97f2a25f4
|
227
223
|
lib/ndr_dev_support/tasks.rb:
|
228
224
|
comments:
|
229
225
|
reviewed_by: brian.shand
|
230
|
-
safe_revision:
|
226
|
+
safe_revision: 189b6e38a0392a3ec0429ab33b456ac88a018a2b
|
231
227
|
lib/ndr_dev_support/version.rb:
|
232
228
|
comments:
|
233
229
|
reviewed_by: brian.shand
|
234
|
-
safe_revision:
|
230
|
+
safe_revision: dbfd8e8448033324dbde951950e0c73925dbeb6c
|
235
231
|
lib/tasks/audit_bundle.rake:
|
236
232
|
comments:
|
237
233
|
reviewed_by: brian.shand
|
238
|
-
safe_revision:
|
234
|
+
safe_revision: 664b4c343e9c21723b284a7bbd2b02e2c55806e6
|
239
235
|
lib/tasks/audit_code.rake:
|
240
236
|
comments: Identical to the version reviewed by josh.pencheon when contained within
|
241
237
|
ndr_support
|
242
238
|
reviewed_by: brian.shand
|
243
|
-
safe_revision:
|
239
|
+
safe_revision: 1706666ce209cf65d93494a441ecec7212e82954
|
240
|
+
lib/tasks/cd/credentials.rake:
|
241
|
+
comments:
|
242
|
+
reviewed_by: brian.shand
|
243
|
+
safe_revision: 189b6e38a0392a3ec0429ab33b456ac88a018a2b
|
244
244
|
lib/tasks/ci/brakeman.rake:
|
245
245
|
comments:
|
246
|
-
reviewed_by:
|
247
|
-
safe_revision:
|
246
|
+
reviewed_by: brian.shand
|
247
|
+
safe_revision: 4bc70cfa2fced009b205a29154a1f5200b2105bf
|
248
248
|
lib/tasks/ci/bundle_audit.rake:
|
249
249
|
comments:
|
250
250
|
reviewed_by: josh.pencheon
|
@@ -308,7 +308,7 @@ file safety:
|
|
308
308
|
ndr_dev_support.gemspec:
|
309
309
|
comments:
|
310
310
|
reviewed_by: brian.shand
|
311
|
-
safe_revision:
|
311
|
+
safe_revision: 7ce59c6d85cf81eb4791deb94e066dc91704713c
|
312
312
|
test/daemon/ci_server_test.rb:
|
313
313
|
comments:
|
314
314
|
reviewed_by: josh.pencheon
|
@@ -6,15 +6,8 @@ module NdrDevSupport
|
|
6
6
|
# A meta-driver that allows the driver to be set using the `INTEGRATION_DRIVER`
|
7
7
|
# environment variable (e.g. for a CI matrix), assuming that driver has been pre-registered
|
8
8
|
# with Capybara.
|
9
|
-
|
10
|
-
# Although the aim is to move to Chrome headless, we keep poltergeist as the default
|
11
|
-
# driver for now. For motivation behind not changing immediately, see the "Differences
|
12
|
-
# between Poltergeist and Selenium" section of:
|
13
|
-
#
|
14
|
-
# https://about.gitlab.com/2017/12/19/moving-to-headless-chrome/
|
15
|
-
#
|
16
9
|
module Switchable
|
17
|
-
DEFAULT = :
|
10
|
+
DEFAULT = :chrome_headless
|
18
11
|
CONFIGURED = ENV.fetch('INTEGRATION_DRIVER', DEFAULT).to_sym
|
19
12
|
|
20
13
|
Capybara.register_driver(:switchable) do |app|
|
@@ -29,7 +29,6 @@ Webdrivers.cache_time = 24.hours
|
|
29
29
|
require 'ndr_dev_support/integration_testing/drivers/chrome'
|
30
30
|
require 'ndr_dev_support/integration_testing/drivers/chrome_headless'
|
31
31
|
require 'ndr_dev_support/integration_testing/drivers/firefox'
|
32
|
-
require 'ndr_dev_support/integration_testing/drivers/poltergeist'
|
33
32
|
require 'ndr_dev_support/integration_testing/drivers/switchable'
|
34
33
|
|
35
34
|
Capybara.default_driver = :switchable
|
data/ndr_dev_support.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = []
|
10
10
|
spec.summary = 'NDR Developer Support library'
|
11
11
|
spec.description = 'Provides support to developers of NDR projects'
|
12
|
-
spec.homepage = 'https://github.com/
|
12
|
+
spec.homepage = 'https://github.com/NHSDigital/ndr_dev_support'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").
|
@@ -37,13 +37,12 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency 'capybara', '>= 3.34'
|
38
38
|
spec.add_dependency 'capybara-screenshot'
|
39
39
|
spec.add_dependency 'minitest', '~> 5.11'
|
40
|
-
spec.add_dependency 'poltergeist', '>= 1.8.0'
|
41
40
|
spec.add_dependency 'selenium-webdriver'
|
42
|
-
spec.add_dependency 'show_me_the_cookies'
|
41
|
+
spec.add_dependency 'show_me_the_cookies'
|
43
42
|
spec.add_dependency 'webdrivers', '>= 3.9'
|
44
43
|
|
45
44
|
# CI server dependencies:
|
46
|
-
spec.add_dependency 'activesupport', '< 7.1'
|
45
|
+
spec.add_dependency 'activesupport', '>= 6.0', '< 7.1'
|
47
46
|
spec.add_dependency 'brakeman', '>= 4.7.1'
|
48
47
|
spec.add_dependency 'bundler-audit'
|
49
48
|
spec.add_dependency 'github-linguist'
|
@@ -54,6 +53,7 @@ Gem::Specification.new do |spec|
|
|
54
53
|
|
55
54
|
# Deployment dependencies:
|
56
55
|
spec.add_dependency 'capistrano', '~> 2.15'
|
56
|
+
spec.add_dependency 'net-scp', '>= 2.0.0'
|
57
57
|
|
58
58
|
spec.add_development_dependency 'bundler'
|
59
59
|
spec.add_development_dependency 'mocha'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -164,20 +164,6 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '5.11'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: poltergeist
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 1.8.0
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 1.8.0
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: selenium-webdriver
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,16 +182,16 @@ dependencies:
|
|
196
182
|
name: show_me_the_cookies
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
198
184
|
requirements:
|
199
|
-
- - "
|
185
|
+
- - ">="
|
200
186
|
- !ruby/object:Gem::Version
|
201
|
-
version: '
|
187
|
+
version: '0'
|
202
188
|
type: :runtime
|
203
189
|
prerelease: false
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
205
191
|
requirements:
|
206
|
-
- - "
|
192
|
+
- - ">="
|
207
193
|
- !ruby/object:Gem::Version
|
208
|
-
version: '
|
194
|
+
version: '0'
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
196
|
name: webdrivers
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,6 +210,9 @@ dependencies:
|
|
224
210
|
name: activesupport
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
226
212
|
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '6.0'
|
227
216
|
- - "<"
|
228
217
|
- !ruby/object:Gem::Version
|
229
218
|
version: '7.1'
|
@@ -231,6 +220,9 @@ dependencies:
|
|
231
220
|
prerelease: false
|
232
221
|
version_requirements: !ruby/object:Gem::Requirement
|
233
222
|
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '6.0'
|
234
226
|
- - "<"
|
235
227
|
- !ruby/object:Gem::Version
|
236
228
|
version: '7.1'
|
@@ -346,6 +338,20 @@ dependencies:
|
|
346
338
|
- - "~>"
|
347
339
|
- !ruby/object:Gem::Version
|
348
340
|
version: '2.15'
|
341
|
+
- !ruby/object:Gem::Dependency
|
342
|
+
name: net-scp
|
343
|
+
requirement: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: 2.0.0
|
348
|
+
type: :runtime
|
349
|
+
prerelease: false
|
350
|
+
version_requirements: !ruby/object:Gem::Requirement
|
351
|
+
requirements:
|
352
|
+
- - ">="
|
353
|
+
- !ruby/object:Gem::Version
|
354
|
+
version: 2.0.0
|
349
355
|
- !ruby/object:Gem::Dependency
|
350
356
|
name: bundler
|
351
357
|
requirement: !ruby/object:Gem::Requirement
|
@@ -407,7 +413,6 @@ files:
|
|
407
413
|
- bin/setup
|
408
414
|
- code_safety.yml
|
409
415
|
- config/rubocop/ndr.yml
|
410
|
-
- gemfiles/Gemfile.rails52
|
411
416
|
- gemfiles/Gemfile.rails60
|
412
417
|
- gemfiles/Gemfile.rails61
|
413
418
|
- gemfiles/Gemfile.rails70
|
@@ -429,7 +434,6 @@ files:
|
|
429
434
|
- lib/ndr_dev_support/integration_testing/drivers/chrome.rb
|
430
435
|
- lib/ndr_dev_support/integration_testing/drivers/chrome_headless.rb
|
431
436
|
- lib/ndr_dev_support/integration_testing/drivers/firefox.rb
|
432
|
-
- lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
|
433
437
|
- lib/ndr_dev_support/integration_testing/drivers/switchable.rb
|
434
438
|
- lib/ndr_dev_support/integration_testing/dsl.rb
|
435
439
|
- lib/ndr_dev_support/integration_testing/flakey_tests.rb
|
@@ -471,7 +475,7 @@ files:
|
|
471
475
|
- lib/tasks/ci/stats.rake
|
472
476
|
- lib/tasks/rubocop.rake
|
473
477
|
- ndr_dev_support.gemspec
|
474
|
-
homepage: https://github.com/
|
478
|
+
homepage: https://github.com/NHSDigital/ndr_dev_support
|
475
479
|
licenses:
|
476
480
|
- MIT
|
477
481
|
metadata: {}
|
data/gemfiles/Gemfile.rails52
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# The driver for PhantomJS is poltergeist:
|
2
|
-
require 'capybara/poltergeist'
|
3
|
-
require 'show_me_the_cookies'
|
4
|
-
|
5
|
-
Capybara.register_driver(:poltergeist) do |app|
|
6
|
-
options = { phantomjs_options: ['--proxy-type=none'], timeout: 60 }
|
7
|
-
|
8
|
-
options.merge!(debug: true, inspector: true) if ENV['DEBUG_PHANTOM_JS']
|
9
|
-
|
10
|
-
Capybara::Poltergeist::Driver.new(app, options)
|
11
|
-
end
|
12
|
-
|
13
|
-
Capybara::Screenshot.register_driver(:poltergeist) do |driver, path|
|
14
|
-
# Take full-height screenshots, rather than just capturing the viewport:
|
15
|
-
driver.render(path, full: true)
|
16
|
-
end
|
17
|
-
|
18
|
-
ShowMeTheCookies.register_adapter(:poltergeist, ShowMeTheCookies::Poltergeist)
|