zuora_api 1.3.96 → 1.3.97
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 +2 -2
- data/lib/zuora_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64499316826e0e5e29b2de560f181dc611b35dbc
|
4
|
+
data.tar.gz: 4f19fc6a5379d8343871165f79abf45903888d1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e808536e534f65d1261678ef0acc5795cf44229e656f103fb95e978737546252736d4e0a2035cb7b9eee0f752ecf91e07fc2d2b495300180db0b276e66db84a7
|
7
|
+
data.tar.gz: d1e2433c8035d0c968f139248ee75a1e6e852279980c591ad288d6fb7ac5b8c6e37732ffb03b2730cf17487fcf57a51fc729bd549ceb92949c84a65da6479acb
|
data/lib/zuora_api/login.rb
CHANGED
@@ -413,7 +413,7 @@ module ZuoraAPI
|
|
413
413
|
return products, catalog_map
|
414
414
|
end
|
415
415
|
|
416
|
-
def get_file(file_name: nil, url: nil, headers: {}, count: 3, file_type: "zip")
|
416
|
+
def get_file(file_name: nil, url: nil, headers: {}, count: 3, file_type: "zip", z_session: true)
|
417
417
|
begin
|
418
418
|
uri = URI.parse(url)
|
419
419
|
filename = !file_name.blank? ? file_name : File.basename(uri.path).rpartition('.').first
|
@@ -421,7 +421,7 @@ module ZuoraAPI
|
|
421
421
|
http = Net::HTTP.new(uri.host, uri.port)
|
422
422
|
http.read_timeout = 120 #Seconds
|
423
423
|
http.use_ssl = true if uri.scheme.downcase == 'https'
|
424
|
-
headers = headers.merge({"Authorization" => "ZSession #{self.get_session}"})
|
424
|
+
headers = headers.merge({"Authorization" => "ZSession #{self.get_session}"}) if z_session
|
425
425
|
|
426
426
|
response_save = nil
|
427
427
|
http.request_get(uri.path, headers) do |response|
|
data/lib/zuora_api/version.rb
CHANGED