capybara-headless_chrome 0.2.1 → 0.3.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
  SHA1:
3
- metadata.gz: cd53f1c095c3362f804d27203aa7faa711ed97c7
4
- data.tar.gz: 5fcbed1d9a9641012b42b52dd635957776eadb3b
3
+ metadata.gz: 8cc9d89c93d37d2fc503e918c6f694aee844b554
4
+ data.tar.gz: 2cd155dd480fb7e8bb7e36c8a03dc440abb994b3
5
5
  SHA512:
6
- metadata.gz: a4ac77dc3856fb148b72f2ae27fad53b217206a56c862157b21b886536a2f27ad62a93558cfa44e1e3823ff23c3e4edc56a2188dd12a75e3b98375e5b46c4a26
7
- data.tar.gz: 1e19146d46e3b3df92ed6c812ed17e586679f49d5456b72f61d4b8c0996138723867c3128645ebcb515b8f78d683328dccd38b0c3b1f846795d1888947903986
6
+ metadata.gz: e66250cff62ceddd3adfd3afb7f0f5a13ea9cf99aec4bb690933f3a2fe09f1af558adebec967ebb0c77538b3d26c5cd1ca660e13d8bbc0c88d48f677da0bb9f0
7
+ data.tar.gz: a1bd9bc702df494dfa1edfb39fa8af4e078872e2c96516664f602220eafffa7b0495ff9be276e516c6302572e38ae80f04a97aeab0491982b5612562ee4c5ac0
@@ -6,8 +6,8 @@ require "capybara/headless_chrome/downloads"
6
6
  module Capybara
7
7
  module HeadlessChrome
8
8
  class Driver < Capybara::Selenium::Driver
9
- def initialize app
10
- super(app, browser: :chrome, desired_capabilities: chrome_capabilities)
9
+ def initialize app, args: []
10
+ super(app, browser: :chrome, desired_capabilities: chrome_capabilities(args))
11
11
  configure_downloads
12
12
  fix_whitespace
13
13
  end
@@ -18,10 +18,10 @@ module Capybara
18
18
 
19
19
  private
20
20
 
21
- def chrome_capabilities
21
+ def chrome_capabilities args
22
22
  ::Selenium::WebDriver::Remote::Capabilities.chrome(
23
23
  chromeOptions: {
24
- args: chrome_arguments,
24
+ args: chrome_arguments + args,
25
25
  prefs: chrome_preferences
26
26
  }
27
27
  )
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module HeadlessChrome
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-headless_chrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chromedriver-helper