zuora_rest_client 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_rest_client/client.rb +5 -5
- data/lib/zuora_rest_client/connection.rb +2 -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: a357dae7b721bc6a377f1ae4bea1ae214379acbb
|
4
|
+
data.tar.gz: cbb2838d994e3986faf63e52de81de1100881c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cd0243f954a72b050edc42cf69b1cf2250cb834528844b5a6e41cbe12974353a2d7aff03d6842096f3e55491725a46e8ab3172903f50f81c6fb7a2e76765409
|
7
|
+
data.tar.gz: c6085ac3125d959a07a9ab0829643b09221acb3d45203224a964078379afbd3ab7c0f10b7bf7aaf1e72fceb4657619fd62f11d32ecd2d04b3d7e92bb4772a753
|
@@ -236,7 +236,7 @@ module ZuoraRestClient
|
|
236
236
|
result = @connection.app_post('/apps/api/batch-query/', request)
|
237
237
|
logger.debug "********* AQUA POST QUERY RESULT: #{result.inspect}"
|
238
238
|
|
239
|
-
raise "Error: #{result.message}" if result.status == '
|
239
|
+
raise "Error: #{result.message}" if result.status.downcase == 'error'
|
240
240
|
|
241
241
|
if aqua_query_options[:wait_for_completed_result]
|
242
242
|
poll_started = false
|
@@ -245,8 +245,8 @@ module ZuoraRestClient
|
|
245
245
|
poll_started = true
|
246
246
|
result = get_aqua_job_result(result.id)
|
247
247
|
logger.debug "********* CURRENT AQUA JOB STATUS: #{result.inspect}"
|
248
|
-
raise "Error: #{result.message}" if result.status == '
|
249
|
-
result.status != 'submitted' && result.status.end_with?('ed')
|
248
|
+
raise "Error: #{result.message}" if result.status.downcase == 'error'
|
249
|
+
result.status.downcase != 'submitted' && result.status.downcase.end_with?('ed')
|
250
250
|
end
|
251
251
|
|
252
252
|
logger.debug "********* FINAL AQUA JOB STATUS: #{result.inspect}"
|
@@ -1994,8 +1994,8 @@ module ZuoraRestClient
|
|
1994
1994
|
private
|
1995
1995
|
|
1996
1996
|
def logger
|
1997
|
-
result = @
|
1998
|
-
log_level = (@
|
1997
|
+
result = @client_options[:logger] || Logger.new($stdout)
|
1998
|
+
log_level = (@client_options[:log_level] || :info).to_s.upcase
|
1999
1999
|
result.level = Logger::INFO
|
2000
2000
|
result.level = Logger.const_get(log_level) if Logger.const_defined?(log_level)
|
2001
2001
|
result
|
@@ -36,7 +36,7 @@ module ZuoraRestClient
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def app_post(path, post_data = nil, is_json = true)
|
39
|
-
response = app_connection.
|
39
|
+
response = app_connection.post do |request|
|
40
40
|
request.url path
|
41
41
|
request.headers = app_headers
|
42
42
|
request.body = MultiJson.dump(post_data) if !post_data.nil? && is_json
|
@@ -196,7 +196,7 @@ module ZuoraRestClient
|
|
196
196
|
rest_endpoint = "#{@environment[:rest]}"
|
197
197
|
app_endpoint = "#{@environment[:app]}/apps/api"
|
198
198
|
else
|
199
|
-
raise 'Possible values for environment are: :production, :
|
199
|
+
raise 'Possible values for environment are: :production, :api_sandbox, :servicesNNN or a hash with base URL values for :rest and :app.'
|
200
200
|
end
|
201
201
|
OpenStruct.new({ rest: rest_endpoint, app: app_endpoint })
|
202
202
|
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.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Massad
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|