capybara-webmock 0.4.2 → 0.4.4

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: eca1636a9527763f3f5d28faa28b10f988ff43c7
4
- data.tar.gz: '0369592381650cb26db26c177d6a4263e594d16c'
3
+ metadata.gz: a1511010285eeb520105986a627bf40f2957fcaa
4
+ data.tar.gz: a12bff84fc592bfb31774cd2c3eeb9d691d074f9
5
5
  SHA512:
6
- metadata.gz: 6dcc5772e0bbfc2aee5f6b6826b5deaa05135a18d05ef40e69c11768bb83499352d1f8b0d02f379561993a5cc94fe726568d943e81311fb57916307c7b81254b
7
- data.tar.gz: 06a4597ce824db9955e076a0833f5603006b0fa33dba03c2ed30766d220ce6c11720c0845aa397ecb741d37eeb877609fc6f0c5e7fdef1d3a01893c18a3ebc00
6
+ metadata.gz: 6861262f85e84d138a83dca1c8152b601506cd702af8c58ca6cebf0b75b8c695953f53ae25338c43f253192f908bc72b2c52c31d7155f539cfed6eb400ae9799
7
+ data.tar.gz: af780a9538de5a69a5a1686d4b7b8c144f17d0939b6511dfc3912611d81734c43e143207724600d174c621fa70bd42eb6ed826383d44492169531f2346ae6fb1
@@ -34,8 +34,10 @@ module Capybara
34
34
  profile
35
35
  end
36
36
 
37
- def chrome_switches
38
- ["--proxy-server=127.0.0.1:#{port_number}"]
37
+ def chrome_options
38
+ ::Selenium::WebDriver::Chrome::Options.new.tap do |options|
39
+ options.add_argument("--proxy-server=127.0.0.1:#{port_number}")
40
+ end
39
41
  end
40
42
 
41
43
  def phantomjs_options
@@ -52,7 +54,7 @@ Capybara.register_driver :capybara_webmock do |app|
52
54
  end
53
55
 
54
56
  Capybara.register_driver :capybara_webmock_chrome do |app|
55
- Capybara::Selenium::Driver.new(app, browser: :chrome, switches: Capybara::Webmock.chrome_switches)
57
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: Capybara::Webmock.chrome_options)
56
58
  end
57
59
 
58
60
  Capybara.register_driver :capybara_webmock_poltergeist do |app|
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Webmock
3
- VERSION = "0.4.2"
3
+ VERSION = '0.4.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Worth
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-20 00:00:00.000000000 Z
12
+ date: 2018-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara