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 +5 -5
- data/Changes +3 -0
- data/lib/write_xlsx/package/shared_strings.rb +6 -4
- data/lib/write_xlsx/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9321ad366de31af18f34ce1898368f6d754759b9
|
4
|
+
data.tar.gz: 7ad3e41824e5e9443d211766fb285ca56550ff0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa745d393ba1664d8e59bcbf56c3eaf2430d4000dda9b4e929c6766bdf852ea1686af0fb0e30e7cec90fa94e49432ef0383aa871bec7c0ae45f13c4cc53f1ce
|
7
|
+
data.tar.gz: f321d7ddd751e9a4e757b75c519859be73cee90966f31ad1089e15cd8f2ce97b2f03a0d6abc89931d68862facd442000b88fc2177e421c488ed31d91db370aef
|
data/Changes
CHANGED
@@ -9,14 +9,15 @@ class SharedStrings
|
|
9
9
|
include Writexlsx::Utility
|
10
10
|
|
11
11
|
def initialize
|
12
|
-
@writer
|
13
|
-
@strings
|
14
|
-
@
|
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
|
-
@
|
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
|
data/lib/write_xlsx/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
WriteXLSX_VERSION = "0.85.
|
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.
|
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-
|
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.
|
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:
|