iostreams 0.17.2 → 0.17.3

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
  SHA256:
3
- metadata.gz: 72fd57ac6ba81c64ac1dd5526bcf2b0aa491ef55eff38d1709a037874d8659d1
4
- data.tar.gz: a953ad1389cd98740112f847c656d24956ce259f3dfa1309aa216354a93762a1
3
+ metadata.gz: e5c25f9652a6f8e21948dbbf18121093520dff467ea887959f9d9719311046e8
4
+ data.tar.gz: 1cb168e667ade3af6b85d81661fcfe9d76c1df62a30e1e4bf520a6b9c463d448
5
5
  SHA512:
6
- metadata.gz: 9a5f33b69593ee071aa850a74f2c0c67c05000e1ecf730bc1be91a116786b820b408788f41802e86711eb2d3fbd861f739c5353ad9809ae17ab8b90a1f57954f
7
- data.tar.gz: 100e625316b55badbad403bcd58c146381ad343b427a9c68780424f4d738867d0fbb5fe1ad480cb1dce399c9f7d6e68b25055c38b569471da0bdfc811c7cdcbc
6
+ metadata.gz: d86ecd8059751b9080853ab3a6f96f6241af6fb8c610798a0f401b647c08469c1b1f828c08acc723669994be3debc7b2e5e76826146fb70a64594d6197ef00db
7
+ data.tar.gz: 190fd0f23a41c3f8e30f2982c474601268b0e7e435f51b344ae1925ebef78fc9b03d62514d478d01c689eae74ceaff86b42258150d09ec8eefa16f1bcd3912c2
@@ -14,6 +14,7 @@ module IOStreams
14
14
  begin
15
15
  # Since S3 download only supports a push stream, write it to a tempfile first.
16
16
  temp_file = Tempfile.new('rocket_job')
17
+ temp_file.binmode
17
18
 
18
19
  args[:response_target] = temp_file.to_path
19
20
  object.get(args)
@@ -1,3 +1,3 @@
1
1
  module IOStreams
2
- VERSION = '0.17.2'
2
+ VERSION = '0.17.3'
3
3
  end
@@ -9,11 +9,13 @@ module IOStreams
9
9
  file_name = file_name_or_io
10
10
  else
11
11
  temp_file = Tempfile.new('iostreams_xlsx')
12
+ temp_file.binmode
12
13
  IOStreams.copy(file_name_or_io, temp_file)
13
14
  file_name = temp_file.to_path
14
15
  end
15
16
 
16
17
  csv_temp_file = Tempfile.new('iostreams_csv')
18
+ csv_temp_file.binmode
17
19
  new(file_name).each { |lines| csv_temp_file << lines.to_csv }
18
20
  csv_temp_file.rewind
19
21
  yield csv_temp_file
@@ -29,6 +29,7 @@ module IOStreams
29
29
  begin
30
30
  # Since ZIP cannot be streamed, download un-zipped data to a local file before streaming
31
31
  temp_file = Tempfile.new('rocket_job')
32
+ temp_file.binmode
32
33
  file_name = temp_file.to_path
33
34
 
34
35
  # Stream zip stream into temp file
@@ -42,6 +42,7 @@ module IOStreams
42
42
  begin
43
43
  # Since ZIP cannot be streamed, download to a local file before streaming
44
44
  temp_file = Tempfile.new('rocket_job')
45
+ temp_file.binmode
45
46
  write_file(temp_file.to_path, zip_file_name, &block)
46
47
 
47
48
  # Stream temp file into output stream
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iostreams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby