zuora_api 1.3.95 → 1.3.96

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: 09b3dfa7572aa00a3ca9c13032b2df3ff56970ff
4
- data.tar.gz: f8fdd75ccf3cb140d7cb82214b9234e325dc8390
3
+ metadata.gz: 2c68ef8aaf007ec579010cd6a5e63ea41220ed98
4
+ data.tar.gz: dbcea489a15bd9c00857081066a505a66d0c1b8c
5
5
  SHA512:
6
- metadata.gz: b631b916a6e1798724a2634082276a06f0999024be01833bcfaaab469004c158505960009b0afe588c43dc5de86806090a96c83ba6967fbdb301347d092261fd
7
- data.tar.gz: d0a95b14a7fa8fd72a652910bbc861b175a4bcb3b41450da2ef4484a85971f0742e637bd8fd28908975d187055d1bcc1fa90e532fb4ce09099f5107db48a1f20
6
+ metadata.gz: f5be72c2c512cd41cf239a4be394c9b89c8997d953710f0ecc8373f91bd9d984fcabab109dbf671a8bbb5cf450693d3005317517e3d35309adcf43d1f2d4bb6f
7
+ data.tar.gz: 910911b61fdf5b555217ca6a9f04fc985fbc3cf6a5c621dbd1607b46f0f1c7ea0f76b6d676e22761a71e8f0da2acef8fdcc7bdf465c6fb68a399a31026a08467
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.3.95)
4
+ zuora_api (1.3.96)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -10,20 +10,20 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (5.0.4)
14
- actionview (= 5.0.4)
15
- activesupport (= 5.0.4)
13
+ actionpack (5.0.5)
14
+ actionview (= 5.0.5)
15
+ activesupport (= 5.0.5)
16
16
  rack (~> 2.0)
17
17
  rack-test (~> 0.6.3)
18
18
  rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
- actionview (5.0.4)
21
- activesupport (= 5.0.4)
20
+ actionview (5.0.5)
21
+ activesupport (= 5.0.5)
22
22
  builder (~> 3.1)
23
23
  erubis (~> 2.7.0)
24
24
  rails-dom-testing (~> 2.0)
25
25
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
- activesupport (5.0.4)
26
+ activesupport (5.0.5)
27
27
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
28
  i18n (~> 0.7)
29
29
  minitest (~> 5.1)
@@ -32,14 +32,14 @@ GEM
32
32
  concurrent-ruby (1.0.5)
33
33
  diff-lcs (1.2.5)
34
34
  erubis (2.7.0)
35
- httparty (0.15.5)
35
+ httparty (0.15.6)
36
36
  multi_xml (>= 0.5.2)
37
37
  i18n (0.8.6)
38
38
  loofah (2.0.3)
39
39
  nokogiri (>= 1.5.9)
40
40
  method_source (0.8.2)
41
41
  mini_portile2 (2.1.0)
42
- minitest (5.10.2)
42
+ minitest (5.10.3)
43
43
  multi_xml (0.6.0)
44
44
  nokogiri (1.6.8.1)
45
45
  mini_portile2 (~> 2.1.0)
@@ -51,9 +51,9 @@ GEM
51
51
  nokogiri (>= 1.6)
52
52
  rails-html-sanitizer (1.0.3)
53
53
  loofah (~> 2.0)
54
- railties (5.0.4)
55
- actionpack (= 5.0.4)
56
- activesupport (= 5.0.4)
54
+ railties (5.0.5)
55
+ actionpack (= 5.0.5)
56
+ activesupport (= 5.0.5)
57
57
  method_source
58
58
  rake (>= 0.8.7)
59
59
  thor (>= 0.18.1, < 2.0)
@@ -326,11 +326,11 @@ module ZuoraAPI
326
326
  return des_hash
327
327
  end
328
328
 
329
- def rest_call(method: :get, body: {},headers: {}, url: rest_endpoint("catalog/products?pageSize=4") , debug: true, **keyword_args)
329
+ def rest_call(method: :get, body: {},headers: {}, url: rest_endpoint("catalog/products?pageSize=4"), debug: true, z_session: true, **keyword_args)
330
330
  tries ||= 2
331
331
  headers["entityId"] = self.entity_id if !self.entity_id.blank?
332
332
  raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
333
- response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8", "Authorization" => "ZSession #{self.get_session}"}.merge(headers), timeout: 120).perform
333
+ response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8"}.merge(z_session ? {"Authorization" => "ZSession #{self.get_session}"} : {}).merge(headers), timeout: 120).perform
334
334
  Rails.logger.debug('Connect') { response.code} if debug
335
335
  output_json = JSON.parse(response.body)
336
336
  Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.95"
2
+ VERSION = "1.3.96"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.95
4
+ version: 1.3.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group