ooor 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: url)#, timeout: config[:rpc_timeout] || 900) #TODO timeout doesn't work depending on Faraday versions?
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
@@ -1,7 +1,7 @@
1
1
  module Ooor
2
2
  MAJOR = 2
3
3
  MINOR = 0
4
- TINY = 0
4
+ TINY = 1
5
5
  PRE = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, TINY].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: