zuora_api 0.2.5.9 → 0.2.6.0
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/lib/zuora_api/login.rb +5 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee8eef6b61de23f22af5cf4d6da72ac4e5c444ab
|
|
4
|
+
data.tar.gz: c0d17444403cb55fb8d91d6e5fef2d6ac4e2b261
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc08a706d5827c9fb467fdc2f86da617de7bb123f4a3804a89649f0c13b41cf9415cc73dc8380f9c24bdfdfd98e68498e09b2e8a99ae2762ff5197a60756225b
|
|
7
|
+
data.tar.gz: f0784098709333430f480cace211610ad526587fffd5bb7439e1d5d4ca4ea37887e21b7c4ac0f3973686c3e36c893b28ddb07d80496c42e526b5dc5a34da0b79
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -225,7 +225,11 @@ module ZuoraAPI
|
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
def describe_call(object = nil)
|
|
228
|
-
|
|
228
|
+
if self.environment = "Production"
|
|
229
|
+
url = object ? "https://zuora.com/apps/api/describe/#{object}" : "https://zuora.com/apps/api/describe/"
|
|
230
|
+
elsif self.environment = "Sandbox"
|
|
231
|
+
url = object ? "https://apisandbox.zuora.com/apps/api/describe/#{object}" : "https://apisandbox.zuora.com/apps/api/describe/"
|
|
232
|
+
end
|
|
229
233
|
response = HTTParty.get(url, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, basic_auth: {:username => self.username, :password => self.password})
|
|
230
234
|
output_xml = Nokogiri::XML(response.body)
|
|
231
235
|
des_hash = Hash.new
|
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: 0.2.
|
|
4
|
+
version: 0.2.6.0
|
|
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: 2016-10-
|
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|