service_mock 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/lib/service_mock/command_line_options.rb +2 -2
- data/lib/service_mock/server.rb +7 -3
- data/lib/service_mock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '090bf1dea59679645c88f7604ef7a2304b357872'
|
4
|
+
data.tar.gz: eacf48ee61d4117712cc98cd4f724be697aa36cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29829afef68287b4ab84c973d62718e0c5d19fea4787c0508f2b2b91fc11bda9ad9f0446ff90c9bb9405c8339bbf026217b74d7db1dd6fc54f096237fb7b421f
|
7
|
+
data.tar.gz: 43de93ede8c050d2d68b230d9ed36fe803e696b5123af039423b70de04f0c806d946fa7c935ac8b250da1c8086b6f5823992ab9eeb163b86776b9e7b1d708c77
|
data/ChangeLog
CHANGED
@@ -51,11 +51,11 @@ module ServiceMock
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def https_keystore_command
|
54
|
-
[
|
54
|
+
['--https-keystore', https_keystore]
|
55
55
|
end
|
56
56
|
|
57
57
|
def keystore_password_command
|
58
|
-
[
|
58
|
+
['--keystore-password', keystore_password]
|
59
59
|
end
|
60
60
|
|
61
61
|
def enable_browser_proxying_command
|
data/lib/service_mock/server.rb
CHANGED
@@ -43,7 +43,7 @@ module ServiceMock
|
|
43
43
|
class Server
|
44
44
|
include CommandLineOptions
|
45
45
|
|
46
|
-
attr_accessor :inherit_io, :wait_for_process, :remote_host, :classpath
|
46
|
+
attr_accessor :inherit_io, :wait_for_process, :remote_host, :classpath, :use_ssl
|
47
47
|
attr_reader :wiremock_version, :working_directory, :process
|
48
48
|
attr_accessor :proxy_addr, :proxy_port, :proxy_user, :proxy_pass
|
49
49
|
|
@@ -52,6 +52,7 @@ module ServiceMock
|
|
52
52
|
@working_directory = working_directory
|
53
53
|
self.inherit_io = false
|
54
54
|
self.wait_for_process = false
|
55
|
+
self.use_ssl = false
|
55
56
|
end
|
56
57
|
|
57
58
|
#
|
@@ -215,10 +216,13 @@ module ServiceMock
|
|
215
216
|
|
216
217
|
def http
|
217
218
|
if using_proxy
|
218
|
-
|
219
|
+
http = Net::HTTP.Proxy(proxy_addr, proxy_port,
|
219
220
|
proxy_user, proxy_pass)
|
221
|
+
else
|
222
|
+
http = Net::HTTP.new(admin_host, admin_port)
|
220
223
|
end
|
221
|
-
|
224
|
+
http.use_ssl = use_ssl
|
225
|
+
http
|
222
226
|
end
|
223
227
|
|
224
228
|
def using_proxy
|
data/lib/service_mock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey S. Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|