zuora_api 1.7.64 → 1.7.65b

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
  SHA256:
3
- metadata.gz: 340446bc0ceb955e7c27ed8460d8752f9e1a7183b00cfce6e5c6d8bec906aa1c
4
- data.tar.gz: 74f68adcdc9e0b5e83bf586149b38b66b692bdc50a9554172b3f7ba03c36c7d2
3
+ metadata.gz: c2cbbb29a43233ab20aa0c0c03ad09170070fa3d46b4fda9ef03cb4ff6d88c3a
4
+ data.tar.gz: c4b2c7f25f30ec251b1a2c310b87bb4c60e42a8f6d67362b208420b391fb8bf3
5
5
  SHA512:
6
- metadata.gz: e33bb4f39c96629690aa3606e1b768af0390c484126db0828af456122b0b3dac78fc4e6d453a3f8631a3147eba89b031e00993130e355f394dfe20a655713f48
7
- data.tar.gz: cf81fe9fc35668007a47bdf2c06195f409e6af0f8b60c181baea4f45db29b9860aca9827b7096c6d584ddc51328d9724ec56df2746f4aeb0496150404c0b5990
6
+ metadata.gz: c3a02b7dd3ee4f89503d7058595bda561d3a1753ee76ba6d697d8bbd3d9a56268fd99b6e10f198c30efd74a6592f85bf5d6d2182cc0f9477320fe67e2dcf94f2
7
+ data.tar.gz: c269803e8561fc7d787dbe34198331e3a99a2724e945520b68376119af4d69f1da9ada4e4cb725a50f897a4ba479b1b56785adff658b327e716cb89c58c12165
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.7.64)
4
+ zuora_api (1.7.65b)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 6)
@@ -663,7 +663,7 @@ module ZuoraAPI
663
663
  raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("Internal Server Error. The Reporting API is down. Contact Support.")
664
664
  end
665
665
  case match_string
666
- when /^GET::400::\/api\/rest\/v1\/reports\/([a-zA-Z0-9\-_]+)\/report-details$/ # Get report, capture of the id is present if needed in future error responses.
666
+ when /^GET::400::\/api\/rest\/v1\/reports\/(reportlabels\/)?([a-zA-Z0-9\-_]+)\/report-details$/ # Get report, capture of the id is present if needed in future error responses.
667
667
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(reporting_message, response) if reporting_message.present?
668
668
  end
669
669
  end
@@ -794,7 +794,13 @@ module ZuoraAPI
794
794
  if body.class == Hash && body['message'].present?
795
795
  raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(body['message'], response)
796
796
  else
797
- raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(response.body, response)
797
+ response_content_types = response.headers.transform_keys(&:downcase).fetch('content-type', []).first || ''
798
+
799
+ if response_content_types.include?('application/xml') || response_content_types.include?('text/xml')
800
+ self.raise_errors(type: :SOAP, body: Nokogiri::XML(response.body), response: response)
801
+ else
802
+ raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(response.body, response)
803
+ end
798
804
  end
799
805
  elsif ![200,201].include?(response.code)
800
806
  if body['message'].present?
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.64"
2
+ VERSION = "1.7.65b"
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: 1.7.64
4
+ version: 1.7.65b
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: 2020-04-23 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - ">"
186
186
  - !ruby/object:Gem::Version
187
- version: '0'
187
+ version: 1.3.1
188
188
  requirements: []
189
189
  rubygems_version: 3.0.3
190
190
  signing_key: