rpc4json 0.0.2.alpha2 → 0.0.3.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jsonrpc/client.rb +6 -1
- data/lib/jsonrpc/version.rb +2 -2
- metadata +1 -1
data/lib/jsonrpc/client.rb
CHANGED
@@ -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
|
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
|
data/lib/jsonrpc/version.rb
CHANGED
@@ -10,9 +10,9 @@ module JSONRPC
|
|
10
10
|
# The minor number version.
|
11
11
|
MINOR = 0
|
12
12
|
# The tiny number version.
|
13
|
-
TINY =
|
13
|
+
TINY = 3
|
14
14
|
# The pre realese number version.
|
15
|
-
PRE = :
|
15
|
+
PRE = :alpha
|
16
16
|
|
17
17
|
# The complete number version.
|
18
18
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|