zuora_api 1.9.0 → 1.9.01

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
  SHA256:
3
- metadata.gz: 2c377d99b1a4c4a64d1b46d45b19e42136da2e0faba049e7a45621b3daaa41ad
4
- data.tar.gz: e00b3a6e9628aed4086190a3be983bd7998196812df9d53010c274f882a36749
3
+ metadata.gz: 228a61ab44766ad48b8a5e58fe834c7c415ab61d19b79fd51c08df42a37a84b2
4
+ data.tar.gz: 9537c0a5dd82836460ad43ebc6a9518b402713d7a9ec07d02a509b59610f5d45
5
5
  SHA512:
6
- metadata.gz: 14c76c2a211f55a38d79940436241c3fa9203a2c1a960415a3a2287950adb6059461571703530d4754e803833f3ffc98e42182c50588498a51070a0a6984cadb
7
- data.tar.gz: a2176a640fb0f77bbc0893f5161c30c822a9a8cc1147b33e6f088ce60240666a19853f82e5d85ecf676273c9a9ecc59c7aaee006f0aa63c8fd52b8fdc60ee2d1
6
+ metadata.gz: 9a821820dcb38840f77c213109eee1f46a35230cb38d5e19caa581ffc60c15b89d9402b391f123515c0612f586265860cc178cb73d326bf7ce5837cfe55460ac
7
+ data.tar.gz: a278da65d3886313129c04907370bcac0c96a4bb861ecc9836bb7cc4631deb2cdf43e2ff6033819a7f3a14cb84df183c164f792595e7c2f88269528bfb783a3e
@@ -557,27 +557,27 @@ module ZuoraAPI
557
557
  args = {}
558
558
  if defined?(ex.response) && ex.response.present?
559
559
  args.merge!({
560
+ url: {full: ex.response.request.path.to_s},
560
561
  request: {
561
- path: ex.response.request.path.to_s,
562
562
  method: ex.response.request.http_method.to_s.split("Net::HTTP::").last.upcase,
563
563
  params: ex.response.request.raw_body.to_s,
564
- headers: ex.response.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s,
564
+ headers_blob: ex.response.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s,
565
565
  },
566
566
  response: {
567
567
  status: ex.response.code,
568
568
  params: ex.response.body.to_s,
569
- headers: ex.response.headers.to_s,
569
+ headers_blob: ex.response.headers.to_s,
570
570
  },
571
571
  zuora_trace_id: ex.response.headers["zuora-request-id"],
572
572
  zuora_track_id: ex.response.request.options[:headers]["Zuora-Track-Id"],
573
573
  })
574
574
  elsif defined?(ex.request) && ex.request.present?
575
575
  args.merge!({
576
+ url: {full: ex.request.path.to_s},
576
577
  request: {
577
- path: ex.request.path.to_s,
578
578
  method: ex.request.http_method.to_s.split("Net::HTTP::").last.upcase,
579
579
  params: ex.request.options[:body],
580
- headers: ex.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s
580
+ headers_blob: ex.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s
581
581
  }
582
582
  })
583
583
  args.merge!({
@@ -1268,7 +1268,7 @@ module ZuoraAPI
1268
1268
 
1269
1269
  #Make sure directory exists
1270
1270
  require 'fileutils'
1271
- FileUtils.mkdir_p(file_path) unless File.exists?(file_path)
1271
+ FileUtils.mkdir_p(file_path) unless File.exist?(file_path)
1272
1272
 
1273
1273
  status_code = nil
1274
1274
  uri = URI.parse(url)
@@ -1409,7 +1409,6 @@ module ZuoraAPI
1409
1409
  end
1410
1410
  end
1411
1411
  end
1412
-
1413
1412
  id = output_xml.xpath('//ns1:Id', 'ns1' =>'http://api.zuora.com/').text
1414
1413
 
1415
1414
  result = 'Waiting'
@@ -1453,7 +1452,6 @@ module ZuoraAPI
1453
1452
  retry
1454
1453
  end
1455
1454
  raise ex
1456
-
1457
1455
  rescue *(CONNECTION_EXCEPTIONS + CONNECTION_READ_EXCEPTIONS) => ex
1458
1456
  if !(tries -= 1).zero?
1459
1457
  Rails.logger.info("Trace ID: #{z_track_id} Timed out will retry after 5 seconds")
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.9.0"
2
+ VERSION = "1.9.01"
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.9.0
4
+ version: 1.9.01
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: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler