saxlsx 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saxlsx/sax_parser.rb +1 -1
- data/lib/saxlsx/version.rb +1 -1
- data/spec/data/SpecMultiline10.xlsx +0 -0
- data/spec/data/SpecMultilineN.xlsx +0 -0
- data/spec/sheet_spec.rb +28 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a362064dd090d6f75cd124e8ab54797e7f37a517
|
4
|
+
data.tar.gz: d6935fb38b323b6f2496cf36df0d3f2e4cd76863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b954b402f4e552344dce9bb677db339e5d1126535e23b5744b71349bd5766d4eb957685c8a27c8c6fd69062e70d269c2a64492555ef7c4014da098e80ffff3
|
7
|
+
data.tar.gz: 2fd002a7fd4066450feff382eb4c8a9b5c170ae234c036b088ef3d62e9b9eea0b37548f3d188071f5d6fc5224be4195868021a1ce19706c40912009131e1cfcf
|
data/lib/saxlsx/sax_parser.rb
CHANGED
data/lib/saxlsx/version.rb
CHANGED
Binary file
|
Binary file
|
data/spec/sheet_spec.rb
CHANGED
@@ -121,6 +121,34 @@ describe Sheet do
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
+
context 'with mutliline strings ( )' do
|
125
|
+
let(:filename) { "#{File.dirname(__FILE__)}/data/SpecMultiline10.xlsx" }
|
126
|
+
|
127
|
+
it 'should return multiline cells' do
|
128
|
+
Workbook.open filename do |w|
|
129
|
+
w.sheets[0].tap do |s|
|
130
|
+
s.rows[0].should eq [
|
131
|
+
"Test\nTest1\nTest3"
|
132
|
+
]
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
context 'with mutliline strings (\n)' do
|
139
|
+
let(:filename) { "#{File.dirname(__FILE__)}/data/SpecMultilineN.xlsx" }
|
140
|
+
|
141
|
+
it 'should return multiline cells' do
|
142
|
+
Workbook.open filename do |w|
|
143
|
+
w.sheets[0].tap do |s|
|
144
|
+
s.rows[0].should eq [
|
145
|
+
"Test\nTest1\nTest3"
|
146
|
+
]
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
124
152
|
context 'with inline strings' do
|
125
153
|
let(:filename) { "#{File.dirname(__FILE__)}/data/SpecInlineStrings.xlsx" }
|
126
154
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saxlsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -132,6 +132,8 @@ files:
|
|
132
132
|
- spec/data/Spec.xlsx
|
133
133
|
- spec/data/Spec1904.xlsx
|
134
134
|
- spec/data/SpecInlineStrings.xlsx
|
135
|
+
- spec/data/SpecMultiline10.xlsx
|
136
|
+
- spec/data/SpecMultilineN.xlsx
|
135
137
|
- spec/data/SpecNumberFormat.xlsx
|
136
138
|
- spec/data/SpecSloppy.xlsx
|
137
139
|
- spec/sheet_spec.rb
|
@@ -157,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
159
|
version: '0'
|
158
160
|
requirements: []
|
159
161
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.6.
|
162
|
+
rubygems_version: 2.6.14
|
161
163
|
signing_key:
|
162
164
|
specification_version: 4
|
163
165
|
summary: Fast xlsx reader on top of Ox SAX parser
|
@@ -167,6 +169,8 @@ test_files:
|
|
167
169
|
- spec/data/Spec.xlsx
|
168
170
|
- spec/data/Spec1904.xlsx
|
169
171
|
- spec/data/SpecInlineStrings.xlsx
|
172
|
+
- spec/data/SpecMultiline10.xlsx
|
173
|
+
- spec/data/SpecMultilineN.xlsx
|
170
174
|
- spec/data/SpecNumberFormat.xlsx
|
171
175
|
- spec/data/SpecSloppy.xlsx
|
172
176
|
- spec/sheet_spec.rb
|