allscripts_unity_client 5.1.5 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0454a09d72702d0ead8fbfa7d39c104ada4dd52d4e9508cfe0e6468ab110e258
4
- data.tar.gz: ec31bdc7e6d516bc268b4c3c8a2b427b23080c81ad4f06c960f26dd32cb488ef
3
+ metadata.gz: 15063864b86d6ee4b600250f7c593ec695e5483e97389b19fd4441880829077d
4
+ data.tar.gz: 8c7623b827e5880d0e52b0c998678632de9f57bf0c882ed7a611b51354b45033
5
5
  SHA512:
6
- metadata.gz: 193e7cd8be77aeaee732baf2914a87d19e37ec9db30e1564e4fea0d6b264cd8a376d80e020f0c08bac2dc8df852b20de9ef39f70591947b60385b66f4446b807
7
- data.tar.gz: 5b089f24a4529ebea228a9dbaa7b0ab1fab8caef3cc06f3d4d358d271172e3d17733dcf32ab8d2aec565ed77735a48f7dace0d68d3648eecb9fa6b226dea18b7
6
+ metadata.gz: 3cd757580de6e749389231034ae911e36b2eddb734c775f082ae7199eddf2b1b0dd18da341bb02e0ecb1c69e1c062b7842ea2bb8dea22ede8ccd5290bb509715
7
+ data.tar.gz: 9f521855e3f67495ec4d2f7c361d040a7ca9d28cc88cbf74dc2275b98d907677090ec5c133106ca96ebedf043152dc1c42856d8dd4d0e383a39d152b06c71cc9
@@ -1,5 +1,5 @@
1
1
  require 'multi_json'
2
- require 'httpclient'
2
+ require 'faraday'
3
3
 
4
4
  module AllscriptsUnityClient
5
5
 
@@ -14,30 +14,13 @@ module AllscriptsUnityClient
14
14
  def initialize(options)
15
15
  super
16
16
 
17
- @connection = HTTPClient.new(
18
- proxy: @options.proxy,
19
- default_header: {'Content-Type' => 'application/json'}
20
- )
21
-
22
- set_http_client_ssl_config
23
- set_http_client_timeouts
24
- end
25
-
26
- def set_http_client_timeouts
27
- @connection.connect_timeout = @options.timeout || 90
28
- @connection.send_timeout = @options.timeout || 90
29
- @connection.receive_timeout = @options.timeout || 90
30
- end
31
-
32
- def set_http_client_ssl_config
33
- ssl_options = OpenSSL::SSL::OP_ALL
34
- ssl_options &= ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS if defined?(OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS)
35
- ssl_options |= OpenSSL::SSL::OP_NO_COMPRESSION if defined?(OpenSSL::SSL::OP_NO_COMPRESSION)
36
- ssl_options |= OpenSSL::SSL::OP_NO_SSLv2 if defined?(OpenSSL::SSL::OP_NO_SSLv2)
37
- ssl_options |= OpenSSL::SSL::OP_NO_SSLv3 if defined?(OpenSSL::SSL::OP_NO_SSLv3)
38
-
39
- @connection.ssl_config.options = ssl_options
40
- @connection.ssl_config.ciphers = "ALL:!aNULL:!eNULL:!SSLv2"
17
+ @connection = Faraday.new do |conn|
18
+ conn.request :json
19
+ conn.adapter Faraday.default_adapter
20
+ conn.options.timeout = @options.timeout || 90
21
+ conn.options.open_timeout = @options.timeout || 90
22
+ conn.proxy = @options.proxy if @options.proxy
23
+ end
41
24
  end
42
25
 
43
26
  def build_uri(request_location)
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.5'.freeze
2
+ VERSION = '6.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allscripts_unity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.5
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - healthfinch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: httpclient
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.8'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.8'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement