xlsxtream 0.3.1 → 1.0.0
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/CHANGELOG.md +4 -0
- data/lib/xlsxtream/io/rubyzip.rb +3 -3
- data/lib/xlsxtream/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: da905eff1d42676d7c9da3969dfddf932de2cbc0
|
4
|
+
data.tar.gz: 69891fcde4fca6f8937217871053551844fbccbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e9b79dff65162666ff363e31efafbfb65ce35a6626f9ea58a070c17986f0e1f2c96a3b4b8b14074c0024e5a3904f46a767048f45d96a0793406f2d77883ea2e
|
7
|
+
data.tar.gz: 66c1fff1c3e5bd1792bda432c7874e8c78bd8f265c43bf495af366130b621b7db6ed954366c471b62dcc876a6a2412698413cdedfe81df749b74015fcc546f2d
|
data/CHANGELOG.md
CHANGED
data/lib/xlsxtream/io/rubyzip.rb
CHANGED
@@ -4,9 +4,9 @@ module Xlsxtream
|
|
4
4
|
module IO
|
5
5
|
class RubyZip
|
6
6
|
def initialize(path_or_io)
|
7
|
-
stream = path_or_io.respond_to? :reopen
|
7
|
+
@stream = path_or_io.respond_to? :reopen
|
8
8
|
path_or_io.binmode if path_or_io.respond_to? :binmode
|
9
|
-
@zos = UnbufferedZipOutputStream.new(path_or_io, stream)
|
9
|
+
@zos = UnbufferedZipOutputStream.new(path_or_io, @stream)
|
10
10
|
end
|
11
11
|
|
12
12
|
def <<(data)
|
@@ -20,7 +20,7 @@ module Xlsxtream
|
|
20
20
|
def close
|
21
21
|
os = @zos.close_buffer
|
22
22
|
os.flush if os.respond_to? :flush
|
23
|
-
os.close if os.respond_to? :close
|
23
|
+
os.close if !@stream and os.respond_to? :close
|
24
24
|
end
|
25
25
|
|
26
26
|
# Extend get_compressor to hook our custom deflater.
|
data/lib/xlsxtream/version.rb
CHANGED