xlsxtream 1.0.0 → 1.0.1

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: da905eff1d42676d7c9da3969dfddf932de2cbc0
4
- data.tar.gz: 69891fcde4fca6f8937217871053551844fbccbe
3
+ metadata.gz: 95edaa900980bd320d2c9263ef1ecf9ba89cda93
4
+ data.tar.gz: b86eb2573b8344ec2d8aa1d34c1dc831a46ff812
5
5
  SHA512:
6
- metadata.gz: 5e9b79dff65162666ff363e31efafbfb65ce35a6626f9ea58a070c17986f0e1f2c96a3b4b8b14074c0024e5a3904f46a767048f45d96a0793406f2d77883ea2e
7
- data.tar.gz: 66c1fff1c3e5bd1792bda432c7874e8c78bd8f265c43bf495af366130b621b7db6ed954366c471b62dcc876a6a2412698413cdedfe81df749b74015fcc546f2d
6
+ metadata.gz: 697ac5618f2577a9aca8653d24e59786fa85316e5fd13306c139540198e3f7968f89010c42461351d1954170e7794b96a506a7afb5868902adeef33d4f2ae1ab
7
+ data.tar.gz: aa397f03e684bdd242f86195abb13b56f0590f1a83c4f9ffd9623b57e35d6f2307d59efab981d5d6d5e26946b26e3528a779011366a0a0f5e5b5b40d520e1214
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.0 (1027-10-22)
3
+ ## 1.0.1 (2017-10-22)
4
+
5
+ - Fix writing unnamed worksheets with options
6
+
7
+ ## 1.0.0 (2017-10-22)
4
8
 
5
9
  - Don't close IO objects passed to Workbook constructor (#12)
6
10
 
data/README.md CHANGED
@@ -79,6 +79,8 @@ end
79
79
 
80
80
  # Writes metadata and ZIP archive central directory
81
81
  xlsx.close
82
+ # Close IO object
83
+ io.close
82
84
  ```
83
85
 
84
86
  ## Development
@@ -1,3 +1,3 @@
1
1
  module Xlsxtream
2
- VERSION = "1.0.0"
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -36,6 +36,10 @@ module Xlsxtream
36
36
  end
37
37
 
38
38
  def write_worksheet(name = nil, options = {})
39
+ if name.is_a? Hash and options.empty?
40
+ options = name
41
+ name = nil
42
+ end
39
43
  use_sst = options.fetch(:use_shared_strings, @options[:use_shared_strings])
40
44
  auto_format = options.fetch(:auto_format, @options[:auto_format])
41
45
  sst = use_sst ? @sst : nil
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Bünemann