ooor 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ooor/transport.rb +1 -1
- data/lib/ooor/transport/json_client.rb +4 -0
- data/lib/ooor/version.rb +1 -1
- metadata +1 -1
data/lib/ooor/transport.rb
CHANGED
@@ -15,7 +15,7 @@ module Ooor
|
|
15
15
|
case type
|
16
16
|
when :json
|
17
17
|
@json_clients ||= {}
|
18
|
-
@json_clients[url] ||= JsonClient.new(url
|
18
|
+
@json_clients[url] ||= JsonClient.new(url)#, timeout: config[:rpc_timeout] || 900) #TODO timeout doesn't work depending on Faraday versions?
|
19
19
|
when :xml
|
20
20
|
@xml_clients ||= {}
|
21
21
|
@xml_clients[url] ||= XmlRpcClient.new2(url, nil, config[:rpc_timeout] || 900)
|
@@ -46,6 +46,10 @@ module Ooor
|
|
46
46
|
Faraday::Connection.send :include, OeAdapter
|
47
47
|
|
48
48
|
def self.new(url = nil, options = nil)
|
49
|
+
if defined?(Java) # see http://stackoverflow.com/questions/5711190/how-to-get-rid-of-opensslsslsslerror
|
50
|
+
options ||= {}
|
51
|
+
options[:ssl] = {:verify => false}
|
52
|
+
end
|
49
53
|
Faraday.new(url, options) # TODO use middlewares
|
50
54
|
end
|
51
55
|
end
|
data/lib/ooor/version.rb
CHANGED