rpc4json 0.0.2.alpha2 → 0.0.3.alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,10 @@ module JSONRPC
33
33
  @http = new_http
34
34
  end
35
35
 
36
+ def http_verify_mode=(mode)
37
+ @http.verify_mode = @http_verify_mode = mode
38
+ end
39
+
36
40
  def request_with_array(method, *args)
37
41
  request = Request.new(method, args)
38
42
  result = do_rpc(request, false)
@@ -99,7 +103,8 @@ module JSONRPC
99
103
 
100
104
  def new_http
101
105
  Net::HTTP.new(@host, @port, @proxy_host, @proxy_port).tap do |http|
102
- http.use_ssl = @use_ssl if @use_ssl
106
+ http.use_ssl = @use_ssl if @use_ssl
107
+ http.verify_mode = @http_verify_mode if @http_verify_mode
103
108
  http.read_timeout = @timeout
104
109
  http.open_timeout = @timeout
105
110
  end
@@ -10,9 +10,9 @@ module JSONRPC
10
10
  # The minor number version.
11
11
  MINOR = 0
12
12
  # The tiny number version.
13
- TINY = 2
13
+ TINY = 3
14
14
  # The pre realese number version.
15
- PRE = :alpha2
15
+ PRE = :alpha
16
16
 
17
17
  # The complete number version.
18
18
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpc4json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.alpha2
4
+ version: 0.0.3.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: