write_xlsx 0.85.6 → 0.85.7

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
- SHA256:
3
- metadata.gz: 7d9381b5893f5bba74793716ade4ac8560af6c18953acebe9eb1b13afbc7efc5
4
- data.tar.gz: aff6349570d4111a80b991504d0e1293c6e650c793028bef340fbdcb65fb355e
2
+ SHA1:
3
+ metadata.gz: 9321ad366de31af18f34ce1898368f6d754759b9
4
+ data.tar.gz: 7ad3e41824e5e9443d211766fb285ca56550ff0b
5
5
  SHA512:
6
- metadata.gz: a86c39e414f965061cec64e49aa8163a8d09a0e0707ba602647377b34a1d6bbd12a702a27a8c496b3d31ac93f0b4ea9e629d48eb8c5fbce4e527b6182aefb8d4
7
- data.tar.gz: b8e18e11a09b91fc86ec2fe5d6eeeb5047e27cb1378e67b871df141084040f469deabd593076a77666d1d03564bdcdf104f7ba6476b011b8a87c54c1c74fb622
6
+ metadata.gz: 7aa745d393ba1664d8e59bcbf56c3eaf2430d4000dda9b4e929c6766bdf852ea1686af0fb0e30e7cec90fa94e49432ef0383aa871bec7c0ae45f13c4cc53f1ce
7
+ data.tar.gz: f321d7ddd751e9a4e757b75c519859be73cee90966f31ad1089e15cd8f2ce97b2f03a0d6abc89931d68862facd442000b88fc2177e421c488ed31d91db370aef
data/Changes CHANGED
@@ -1,5 +1,8 @@
1
1
  Change history of write_xlsx rubygem.
2
2
 
3
+ 2019-06-20 v0.85.7
4
+ apply pull-request #26
5
+
3
6
  2019-02-10 v0.85.6
4
7
  Fix work well in ms windows.
5
8
 
@@ -9,14 +9,15 @@ class SharedStrings
9
9
  include Writexlsx::Utility
10
10
 
11
11
  def initialize
12
- @writer = Package::XMLWriterSimple.new
13
- @strings = [] # string table
14
- @count = {} # => count
12
+ @writer = Package::XMLWriterSimple.new
13
+ @strings = [] # string table
14
+ @strings_index = {} # string table index
15
+ @count = {} # count
15
16
  end
16
17
 
17
18
  def index(string, params = {})
18
19
  add(string) unless params[:only_query]
19
- @strings.index(string)
20
+ @strings_index[string]
20
21
  end
21
22
 
22
23
  def add(string)
@@ -25,6 +26,7 @@ def add(string)
25
26
  @count[str] += 1
26
27
  else
27
28
  @strings << str
29
+ @strings_index[str] = @strings.size - 1
28
30
  @count[str] = 1
29
31
  end
30
32
  end
@@ -1 +1 @@
1
- WriteXLSX_VERSION = "0.85.6"
1
+ WriteXLSX_VERSION = "0.85.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: write_xlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.6
4
+ version: 0.85.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hideo NAKAMURA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-10 00:00:00.000000000 Z
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -1710,7 +1710,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1710
1710
  version: '0'
1711
1711
  requirements: []
1712
1712
  rubyforge_project:
1713
- rubygems_version: 2.7.6
1713
+ rubygems_version: 2.6.8
1714
1714
  signing_key:
1715
1715
  specification_version: 4
1716
1716
  summary: write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format.
@@ -3201,3 +3201,4 @@ test_files:
3201
3201
  - test/worksheet/test_write_tab_color.rb
3202
3202
  - test/worksheet/test_write_url.rb
3203
3203
  - test/worksheet/test_write_worksheet_attributes.rb
3204
+ has_rdoc: