zuora_api 1.2.1 → 1.3.0a
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/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +7 -3
- data/lib/zuora_api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70cf21773e0bf593b77f65916a0008c873ef0ecd
|
|
4
|
+
data.tar.gz: bf2b74c75607ff3dd5e8d9e75f9e052d097aa94a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ea8c1252851634ef5395994cee21cdbb421f6caea3c30744bb978ad1ced12c95a2c7207ca2f13947bd43cc06693e3b749a79e82056376b1de4a44af3881f8df
|
|
7
|
+
data.tar.gz: 0ecdb6371a7bfb439d20619e7fda07c62a4b992c20e84074c1711fb4072a770099eeceb5b74a913dc31f26cbdbbaab8188412e782f7f1646008dc2e932499036
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -28,12 +28,14 @@ module ZuoraAPI
|
|
|
28
28
|
return {"Sandbox" => "https://apisandbox.zuora.com/apps/services/a/",
|
|
29
29
|
"Production" => "https://www.zuora.com/apps/services/a/",
|
|
30
30
|
"Performance" => "https://pt1.zuora.com/apps/services/a/",
|
|
31
|
-
"Services" => "https://services347.zuora.com/apps/services/a/"
|
|
31
|
+
"Services" => "https://services347.zuora.com/apps/services/a/",
|
|
32
|
+
"Staging" => "https://app-0.stg.zuora.eu/apps/services/a/"}
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
def update_environment
|
|
35
36
|
if !self.url.blank?
|
|
36
|
-
env_path = self.url.split('https://').last.split('.zuora.com').first
|
|
37
|
+
env_path = self.url.split('https://').last.split('.zuora.com').first if self.url.include?(".zuora.com")
|
|
38
|
+
env_path = self.url.split('https://').last.split('.zuora.eu').first if self.url.include?(".zuora.eu")
|
|
37
39
|
if env_path == 'apisandbox' || self.url.include?('tls10.apisandbox.zuora.com')
|
|
38
40
|
self.environment = 'Sandbox'
|
|
39
41
|
elsif env_path == 'www' || env_path == 'api' || self.url.include?('tls10.zuora.com')
|
|
@@ -42,6 +44,8 @@ module ZuoraAPI
|
|
|
42
44
|
self.environment = 'Services'
|
|
43
45
|
elsif env_path.include?('pt')
|
|
44
46
|
self.environment = 'Performance'
|
|
47
|
+
elsif env_path.include?('app-0')
|
|
48
|
+
self.environment = 'Staging'
|
|
45
49
|
else
|
|
46
50
|
self.environment = 'Unknown'
|
|
47
51
|
end
|
|
@@ -65,7 +69,7 @@ module ZuoraAPI
|
|
|
65
69
|
return "https://rest.zuora.com/v1/".concat(url)
|
|
66
70
|
elsif self.environment == 'Services'
|
|
67
71
|
return self.url.split('/')[0..2].join('/').concat('/apps/v1/').concat(url)
|
|
68
|
-
elsif self.environment == 'Performance'
|
|
72
|
+
elsif self.environment == 'Performance' || self.environment == "Staging"
|
|
69
73
|
return self.url.split('/')[0..2].join('/').concat('/apps/v1/').concat(url)
|
|
70
74
|
else self.environment == 'Unknown'
|
|
71
75
|
return 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.
|
|
4
|
+
version: 1.3.0a
|
|
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-
|
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
150
150
|
version: '0'
|
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
|
153
|
-
- - "
|
|
153
|
+
- - ">"
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
|
-
version:
|
|
155
|
+
version: 1.3.1
|
|
156
156
|
requirements: []
|
|
157
157
|
rubyforge_project:
|
|
158
158
|
rubygems_version: 2.5.1
|