allscripts_unity_client 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module AllscriptsUnityClient
32
32
  private
33
33
 
34
34
  def self.raise_if_parameters_invalid(parameters)
35
- raise ArgumentError, ":mode must be :json or :soap" if ![:json, :soap].include?(parameters[:mode])
35
+ raise ArgumentError, ":mode must be :json or :soap" unless [:json, :soap].include?(parameters[:mode])
36
36
  raise ArgumentError, ":base_unity_url required" if parameters[:base_unity_url].nil?
37
37
  raise ArgumentError, ":username required" if parameters[:username].nil?
38
38
  raise ArgumentError, ":password required" if parameters[:password].nil?
@@ -101,7 +101,13 @@ module AllscriptsUnityClient
101
101
  :parameter1 => dictionary_name,
102
102
  :parameter2 => site
103
103
  }
104
- magic(magic_parameters)
104
+ response = magic(magic_parameters)
105
+
106
+ unless response.is_a?(Array)
107
+ response = [ response ]
108
+ end
109
+
110
+ response
105
111
  end
106
112
 
107
113
  def get_dictionary_sets
@@ -153,6 +159,10 @@ module AllscriptsUnityClient
153
159
  }
154
160
  response = magic(magic_parameters)
155
161
 
162
+ unless response.is_a?(Array)
163
+ response = [ response ]
164
+ end
165
+
156
166
  # Remove nil encounters
157
167
  response.delete_if do |value|
158
168
  value[:id] == "0" && value[:patientid] == "0"
@@ -342,7 +352,13 @@ module AllscriptsUnityClient
342
352
  :userid => userid,
343
353
  :parameter1 => since
344
354
  }
345
- magic(magic_parameters)
355
+ response = magic(magic_parameters)
356
+
357
+ unless response.is_a?(Array)
358
+ response = [ response ]
359
+ end
360
+
361
+ response
346
362
  end
347
363
 
348
364
  def get_user_authentication
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allscripts_unity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: