allscripts_unity_client 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,7 +100,7 @@ module AllscriptsUnityClient
100
100
  def raise_if_response_error(response)
101
101
  if response.nil?
102
102
  raise APIError, "Response was empty"
103
- elsif response.is_a?(Array) && !response[0]["Error"].nil?
103
+ elsif response.is_a?(Array) && !response[0].nil? && !response[0]["Error"].nil?
104
104
  raise APIError, response[0]["Error"]
105
105
  elsif response.is_a?(String) && response.include?("error:")
106
106
  raise APIError, response
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
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.6
4
+ version: 1.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-10 00:00:00.000000000 Z
13
+ date: 2013-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon