zuora_api 0.2.5.6 → 0.2.5.7

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: cf0a4bc012d49ce53d04a6182dcdca446599b25b
4
- data.tar.gz: 209e31abd05a7ed81af83b505b492027ddd30c47
3
+ metadata.gz: 7906223156e097e6e281799db871fa97a81ac268
4
+ data.tar.gz: 290ed1e56ad04d43742824fd72999ef839377d05
5
5
  SHA512:
6
- metadata.gz: e96f1c0fc8fedb0a5cc2094d7a4bce2a16bf34990f978f1f9a5528fa709c7cf1c767aa1ea4ac44bcf0e23d08bc70de8b60cc18f993ba0c45f20de46635344da0
7
- data.tar.gz: 9f462c78701cfa72bd6fe531fd69a07af4b2334b9c532b0f99815fd5777299a3dc2c83057ade55bd9c032809f38838f1707bf7b7e15bf8b4dde8822b880781de
6
+ metadata.gz: 694224bc64b3329f13b0b8720d84a940085f9daada46babfe5bfc474f24eefc0bdba441ab766ed1370c9143bd9339ea92d8a7e6cda6194158f9c0dab69d8246a
7
+ data.tar.gz: 96016f407cf0bf4c8ba6c4ca336e481b203295f6d2488320a3a95ae713f97927626d6b0dad0dada55d344c1dc602567c8741efe9a3f652443b8be5a771f37c60
@@ -197,8 +197,8 @@ module ZuoraAPI
197
197
  response = HTTParty.post(self.url,:body => xml.doc.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 10)
198
198
  output_xml = Nokogiri::XML(response.body)
199
199
  Rails.logger.debug('Connect') {"Response SOAP XML: #{output_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"}
200
- raise "#{output_xml.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text}::#{output_xml.xpath('//fns:FaultMessage', 'fns' =>'http://fault.api.zuora.com/').text}" if !output_xml.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text.blank? && !debug
201
- raise "#{output_xml.xpath('//faultcode').text}::#{output_xml.xpath('//faultstring').text}" if !output_xml.xpath('//faultcode').text.blank? && !debug
200
+ raise "#{output_xml.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text}::#{output_xml.xpath('//fns:FaultMessage', 'fns' =>'http://fault.api.zuora.com/').text}" if !output_xml.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text.blank?
201
+ raise "#{output_xml.xpath('//faultcode').text}::#{output_xml.xpath('//faultstring').text}" if !output_xml.xpath('//faultcode').text.blank?
202
202
  rescue => ex
203
203
  if !(tries -= 1).zero?
204
204
  case ex.to_s.split("::")[0]
@@ -207,10 +207,10 @@ module ZuoraAPI
207
207
  self.new_session
208
208
  retry
209
209
  else
210
- raise ex
210
+ raise ex if debug
211
211
  end
212
212
  else
213
- raise ex
213
+ raise ex if debug
214
214
  end
215
215
  else
216
216
  return [output_xml, input_xml]
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "0.2.5.6"
2
+ VERSION = "0.2.5.7"
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.5.6
4
+ version: 0.2.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group