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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b70d7a3d3da8e55f7848c6fd7375fa472c5ba69f4125eb3101a6d3c25049723e
4
- data.tar.gz: 7ba8115a5bcd08a050d81591109927c4428a3e9b3530d7b9804007e7a12b1c47
3
+ metadata.gz: 40ccc810a2c161f76dc266186853a4e99b55bb3e5d787152c6fb991c15d37ad2
4
+ data.tar.gz: ed3864f3a6407480926e6d12fcc52608f027f21623bc6be50156b96b4e47bd53
5
5
  SHA512:
6
- metadata.gz: 83599a3fbd35346449c62406165835bb01f96724183deb82ab22cc76b215d015ff15bc38919078b4dd088c6c5888ca8cc0aa9b475b29b09d35b2f62268f78651
7
- data.tar.gz: f46f95302d119660bbade528fa3773f50c52e14d4ef30996c7017846591b1b07082d673b8b8c316b0f5c19696b66d1d765b2dfaf90623e88eccf32ecc6e52f6f
6
+ metadata.gz: 91b5c6307cffd80b185ec2277efccb99b6a836211753ae8858b9f901b9f0e7956d196268a115fb9aaa8a80396e15c7b42b4ee102929aaeea2dc2d860f2f19f1e
7
+ data.tar.gz: 362d64a1fc3daccad19fdf05be711ce7b007e4ccde90f6757b1aafc477a49b80e75d9214a9f32532aaaeda028d233b05960c545e6415168f75e69532ebb583bc
@@ -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
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
  *no unreleased changes*
3
3
 
4
+ ## 5.4.2 / 2019-06-18
5
+ ### Fixed
6
+ * Tweak `:chrome_headless` driver for Chrome 75+
7
+
4
8
  ## 5.4.1 / 2019-06-04
5
9
  ### Fixed
6
10
  * Bump `rubocop` to a version that properly supports Ruby 2.6
@@ -11,7 +11,7 @@ file safety:
11
11
  ".rubocop.yml":
12
12
  comments:
13
13
  reviewed_by: josh.pencheon
14
- safe_revision: 4c73385591e807216d3bcd50b5f23b757c69f23b
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: 91978e1ad63e338cb9df9fd7d41b6761f38018b9
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: f1a32b1f2d1851b87a883dbf8620aa0e921e436c
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: 91978e1ad63e338cb9df9fd7d41b6761f38018b9
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(:chrome_headless) do |app|
5
- capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
6
- chromeOptions: {
7
- args: %w[
8
- headless disable-gpu no-sandbox
9
- --window-size=1920,1080
10
- --enable-features=NetworkService,NetworkServiceInProcess
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|
@@ -2,5 +2,5 @@
2
2
  # This defines the NdrDevSupport version. If you change it, rebuild and commit the gem.
3
3
  # Use "rake build" to build the gem, see rake -T for all bundler rake tasks (and our own).
4
4
  module NdrDevSupport
5
- VERSION = '5.4.1'.freeze
5
+ VERSION = '5.4.2'.freeze
6
6
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry