tolq-parsers-csv 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csv/parser.rb +1 -1
- data/lib/csv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 398f33db78392da4efe8d163a03fafd6d1f00acb
|
4
|
+
data.tar.gz: 20d7c6a9fe73f1e763f69f602976fb28cacf01b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20689cfe169db3d5df8c3f6aa14c836baa5555c5ef502f5424b9417a814ddfab63c12348d60bbb370eafffa5cadc34e284ffd5fe3d66b7be5c8a609ca5d6d749
|
7
|
+
data.tar.gz: 805009613d66eaea3569656d6f29c13fd789d55c4ebe5c0bba3696307744c47e115c1ce0b20581235401e7eb3b736c1d7e09ad9bdb87263aa631e1328b04a981
|
data/lib/csv/parser.rb
CHANGED
@@ -37,7 +37,7 @@ module Tolq::Parsers::CSV
|
|
37
37
|
rdata = {}
|
38
38
|
CSV.new(csv_text, parse_opts).each.with_index do |row, rowidx|
|
39
39
|
row.each.with_index do |col, colidx|
|
40
|
-
rdata["#{rowidx}:#{colidx}"] = { "text" => col }
|
40
|
+
rdata["#{rowidx}:#{colidx}"] = { "text" => col } if col && col.length > 0
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
data/lib/csv/version.rb
CHANGED