zuora_api 0.2.6.9 → 0.2.7.0

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: 30b31e7ed66664df39181c7f38635269b2dc49af
4
- data.tar.gz: 59a3ce4f9301cfb30383adc8e48e0acbe6edb6e3
3
+ metadata.gz: 316da6cfc7bdfda2eb32301749d6830dfc6337f7
4
+ data.tar.gz: 379d5933b1615b2985bc09c3c24e618fb73878c5
5
5
  SHA512:
6
- metadata.gz: a8ee96d68de7376d46159a0466e86cdd7916fe2914ae356b637119ca333b6d0a20bb8f6870fae962397b4c7fc6980d2996bac195b2abce0d933113095dc9c280
7
- data.tar.gz: f008753259d34e53d9cbc187e83b6fba7db2e18df8bf942bb7a113a9b04b1bfecf564ddd3e2c4da67fd377d942c39c6bae424660ba6766648917f232d5210f6a
6
+ metadata.gz: 8fa52339742bf21b6364c8123cf4534da30d4d13788479594a9acc15f7b306579ba19984453c8f808918c2a86dae57db4645534d3d63f94e625b86207e170114
7
+ data.tar.gz: 905294c50b5222b17874c505acfbcc7e69730a97c91b3aaab9ff4d1a8ec7430b6664f696bb377d22fcc8e641b263a4e8e87c9a0b94214276aa031f2233fe26ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (0.2.6.9)
4
+ zuora_api (0.2.7.0)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -259,8 +259,7 @@ module ZuoraAPI
259
259
  tries ||= 2
260
260
  raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
261
261
  response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8", "Authorization" => "ZSession #{self.get_session}"}.merge(headers)).perform
262
- return response
263
- raise "#{response.code}::#{response.return_code}" if !response.success?
262
+ raise "#{response.code}::#{response.message}" if !response.success?
264
263
  Rails.logger.debug('Connect') { response.code} if debug
265
264
  output_json = JSON.parse(response.body)
266
265
  Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
@@ -276,16 +275,16 @@ module ZuoraAPI
276
275
  if debug
277
276
  raise ex
278
277
  else
279
- return output_json
278
+ return output_json, response
280
279
  end
281
280
  end
282
281
  elsif debug
283
- return output_json
284
- else
285
282
  raise ex
283
+ else
284
+ return output_json, response
286
285
  end
287
286
  else
288
- return output_json
287
+ return output_json, response
289
288
  end
290
289
 
291
290
  def update_create_tenant
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "0.2.6.9"
2
+ VERSION = "0.2.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6.9
4
+ version: 0.2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group