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 +4 -4
- data/.gitignore +1 -0
- data/lib/zuora_rest_client/connection.rb +6 -2
- data/lib/zuora_rest_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dafed6c16193ea2fa06285a558149a89585a6cf9
|
4
|
+
data.tar.gz: a5ec9fb4b68bde19f5408b509ed2801d78ae5216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5bedb497efe3dbbffe437ab6bb54719a1c38e8c21ac79472dd77f4c28cc0f9f9170da808b6e05b12e487ce57391c1a1c395c0f69868c2e8c78a9c7ab67f8d18
|
7
|
+
data.tar.gz: edbe3be699722f9cd170c2620cd2cc6e3f53828074d20c9fc6d82c4ea2206a69324c23c22bd2cc39f8224403d9cc71ca6d5fa82a8eff5c45bcfc74bab3f0c402
|
data/.gitignore
CHANGED
@@ -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
|
-
|
149
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|