easy_sheet_io 0.2.3 → 0.2.4
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 +4 -4
- data/Gemfile.lock +9 -1
- data/lib/easy_sheet_io/version.rb +1 -1
- data/lib/easy_sheet_io.rb +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88df6087923b6ed328df091fa6f6fdf2b833e5a7d96af9a386db127b13b2e3cd
|
4
|
+
data.tar.gz: c841d5ed1f39467ee30a3904cb546951c23178343b3f019aa2c8fd9a8872d7a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eb46d668a0e4465e1f93c6617fd0a2212f41b9b0e90b4d0e566d0f25129779914860f970cdf8491ca7fdbcdc5df598d0c5a496097ae3ee1cf62afed95daef2c
|
7
|
+
data.tar.gz: e0ec1d00e0852e70cc4be1ef90d981353803fa796fc9e763631687a4980421b650db1ac6e3c119460e7eabec4313374eee788b0b15768b8c12857f95f5d3a1e2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
easy_sheet_io (0.2.
|
4
|
+
easy_sheet_io (0.2.3)
|
5
|
+
daru (>= 0.3)
|
6
|
+
rake (~> 13.0)
|
7
|
+
roo-xls (>= 1.2.0)
|
8
|
+
rover-df (>= 0.2.7)
|
9
|
+
rspec (~> 3.0)
|
10
|
+
rubocop (~> 0.80)
|
11
|
+
smarter_csv (>= 1.4.2)
|
12
|
+
spreadsheet (>= 1.3.0)
|
5
13
|
|
6
14
|
GEM
|
7
15
|
remote: https://rubygems.org/
|
data/lib/easy_sheet_io.rb
CHANGED
@@ -129,15 +129,17 @@ module EasySheetIo
|
|
129
129
|
def fix_array(array2d, replace_to_nil, analyze_type)
|
130
130
|
ans = array2d
|
131
131
|
|
132
|
-
if
|
133
|
-
ans = ans.map { _1.map {|cell|
|
132
|
+
if replace_to_nil.length > 0
|
133
|
+
ans = ans.map { _1.map {|cell| replace_to_nil.include?(cell) ? nil : cell } }
|
134
134
|
end
|
135
135
|
|
136
|
-
if analyze_type
|
137
|
-
|
136
|
+
# if analyze_type
|
137
|
+
# ans = ans.map do |column|
|
138
138
|
|
139
|
-
|
140
|
-
end
|
139
|
+
# end
|
140
|
+
# end
|
141
|
+
|
142
|
+
return ans
|
141
143
|
end
|
142
144
|
|
143
145
|
# Fix blank or duplicated header
|