zuora_api 0.2.5.2 → 0.2.5.3

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: 3ed65a0d0a1eeaeddda962baf46d12a67bd15dc0
4
- data.tar.gz: 2c21f12b644aeaf5a943f6da2c6c3ce0fc52853c
3
+ metadata.gz: 0409dff31b8141c742abcbae06dcfaf4870bcaf4
4
+ data.tar.gz: aee31e9d143a81b6b88444e74f34bb1494321f1e
5
5
  SHA512:
6
- metadata.gz: e24c1149a83c85b97b94ac91c6c2032b7d68fe1b0f4b13e9c0d040092f6c79c9ff037461c5f59a76930073d4edae64f52346933368e4e37a14dde62d60e235e2
7
- data.tar.gz: fdf0e860bc8e07264cc029b24dad7cd52a7b4cac9e9e27175525955e36769480311fa31a117971251e17044bd956f59a0fc9935e5ddd6f3dafe6ad413e71ebe7
6
+ metadata.gz: 45334f881630ef4b16488f875d2c7c3ca952f5bdc5f885869ce0e00b5aa30a02f0ed1df07b7b5c651f75b3354d573baec25168907ee9db0d4d2d828d3538aca2
7
+ data.tar.gz: 99ca1f118a690bfa9c32c36310c3e884b6d43715775a25368fbefa1276d69c78db69057cbc0186493b85f89b17aa1578186fc20441a65f1507829cf651b8d93b
@@ -250,9 +250,10 @@ module ZuoraAPI
250
250
  raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
251
251
  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}"}).perform
252
252
  raise "#{response.code}::#{response.return_code}" if !response.success?
253
+ Rails.logger.debug('Connect') { response.code}
253
254
  output_json = JSON.parse(response.body)
254
255
  Rails.logger.debug('Connect') {"Response JSON: #{output_json}"}
255
- raise "#{output_json["reasons"][0]["code"]}::#{output_json["reasons"][0]["message"]}" if !output_json["success"]
256
+ raise "#{output_json["reasons"][0]["code"]}::#{output_json["reasons"][0]["message"]}" if !output_json["success"] || response.code != 200
256
257
  rescue => ex
257
258
  if !(tries -= 1).zero?
258
259
  case ex.to_s.split("::")[0]
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "0.2.5.2"
2
+ VERSION = "0.2.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5.2
4
+ version: 0.2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler