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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0c8f7835468a570de6203c0123ec41598a86cad
4
- data.tar.gz: 6e5684703af629bf3b141aaefd31af528e51647f
3
+ metadata.gz: '090bf1dea59679645c88f7604ef7a2304b357872'
4
+ data.tar.gz: eacf48ee61d4117712cc98cd4f724be697aa36cc
5
5
  SHA512:
6
- metadata.gz: 45a99d300a1eb75fdff45a056464818c0a171b701e247d6d88b9dccf808fb1fed12bb87ff1fbf76bfd92511ee1740ae0f1b0c82d702e20f542f94ca90ac5b02c
7
- data.tar.gz: b9018538106fc49a3e4af10da4075fe6e0ebf379036537b03e028d354b78023c8257448b0dd2db7e621857f9b8991018406b2f1ecb33dcfacdfdf9e53917e7ca
6
+ metadata.gz: 29829afef68287b4ab84c973d62718e0c5d19fea4787c0508f2b2b91fc11bda9ad9f0446ff90c9bb9405c8339bbf026217b74d7db1dd6fc54f096237fb7b421f
7
+ data.tar.gz: 43de93ede8c050d2d68b230d9ed36fe803e696b5123af039423b70de04f0c806d946fa7c935ac8b250da1c8086b6f5823992ab9eeb163b86776b9e7b1d708c77
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Release 0.9 / 11-Jan-2019
2
+ * Added support for https connection between gem and wiremock restful server - thanks Aaron Rinn
3
+
1
4
  === Release 0.8 / 23-Sep-2017
2
5
  * Added ability to provide proxy settings that are using when communicating with the server
3
6
 
@@ -51,11 +51,11 @@ module ServiceMock
51
51
  end
52
52
 
53
53
  def https_keystore_command
54
- ["--https-keystore #{https_keystore}"]
54
+ ['--https-keystore', https_keystore]
55
55
  end
56
56
 
57
57
  def keystore_password_command
58
- ["--keystore-password #{keystore_password}"]
58
+ ['--keystore-password', keystore_password]
59
59
  end
60
60
 
61
61
  def enable_browser_proxying_command
@@ -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
- return Net::HTTP.Proxy(proxy_addr, proxy_port,
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
- Net::HTTP.new(admin_host, admin_port)
224
+ http.use_ssl = use_ssl
225
+ http
222
226
  end
223
227
 
224
228
  def using_proxy
@@ -1,3 +1,3 @@
1
1
  module ServiceMock
2
- VERSION = "0.8"
2
+ VERSION = "0.9"
3
3
  end
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.8'
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: 2017-09-23 00:00:00.000000000 Z
11
+ date: 2019-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess