xlsxtream 0.3.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3059ae91a1d37f8af53f001f209956b099020ffe
4
- data.tar.gz: 14cdbda940cfd0f71cb426c1c646b4434dddff7a
3
+ metadata.gz: da905eff1d42676d7c9da3969dfddf932de2cbc0
4
+ data.tar.gz: 69891fcde4fca6f8937217871053551844fbccbe
5
5
  SHA512:
6
- metadata.gz: 5894ce04ab5f8720e2da65e09de45a5d20b8c4df0f260e94cf2db1ec025b05832e69e8dce6edf1d6a9a938ea089408063dacf026f9185992a24c8e69a73847a5
7
- data.tar.gz: 762faa3c9c0b2c29aacf150ed1610ae6af0badd373f770d33f348ac3bbd9dceaa98cbf98ff6ee35b6422fc554cbce4eb7729deb3887a392989c38b73be6bc10f
6
+ metadata.gz: 5e9b79dff65162666ff363e31efafbfb65ce35a6626f9ea58a070c17986f0e1f2c96a3b4b8b14074c0024e5a3904f46a767048f45d96a0793406f2d77883ea2e
7
+ data.tar.gz: 66c1fff1c3e5bd1792bda432c7874e8c78bd8f265c43bf495af366130b621b7db6ed954366c471b62dcc876a6a2412698413cdedfe81df749b74015fcc546f2d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0 (1027-10-22)
4
+
5
+ - Don't close IO objects passed to Workbook constructor (#12)
6
+
3
7
  ## 0.3.1 (2017-10-22)
4
8
 
5
9
  - Escape invalid XML 1.0 characters (#11)
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Xlsxtream
2
- VERSION = "0.3.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlsxtream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Bünemann