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: de275ad2051cce3acb984a1f6356f57c5fadabaf4791a70d5db78e06a7428c44
4
- data.tar.gz: c1686b38780d4e7bd66a332a9aff911f57dfa789d27fdfd4a70906e38b6a8f93
3
+ metadata.gz: 7073d2701219bf8cbcab2372761f29cdab885ba6e0d65d460d07e79284ab3781
4
+ data.tar.gz: ace9a76f26fa6cdff0294c290b1fdd423a4dd20cbe84f4f8d11b461fe130231c
5
5
  SHA512:
6
- metadata.gz: 38dc5a1f56ff0b512511f7bd609215631971083e9564feae4656fdc32fb1f8df8e10a39c12ccd8d2a7c840a3c7024bb6809ce4958c512c5586155484f41e9c60
7
- data.tar.gz: c2781793c88040f2d1c25c1ddd324187605ec263d5a37be1290313864ef900afe56c0d36af91160e29debdd46e1ae55199862086350919c926b38b16060109c8
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)
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.1'.freeze
2
+ VERSION = '5.1.3'.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.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: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient