capybara-webmock 0.2.2 → 0.2.3

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: f307a699eb166e3af9de147e1c3f41f84432d716
4
- data.tar.gz: 07be870d00b3cf1f23059ad1d83b10cf69b7c4a3
3
+ metadata.gz: 46242d695b6329b75f9b405cb002207f06b9d91a
4
+ data.tar.gz: fca7a29ef9ee4b3a8f2db6a715cd7f6c1777c56b
5
5
  SHA512:
6
- metadata.gz: 01c5c747cabdcfd4a466f62fa5cc6a55fe6400f5d8080be159605c77fa94e938483cb21470b2908a92ff00168a8dc56712cd7d5104f4102b687df19068931184
7
- data.tar.gz: 67fd10ece7d4bd9f864676d199c111fea988a8c33502232ecd63585d03fc4584ac1fc320d6e5e912450e0bdcb1f8183d99ee851c0f3ee77b9a117a4e6d6d88d2
6
+ metadata.gz: 62b602849ff43d841cd90b46b5527d1b30d3e27c2593c4db11ac6dc38e4e04c2a59b5c8c11d4dabc49219416c1d1aea6c5cd7eb0e2e87118d3d3bfaeac9989e4
7
+ data.tar.gz: 0a6e9d81180148c13781619af2378558cdce80a2c030faec3be48a20ecd7c46561e106f199130e642feef9580cf040f2dc804fae6a2e9caba74a4350223bd8a2
data/README.md CHANGED
@@ -63,7 +63,7 @@ RSpec.configure do |config|
63
63
  end
64
64
  ```
65
65
 
66
- Then use the capybara-webmock JavaScript driver:
66
+ Then use the `capybara_webmock` JavaScript driver:
67
67
 
68
68
  ```ruby
69
69
  Capybara.javascript_driver = :capybara_webmock
@@ -10,23 +10,24 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['dev@hashrocket.com']
11
11
 
12
12
  spec.summary = %q{Mock external requests}
13
- spec.description = %q{Mock external requests for Capybara Firefox & Chrome drivers}
13
+ spec.description = %q{Mock external requests for Capybara Firefox drivers}
14
14
  spec.homepage = 'https://github.com/hashrocket/capybara-webmock'
15
15
  spec.license = 'MIT'
16
16
 
17
+ spec.required_ruby_version = ">= 2.0.0"
18
+
17
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
20
  f.match(%r{^(test|spec|features)/})
19
21
  end
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+
22
23
  spec.require_paths = ["lib"]
23
24
 
24
25
  spec.add_dependency "capybara", "~> 2.4"
25
- spec.add_dependency "rack", "~> 1.4"
26
+ spec.add_dependency "rack", ">= 1.4"
26
27
  spec.add_dependency "rack-proxy", "0.6.0"
27
28
 
28
29
  spec.add_development_dependency "bundler", "~> 1.13"
29
30
  spec.add_development_dependency "rake", "~> 10.0"
30
31
  spec.add_development_dependency "rspec", "~> 3.0"
31
- spec.add_development_dependency "pry"
32
+ spec.add_development_dependency "pry", "~> 0.10.4"
32
33
  end
@@ -26,9 +26,13 @@ module Capybara
26
26
  end
27
27
 
28
28
  Capybara.register_driver :capybara_webmock do |app|
29
+ proxy_host = '127.0.0.1'
30
+ proxy_port = 9292
29
31
  profile = Selenium::WebDriver::Firefox::Profile.new
30
32
  profile["network.proxy.type"] = 1
31
- profile["network.proxy.http"] = '127.0.0.1'
32
- profile["network.proxy.http_port"] = 9292
33
+ profile["network.proxy.http"] = proxy_host
34
+ profile["network.proxy.http_port"] = proxy_port
35
+ profile["network.proxy.ssl"] = proxy_host
36
+ profile["network.proxy.ssl_port"] = proxy_port
33
37
  Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)
34
38
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Webmock
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Worth
8
8
  - Dillon Hafer
9
9
  autorequire:
10
- bindir: exe
10
+ bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-07 00:00:00.000000000 Z
12
+ date: 2016-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
@@ -29,14 +29,14 @@ dependencies:
29
29
  name: rack
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.4'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.4'
42
42
  - !ruby/object:Gem::Dependency
@@ -99,17 +99,17 @@ dependencies:
99
99
  name: pry
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0'
104
+ version: 0.10.4
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
112
- description: Mock external requests for Capybara Firefox & Chrome drivers
111
+ version: 0.10.4
112
+ description: Mock external requests for Capybara Firefox drivers
113
113
  email:
114
114
  - dev@hashrocket.com
115
115
  executables: []
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: 2.0.0
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="