rpc4json 0.0.3.alpha → 0.0.4.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.
- data/lib/jsonrpc/client.rb +5 -4
- data/lib/jsonrpc/version.rb +1 -1
- metadata +2 -2
data/lib/jsonrpc/client.rb
CHANGED
|
@@ -22,8 +22,8 @@ module JSONRPC
|
|
|
22
22
|
'Content-Type' => 'application/json; charset=utf-8'
|
|
23
23
|
}.freeze
|
|
24
24
|
|
|
25
|
-
# Add additional HTTP headers to the request.
|
|
26
|
-
attr_accessor :http_header_extra
|
|
25
|
+
# Add additional HTTP headers to the request and set the HTTP debug output.
|
|
26
|
+
attr_accessor :http_header_extra, :debug_output
|
|
27
27
|
|
|
28
28
|
def initialize(host = nil, path = nil, port = nil, proxy_host = nil,
|
|
29
29
|
proxy_port = nil, user = nil, password = nil, use_ssl = nil, timeout = nil)
|
|
@@ -103,8 +103,9 @@ module JSONRPC
|
|
|
103
103
|
|
|
104
104
|
def new_http
|
|
105
105
|
Net::HTTP.new(@host, @port, @proxy_host, @proxy_port).tap do |http|
|
|
106
|
-
http.
|
|
107
|
-
http.
|
|
106
|
+
http.set_debug_output(@debug_output || $stdout) if $DEBUG
|
|
107
|
+
http.use_ssl = @use_ssl if @use_ssl
|
|
108
|
+
http.verify_mode = @http_verify_mode if @http_verify_mode
|
|
108
109
|
http.read_timeout = @timeout
|
|
109
110
|
http.open_timeout = @timeout
|
|
110
111
|
end
|
data/lib/jsonrpc/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.4.alpha
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|