allscripts_unity_client 5.1.4.pre.2 → 5.1.5

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: 1cd419db9464103231d2e1b7044c34840f542135bb2d4518faa9d41fc88daff7
4
- data.tar.gz: 9526031d5892f9027b4187c43af8a6f1e729778c8f92e3e4eff76c80dbb37595
3
+ metadata.gz: 0454a09d72702d0ead8fbfa7d39c104ada4dd52d4e9508cfe0e6468ab110e258
4
+ data.tar.gz: ec31bdc7e6d516bc268b4c3c8a2b427b23080c81ad4f06c960f26dd32cb488ef
5
5
  SHA512:
6
- metadata.gz: fe8d74bc4de10e786383520be7087e5f0b54f11ebf15c215122dc6fd7050edfc60ec19ad746523c6602c4cc3e6aa18f40f14d24f907a52fd89bce849ce6872df
7
- data.tar.gz: ee1b9965206af242b19f121b32deda6d5f0773cfed21be2f510169afc2626b29b69f3a60e4b18d2f4e2f350b70e8fb29f716255815f97088f39f51da4970976a
6
+ metadata.gz: 193e7cd8be77aeaee732baf2914a87d19e37ec9db30e1564e4fea0d6b264cd8a376d80e020f0c08bac2dc8df852b20de9ef39f70591947b60385b66f4446b807
7
+ data.tar.gz: 5b089f24a4529ebea228a9dbaa7b0ab1fab8caef3cc06f3d4d358d271172e3d17733dcf32ab8d2aec565ed77735a48f7dace0d68d3648eecb9fa6b226dea18b7
@@ -3,7 +3,8 @@ module AllscriptsUnityClient
3
3
  # Contains various options for Unity configuration.
4
4
  class ClientOptions
5
5
  attr_accessor :proxy, :logger, :ca_file, :ca_path, :timeout, :ehr_userid, :ehr_password
6
- attr_reader :base_unity_url, :username, :password, :appname, :timezone, :raw_dates, :use_ubiquity
6
+ attr_reader :base_unity_url, :username, :password, :appname, :timezone, :raw_dates, :use_ubiquity,
7
+ :ubiquity_id, :ubiquity_client_id
7
8
 
8
9
  # Constructor.
9
10
  #
@@ -32,6 +33,9 @@ module AllscriptsUnityClient
32
33
  @timeout = options[:timeout]
33
34
  @ehr_userid = options[:ehr_userid]
34
35
  @ehr_password = options[:ehr_password]
36
+ @use_ubiquity = options[:use_ubiquity] || false
37
+ @ubiquity_id = options[:ubiquity_id]
38
+ @ubiquity_client_id = options[:ubiquity_client_id]
35
39
 
36
40
  self.timezone = options[:timezone]
37
41
  self.base_unity_url = options[:base_unity_url]
@@ -5,7 +5,7 @@ module AllscriptsUnityClient
5
5
 
6
6
  # A ClientDriver that supports Unity's JSON endpoints.
7
7
  class JSONClientDriver < ClientDriver
8
- attr_accessor :json_base_url, :connection, :security_token
8
+ attr_accessor :json_base_url, :connection, :security_token, :use_ubiquity, :ubiquity_id, :ubiquity_client_id
9
9
 
10
10
  UNITY_JSON_ENDPOINT = '/Unity/UnityService.svc/json'
11
11
  UBIQUITY_JSON_ENDPOINT = '/UnityService.svc/json'
@@ -95,7 +95,7 @@ module AllscriptsUnityClient
95
95
 
96
96
  # See Client#get_security_token!.
97
97
  def get_security_token!(parameters = {})
98
- username = parameters[:username] || @options.username
98
+ username = get_username(parameters)
99
99
  password = parameters[:password] || @options.password
100
100
  appname = parameters[:appname] || @options.appname
101
101
 
@@ -169,5 +169,13 @@ module AllscriptsUnityClient
169
169
  raise APIError, response
170
170
  end
171
171
  end
172
+
173
+ def get_username(parameters = {})
174
+ username = parameters[:username] || @options.username
175
+ if @options.use_ubiquity
176
+ username = "#{@options.ubiquity_id}:#{@options.ubiquity_client_id}:#{username}"
177
+ end
178
+ username
179
+ end
172
180
  end
173
181
  end
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.4.pre.2'.freeze
2
+ VERSION = '5.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allscripts_unity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.4.pre.2
4
+ version: 5.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - healthfinch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -260,9 +260,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
260
  version: 2.4.2
261
261
  required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  requirements:
263
- - - ">"
263
+ - - ">="
264
264
  - !ruby/object:Gem::Version
265
- version: 1.3.1
265
+ version: '0'
266
266
  requirements: []
267
267
  rubygems_version: 3.0.3
268
268
  signing_key: