zuora_api 1.3.994 → 1.3.995

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: eeb2e7da7d8330c3df6704f199bdcd96ac49d442
4
- data.tar.gz: cb30b317f01cfcea139fc7508f689a08f5595cf0
3
+ metadata.gz: e3e20ffd6b33ea3564146a67dfdeba2196ea0704
4
+ data.tar.gz: 58814fe448951f8ef2fb66f459e5ac375f0e1e39
5
5
  SHA512:
6
- metadata.gz: 010c5ffea5ee409678e8c765dc8024ff01fb46f7f8ab1f530cd4e51a597e563e7b9224a257908b4a6e733e1a013fa4b37fbf0ec43ebc8507ee9f1d6d6c4d0f7e
7
- data.tar.gz: 971fda096bfb9905d71be75cb8253773a3f06e396799ea71e7b752cef5ac4c4f5c2629af017c1280948c90f5a409c229215b0d1ac2991dfdf6354e2f6f77e9d7
6
+ metadata.gz: 3c4c6e99d14ebeb6d6f566bb1fd64f56da2d506645ad1156cec9157aa1e892a59c2b3d126f20aaf5c7932715bf675657c3adb79623ad35c8e285377c07163797
7
+ data.tar.gz: 7a260a6b6ee5f287184e525d50862bb180debfed651ea82457e04b595c0349e135e1be6c885dc6fbbb2eba727d90a278d26b026365757914d13e8a54a5637e07
@@ -473,8 +473,14 @@ module ZuoraAPI
473
473
  filename = file_name.present? ? file_name : full_filename.present? ? full_filename.split(file_ending).first : File.basename(uri.path).rpartition('.').first
474
474
 
475
475
  if response.header["Content-Type"].present?
476
- type = /(.*);charset=(.*)/.match(response.header["Content-Type"])[1]
477
- encoding = /(.*);charset=(.*)/.match(response.header["Content-Type"])[2]
476
+ case response.header["Content-Type"]
477
+ when /.*;charset=.*/.match("application/zip")
478
+ type = /(.*);charset=(.*)/.match(response.header["Content-Type"])[1]
479
+ encoding = /(.*);charset=(.*)/.match(response.header["Content-Type"])[2]
480
+ else
481
+ type = response.header["Content-Type"]
482
+ encoding ||= 'UTF-8'
483
+ else
478
484
  end
479
485
  Rails.logger.debug("File: #{filename}#{file_ending} #{encoding} #{type}")
480
486
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.994"
2
+ VERSION = "1.3.995"
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.994
4
+ version: 1.3.995
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group