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 +4 -4
- data/.gitlab-ci.yml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/zuora_api/login.rb +7 -6
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 506b37beaa7dbe046f337f7ed10112f2f6a693b1ebcafa37142634d0f8e649a6
|
4
|
+
data.tar.gz: b2fa2c58af2f031a4f216daa7adad6bff10cd8ab6d1023a224ca44344beff6e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1b34d7894d4a9c3211c4ce783278d0f087dba37215821c723b064a5272153c0ab806ffd0575963f99ccf8610fb2a79d8979aae78ad43a948df1fa368da96017
|
7
|
+
data.tar.gz: f64b564c69ec0a9da2816e1032b78b3c42e22b4fb2bcccdc62d64524871ab0c0f48902c37557249f5c629a34e4299cafd493e80737c9bb9b15c6d7d0c89b1f2f
|
data/.gitlab-ci.yml
CHANGED
@@ -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"
|
49
|
-
- if [[ "master"
|
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/"
|
52
|
-
- git add
|
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"
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/zuora_api/login.rb
CHANGED
@@ -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
|
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
|
45
|
-
self.url = url.gsub(/(\d
|
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" => "
|
320
|
-
"NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "
|
321
|
-
"EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "
|
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="")
|
data/lib/zuora_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|