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 +4 -4
- data/README.md +1 -1
- data/capybara-webmock.gemspec +6 -5
- data/lib/capybara/webmock.rb +6 -2
- data/lib/capybara/webmock/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46242d695b6329b75f9b405cb002207f06b9d91a
|
4
|
+
data.tar.gz: fca7a29ef9ee4b3a8f2db6a715cd7f6c1777c56b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62b602849ff43d841cd90b46b5527d1b30d3e27c2593c4db11ac6dc38e4e04c2a59b5c8c11d4dabc49219416c1d1aea6c5cd7eb0e2e87118d3d3bfaeac9989e4
|
7
|
+
data.tar.gz: 0a6e9d81180148c13781619af2378558cdce80a2c030faec3be48a20ecd7c46561e106f199130e642feef9580cf040f2dc804fae6a2e9caba74a4350223bd8a2
|
data/README.md
CHANGED
data/capybara-webmock.gemspec
CHANGED
@@ -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
|
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
|
-
|
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", "
|
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
|
data/lib/capybara/webmock.rb
CHANGED
@@ -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"] =
|
32
|
-
profile["network.proxy.http_port"] =
|
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
|
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.
|
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:
|
10
|
+
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
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:
|
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:
|
112
|
-
description: Mock external requests for Capybara Firefox
|
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:
|
145
|
+
version: 2.0.0
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|