zuora_api 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9903d7512c8ab1579f3a3023b6a04b1266b0d5b1
4
- data.tar.gz: fe68ba31a76819854619b8745a1d4dfbf6a057c1
3
+ metadata.gz: e27195761fb93a098cc9bf06a94d4c0d97a951bc
4
+ data.tar.gz: a0208b0e8e1f336b7560583e31a6fc0a4f2142d9
5
5
  SHA512:
6
- metadata.gz: cd70085fd46f1142e783d8e237df7fc9ffee198cb79e57eaecace79fc706326f8ef214d9993cbb9fe78557beb6341b95a75f6591eaae25611cc48634cb15df61
7
- data.tar.gz: e07f8e2799a4de885de156e045f89d0694d92c0794c1393f92cef94262be1b672287b90b632417865b559ab1bd3450513b89738f0af75c052c0c923729d273e4
6
+ metadata.gz: 1e242679093a82e90eb24d7706a05f5c854238a4d13b80199a7a1bb1cc7ee5e4bb84f594e3731d19e6510e9bd81c5a4bfa8602e5f1fcbeaa2ca48446279d1a29
7
+ data.tar.gz: 7624e7f945adc9f63657848469b66d1fa568c45cedfaf2ce2a481b02b38047bfb88df39502bc1424037f414c90762add8f720c84124c7ec5dc9d1ef9fb8799cd
@@ -210,7 +210,7 @@ module ZuoraAPI
210
210
  input_xml = Nokogiri::XML(xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip)
211
211
  input_xml.xpath('//ns1:session', 'ns1' =>'http://api.zuora.com/').children.remove
212
212
  Rails.logger.debug('Connect') {"Request SOAP XML: #{input_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"} if debug
213
- response = HTTParty.post(self.url,:body => xml.doc.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 10)
213
+ response = HTTParty.post(self.url,:body => xml.doc.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 120)
214
214
  output_xml = Nokogiri::XML(response.body)
215
215
  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}"} if debug
216
216
 
@@ -314,7 +314,7 @@ module ZuoraAPI
314
314
  tries ||= 2
315
315
  headers["entityId"] = self.entity_id if !self.entity_id.blank?
316
316
  raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
317
- 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
317
+ 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), timeout: 120).perform
318
318
  Rails.logger.debug('Connect') { response.code} if debug
319
319
  output_json = JSON.parse(response.body)
320
320
  Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
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.3.0
4
+ version: 1.3.1
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: 2017-05-03 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler