zuora_rest_client 1.1.3 → 1.1.4

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
  SHA1:
3
- metadata.gz: a357dae7b721bc6a377f1ae4bea1ae214379acbb
4
- data.tar.gz: cbb2838d994e3986faf63e52de81de1100881c36
3
+ metadata.gz: dafed6c16193ea2fa06285a558149a89585a6cf9
4
+ data.tar.gz: a5ec9fb4b68bde19f5408b509ed2801d78ae5216
5
5
  SHA512:
6
- metadata.gz: 6cd0243f954a72b050edc42cf69b1cf2250cb834528844b5a6e41cbe12974353a2d7aff03d6842096f3e55491725a46e8ab3172903f50f81c6fb7a2e76765409
7
- data.tar.gz: c6085ac3125d959a07a9ab0829643b09221acb3d45203224a964078379afbd3ab7c0f10b7bf7aaf1e72fceb4657619fd62f11d32ecd2d04b3d7e92bb4772a753
6
+ metadata.gz: a5bedb497efe3dbbffe437ab6bb54719a1c38e8c21ac79472dd77f4c28cc0f9f9170da808b6e05b12e487ce57391c1a1c395c0f69868c2e8c78a9c7ab67f8d18
7
+ data.tar.gz: edbe3be699722f9cd170c2620cd2cc6e3f53828074d20c9fc6d82c4ea2206a69324c23c22bd2cc39f8224403d9cc71ca6d5fa82a8eff5c45bcfc74bab3f0c402
data/.gitignore CHANGED
@@ -51,3 +51,4 @@ Gemfile.lock
51
51
 
52
52
  .idea
53
53
  /.env
54
+ .env
@@ -145,8 +145,12 @@ module ZuoraRestClient
145
145
 
146
146
  def process_response(response)
147
147
  if response.headers['Content-Type'].to_s.start_with?('application/json')
148
- hash = MultiJson.load(response.body)
149
- Result.new(hash, recurse_over_arrays: true)
148
+ object = MultiJson.load(response.body)
149
+ if object.is_a? Array
150
+ object.map { |item| Result.new(item, recurse_over_arrays: true) }
151
+ else
152
+ Result.new(object, recurse_over_arrays: true)
153
+ end
150
154
  elsif response.headers['Content-Type'].to_s.start_with?('text/xml')
151
155
  Result.new(Nori.new.parse(response.body), recurse_over_arrays: true)
152
156
  else
@@ -1,3 +1,3 @@
1
1
  module ZuoraRestClient
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Massad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler