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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4209996f72d48ab69bfdf72453cdaeb2bcfda743
4
- data.tar.gz: 7062035180f512877d648678490744378b86e859
3
+ metadata.gz: a357dae7b721bc6a377f1ae4bea1ae214379acbb
4
+ data.tar.gz: cbb2838d994e3986faf63e52de81de1100881c36
5
5
  SHA512:
6
- metadata.gz: f00c89570b37f8ea84e2421add3b29a104f120ccc33c5f0280b6a4afb6c21a9558628c9325e24125ec8a4c3bff18abba7af8f8d7b8823dfbd4cda521c003fd70
7
- data.tar.gz: 0b442c7545567cbb18d8eb2aa632f516a4c97e508a3d791f7d35ff450984ea7a7a07e1d2e7ff8b6bb8f29881b84548e2cacbf6969729ad45b3463c69aef5411f
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 == 'Error'
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 == 'Error'
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 = @options[:logger] || Logger.new($stdout)
1998
- log_level = (@options[:log_level] || :info).to_s.upcase
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.get do |request|
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, :sandbox, :servicesNNN or a hash with base URL values for :rest and :app.'
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
@@ -1,3 +1,3 @@
1
1
  module ZuoraRestClient
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
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.2
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: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler