zuora_api 0.2.6.1 → 0.2.6.2
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 +3 -5
- 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: 36c8ca80ce14ca436fbf804a6c1628806f2a00b6
|
|
4
|
+
data.tar.gz: b18c6e02c831dec29a1e476a466e45dc75d8ab89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b73fdff22718fe4b2702bfc738fa1fe1026b8b4279a38393cddea1fdc4b6aeb75aff81edaf41b81524a33a5de609c1429e658dabe634d60a811dd0a816dd982f
|
|
7
|
+
data.tar.gz: bce00f21ec763e99eeede2681a5b052b077ade6786f40be69f9688c8d9120df778f7979ad0552af8fe32d05ea777715ec3f15fed8222f7ddeac4e1aec1b58bd1
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -225,11 +225,9 @@ module ZuoraAPI
|
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
def describe_call(object = nil)
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
url = object ? "https://apisandbox.zuora.com/apps/api/describe/#{object}" : "https://apisandbox.zuora.com/apps/api/describe/"
|
|
232
|
-
end
|
|
228
|
+
self.get_session
|
|
229
|
+
base = self.url.include?(".com") ? self.url.split(".com")[0] : self.url.split(".eu")[0]
|
|
230
|
+
url = object ? "#{base}.com/apps/api/describe/#{object}" : "#{base}.com/apps/api/describe/"
|
|
233
231
|
response = HTTParty.get(url, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, basic_auth: {:username => self.username, :password => self.password})
|
|
234
232
|
output_xml = Nokogiri::XML(response.body)
|
|
235
233
|
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.6.
|
|
4
|
+
version: 0.2.6.2
|
|
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-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|