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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da5db0ec1e91e2e8340fda90b2501b3a372072a8
4
- data.tar.gz: a3acb011a6fe0c8e052073386a56fd290ce083f4
3
+ metadata.gz: 70cf21773e0bf593b77f65916a0008c873ef0ecd
4
+ data.tar.gz: bf2b74c75607ff3dd5e8d9e75f9e052d097aa94a
5
5
  SHA512:
6
- metadata.gz: 89e20679064b9347192b8da482912ad1e3a6b95e9239551b0ab209dfcb2ac4d5d4ce5592f5d5afd3ae5984fcbde7d43c6704ada9e19327e11e07c4552d19b442
7
- data.tar.gz: 3ce640049b0c18e362e74028378a6c6d882b9c98df4ec055a407a1a0049636f191e414c9eab0f2fec6f4cc9f5866135f13f5f749fb1eb840b71a830b9a0f84ee
6
+ metadata.gz: 0ea8c1252851634ef5395994cee21cdbb421f6caea3c30744bb978ad1ced12c95a2c7207ca2f13947bd43cc06693e3b749a79e82056376b1de4a44af3881f8df
7
+ data.tar.gz: 0ecdb6371a7bfb439d20619e7fda07c62a4b992c20e84074c1711fb4072a770099eeceb5b74a913dc31f26cbdbbaab8188412e782f7f1646008dc2e932499036
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.2.1)
4
+ zuora_api (1.3.0a)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0a"
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.2.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-04-28 00:00:00.000000000 Z
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: '0'
155
+ version: 1.3.1
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 2.5.1