ndr_dev_support 5.4.1 → 5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/code_safety.yml +4 -4
- data/lib/ndr_dev_support/integration_testing/drivers/chrome_headless.rb +12 -16
- data/lib/ndr_dev_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40ccc810a2c161f76dc266186853a4e99b55bb3e5d787152c6fb991c15d37ad2
|
4
|
+
data.tar.gz: ed3864f3a6407480926e6d12fcc52608f027f21623bc6be50156b96b4e47bd53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b5c6307cffd80b185ec2277efccb99b6a836211753ae8858b9f901b9f0e7956d196268a115fb9aaa8a80396e15c7b42b4ee102929aaeea2dc2d860f2f19f1e
|
7
|
+
data.tar.gz: 362d64a1fc3daccad19fdf05be711ce7b007e4ccde90f6757b1aafc477a49b80e75d9214a9f32532aaaeda028d233b05960c545e6415168f75e69532ebb583bc
|
data/.rubocop.yml
CHANGED
@@ -116,6 +116,9 @@ Rails/DynamicFindBy:
|
|
116
116
|
Exclude:
|
117
117
|
- 'test/integration/**/*.rb'
|
118
118
|
|
119
|
+
Rails/RefuteMethods:
|
120
|
+
Enabled: false
|
121
|
+
|
119
122
|
Rails/SkipsModelValidations:
|
120
123
|
# Methods like 'update_column' exist for a reason, and it is the developer's
|
121
124
|
# responsibilty to understand the behaviour of the code they write; blanket
|
data/CHANGELOG.md
CHANGED
data/code_safety.yml
CHANGED
@@ -11,7 +11,7 @@ file safety:
|
|
11
11
|
".rubocop.yml":
|
12
12
|
comments:
|
13
13
|
reviewed_by: josh.pencheon
|
14
|
-
safe_revision:
|
14
|
+
safe_revision: a4fc1188be78ee287799c2fafd2395f94fccabbe
|
15
15
|
".travis.yml":
|
16
16
|
comments:
|
17
17
|
reviewed_by: josh.pencheon
|
@@ -19,7 +19,7 @@ file safety:
|
|
19
19
|
CHANGELOG.md:
|
20
20
|
comments:
|
21
21
|
reviewed_by: josh.pencheon
|
22
|
-
safe_revision:
|
22
|
+
safe_revision: a17b7d43e0c40ae2c5c3a5062c7c47380184dc32
|
23
23
|
CODE_OF_CONDUCT.md:
|
24
24
|
comments:
|
25
25
|
reviewed_by: timgentry
|
@@ -119,7 +119,7 @@ file safety:
|
|
119
119
|
lib/ndr_dev_support/integration_testing/drivers/chrome_headless.rb:
|
120
120
|
comments:
|
121
121
|
reviewed_by: josh.pencheon
|
122
|
-
safe_revision:
|
122
|
+
safe_revision: '0409b687d31202b2a4281ebfb7b0c330cc78d904'
|
123
123
|
lib/ndr_dev_support/integration_testing/drivers/firefox.rb:
|
124
124
|
comments:
|
125
125
|
reviewed_by: josh.pencheon
|
@@ -203,7 +203,7 @@ file safety:
|
|
203
203
|
lib/ndr_dev_support/version.rb:
|
204
204
|
comments:
|
205
205
|
reviewed_by: josh.pencheon
|
206
|
-
safe_revision:
|
206
|
+
safe_revision: a17b7d43e0c40ae2c5c3a5062c7c47380184dc32
|
207
207
|
lib/tasks/audit_code.rake:
|
208
208
|
comments: Identical to the version reviewed by josh.pencheon when contained within
|
209
209
|
ndr_support
|
@@ -1,22 +1,18 @@
|
|
1
1
|
require 'selenium-webdriver'
|
2
2
|
require 'show_me_the_cookies'
|
3
3
|
|
4
|
-
Capybara.register_driver
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
Capybara::Selenium::Driver.new(
|
16
|
-
app,
|
17
|
-
browser: :chrome,
|
18
|
-
desired_capabilities: capabilities
|
19
|
-
)
|
4
|
+
Capybara.register_driver :chrome_headless do |app|
|
5
|
+
Capybara::Selenium::Driver.load_selenium
|
6
|
+
browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
|
7
|
+
opts.args << '--headless'
|
8
|
+
opts.args << '--disable-gpu' if Gem.win_platform?
|
9
|
+
opts.args << '--no-sandbox'
|
10
|
+
# Workaround https://bugs.chromium.org/p/chromedriver/issues/detail?id=2650&q=load&sort=-id&colspec=ID%20Status%20Pri%20Owner%20Summary
|
11
|
+
opts.args << '--disable-site-isolation-trials'
|
12
|
+
opts.args << '--window-size=1920,1080'
|
13
|
+
opts.args << '--enable-features=NetworkService,NetworkServiceInProcess'
|
14
|
+
end
|
15
|
+
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
|
20
16
|
end
|
21
17
|
|
22
18
|
Capybara::Screenshot.register_driver(:chrome_headless) do |driver, path|
|
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: 5.4.
|
4
|
+
version: 5.4.2
|
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: 2019-06-
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|