simple_xlsx_reader 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/Rakefile +1 -0
- data/lib/simple_xlsx_reader.rb +1 -1
- data/lib/simple_xlsx_reader/version.rb +1 -1
- data/simple_xlsx_reader.gemspec +1 -0
- data/test/simple_xlsx_reader_test.rb +2 -2
- metadata +17 -2
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/lib/simple_xlsx_reader.rb
CHANGED
@@ -135,7 +135,7 @@ module SimpleXlsxReader
|
|
135
135
|
style_types[xcell.attributes['s'].value.to_i]
|
136
136
|
|
137
137
|
cells << begin
|
138
|
-
self.class.cast(xcell.text.strip, type, shared_strings
|
138
|
+
self.class.cast(xcell.text.strip, type, :shared_strings => shared_strings)
|
139
139
|
rescue => e
|
140
140
|
if !SimpleXlsxReader.configuration.catch_cell_load_errors
|
141
141
|
error = CellLoadError.new(
|
data/simple_xlsx_reader.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'test_helper'
|
2
2
|
require 'time'
|
3
3
|
|
4
4
|
describe SimpleXlsxReader do
|
@@ -27,7 +27,7 @@ describe SimpleXlsxReader do
|
|
27
27
|
|
28
28
|
describe '::cast' do
|
29
29
|
it 'reads type s as a shared string' do
|
30
|
-
described_class.cast('1', 's', shared_strings
|
30
|
+
described_class.cast('1', 's', :shared_strings => ['a', 'b', 'c']).
|
31
31
|
must_equal 'b'
|
32
32
|
end
|
33
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_xlsx_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: minitest
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: pry
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,4 +124,3 @@ test_files:
|
|
108
124
|
- test/shared_strings.xml
|
109
125
|
- test/simple_xlsx_reader_test.rb
|
110
126
|
- test/test_helper.rb
|
111
|
-
has_rdoc:
|