saxlsx 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f695e5e0a2470321d739c99840624c0e0e52808b
4
- data.tar.gz: eb92f3e6bec02f95a642274511dc4d4b1abf052a
3
+ metadata.gz: a362064dd090d6f75cd124e8ab54797e7f37a517
4
+ data.tar.gz: d6935fb38b323b6f2496cf36df0d3f2e4cd76863
5
5
  SHA512:
6
- metadata.gz: 484bab7c1138454a5a6bcd6cd60e021bb0b2fc58bac5489af6e369b6733ca8804f1c53dce1d95a3c12693b86355c032cdcf73ece0b04167c36a82fc3b24a2845
7
- data.tar.gz: 26ba631f53a1d194ff8dbc7c2baedfb366387d66ebc68940f49bb4ca7acc8adf0569c3be6114d710d6850b5882b3a4ac829114063e2a5c52f7ff03d8593e2109
6
+ metadata.gz: 39b954b402f4e552344dce9bb677db339e5d1126535e23b5744b71349bd5766d4eb957685c8a27c8c6fd69062e70d269c2a64492555ef7c4014da098e80ffff3
7
+ data.tar.gz: 2fd002a7fd4066450feff382eb4c8a9b5c170ae234c036b088ef3d62e9b9eea0b37548f3d188071f5d6fc5224be4195868021a1ce19706c40912009131e1cfcf
@@ -3,7 +3,7 @@ module Saxlsx
3
3
  class SaxParser
4
4
 
5
5
  def self.parse(handler, xml)
6
- Ox.sax_parse(handler, xml)
6
+ Ox.sax_parse(handler, xml, skip: :skip_return)
7
7
  ensure
8
8
  xml.rewind
9
9
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Saxlsx
3
- VERSION = '1.8.0'
3
+ VERSION = '1.9.0'
4
4
  end
@@ -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.8.0
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: 2018-04-09 00:00:00.000000000 Z
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.11
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