zuora_api 1.7.07 → 1.7.08

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: db58b1a6236a7237cc3ac29b7c5b9ac172f12f8d66e017105a200e7e1d040d71
4
- data.tar.gz: 83104f05aa4bb4f885bc8e85bb8daa742c051bce07b605d680af64c215fdc230
3
+ metadata.gz: 506b37beaa7dbe046f337f7ed10112f2f6a693b1ebcafa37142634d0f8e649a6
4
+ data.tar.gz: b2fa2c58af2f031a4f216daa7adad6bff10cd8ab6d1023a224ca44344beff6e8
5
5
  SHA512:
6
- metadata.gz: 9afe3a53deb1c2bb87d46842c5fdc5129fe2ac3f0c08ac6fe20461ca4a29ddb5c1d49e57802042b31f87eb4487ca88ade14a803afb83fa63a746ace6df36d5a9
7
- data.tar.gz: 2a550f3e7b3da631f1996e0ac07eb41c58631ac1f8404039671a3ff14d14b5f931ef3eaed3afdd5726283a22266cc5015c60d7060465a1c8301b1349a0fdbfa3
6
+ metadata.gz: d1b34d7894d4a9c3211c4ce783278d0f087dba37215821c723b064a5272153c0ab806ffd0575963f99ccf8610fb2a79d8979aae78ad43a948df1fa368da96017
7
+ data.tar.gz: f64b564c69ec0a9da2816e1032b78b3c42e22b4fb2bcccdc62d64524871ab0c0f48902c37557249f5c629a34e4299cafd493e80737c9bb9b15c6d7d0c89b1f2f
@@ -45,11 +45,11 @@ rubygems-deploy:
45
45
  - apt-get install -y git
46
46
  - apt-get clean all
47
47
  - gem install dpl
48
- - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --match "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
49
- - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
48
+ - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
49
+ - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
50
50
  - echo $VERSION
51
- - sed -i "s/0.0.1/$VERSION/" /Connect/zuora-gem/lib/zuora_api/version.rb
52
- - git add /Connect/zuora-gem/lib/zuora_api/version.rb
51
+ - sed -i "s/0.0.1/$VERSION/" lib/zuora_api/version.rb
52
+ - git add lib/zuora_api/version.rb
53
53
  - git config --global user.email "connect@zuora.com"
54
54
  - git config --global user.name "Connect Automation"
55
55
  - git commit -m "Automated Version Update $VERSION"
@@ -1,6 +1,23 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.7.07] - 2018-9-10
5
+ ### Changed
6
+ - Cookie name for service endpoint integration
7
+
8
+ ## [1.7.06] - 2018-8-25
9
+ ### Added
10
+ - Retry for 502/503
11
+ - Standard exception for 504
12
+
13
+ ## [1.7.05] - 2018-8-25
14
+ ### Added
15
+ - Added support for oauth token forbidden
16
+
17
+ ## [1.7.02] - 2018-8-23
18
+ ### Added
19
+ - Added mulit part support for rest call
20
+
4
21
  ## [1.7.01] - 2018-8-06
5
22
  ### Changed
6
23
  - Changed library used to determine host
@@ -39,10 +39,10 @@ module ZuoraAPI
39
39
  raise "URL is nil or empty, but URL is required" if url.nil? || url.empty?
40
40
  # raise "URL is improper. URL must contain zuora.com, zuora.eu, or zuora.na" if /zuora.com|zuora.eu|zuora.na/ === url
41
41
  self.hostname = /(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url)[0] if !/(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url).nil?
42
- if !/apps\/services\/a\/\d{2}\.\d$/.match(url.strip)
42
+ if !/apps\/services\/a\/\d+\.\d$/.match(url.strip)
43
43
  self.url = "https://#{hostname}/apps/services/a/#{MIN_Endpoint}"
44
- elsif MIN_Endpoint.to_f > url.scan(/(\d{2}\.\d)$/).dig(0,0).to_f
45
- self.url = url.gsub(/(\d{2}\.\d)$/, MIN_Endpoint)
44
+ elsif MIN_Endpoint.to_f > url.scan(/(\d+\.\d)$/).dig(0,0).to_f
45
+ self.url = url.gsub(/(\d+\.\d)$/, MIN_Endpoint)
46
46
  else
47
47
  self.url = url
48
48
  end
@@ -316,11 +316,12 @@ module ZuoraAPI
316
316
  def update_zconnect_provider
317
317
  region = update_region
318
318
  environment = update_environment
319
- mappings = {"US" => {"Sandbox" => "ZConnectSbx", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Staging" => "ZConnectQA"},
320
- "NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
321
- "EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectSvcEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU"},
319
+ mappings = {"US" => {"Sandbox" => "ZConnectSbx", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev", "Services" => "ZConnectQA", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Staging" => "ZConnectQA"},
320
+ "NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectQANA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
321
+ "EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectQAEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU"},
322
322
  "Unknown" => {"Unknown" => "Unknown"}}
323
323
  self.zconnect_provider = mappings[region][environment]
324
+ # raise "Can't find ZConnect Provider for #{region} region and #{environment} environment" if self.zconnect_provider.nil?
324
325
  end
325
326
 
326
327
  def aqua_endpoint(url="")
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.07"
2
+ VERSION = "1.7.08"
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.07
4
+ version: 1.7.08
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: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler