congress_forms 0.1.14 → 0.1.15

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: aa3f9293f8ae399688f5cb3685c526f659f4640ff43e3d665102aa12b224afe4
4
- data.tar.gz: fd5442b356dbc7f4f4cb66b86928cb660aaf2f4fb6234c679dac25d1d779ad55
3
+ metadata.gz: 805b230f97a3b9f4a4d3a5e7108d623e649adbbb548361bad2a2799b15177b64
4
+ data.tar.gz: 7aaeef3fbec56c34838eaa231c081bf2d6c8a0b5ade47d2cb013d010a64d1f44
5
5
  SHA512:
6
- metadata.gz: 270147a9c9b0e3fae773209efc0c87adab6dda3cbf76a687396e58535fdc43a81c65fb2c597c8f2f82ffb3a5e365b4a64c7b2e2188be646d28bada569f774a36
7
- data.tar.gz: 3140bb46667451fbd95fa493b697e5d281ee4e6707d9b04e0c8161434141c4a19ff645ff33b96d50d546cbe56bdd25d229949a5bdde7dea2b8bddbfae4337d40
6
+ metadata.gz: 3551f400d01950ee36ff963b514b38921fcb3e1f76848202890be30d639a3f7994c782f8d9ce259e0e1fbf53e0a4203717d81de41dc99908144175d97038a77d
7
+ data.tar.gz: bcce5315c8c5440907d416d44f8e65e344fadf8522406bd937326578d56d94a3bf52ff02216792efea1217537c875c62b230ead197ed133565acd7ebd0846b8a
@@ -1,3 +1,3 @@
1
1
  module CongressForms
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
@@ -44,20 +44,15 @@ Capybara.register_driver :remote do
44
44
  )
45
45
  end
46
46
 
47
- Capybara.register_driver :headless_chrome do
48
- capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
49
- chrome_options: {
50
- args: %w(new-window no-sandbox disable-dev-shm-usage disable-gpu window-size=1200,1400).tap do |o|
51
- o.push("headless") unless ENV["HEADLESS"] == "0"
52
- end
53
- }
54
- )
47
+ Capybara.register_driver :headless_chrome do |app|
48
+ Capybara::Selenium::Driver.load_selenium
49
+ browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
50
+ opts.args.merge(%w(--new-window --no-sandbox --disable-dev-shm-usage --window-size=1200,1400))
51
+ opts.args << '--headless' unless ENV["HEADLESS"] == "0"
52
+ opts.args << '--disable-gpu' if Gem.win_platform?
53
+ end
55
54
 
56
- Capybara::Selenium::Driver.new(
57
- nil,
58
- browser: :chrome,
59
- desired_capabilities: capabilities
60
- )
55
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
61
56
  end
62
57
 
63
58
  module CongressForms
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: congress_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Woo