zuora_api 0.2.5.9 → 0.2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f5b3400fb30ea2a03f1da26ecf6a5111cbb45c0
4
- data.tar.gz: 69a1d959f9a64952c74bea452954cc725d778bae
3
+ metadata.gz: ee8eef6b61de23f22af5cf4d6da72ac4e5c444ab
4
+ data.tar.gz: c0d17444403cb55fb8d91d6e5fef2d6ac4e2b261
5
5
  SHA512:
6
- metadata.gz: 994e83245b114a525169ceec070514eacf044dcfe55ffbdee24b1ff6791d8e4bdcafc577f9224447e653685faffd62bb733ae17d38a617671676028f8b0d3fe4
7
- data.tar.gz: e2e4dad7b5e92aa7317d4b12fbb63d06d490ad9d981693c1f65f047796e3084ad41a6338b2b52da609bf3ec059ace02961960a638ea15becb906c14cb4936070
6
+ metadata.gz: dc08a706d5827c9fb467fdc2f86da617de7bb123f4a3804a89649f0c13b41cf9415cc73dc8380f9c24bdfdfd98e68498e09b2e8a99ae2762ff5197a60756225b
7
+ data.tar.gz: f0784098709333430f480cace211610ad526587fffd5bb7439e1d5d4ca4ea37887e21b7c4ac0f3973686c3e36c893b28ddb07d80496c42e526b5dc5a34da0b79
@@ -225,7 +225,11 @@ module ZuoraAPI
225
225
  end
226
226
 
227
227
  def describe_call(object = nil)
228
- url = object ? "https://apisandbox.zuora.com/apps/api/describe/#{object}" : "https://apisandbox.zuora.com/apps/api/describe/"
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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "0.2.5.9"
2
+ VERSION = "0.2.6.0"
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: 0.2.5.9
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-17 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler