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 +4 -4
- data/lib/zuora_api/login.rb +4 -4
- data/lib/zuora_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7906223156e097e6e281799db871fa97a81ac268
|
|
4
|
+
data.tar.gz: 290ed1e56ad04d43742824fd72999ef839377d05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 694224bc64b3329f13b0b8720d84a940085f9daada46babfe5bfc474f24eefc0bdba441ab766ed1370c9143bd9339ea92d8a7e6cda6194158f9c0dab69d8246a
|
|
7
|
+
data.tar.gz: 96016f407cf0bf4c8ba6c4ca336e481b203295f6d2488320a3a95ae713f97927626d6b0dad0dada55d344c1dc602567c8741efe9a3f652443b8be5a771f37c60
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -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?
|
|
201
|
-
raise "#{output_xml.xpath('//faultcode').text}::#{output_xml.xpath('//faultstring').text}" if !output_xml.xpath('//faultcode').text.blank?
|
|
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]
|
data/lib/zuora_api/version.rb
CHANGED