zuora_api 1.4.07 → 1.4.08

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bed063711e8c28b0671ab86108117e822ec71467
4
- data.tar.gz: f0faa19bc9bb94247cc5f4e8b8cbbd74823354e8
3
+ metadata.gz: 4fe43ebde7a9182999d9648cdfadd9f0b99321d5
4
+ data.tar.gz: ad7953d72887cf7fe953d1c9c47a54bfd022c27b
5
5
  SHA512:
6
- metadata.gz: 30c2924358394f7818834a12b9f87c0a0d25b5961ee7a13b0797915caff7b224597a01733ff47dc8115f8640eb7975011ca531004469c5daa061936d4fbcf36e
7
- data.tar.gz: cdf7edc68479c37578cf47111304ca19549da076989d378baa3dcbbbc6cff199fc99ab89110e4ee01c92aa7c2364621b2a8fcd0749ee80b4d0b646c4433169b1
6
+ metadata.gz: 511725f39fe2ccd481b1e7f805b64a07d360c6ff8e1f7c1500acf9a3512c3d6c9426c98f8fb6bb44c45a4e6cc2e612a5b0778474bf7fee8be23481314a4b6d76
7
+ data.tar.gz: b67a603e0e5399173fb1bd46a2eeb200dd5abbfeec00915bca57c5fbd21f6b897f3ed1d4a1f81779044df3bc11ea5fcf6a05a2462abf055b6631761664ab252c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.4.07)
4
+ zuora_api (1.4.08)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -353,11 +353,12 @@ module ZuoraAPI
353
353
  end
354
354
  end
355
355
 
356
- if body["Errors"].present?
356
+ if body["Errors"].present? || body["errors"].present?
357
357
  errors = []
358
- body["Errors"].select { |obj| errors.push(obj["Message"]) }.compact
358
+ (body["Errors"] || []).select { |obj| errors.push(obj["Message"]) }.compact
359
+ (body["errors"] || []).select { |obj| errors.push(obj["Message"]) }.compact
359
360
  if errors.size > 0
360
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{errors.join(", ")}")
361
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{errors.join(", ")}", nil, nil, errors)
361
362
  end
362
363
  end
363
364
  end
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.4.07"
2
+ VERSION = "1.4.08"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.07
4
+ version: 1.4.08
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-18 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler