allscripts_unity_client 5.1.1 → 5.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7073d2701219bf8cbcab2372761f29cdab885ba6e0d65d460d07e79284ab3781
|
4
|
+
data.tar.gz: ace9a76f26fa6cdff0294c290b1fdd423a4dd20cbe84f4f8d11b461fe130231c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e7c983c0e64b9b06d524786929abdc8119e6e3d0ed456fed4f1dd0a8d3a811f12c4cec6faeda30adb51c886fc461052e467f67caa369d8da0c2da7f6cfc097c
|
7
|
+
data.tar.gz: db293a0b4528518ec746da24587ef2b744b2e652f877171b8288c42f4a25cbb1fec1e9f23f5f4eaa38f745e9a36ffc0bfed1e2492ab6ced73fadcf4222b12e95
|
@@ -65,6 +65,10 @@ module AllscriptsUnityClient
|
|
65
65
|
@client_driver.get_security_token!(parameters)
|
66
66
|
end
|
67
67
|
|
68
|
+
def set_security_token(token)
|
69
|
+
@client_driver.security_token = token
|
70
|
+
end
|
71
|
+
|
68
72
|
# Implement Unity's RetireSecurityToken endpoint using Savon.
|
69
73
|
#
|
70
74
|
# parameters:: A hash of Unity parameters for RetireSecurityToken. If not given then defaults to
|
@@ -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
|
8
|
+
attr_accessor :json_base_url, :connection, :security_token
|
9
9
|
|
10
10
|
UNITY_JSON_ENDPOINT = '/Unity/UnityService.svc/json'
|
11
11
|
TOKEN_REGEX = /^"?(\w|-)+"?$/
|
@@ -48,10 +48,6 @@ module AllscriptsUnityClient
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def magic(parameters = {})
|
51
|
-
unless user_authenticated? || parameters[:action] == 'GetUserAuthentication'
|
52
|
-
raise UnauthenticatedError, "#{parameters[:action]} for #{@options.base_unity_url}"
|
53
|
-
end
|
54
|
-
|
55
51
|
request = JSONUnityRequest.new(parameters, @options.timezone, @options.appname, @security_token, @options.raw_dates)
|
56
52
|
request_hash = request.to_hash
|
57
53
|
request_data = MultiJson.dump(request_hash)
|
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
|
+
version: 5.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- healthfinch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|